public class JettyHttpExchange extends com.sun.net.httpserver.HttpExchange implements JettyExchange
Constructor and Description |
---|
JettyHttpExchange(com.sun.net.httpserver.HttpContext jaxWsContext,
HttpServletRequest req,
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, HttpServletRequest req, HttpServletResponse resp)
public int hashCode()
public com.sun.net.httpserver.Headers getRequestHeaders()
getRequestHeaders
in class com.sun.net.httpserver.HttpExchange
JettyHttpExchangeDelegate.getRequestHeaders()
public com.sun.net.httpserver.Headers getResponseHeaders()
getResponseHeaders
in class com.sun.net.httpserver.HttpExchange
JettyHttpExchangeDelegate.getResponseHeaders()
public URI getRequestURI()
getRequestURI
in class com.sun.net.httpserver.HttpExchange
JettyHttpExchangeDelegate.getRequestURI()
public String getRequestMethod()
getRequestMethod
in class com.sun.net.httpserver.HttpExchange
JettyHttpExchangeDelegate.getRequestMethod()
public com.sun.net.httpserver.HttpContext getHttpContext()
getHttpContext
in class com.sun.net.httpserver.HttpExchange
JettyHttpExchangeDelegate.getHttpContext()
public void close()
close
in class com.sun.net.httpserver.HttpExchange
JettyHttpExchangeDelegate.close()
public boolean equals(Object obj)
public InputStream getRequestBody()
getRequestBody
in class com.sun.net.httpserver.HttpExchange
JettyHttpExchangeDelegate.getRequestBody()
public OutputStream getResponseBody()
getResponseBody
in class com.sun.net.httpserver.HttpExchange
JettyHttpExchangeDelegate.getResponseBody()
public void sendResponseHeaders(int rCode, long responseLength) throws IOException
sendResponseHeaders
in class com.sun.net.httpserver.HttpExchange
IOException
JettyHttpExchangeDelegate.sendResponseHeaders(int, long)
public InetSocketAddress getRemoteAddress()
getRemoteAddress
in class com.sun.net.httpserver.HttpExchange
JettyHttpExchangeDelegate.getRemoteAddress()
public int getResponseCode()
getResponseCode
in class com.sun.net.httpserver.HttpExchange
JettyHttpExchangeDelegate.getResponseCode()
public InetSocketAddress getLocalAddress()
getLocalAddress
in class com.sun.net.httpserver.HttpExchange
JettyHttpExchangeDelegate.getLocalAddress()
public String getProtocol()
getProtocol
in class com.sun.net.httpserver.HttpExchange
JettyHttpExchangeDelegate.getProtocol()
public Object getAttribute(String name)
getAttribute
in class com.sun.net.httpserver.HttpExchange
JettyHttpExchangeDelegate.getAttribute(java.lang.String)
public void setAttribute(String name, Object value)
setAttribute
in class com.sun.net.httpserver.HttpExchange
JettyHttpExchangeDelegate.setAttribute(java.lang.String, java.lang.Object)
public void setStreams(InputStream i, OutputStream o)
setStreams
in class com.sun.net.httpserver.HttpExchange
JettyHttpExchangeDelegate.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-2015 Webtide. All Rights Reserved.