net.jini.jeri.http
Class HttpServerEndpoint.LH.Connection

java.lang.Object
  extended by com.sun.jini.jeri.internal.http.HttpServerConnection
      extended by net.jini.jeri.http.HttpServerEndpoint.LH.Connection
All Implemented Interfaces:
TimedConnection
Enclosing class:
HttpServerEndpoint.LH

private class HttpServerEndpoint.LH.Connection
extends HttpServerConnection

HttpServerConnection subclass.


Field Summary
private  boolean connClosed
           
private  Object connLock
           
private  Socket socket
           
 
Constructor Summary
HttpServerEndpoint.LH.Connection(Socket socket)
           
 
Method Summary
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.
 
Methods inherited from class com.sun.jini.jeri.internal.http.HttpServerConnection
start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

socket

private final Socket socket

connLock

private final Object connLock

connClosed

private boolean connClosed
Constructor Detail

HttpServerEndpoint.LH.Connection

HttpServerEndpoint.LH.Connection(Socket socket)
                           throws IOException
Throws:
IOException
Method Detail

shutdown

public boolean shutdown(boolean force)
Description copied from class: HttpServerConnection
Attempts to shut down connection, returning true if connection is closed. If force is true, connection is always shut down; if force is false, connection is only shut down if idle.

Specified by:
shutdown in interface TimedConnection
Overrides:
shutdown in class HttpServerConnection

checkPermissions

protected void checkPermissions()
Description copied from class: HttpServerConnection
Verifies that calling context has sufficient security permissions to receive a request on this connection.

Overrides:
checkPermissions in class HttpServerConnection

checkConstraints

protected InvocationConstraints checkConstraints(InvocationConstraints constraints)
                                          throws UnsupportedConstraintException
Description copied from class: HttpServerConnection
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.

Overrides:
checkConstraints in class HttpServerConnection
Throws:
UnsupportedConstraintException

populateContext

protected void populateContext(Collection context)
Populates the context collection with information representing the connection.

Specified by:
populateContext in class HttpServerConnection

idle

protected void idle()
Description copied from class: HttpServerConnection
Upcall indicating that connection has become idle. Subclasses may override this method to perform an appropriate action, such as scheduling an idle timeout.

Overrides:
idle in class HttpServerConnection

busy

protected void busy()
Description copied from class: HttpServerConnection
Upcall indicating that connection is about to become busy. Subclasses may override this method to perform an appropriate action, such as cancelling an idle timeout.

Overrides:
busy in class HttpServerConnection


Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.