|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object m.c.m.proxyma.resource.ProxymaServletRequest
public class ProxymaServletRequest
This class implements a requests wrapper. It adapts servlet container requests to the Proxyma API. Through this class Proxyma can transparently handle any Servlet request.
NOTE: this software is released under GPL License. See the LICENSE of this distribution for more informations.
Constructor Summary | |
---|---|
ProxymaServletRequest(javax.servlet.http.HttpServletRequest aRequest,
ProxymaContext theContext)
Default constructor for this class. |
Method Summary | |
---|---|
java.lang.String |
getCharacterEncoding()
Returns the name of the character encoding style used in this request. |
java.lang.String |
getContentType()
Returns the MIME type of the content of the request, or null if the type is not known. |
java.lang.String |
getContextURLPath()
Returns the base path of proxyma from the request (without host, port, protocol and query string) |
javax.servlet.http.Cookie[] |
getCookies()
Returns an array containing all of the Cookie objects the browser sent with this request. |
java.lang.String |
getHeader(java.lang.String headerName)
Returns the value of the specified request header as a String. |
java.util.Enumeration<java.lang.String> |
getHeaderNames()
Returns an enumeration of all the header names this request contains. |
java.util.Enumeration |
getHeaders(java.lang.String headerName)
Returns all the values of the specified request header as an Enumeration of String objects. |
java.io.InputStream |
getInputStream()
Returns the input stream for read the request's data sent by the client |
java.lang.String |
getMethod()
Returns the name of the HTTP method with which this request was made, for example, GET, POST, or PUT. |
java.lang.String |
getParameter(java.lang.String parameterName)
Returns the value of the asked parameter |
java.util.Enumeration |
getParameterNames()
Returns the names of the parameters into the request |
java.lang.String |
getProtocol()
Returns the name and version of the protocol the request uses in the form protocol/majorVersion.minorVersion, for example, HTTP/1.1. |
java.lang.String |
getQueryString()
Returns the query string that is contained in the request URL after the path. |
java.lang.String |
getRemoteAddress()
Returns the Internet Protocol (IP) address of the client that sent the request. |
java.lang.String |
getRemoteHost()
Returns the fully qualified name of the client that sent the request. |
java.lang.String |
getRemoteUser()
Returns the name of the user making this request, if the user has logged in using HTTP authentication. |
java.lang.String |
getRequestURI()
Get the absoute requested path (without protocol, host, port and query string) |
java.lang.String |
getScheme()
Returns the sheme used by the client to send the request. |
java.lang.String |
getServerName()
Returns the host name of the server that received the request. |
int |
getServerPort()
Returns the port number on which this request was received. |
java.lang.String |
getSubPath()
Returns the path of the request (without protocol, host, port, proxyma context and query string) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProxymaServletRequest(javax.servlet.http.HttpServletRequest aRequest, ProxymaContext theContext)
aRequest
- the request to satisfytheContext
- the context where the request will live.Method Detail |
---|
public java.util.Enumeration<java.lang.String> getHeaderNames()
getHeaderNames
in interface ProxymaRequest
public java.lang.String getHeader(java.lang.String headerName)
getHeader
in interface ProxymaRequest
public java.util.Enumeration getHeaders(java.lang.String headerName)
getHeaders
in interface ProxymaRequest
public java.lang.String getContextURLPath()
getContextURLPath
in interface ProxymaRequest
public java.lang.String getSubPath()
getSubPath
in interface ProxymaRequest
public java.lang.String getRequestURI()
getRequestURI
in interface ProxymaRequest
public java.lang.String getQueryString()
getQueryString
in interface ProxymaRequest
public java.lang.String getMethod()
getMethod
in interface ProxymaRequest
public java.lang.String getParameter(java.lang.String parameterName)
getParameter
in interface ProxymaRequest
parameterName
- The namwe of the reqested paramenter
public java.util.Enumeration getParameterNames()
getParameterNames
in interface ProxymaRequest
public java.lang.String getProtocol()
getProtocol
in interface ProxymaRequest
public java.lang.String getContentType()
getContentType
in interface ProxymaRequest
public java.lang.String getCharacterEncoding()
getCharacterEncoding
in interface ProxymaRequest
public javax.servlet.http.Cookie[] getCookies()
getCookies
in interface ProxymaRequest
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in interface ProxymaRequest
java.io.IOException
public java.lang.String getServerName()
getServerName
in interface ProxymaRequest
public int getServerPort()
getServerPort
in interface ProxymaRequest
public java.lang.String getScheme()
getScheme
in interface ProxymaRequest
public java.lang.String getRemoteHost()
getRemoteHost
in interface ProxymaRequest
public java.lang.String getRemoteAddress()
getRemoteAddress
in interface ProxymaRequest
public java.lang.String getRemoteUser()
getRemoteUser
in interface ProxymaRequest
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |