public abstract class HttpServerConnection extends Object implements TimedConnection
Constructor and Description |
---|
HttpServerConnection(Socket sock,
RequestDispatcher dispatcher,
HttpServerManager manager)
Creates new HttpServerConnection on top of given 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 abstract void |
populateContext(Collection context)
Populates the given context collection with context information
representing this connection.
|
boolean |
shutdown(boolean force)
Attempts to shut down connection, returning true if connection is
closed.
|
protected void |
start()
Starts request dispatch thread.
|
public HttpServerConnection(Socket sock, RequestDispatcher dispatcher, HttpServerManager manager) throws IOException
IOException
protected void start()
protected void checkPermissions()
protected InvocationConstraints checkConstraints(InvocationConstraints constraints) throws UnsupportedConstraintException
UnsupportedConstraintException
protected abstract void populateContext(Collection context)
protected void idle()
protected void busy()
public boolean shutdown(boolean force)
shutdown
in interface TimedConnection
Copyright © 2016–2018. All rights reserved.