java.lang.Object
com.sun.net.httpserver.HttpExchange
com.sun.net.httpserver.HttpsExchange
robaho.net.httpserver.Http2ExchangeImpl
- All Implemented Interfaces:
Request,AutoCloseable
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHttp2ExchangeImpl(HTTP2Stream stream, URI uri, String method, HttpContext ctx, Headers request, Headers response, InputStream in, OutputStream out) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()getAttribute(String name) intvoidsendResponseHeaders(int rCode, long responseLength) voidsetAttribute(String name, Object value) voidvoid
-
Field Details
-
stream
-
-
Constructor Details
-
Http2ExchangeImpl
public Http2ExchangeImpl(HTTP2Stream stream, URI uri, String method, HttpContext ctx, Headers request, Headers response, InputStream in, OutputStream out)
-
-
Method Details
-
getRequestHeaders
- Specified by:
getRequestHeadersin interfaceRequest- Specified by:
getRequestHeadersin classHttpExchange
-
getResponseHeaders
- Specified by:
getResponseHeadersin classHttpExchange
-
getRequestBody
- Specified by:
getRequestBodyin classHttpExchange
-
getResponseBody
- Specified by:
getResponseBodyin classHttpExchange
-
getRequestURI
- Specified by:
getRequestURIin interfaceRequest- Specified by:
getRequestURIin classHttpExchange
-
getRequestMethod
- Specified by:
getRequestMethodin interfaceRequest- Specified by:
getRequestMethodin classHttpExchange
-
getHttpContext
- Specified by:
getHttpContextin classHttpExchange
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classHttpExchange
-
sendResponseHeaders
- Specified by:
sendResponseHeadersin classHttpExchange- Throws:
IOException
-
getRemoteAddress
- Specified by:
getRemoteAddressin classHttpExchange
-
getLocalAddress
- Specified by:
getLocalAddressin classHttpExchange
-
getResponseCode
public int getResponseCode()- Specified by:
getResponseCodein classHttpExchange
-
getProtocol
- Specified by:
getProtocolin classHttpExchange
-
getAttribute
- Specified by:
getAttributein classHttpExchange
-
setAttribute
- Specified by:
setAttributein classHttpExchange
-
setStreams
- Specified by:
setStreamsin classHttpExchange
-
getPrincipal
- Specified by:
getPrincipalin classHttpExchange
-
getSSLSession
- Specified by:
getSSLSessionin classHttpsExchange
-
setPrincipal
-