Class JettyHttpExchange

  • All Implemented Interfaces:
    JettyExchange

    public class JettyHttpExchange
    extends com.sun.net.httpserver.HttpExchange
    implements JettyExchange
    • Constructor Detail

      • JettyHttpExchange

        public JettyHttpExchange​(com.sun.net.httpserver.HttpContext jaxWsContext,
                                 javax.servlet.http.HttpServletRequest req,
                                 javax.servlet.http.HttpServletResponse resp)
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • 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
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • 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 interface JettyExchange
        Specified by:
        getPrincipal in class com.sun.net.httpserver.HttpExchange
      • setPrincipal

        public void setPrincipal​(com.sun.net.httpserver.HttpPrincipal principal)
        Specified by:
        setPrincipal in interface JettyExchange
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object