public class HttpExchangeDelegate extends HttpExchange
REQUEST_CIPHER_SUITE, REQUEST_KEY_SIZE, REQUEST_X509CERTIFICATE
Constructor and Description |
---|
HttpExchangeDelegate(org.jboss.com.sun.net.httpserver.HttpExchange delegate) |
Modifier and Type | Method and Description |
---|---|
void |
addResponseHeader(String name,
String value) |
void |
close() |
Object |
getAttribute(String name) |
Set<String> |
getAttributeNames() |
String |
getContextPath() |
HttpContext |
getHttpContext() |
InetSocketAddress |
getLocalAddress() |
String |
getPathInfo() |
String |
getProtocol() |
String |
getQueryString() |
InetSocketAddress |
getRemoteAddress() |
InputStream |
getRequestBody() |
String |
getRequestHeader(String name) |
Map<String,List<String>> |
getRequestHeaders() |
String |
getRequestMethod() |
String |
getRequestURI() |
OutputStream |
getResponseBody() |
Map<String,List<String>> |
getResponseHeaders() |
String |
getScheme() |
Principal |
getUserPrincipal() |
boolean |
isUserInRole(String role) |
void |
setStatus(int status) |
public HttpExchangeDelegate(org.jboss.com.sun.net.httpserver.HttpExchange delegate)
public Map<String,List<String>> getRequestHeaders()
getRequestHeaders
in class HttpExchange
public String getRequestHeader(String name)
getRequestHeader
in class HttpExchange
public Map<String,List<String>> getResponseHeaders()
getResponseHeaders
in class HttpExchange
public void addResponseHeader(String name, String value)
addResponseHeader
in class HttpExchange
public String getRequestURI()
getRequestURI
in class HttpExchange
public String getContextPath()
getContextPath
in class HttpExchange
public String getRequestMethod()
getRequestMethod
in class HttpExchange
public HttpContext getHttpContext()
getHttpContext
in class HttpExchange
public void close() throws IOException
close
in class HttpExchange
IOException
public InputStream getRequestBody() throws IOException
getRequestBody
in class HttpExchange
IOException
public OutputStream getResponseBody() throws IOException
getResponseBody
in class HttpExchange
IOException
public void setStatus(int status)
setStatus
in class HttpExchange
public InetSocketAddress getRemoteAddress()
getRemoteAddress
in class HttpExchange
public InetSocketAddress getLocalAddress()
getLocalAddress
in class HttpExchange
public String getProtocol()
getProtocol
in class HttpExchange
public String getScheme()
getScheme
in class HttpExchange
public String getPathInfo()
getPathInfo
in class HttpExchange
public String getQueryString()
getQueryString
in class HttpExchange
public Object getAttribute(String name)
getAttribute
in class HttpExchange
public Set<String> getAttributeNames()
getAttributeNames
in class HttpExchange
public Principal getUserPrincipal()
getUserPrincipal
in class HttpExchange
public boolean isUserInRole(String role)
isUserInRole
in class HttpExchange
Copyright © 2018. All rights reserved.