public class JettyHttpExchange extends com.sun.net.httpserver.HttpExchange implements JettyExchange
Constructor and Description |
---|
JettyHttpExchange(com.sun.net.httpserver.HttpContext jaxWsContext,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
equals(Object obj) |
Object |
getAttribute(String name) |
com.sun.net.httpserver.HttpContext |
getHttpContext() |
InetSocketAddress |
getLocalAddress() |
com.sun.net.httpserver.HttpPrincipal |
getPrincipal() |
String |
getProtocol() |
InetSocketAddress |
getRemoteAddress() |
InputStream |
getRequestBody() |
com.sun.net.httpserver.Headers |
getRequestHeaders() |
String |
getRequestMethod() |
URI |
getRequestURI() |
OutputStream |
getResponseBody() |
int |
getResponseCode() |
com.sun.net.httpserver.Headers |
getResponseHeaders() |
int |
hashCode() |
void |
sendResponseHeaders(int rCode,
long responseLength) |
void |
setAttribute(String name,
Object value) |
void |
setPrincipal(com.sun.net.httpserver.HttpPrincipal principal) |
void |
setStreams(InputStream i,
OutputStream o) |
String |
toString() |
public JettyHttpExchange(com.sun.net.httpserver.HttpContext jaxWsContext, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
public int hashCode()
public com.sun.net.httpserver.Headers getRequestHeaders()
getRequestHeaders
in class com.sun.net.httpserver.HttpExchange
org.eclipse.jetty.http.spi.JettyExchange#getRequestHeaders()
public com.sun.net.httpserver.Headers getResponseHeaders()
getResponseHeaders
in class com.sun.net.httpserver.HttpExchange
org.eclipse.jetty.http.spi.JettyExchange#getResponseHeaders()
public URI getRequestURI()
getRequestURI
in class com.sun.net.httpserver.HttpExchange
org.eclipse.jetty.http.spi.JettyExchange#getRequestURI()
public String getRequestMethod()
getRequestMethod
in class com.sun.net.httpserver.HttpExchange
org.eclipse.jetty.http.spi.JettyExchange#getRequestMethod()
public com.sun.net.httpserver.HttpContext getHttpContext()
getHttpContext
in class com.sun.net.httpserver.HttpExchange
org.eclipse.jetty.http.spi.JettyExchange#getHttpContext()
public void close()
close
in class com.sun.net.httpserver.HttpExchange
org.eclipse.jetty.http.spi.JettyExchange#close()
public boolean equals(Object obj)
public InputStream getRequestBody()
getRequestBody
in class com.sun.net.httpserver.HttpExchange
org.eclipse.jetty.http.spi.JettyExchange#getRequestBody()
public OutputStream getResponseBody()
getResponseBody
in class com.sun.net.httpserver.HttpExchange
org.eclipse.jetty.http.spi.JettyExchange#getResponseBody()
public void sendResponseHeaders(int rCode, long responseLength) throws IOException
sendResponseHeaders
in class com.sun.net.httpserver.HttpExchange
IOException
org.eclipse.jetty.http.spi.JettyExchange#sendResponseHeaders(int, long)
public InetSocketAddress getRemoteAddress()
getRemoteAddress
in class com.sun.net.httpserver.HttpExchange
org.eclipse.jetty.http.spi.JettyExchange#getRemoteAddress()
public int getResponseCode()
getResponseCode
in class com.sun.net.httpserver.HttpExchange
org.eclipse.jetty.http.spi.JettyExchange#getResponseCode()
public InetSocketAddress getLocalAddress()
getLocalAddress
in class com.sun.net.httpserver.HttpExchange
org.eclipse.jetty.http.spi.JettyExchange#getLocalAddress()
public String getProtocol()
getProtocol
in class com.sun.net.httpserver.HttpExchange
org.eclipse.jetty.http.spi.JettyExchange#getProtocol()
public Object getAttribute(String name)
getAttribute
in class com.sun.net.httpserver.HttpExchange
org.eclipse.jetty.http.spi.JettyExchange#getAttribute(java.lang.String)
public void setAttribute(String name, Object value)
setAttribute
in class com.sun.net.httpserver.HttpExchange
org.eclipse.jetty.http.spi.JettyExchange#setAttribute(java.lang.String, java.lang.Object)
public void setStreams(InputStream i, OutputStream o)
setStreams
in class com.sun.net.httpserver.HttpExchange
org.eclipse.jetty.http.spi.JettyExchange#setStreams(java.io.InputStream, java.io.OutputStream)
public com.sun.net.httpserver.HttpPrincipal getPrincipal()
getPrincipal
in interface JettyExchange
getPrincipal
in class com.sun.net.httpserver.HttpExchange
JettyExchange.getPrincipal()
public void setPrincipal(com.sun.net.httpserver.HttpPrincipal principal)
setPrincipal
in interface JettyExchange
JettyExchange.setPrincipal(com.sun.net.httpserver.HttpPrincipal)
Copyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.