|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rometools.propono.atom.server.AtomRequestImpl
public class AtomRequestImpl
Default request implementation.
| Constructor Summary | |
|---|---|
AtomRequestImpl(javax.servlet.http.HttpServletRequest wrapped)
|
|
| Method Summary | |
|---|---|
int |
getContentLength()
Returns the length, in bytes, of the request body and made available by the input stream, or -1 if the length is not known. |
String |
getContentType()
Returns the MIME type of the body of the request, or null if the type is not known. |
long |
getDateHeader(String arg0)
Returns the value of the specified request header as a long value that represents a Date object. |
String |
getHeader(String arg0)
Returns the value of the specified request header as a String. |
Enumeration |
getHeaderNames()
Returns an enumeration of all the header names this request contains. |
Enumeration |
getHeaders(String arg0)
Returns all the values of the specified request header as an Enumeration of String objects. |
InputStream |
getInputStream()
Retrieves the body of the request as binary data using a ServletInputStream. |
int |
getIntHeader(String arg0)
Returns the value of the specified request header as an int. |
String |
getParameter(String arg0)
Returns the value of a request parameter as a String, or null if the parameter does not exist. |
Map |
getParameterMap()
Returns a java.util.Map of the parameters of this request. |
Enumeration |
getParameterNames()
Returns an Enumeration of String objects containing the names of the parameters contained in this request. |
String[] |
getParameterValues(String arg0)
Returns an array of String objects containing all of the values the given request parameter has, or null if the parameter does not exist. |
String |
getPathInfo()
Returns any extra path information associated with the URL the client sent when it made this request. |
String |
getQueryString()
Returns the query string that is contained in the request URL after the path. |
String |
getRemoteUser()
Returns the login of the user making this request, if the user has been authenticated, or null if the user has not been authenticated. |
String |
getRequestURI()
Returns the part of this request's URL from the protocol name up to the query string in the first line of the HTTP request. |
StringBuffer |
getRequestURL()
Reconstructs the URL the client used to make the request. |
Principal |
getUserPrincipal()
Returns a java.security.Principal object containing the name of the current authenticated user. |
boolean |
isUserInRole(String arg0)
Returns a boolean indicating whether the authenticated user is included in the specified logical "role". |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AtomRequestImpl(javax.servlet.http.HttpServletRequest wrapped)
| Method Detail |
|---|
public String getPathInfo()
AtomRequest
getPathInfo in interface AtomRequestpublic String getQueryString()
AtomRequest
getQueryString in interface AtomRequestpublic String getRemoteUser()
AtomRequest
getRemoteUser in interface AtomRequestpublic boolean isUserInRole(String arg0)
AtomRequest
isUserInRole in interface AtomRequestpublic Principal getUserPrincipal()
AtomRequest
getUserPrincipal in interface AtomRequestpublic String getRequestURI()
AtomRequest
getRequestURI in interface AtomRequestpublic StringBuffer getRequestURL()
AtomRequest
getRequestURL in interface AtomRequestpublic int getContentLength()
AtomRequest
getContentLength in interface AtomRequestpublic String getContentType()
AtomRequest
getContentType in interface AtomRequestpublic String getParameter(String arg0)
AtomRequest
getParameter in interface AtomRequestpublic Enumeration getParameterNames()
AtomRequest
getParameterNames in interface AtomRequestpublic String[] getParameterValues(String arg0)
AtomRequest
getParameterValues in interface AtomRequestpublic Map getParameterMap()
AtomRequest
getParameterMap in interface AtomRequest
public InputStream getInputStream()
throws IOException
AtomRequest
getInputStream in interface AtomRequestIOExceptionpublic long getDateHeader(String arg0)
AtomRequest
getDateHeader in interface AtomRequestpublic String getHeader(String arg0)
AtomRequest
getHeader in interface AtomRequestpublic Enumeration getHeaders(String arg0)
AtomRequest
getHeaders in interface AtomRequestpublic Enumeration getHeaderNames()
AtomRequest
getHeaderNames in interface AtomRequestpublic int getIntHeader(String arg0)
AtomRequest
getIntHeader in interface AtomRequest
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||