Class HttpServerRequest
java.lang.Object
org.jboss.resteasy.plugins.server.BaseHttpRequest
org.jboss.resteasy.plugins.server.sun.http.HttpServerRequest
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SynchronousDispatcherprotected HttpExchangeprotected ResteasyHttpHeadersprotected Stringprotected HttpResponseprotected StringFields inherited from class org.jboss.resteasy.plugins.server.BaseHttpRequest
decodedFormParameters, formParameters, uri -
Constructor Summary
ConstructorsConstructorDescriptionHttpServerRequest(SynchronousDispatcher dispatcher, HttpResponse httpResponse, HttpExchange exchange) -
Method Summary
Modifier and TypeMethodDescriptionvoidgetAttribute(String attribute) Map of contextual data.jakarta.ws.rs.core.HttpHeadersReturns the Internet Protocol (IP) address of the client or last proxy that sent the request.Returns the fully qualified name of the client or the last proxy that sent the request.voidremoveAttribute(String name) voidsetAttribute(String name, Object value) voidsetHttpMethod(String method) voidsetInputStream(InputStream stream) If you are using a servlet container, this will *NOT* override the HttpServletRequest.getInputStream().booleanMethods inherited from class org.jboss.resteasy.plugins.server.BaseHttpRequest
formParametersRead, getDecodedFormParameters, getFormParameters, getUri, isInitial, setRequestUri, setRequestUriMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jboss.resteasy.spi.HttpRequest
getFormEntityPart, getFormEntityParts
-
Field Details
-
dispatcher
-
httpResponse
-
exchange
-
httpHeaders
-
preProcessedPath
-
attributes
-
httpMethod
-
-
Constructor Details
-
HttpServerRequest
public HttpServerRequest(SynchronousDispatcher dispatcher, HttpResponse httpResponse, HttpExchange exchange)
-
-
Method Details
-
getMutableHeaders
-
getHttpHeaders
public jakarta.ws.rs.core.HttpHeaders getHttpHeaders() -
getInputStream
-
setInputStream
Description copied from interface:HttpRequestIf you are using a servlet container, this will *NOT* override the HttpServletRequest.getInputStream(). It will only override it for the resteasy HttpRequest- Parameters:
stream- input stream
-
getHttpMethod
-
setHttpMethod
-
getAttribute
Description copied from interface:HttpRequestMap of contextual data. Similar to HttpServletRequest attributes- Parameters:
attribute- attribute name- Returns:
- attribute
-
setAttribute
-
removeAttribute
-
getAttributeNames
-
getAsyncContext
-
forward
-
wasForwarded
public boolean wasForwarded() -
getRemoteHost
Description copied from interface:HttpRequestReturns the fully qualified name of the client or the last proxy that sent the request. If the engine cannot or chooses not to resolve the hostname (to improve performance), this method returns the dotted-string form of the IP address.- Returns:
- a
Stringcontaining the fully qualified name of the client
-
getRemoteAddress
Description copied from interface:HttpRequestReturns the Internet Protocol (IP) address of the client or last proxy that sent the request.- Returns:
- a
Stringcontaining the IP address of the client that sent the request
-