org.eclipse.jetty.nested
Class NestedConnection

java.lang.Object
  extended by org.eclipse.jetty.io.AbstractConnection
      extended by org.eclipse.jetty.server.HttpConnection
          extended by org.eclipse.jetty.nested.NestedConnection
All Implemented Interfaces:
Connection

public class NestedConnection
extends HttpConnection


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.jetty.server.HttpConnection
HttpConnection.Output, HttpConnection.OutputWriter
 
Field Summary
 
Fields inherited from class org.eclipse.jetty.server.HttpConnection
_connector, _generator, _in, _out, _parser, _printWriter, _request, _requestFields, _response, _responseFields, _server, _uri, _writer
 
Fields inherited from class org.eclipse.jetty.io.AbstractConnection
_endp
 
Constructor Summary
protected NestedConnection(NestedConnector connector, NestedEndPoint endp, HttpServletRequest request, HttpServletResponse response, String nestedIn)
           
 
Method Summary
 ServletInputStream getInputStream()
          Get the inputStream from the connection.
 Connection handle()
          Handle the connection.
 
Methods inherited from class org.eclipse.jetty.server.HttpConnection
cancelTimeout, closed, commitResponse, completeResponse, flushResponse, getAssociatedObject, getConnector, getCurrentConnection, getGenerator, getOutputStream, getParser, getPrintWriter, getRequest, getRequestFields, getRequests, getResolveNames, getResponse, getResponseFields, getServer, handleRequest, include, included, isConfidential, isExpecting100Continues, isExpecting102Processing, isIdle, isIncluding, isIntegral, isResponseCommitted, isSuspended, reset, scheduleTimeout, setAssociatedObject, setCurrentConnection
 
Methods inherited from class org.eclipse.jetty.io.AbstractConnection
getEndPoint, getTimeStamp, idleExpired, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.jetty.io.Connection
getTimeStamp, idleExpired
 

Constructor Detail

NestedConnection

protected NestedConnection(NestedConnector connector,
                           NestedEndPoint endp,
                           HttpServletRequest request,
                           HttpServletResponse response,
                           String nestedIn)
                    throws IOException
Throws:
IOException
Method Detail

getInputStream

public ServletInputStream getInputStream()
                                  throws IOException
Description copied from class: HttpConnection
Get the inputStream from the connection.

If the associated response has the Expect header set to 100 Continue, then accessing the input stream indicates that the handler/servlet is ready for the request body and thus a 100 Continue response is sent.

Overrides:
getInputStream in class HttpConnection
Returns:
The input stream for this connection. The stream will be created if it does not already exist.
Throws:
IOException

handle

public Connection handle()
                  throws IOException
Description copied from interface: Connection
Handle the connection.

Specified by:
handle in interface Connection
Overrides:
handle in class HttpConnection
Returns:
The Connection to use for the next handling of the connection. This allows protocol upgrades and support for CONNECT.
Throws:
IOException


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