Package org.eclipse.jetty.http.spi
Class JettyHttpExchangeDelegate
java.lang.Object
com.sun.net.httpserver.HttpExchange
org.eclipse.jetty.http.spi.JettyHttpExchangeDelegate
public class JettyHttpExchangeDelegate
extends com.sun.net.httpserver.HttpExchange
Jetty implementation of
HttpExchange
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate com.sun.net.httpserver.HttpContext
private com.sun.net.httpserver.HttpPrincipal
private InputStream
private OutputStream
private javax.servlet.http.HttpServletRequest
private javax.servlet.http.HttpServletResponse
private int
private com.sun.net.httpserver.Headers
-
Constructor Summary
ConstructorsConstructorDescriptionJettyHttpExchangeDelegate
(com.sun.net.httpserver.HttpContext jaxWsContext, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
getAttribute
(String name) com.sun.net.httpserver.HttpContext
com.sun.net.httpserver.HttpPrincipal
com.sun.net.httpserver.Headers
int
com.sun.net.httpserver.Headers
void
sendResponseHeaders
(int rCode, long responseLength) void
setAttribute
(String name, Object value) void
setPrincipal
(com.sun.net.httpserver.HttpPrincipal principal) void
-
Field Details
-
_httpContext
private com.sun.net.httpserver.HttpContext _httpContext -
_req
private javax.servlet.http.HttpServletRequest _req -
_resp
private javax.servlet.http.HttpServletResponse _resp -
_responseHeaders
private com.sun.net.httpserver.Headers _responseHeaders -
_responseCode
private int _responseCode -
_is
-
_os
-
_httpPrincipal
private com.sun.net.httpserver.HttpPrincipal _httpPrincipal
-
-
Constructor Details
-
JettyHttpExchangeDelegate
JettyHttpExchangeDelegate(com.sun.net.httpserver.HttpContext jaxWsContext, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
-
-
Method Details
-
getRequestHeaders
public com.sun.net.httpserver.Headers getRequestHeaders()- Specified by:
getRequestHeaders
in classcom.sun.net.httpserver.HttpExchange
-
getResponseHeaders
public com.sun.net.httpserver.Headers getResponseHeaders()- Specified by:
getResponseHeaders
in classcom.sun.net.httpserver.HttpExchange
-
getRequestURI
- Specified by:
getRequestURI
in classcom.sun.net.httpserver.HttpExchange
-
getRequestMethod
- Specified by:
getRequestMethod
in classcom.sun.net.httpserver.HttpExchange
-
getHttpContext
public com.sun.net.httpserver.HttpContext getHttpContext()- Specified by:
getHttpContext
in classcom.sun.net.httpserver.HttpExchange
-
close
public void close()- Specified by:
close
in classcom.sun.net.httpserver.HttpExchange
-
getRequestBody
- Specified by:
getRequestBody
in classcom.sun.net.httpserver.HttpExchange
-
getResponseBody
- Specified by:
getResponseBody
in classcom.sun.net.httpserver.HttpExchange
-
sendResponseHeaders
- Specified by:
sendResponseHeaders
in classcom.sun.net.httpserver.HttpExchange
- Throws:
IOException
-
getRemoteAddress
- Specified by:
getRemoteAddress
in classcom.sun.net.httpserver.HttpExchange
-
getResponseCode
public int getResponseCode()- Specified by:
getResponseCode
in classcom.sun.net.httpserver.HttpExchange
-
getLocalAddress
- Specified by:
getLocalAddress
in classcom.sun.net.httpserver.HttpExchange
-
getProtocol
- Specified by:
getProtocol
in classcom.sun.net.httpserver.HttpExchange
-
getAttribute
- Specified by:
getAttribute
in classcom.sun.net.httpserver.HttpExchange
-
setAttribute
- Specified by:
setAttribute
in classcom.sun.net.httpserver.HttpExchange
-
setStreams
- Specified by:
setStreams
in classcom.sun.net.httpserver.HttpExchange
-
getPrincipal
public com.sun.net.httpserver.HttpPrincipal getPrincipal()- Specified by:
getPrincipal
in classcom.sun.net.httpserver.HttpExchange
-
setPrincipal
public void setPrincipal(com.sun.net.httpserver.HttpPrincipal principal)
-