|
Milyn-Smooks Version 0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.milyn.container.servlet.HttpServletContainerRequest
Smooks ContainerRequest implementation for the HttpServlet container.
| Constructor Summary | |
HttpServletContainerRequest(javax.servlet.http.HttpServletRequest servletRequest,
javax.servlet.ServletConfig servletConfig,
ServletContainerContext containerContext)
Public Constructor. |
|
| Method Summary | |
void |
clearElementLists()
Clear the list of ElementLists from this request. |
java.lang.Object |
getAttribute(java.lang.String name)
Returns the object bound with the specified name in this BoundAttributeStore
implementation, or null if no object is bound under the name. |
ContainerContext |
getContext()
Get the container context within which this request "lives". |
java.lang.String |
getContextPath()
Returns the portion of the request URI that indicates the context of the request. |
ContentDeliveryConfig |
getDeliveryConfig()
Get the content delivery configuration for the useragent attached to this request. |
ElementList |
getElementList(java.lang.String name)
Request utility method for "hooking" elements of the same name together within the context of a request. |
java.lang.String |
getHeader(java.lang.String name)
|
java.lang.String |
getParameter(java.lang.String name)
|
java.util.Enumeration |
getParameterNames()
Returns an Enumeration of String objects containing the names of the parameters contained in this request. |
java.lang.String[] |
getParameterValues(java.lang.String name)
Returns an array of String objects containing all of the values the given request parameter has, or null if the parameter does not exist. |
java.net.URI |
getRequestURI()
Returns the full request URI made by the requesting device (including the query string). |
javax.servlet.http.HttpServletRequest |
getServletRequest()
Get the HttpServletRequest instance associated with this ContainerRequest implementation. |
ContainerSession |
getSession()
Get the container session within which this request "lives". |
UAContext |
getUseragentContext()
Get the UAContext instance for the useragent attached to this request. |
void |
removeAttribute(java.lang.String name)
Removes the object bound with the specified name from this BoundAttributeStore
implementation. |
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Binds an object to this BoundAttributeStore implementation, using the name
specified. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public HttpServletContainerRequest(javax.servlet.http.HttpServletRequest servletRequest,
javax.servlet.ServletConfig servletConfig,
ServletContainerContext containerContext)
throws UnknownDeviceException
servletRequest - HttpServletRequest instance.servletConfig - ServletConfig instance.
UnknownDeviceException - Unable to match device.| Method Detail |
public java.lang.String getContextPath()
ContainerRequest
getContextPath in interface ContainerRequestpublic java.net.URI getRequestURI()
ContainerRequest
getRequestURI in interface ContainerRequestpublic java.lang.String getHeader(java.lang.String name)
getHeader in interface HttpRequestpublic java.lang.String getParameter(java.lang.String name)
getParameter in interface HttpRequestpublic java.util.Enumeration getParameterNames()
ContainerRequest
getParameterNames in interface ContainerRequestpublic java.lang.String[] getParameterValues(java.lang.String name)
ContainerRequest
getParameterValues in interface ContainerRequestname - String containing the name of the parameter whose value is
requested.
public ContainerContext getContext()
ContainerRequest
getContext in interface ContainerRequestpublic ContainerSession getSession()
ContainerRequest
getSession in interface ContainerRequestpublic UAContext getUseragentContext()
ContainerRequest
getUseragentContext in interface ContainerRequestpublic ContentDeliveryConfig getDeliveryConfig()
ContainerRequest
getDeliveryConfig in interface ContainerRequest
public void setAttribute(java.lang.String name,
java.lang.Object value)
BoundAttributeStoreBoundAttributeStore implementation, using the name
specified. If an object of the same name is already bound, the object
is replaced.
setAttribute in interface BoundAttributeStorename - The name to which the object is bound; cannot be null.value - The object to be bound; cannot be null.public java.lang.Object getAttribute(java.lang.String name)
BoundAttributeStoreBoundAttributeStore
implementation, or null if no object is bound under the name.
getAttribute in interface BoundAttributeStorename - The name to which the object is bound; cannot be null.
BoundAttributeStore
implementation, or null if no object is bound under the name.public void removeAttribute(java.lang.String name)
BoundAttributeStoreBoundAttributeStore
implementation. If the BoundAttributeStore implementation does
not have an object bound with the specified name, this method does nothing.
removeAttribute in interface BoundAttributeStorename - The name to which the object is bound; cannot be null.public ElementList getElementList(java.lang.String name)
ContainerRequest
getElementList in interface ContainerRequestname - The name of the element whose ElementList is being
requested.
ContainerRequest.clearElementLists()public void clearElementLists()
ContainerRequestElementLists from this request.
clearElementLists in interface ContainerRequestContainerRequest.getElementList(String)public javax.servlet.http.HttpServletRequest getServletRequest()
|
Milyn-Smooks Version 0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||