org.eclipse.jetty.http.spi
Class JettyHttpExchange
java.lang.Object
com.sun.net.httpserver.HttpExchange
org.eclipse.jetty.http.spi.JettyHttpExchange
public class JettyHttpExchange
- extends com.sun.net.httpserver.HttpExchange
Jetty implementation of HttpExchange
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JettyHttpExchange
public JettyHttpExchange(com.sun.net.httpserver.HttpContext jaxWsContext,
HttpServletRequest req,
HttpServletResponse resp)
getRequestHeaders
public com.sun.net.httpserver.Headers getRequestHeaders()
- Specified by:
getRequestHeaders
in class com.sun.net.httpserver.HttpExchange
getResponseHeaders
public com.sun.net.httpserver.Headers getResponseHeaders()
- Specified by:
getResponseHeaders
in class com.sun.net.httpserver.HttpExchange
getRequestURI
public URI getRequestURI()
- Specified by:
getRequestURI
in class com.sun.net.httpserver.HttpExchange
getRequestMethod
public String getRequestMethod()
- Specified by:
getRequestMethod
in class com.sun.net.httpserver.HttpExchange
getHttpContext
public com.sun.net.httpserver.HttpContext getHttpContext()
- Specified by:
getHttpContext
in class com.sun.net.httpserver.HttpExchange
close
public void close()
- Specified by:
close
in class com.sun.net.httpserver.HttpExchange
getRequestBody
public InputStream getRequestBody()
- Specified by:
getRequestBody
in class com.sun.net.httpserver.HttpExchange
getResponseBody
public OutputStream getResponseBody()
- Specified by:
getResponseBody
in class com.sun.net.httpserver.HttpExchange
sendResponseHeaders
public void sendResponseHeaders(int rCode,
long responseLength)
throws IOException
- Specified by:
sendResponseHeaders
in class com.sun.net.httpserver.HttpExchange
- Throws:
IOException
getRemoteAddress
public InetSocketAddress getRemoteAddress()
- Specified by:
getRemoteAddress
in class com.sun.net.httpserver.HttpExchange
getResponseCode
public int getResponseCode()
- Specified by:
getResponseCode
in class com.sun.net.httpserver.HttpExchange
getLocalAddress
public InetSocketAddress getLocalAddress()
- Specified by:
getLocalAddress
in class com.sun.net.httpserver.HttpExchange
getProtocol
public String getProtocol()
- Specified by:
getProtocol
in class com.sun.net.httpserver.HttpExchange
getAttribute
public Object getAttribute(String name)
- Specified by:
getAttribute
in class com.sun.net.httpserver.HttpExchange
setAttribute
public void setAttribute(String name,
Object value)
- Specified by:
setAttribute
in class com.sun.net.httpserver.HttpExchange
setStreams
public void setStreams(InputStream i,
OutputStream o)
- Specified by:
setStreams
in class com.sun.net.httpserver.HttpExchange
getPrincipal
public com.sun.net.httpserver.HttpPrincipal getPrincipal()
- Specified by:
getPrincipal
in class com.sun.net.httpserver.HttpExchange
setPrincipal
public void setPrincipal(com.sun.net.httpserver.HttpPrincipal principal)
Copyright © 1995-2011 Mort Bay Consulting. All Rights Reserved.