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 |
---|
HttpServerEndpoint.LH.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.
|
start
private final Socket socket
private final Object connLock
private boolean connClosed
HttpServerEndpoint.LH.Connection(Socket socket) throws IOException
IOException
public boolean shutdown(boolean force)
HttpServerConnection
shutdown
in interface TimedConnection
shutdown
in class HttpServerConnection
protected void checkPermissions()
HttpServerConnection
checkPermissions
in class HttpServerConnection
protected InvocationConstraints checkConstraints(InvocationConstraints constraints) throws UnsupportedConstraintException
HttpServerConnection
checkConstraints
in class HttpServerConnection
UnsupportedConstraintException
protected void populateContext(Collection context)
populateContext
in class HttpServerConnection
protected void idle()
HttpServerConnection
idle
in class HttpServerConnection
protected void busy()
HttpServerConnection
busy
in class HttpServerConnection
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.