Class JettyHttpExchangeDelegate


  • public class JettyHttpExchangeDelegate
    extends com.sun.net.httpserver.HttpExchange
    Jetty implementation of HttpExchange
    • Method Detail

      • 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 java.net.URI getRequestURI()
        Specified by:
        getRequestURI in class com.sun.net.httpserver.HttpExchange
      • getRequestMethod

        public java.lang.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 java.io.InputStream getRequestBody()
        Specified by:
        getRequestBody in class com.sun.net.httpserver.HttpExchange
      • getResponseBody

        public java.io.OutputStream getResponseBody()
        Specified by:
        getResponseBody in class com.sun.net.httpserver.HttpExchange
      • sendResponseHeaders

        public void sendResponseHeaders​(int rCode,
                                        long responseLength)
                                 throws java.io.IOException
        Specified by:
        sendResponseHeaders in class com.sun.net.httpserver.HttpExchange
        Throws:
        java.io.IOException
      • getRemoteAddress

        public java.net.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 java.net.InetSocketAddress getLocalAddress()
        Specified by:
        getLocalAddress in class com.sun.net.httpserver.HttpExchange
      • getProtocol

        public java.lang.String getProtocol()
        Specified by:
        getProtocol in class com.sun.net.httpserver.HttpExchange
      • getAttribute

        public java.lang.Object getAttribute​(java.lang.String name)
        Specified by:
        getAttribute in class com.sun.net.httpserver.HttpExchange
      • setAttribute

        public void setAttribute​(java.lang.String name,
                                 java.lang.Object value)
        Specified by:
        setAttribute in class com.sun.net.httpserver.HttpExchange
      • setStreams

        public void setStreams​(java.io.InputStream i,
                               java.io.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)