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 ofHttpExchange
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
java.lang.Object
getAttribute(java.lang.String name)
com.sun.net.httpserver.HttpContext
getHttpContext()
java.net.InetSocketAddress
getLocalAddress()
com.sun.net.httpserver.HttpPrincipal
getPrincipal()
java.lang.String
getProtocol()
java.net.InetSocketAddress
getRemoteAddress()
java.io.InputStream
getRequestBody()
com.sun.net.httpserver.Headers
getRequestHeaders()
java.lang.String
getRequestMethod()
java.net.URI
getRequestURI()
java.io.OutputStream
getResponseBody()
int
getResponseCode()
com.sun.net.httpserver.Headers
getResponseHeaders()
void
sendResponseHeaders(int rCode, long responseLength)
void
setAttribute(java.lang.String name, java.lang.Object value)
void
setPrincipal(com.sun.net.httpserver.HttpPrincipal principal)
void
setStreams(java.io.InputStream i, java.io.OutputStream o)
-
-
-
Method Detail
-
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
public java.net.URI getRequestURI()
- Specified by:
getRequestURI
in classcom.sun.net.httpserver.HttpExchange
-
getRequestMethod
public java.lang.String 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
public java.io.InputStream getRequestBody()
- Specified by:
getRequestBody
in classcom.sun.net.httpserver.HttpExchange
-
getResponseBody
public java.io.OutputStream getResponseBody()
- Specified by:
getResponseBody
in classcom.sun.net.httpserver.HttpExchange
-
sendResponseHeaders
public void sendResponseHeaders(int rCode, long responseLength) throws java.io.IOException
- Specified by:
sendResponseHeaders
in classcom.sun.net.httpserver.HttpExchange
- Throws:
java.io.IOException
-
getRemoteAddress
public java.net.InetSocketAddress getRemoteAddress()
- Specified by:
getRemoteAddress
in classcom.sun.net.httpserver.HttpExchange
-
getResponseCode
public int getResponseCode()
- Specified by:
getResponseCode
in classcom.sun.net.httpserver.HttpExchange
-
getLocalAddress
public java.net.InetSocketAddress getLocalAddress()
- Specified by:
getLocalAddress
in classcom.sun.net.httpserver.HttpExchange
-
getProtocol
public java.lang.String getProtocol()
- Specified by:
getProtocol
in classcom.sun.net.httpserver.HttpExchange
-
getAttribute
public java.lang.Object getAttribute(java.lang.String name)
- Specified by:
getAttribute
in classcom.sun.net.httpserver.HttpExchange
-
setAttribute
public void setAttribute(java.lang.String name, java.lang.Object value)
- Specified by:
setAttribute
in classcom.sun.net.httpserver.HttpExchange
-
setStreams
public void setStreams(java.io.InputStream i, java.io.OutputStream o)
- 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)
-
-