Package org.eclipse.jetty.http.spi
Class JettyHttpExchange
java.lang.Object
com.sun.net.httpserver.HttpExchange
org.eclipse.jetty.http.spi.JettyHttpExchange
- All Implemented Interfaces:
AutoCloseable
,JettyExchange
-
Constructor Summary
ConstructorDescriptionJettyHttpExchange
(HttpContext jaxWsContext, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
boolean
getAttribute
(String name) int
int
hashCode()
void
sendResponseHeaders
(int rCode, long responseLength) void
setAttribute
(String name, Object value) void
setPrincipal
(HttpPrincipal principal) void
toString()
-
Constructor Details
-
JettyHttpExchange
public JettyHttpExchange(HttpContext jaxWsContext, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp)
-
-
Method Details
-
hashCode
public int hashCode() -
getRequestHeaders
- Specified by:
getRequestHeaders
in classHttpExchange
-
getResponseHeaders
- Specified by:
getResponseHeaders
in classHttpExchange
-
getRequestURI
- Specified by:
getRequestURI
in classHttpExchange
-
getRequestMethod
- Specified by:
getRequestMethod
in classHttpExchange
-
getHttpContext
- Specified by:
getHttpContext
in classHttpExchange
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classHttpExchange
-
equals
-
getRequestBody
- Specified by:
getRequestBody
in classHttpExchange
-
getResponseBody
- Specified by:
getResponseBody
in classHttpExchange
-
sendResponseHeaders
- Specified by:
sendResponseHeaders
in classHttpExchange
- Throws:
IOException
-
getRemoteAddress
- Specified by:
getRemoteAddress
in classHttpExchange
-
getResponseCode
public int getResponseCode()- Specified by:
getResponseCode
in classHttpExchange
-
getLocalAddress
- Specified by:
getLocalAddress
in classHttpExchange
-
getProtocol
- Specified by:
getProtocol
in classHttpExchange
-
getAttribute
- Specified by:
getAttribute
in classHttpExchange
-
setAttribute
- Specified by:
setAttribute
in classHttpExchange
-
setStreams
- Specified by:
setStreams
in classHttpExchange
-
getPrincipal
- Specified by:
getPrincipal
in interfaceJettyExchange
- Specified by:
getPrincipal
in classHttpExchange
-
setPrincipal
- Specified by:
setPrincipal
in interfaceJettyExchange
-
toString
-