private class HttpServerEndpoint.LH.Connection extends HttpServerConnection
| Modifier and Type | Field and Description |
|---|---|
private boolean |
connClosed |
private Object |
connLock |
private Socket |
socket |
| Constructor and Description |
|---|
Connection(Socket socket) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
busy()
Upcall indicating that connection is about to become busy.
|
protected InvocationConstraints |
checkConstraints(InvocationConstraints constraints)
Checks that the specified requirements are either fully or
partially satisfied by the constraints actually in force for
this connection, and returns any constraints that must be fully
or partially implemented by higher layers in order to fully
satisfy all of the specified requirements.
|
protected void |
checkPermissions()
Verifies that calling context has sufficient security permissions to
receive a request on this connection.
|
protected void |
idle()
Upcall indicating that connection has become idle.
|
protected void |
populateContext(Collection context)
Populates the context collection with information representing
the connection.
|
boolean |
shutdown(boolean force)
Attempts to shut down connection, returning true if connection is
closed.
|
startprivate final Socket socket
private final Object connLock
private boolean connClosed
Connection(Socket socket) throws IOException
IOExceptionpublic boolean shutdown(boolean force)
HttpServerConnectionshutdown in interface TimedConnectionshutdown in class HttpServerConnectionprotected void checkPermissions()
HttpServerConnectioncheckPermissions in class HttpServerConnectionprotected InvocationConstraints checkConstraints(InvocationConstraints constraints) throws UnsupportedConstraintException
HttpServerConnectioncheckConstraints in class HttpServerConnectionUnsupportedConstraintExceptionprotected void populateContext(Collection context)
populateContext in class HttpServerConnectionprotected void idle()
HttpServerConnectionidle in class HttpServerConnectionprotected void busy()
HttpServerConnectionbusy in class HttpServerConnectionCopyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.