public abstract class HttpRequestImpl extends Object implements HttpRequest
| Modifier and Type | Field and Description |
|---|---|
protected MultivaluedMap<String,String> |
decodedFormParameters |
protected MultivaluedMap<String,String> |
formParameters |
protected HttpHeaders |
httpHeaders |
protected String |
httpMethod |
protected InputStream |
inputStream |
protected String |
preProcessedPath |
protected UriInfo |
uri |
| Constructor and Description |
|---|
HttpRequestImpl(InputStream inputStream,
HttpHeaders httpHeaders,
String httpMethod,
UriInfo uri) |
| Modifier and Type | Method and Description |
|---|---|
void |
complete() |
MultivaluedMap<String,String> |
getDecodedFormParameters() |
MultivaluedMap<String,String> |
getFormParameters()
application/x-www-form-urlencoded parameters
This is here because @FormParam needs it and for when there are servlet filters that eat up the input stream
|
HttpHeaders |
getHttpHeaders() |
String |
getHttpMethod() |
InputStream |
getInputStream() |
String |
getPreprocessedPath()
Encoded preprocessed path with extension mappings and matrix parameters removed
|
UriInfo |
getUri() |
boolean |
isInitial()
Asynchronous HTTP support.
|
boolean |
isSuspended()
Asynchronous HTTP support.
|
boolean |
isTimeout() |
void |
setPreprocessedPath(String path) |
void |
suspend() |
void |
suspend(long timeout) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateAsynchronousResponse, getAsynchronousResponse, getAttribute, initialRequestThreadFinished, removeAttribute, setAttribute, setInputStreamprotected HttpHeaders httpHeaders
protected InputStream inputStream
protected UriInfo uri
protected String httpMethod
protected String preProcessedPath
protected MultivaluedMap<String,String> formParameters
protected MultivaluedMap<String,String> decodedFormParameters
public HttpRequestImpl(InputStream inputStream, HttpHeaders httpHeaders, String httpMethod, UriInfo uri)
public HttpHeaders getHttpHeaders()
getHttpHeaders in interface HttpRequestpublic InputStream getInputStream()
getInputStream in interface HttpRequestpublic UriInfo getUri()
getUri in interface HttpRequestpublic String getHttpMethod()
getHttpMethod in interface HttpRequestpublic String getPreprocessedPath()
HttpRequestgetPreprocessedPath in interface HttpRequestpublic void setPreprocessedPath(String path)
setPreprocessedPath in interface HttpRequestpublic MultivaluedMap<String,String> getFormParameters()
HttpRequestgetFormParameters in interface HttpRequestpublic MultivaluedMap<String,String> getDecodedFormParameters()
getDecodedFormParameters in interface HttpRequestpublic void suspend()
public void suspend(long timeout)
public void complete()
public boolean isInitial()
HttpRequestisInitial in interface HttpRequestpublic boolean isSuspended()
HttpRequestisSuspended in interface HttpRequestpublic boolean isTimeout()
Copyright © 2014. All Rights Reserved.