org.eclipse.jetty.http.spi
Class JettyHttpExchange

java.lang.Object
  extended by com.sun.net.httpserver.HttpExchange
      extended by org.eclipse.jetty.http.spi.JettyHttpExchange
All Implemented Interfaces:
JettyExchange

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


Constructor Summary
JettyHttpExchange(com.sun.net.httpserver.HttpContext jaxWsContext, HttpServletRequest req, HttpServletResponse resp)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JettyHttpExchange

public JettyHttpExchange(com.sun.net.httpserver.HttpContext jaxWsContext,
                         HttpServletRequest req,
                         HttpServletResponse resp)
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class Object
See Also:
org.eclipse.jetty.http.spi.JettyExchange#hashCode()

getRequestHeaders

public com.sun.net.httpserver.Headers getRequestHeaders()
Specified by:
getRequestHeaders in class com.sun.net.httpserver.HttpExchange
See Also:
org.eclipse.jetty.http.spi.JettyExchange#getRequestHeaders()

getResponseHeaders

public com.sun.net.httpserver.Headers getResponseHeaders()
Specified by:
getResponseHeaders in class com.sun.net.httpserver.HttpExchange
See Also:
org.eclipse.jetty.http.spi.JettyExchange#getResponseHeaders()

getRequestURI

public URI getRequestURI()
Specified by:
getRequestURI in class com.sun.net.httpserver.HttpExchange
See Also:
org.eclipse.jetty.http.spi.JettyExchange#getRequestURI()

getRequestMethod

public String getRequestMethod()
Specified by:
getRequestMethod in class com.sun.net.httpserver.HttpExchange
See Also:
org.eclipse.jetty.http.spi.JettyExchange#getRequestMethod()

getHttpContext

public com.sun.net.httpserver.HttpContext getHttpContext()
Specified by:
getHttpContext in class com.sun.net.httpserver.HttpExchange
See Also:
org.eclipse.jetty.http.spi.JettyExchange#getHttpContext()

close

public void close()
Specified by:
close in class com.sun.net.httpserver.HttpExchange
See Also:
org.eclipse.jetty.http.spi.JettyExchange#close()

equals

public boolean equals(Object obj)
Overrides:
equals in class Object
See Also:
org.eclipse.jetty.http.spi.JettyExchange#equals(java.lang.Object)

getRequestBody

public InputStream getRequestBody()
Specified by:
getRequestBody in class com.sun.net.httpserver.HttpExchange
See Also:
org.eclipse.jetty.http.spi.JettyExchange#getRequestBody()

getResponseBody

public OutputStream getResponseBody()
Specified by:
getResponseBody in class com.sun.net.httpserver.HttpExchange
See Also:
org.eclipse.jetty.http.spi.JettyExchange#getResponseBody()

sendResponseHeaders

public void sendResponseHeaders(int rCode,
                                long responseLength)
                         throws IOException
Specified by:
sendResponseHeaders in class com.sun.net.httpserver.HttpExchange
Throws:
IOException
See Also:
org.eclipse.jetty.http.spi.JettyExchange#sendResponseHeaders(int, long)

getRemoteAddress

public InetSocketAddress getRemoteAddress()
Specified by:
getRemoteAddress in class com.sun.net.httpserver.HttpExchange
See Also:
org.eclipse.jetty.http.spi.JettyExchange#getRemoteAddress()

getResponseCode

public int getResponseCode()
Specified by:
getResponseCode in class com.sun.net.httpserver.HttpExchange
See Also:
org.eclipse.jetty.http.spi.JettyExchange#getResponseCode()

getLocalAddress

public InetSocketAddress getLocalAddress()
Specified by:
getLocalAddress in class com.sun.net.httpserver.HttpExchange
See Also:
org.eclipse.jetty.http.spi.JettyExchange#getLocalAddress()

getProtocol

public String getProtocol()
Specified by:
getProtocol in class com.sun.net.httpserver.HttpExchange
See Also:
org.eclipse.jetty.http.spi.JettyExchange#getProtocol()

getAttribute

public Object getAttribute(String name)
Specified by:
getAttribute in class com.sun.net.httpserver.HttpExchange
See Also:
org.eclipse.jetty.http.spi.JettyExchange#getAttribute(java.lang.String)

setAttribute

public void setAttribute(String name,
                         Object value)
Specified by:
setAttribute in class com.sun.net.httpserver.HttpExchange
See Also:
org.eclipse.jetty.http.spi.JettyExchange#setAttribute(java.lang.String, java.lang.Object)

setStreams

public void setStreams(InputStream i,
                       OutputStream o)
Specified by:
setStreams in class com.sun.net.httpserver.HttpExchange
See Also:
org.eclipse.jetty.http.spi.JettyExchange#setStreams(java.io.InputStream, java.io.OutputStream)

getPrincipal

public com.sun.net.httpserver.HttpPrincipal getPrincipal()
Specified by:
getPrincipal in interface JettyExchange
Specified by:
getPrincipal in class com.sun.net.httpserver.HttpExchange
See Also:
JettyExchange.getPrincipal()

setPrincipal

public void setPrincipal(com.sun.net.httpserver.HttpPrincipal principal)
Specified by:
setPrincipal in interface JettyExchange
See Also:
JettyExchange.setPrincipal(com.sun.net.httpserver.HttpPrincipal)

toString

public String toString()
Overrides:
toString in class Object
See Also:
org.eclipse.jetty.http.spi.JettyExchange#toString()


Copyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.