org.mortbay.jetty
Class HttpConnection
java.lang.Object
org.mortbay.jetty.HttpConnection
public class HttpConnection
- extends Object
- Author:
- gregw
To change the template for this generated type comment go to Window - Preferences - Java - Code
Generation - Code and Comments
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UNKNOWN
private static int UNKNOWN
__currentConnection
private static ThreadLocal __currentConnection
_connector
private Connector _connector
_endp
private EndPoint _endp
_server
private Server _server
_expectingContinues
private boolean _expectingContinues
_uri
private URI _uri
_parser
private HttpParser _parser
_requestFields
private HttpFields _requestFields
_request
private Request _request
_in
private HttpConnection.Input _in
_generator
private HttpGenerator _generator
_responseFields
private HttpFields _responseFields
_response
private Response _response
_out
private HttpConnection.Output _out
_writer
private HttpConnection.OutputWriter _writer
_printWriter
private PrintWriter _printWriter
_writeChunk
int _writeChunk
_include
int _include
_associatedObject
private Object _associatedObject
_content
private transient Buffer _content
_connection
private transient int _connection
_expect
private transient int _expect
_version
private transient int _version
_head
private transient boolean _head
_host
private transient boolean _host
HttpConnection
public HttpConnection(Connector connector,
EndPoint endpoint,
Server server)
getCurrentConnection
public static HttpConnection getCurrentConnection()
close
public void close()
throws IOException
- Throws:
IOException
getAssociatedObject
public Object getAssociatedObject()
- Returns:
- Returns the associatedObject.
setAssociatedObject
public void setAssociatedObject(Object associatedObject)
- Parameters:
associatedObject
- The associatedObject to set.
getConnector
public Connector getConnector()
- Returns:
- Returns the connector.
getHandler
public Handler getHandler()
- Returns:
- Returns the handler.
getRequestFields
public HttpFields getRequestFields()
- Returns:
- Returns the requestFields.
getResponseFields
public HttpFields getResponseFields()
- Returns:
- Returns the responseFields.
isConfidential
public boolean isConfidential(Request request)
- Returns:
getEndPoint
public EndPoint getEndPoint()
- Returns:
useDNS
public boolean useDNS()
- Returns:
getRequest
public Request getRequest()
- Returns:
- Returns the request.
getResponse
public Response getResponse()
- Returns:
- Returns the response.
getInputStream
public ServletInputStream getInputStream()
- Returns:
getOutputStream
public ServletOutputStream getOutputStream()
- Returns:
getPrintWriter
public PrintWriter getPrintWriter(String encoding)
- Returns:
isResponseCommitted
public boolean isResponseCommitted()
handle
public void handle()
throws IOException
- Throws:
IOException
doHandler
private void doHandler()
throws IOException
- Throws:
IOException
commitResponse
public void commitResponse(boolean last)
throws IOException
- Throws:
IOException
completeResponse
public void completeResponse()
throws IOException
- Throws:
IOException
flushResponse
public void flushResponse()
throws IOException
- Throws:
IOException
getGenerator
HttpGenerator getGenerator()
- Returns:
isIncluding
public boolean isIncluding()
include
public void include()
included
public void included()