javax.servlet
public class ServletRequestAttributeEvent extends ServletRequestEvent
Since: Servlet 2.4
See Also: ServletRequestAttributeListener
Constructor Summary | |
---|---|
ServletRequestAttributeEvent(ServletContext sc, ServletRequest request, String name, Object value) Construct a ServletRequestAttributeEvent giving the servlet context
of this web application, the ServletRequest whose attributes are
changing and the name and value of the attribute.
|
Method Summary | |
---|---|
String | getName()
Return the name of the attribute that changed on the ServletRequest.
|
Object | getValue()
Returns the value of the attribute that has been added, removed or
replaced. |
Parameters: sc the ServletContext that is sending the event. request the ServletRequest that is sending the event. name the name of the request attribute. value the value of the request attribute.
Returns: the name of the changed request attribute
Returns: the value of the changed request attribute