|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.openejb.server.httpd.ServletRequestAdapter
public class ServletRequestAdapter
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.openejb.server.httpd.HttpRequest |
---|
HttpRequest.Method |
Field Summary |
---|
Fields inherited from interface org.apache.openejb.server.httpd.HttpRequest |
---|
HEADER_ACCEPT, HEADER_ACCEPT_ENCODING, HEADER_ACCEPT_LANGUAGE, HEADER_CACHE_CONTROL, HEADER_CONNECTION, HEADER_CONTENT_LENGTH, HEADER_CONTENT_TYPE, HEADER_COOKIE, HEADER_HOST, HEADER_SET_COOKIE, HEADER_USER_AGENT, SERVLET_CONTEXT, SERVLET_REQUEST, SERVLET_RESPONSE |
Constructor Summary | |
---|---|
ServletRequestAdapter(javax.servlet.http.HttpServletRequest request)
|
|
ServletRequestAdapter(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.ServletContext servletContext)
|
Method Summary | |
---|---|
java.lang.Object |
getAttribute(java.lang.String s)
|
int |
getContentLength()
|
java.lang.String |
getContentType()
|
java.lang.String |
getContextPath()
|
java.lang.String |
getHeader(java.lang.String name)
Gets a header based the header name passed in. |
java.io.InputStream |
getInputStream()
|
HttpRequest.Method |
getMethod()
Gets an integer value of the request method. |
java.lang.String |
getParameter(java.lang.String name)
Gets a form or URL query parameter based on the name passed in. |
java.util.Map |
getParameters()
Gets all the form and URL query parameters |
java.lang.String |
getRemoteAddr()
|
HttpSession |
getSession()
Returns the current session associated with this request, or if the request does not have a session, creates one. |
HttpSession |
getSession(boolean create)
Returns the current HttpSession associated with this
request or, if there is no current session and create is
true, returns a new session. |
java.net.URI |
getURI()
Gets the URI for the current URL page. |
void |
setAttribute(java.lang.String s,
java.lang.Object o)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServletRequestAdapter(javax.servlet.http.HttpServletRequest request)
public ServletRequestAdapter(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.ServletContext servletContext)
Method Detail |
---|
public HttpSession getSession(boolean create)
HttpRequest
HttpSession
associated with this
request or, if there is no current session and create
is
true, returns a new session.
If create
is false
and the request has no
valid HttpSession
, this method returns null
.
getSession
in interface HttpRequest
create
- true
to create a new session for this request
if necessary; false
to return null
if there's
no current session
HttpSession
associated with this request or
null
if create
is false
and the
request has no valid sessionHttpRequest.getSession()
public HttpSession getSession()
HttpRequest
getSession
in interface HttpRequest
HttpSession
associated with this requestHttpRequest.getSession(boolean)
public java.lang.String getHeader(java.lang.String name)
HttpRequest
getHeader
in interface HttpRequest
name
- The name of the header to get
public java.net.URI getURI()
HttpRequest
getURI
in interface HttpRequest
public int getContentLength()
getContentLength
in interface HttpRequest
public java.lang.String getContentType()
getContentType
in interface HttpRequest
public java.lang.String getContextPath()
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in interface HttpRequest
java.io.IOException
public HttpRequest.Method getMethod()
HttpRequest
getMethod
in interface HttpRequest
public java.lang.String getParameter(java.lang.String name)
HttpRequest
getParameter
in interface HttpRequest
public java.util.Map getParameters()
HttpRequest
getParameters
in interface HttpRequest
public java.lang.Object getAttribute(java.lang.String s)
getAttribute
in interface HttpRequest
public void setAttribute(java.lang.String s, java.lang.Object o)
setAttribute
in interface HttpRequest
public java.lang.String getRemoteAddr()
getRemoteAddr
in interface HttpRequest
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |