|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.http.server.ServletServerHttpRequest
public class ServletServerHttpRequest
ServerHttpRequest
implementation that is based on a HttpServletRequest
.
Field Summary | |
---|---|
private static java.lang.String |
FORM_CHARSET
|
private static java.lang.String |
FORM_CONTENT_TYPE
|
private HttpHeaders |
headers
|
private static java.lang.String |
POST_METHOD
|
private static java.lang.String |
PUT_METHOD
|
private HttpServletRequest |
servletRequest
|
Constructor Summary | |
---|---|
ServletServerHttpRequest(HttpServletRequest servletRequest)
Construct a new instance of the ServletServerHttpRequest based on the given HttpServletRequest . |
Method Summary | |
---|---|
java.io.InputStream |
getBody()
Return the body of the message as an input stream. |
private java.io.InputStream |
getFormBody(HttpServletRequest request)
|
HttpHeaders |
getHeaders()
Return the headers of this message. |
HttpMethod |
getMethod()
Return the HTTP method of the request. |
HttpServletRequest |
getServletRequest()
Returns the HttpServletRequest this object is based on. |
java.net.URI |
getURI()
Return the URI of the request. |
private boolean |
isFormSubmittal(HttpServletRequest request)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final java.lang.String FORM_CONTENT_TYPE
private static final java.lang.String POST_METHOD
private static final java.lang.String PUT_METHOD
private static final java.lang.String FORM_CHARSET
private final HttpServletRequest servletRequest
private HttpHeaders headers
Constructor Detail |
---|
public ServletServerHttpRequest(HttpServletRequest servletRequest)
HttpServletRequest
.
servletRequest
- the servlet requestMethod Detail |
---|
public HttpServletRequest getServletRequest()
HttpServletRequest
this object is based on.
public HttpMethod getMethod()
ServerHttpRequest
getMethod
in interface ServerHttpRequest
public java.net.URI getURI()
ServerHttpRequest
getURI
in interface ServerHttpRequest
public HttpHeaders getHeaders()
HttpMessage
getHeaders
in interface HttpMessage
public java.io.InputStream getBody() throws java.io.IOException
HttpInputMessage
getBody
in interface HttpInputMessage
java.io.IOException
- in case of I/O Errorsprivate boolean isFormSubmittal(HttpServletRequest request)
private java.io.InputStream getFormBody(HttpServletRequest request) throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |