net.jini.jeri.ssl
Class HttpsServerEndpoint.HttpsServerEndpointImpl.HttpServer

java.lang.Object
  extended by com.sun.jini.jeri.internal.http.HttpServerConnection
      extended by net.jini.jeri.ssl.HttpsServerEndpoint.HttpsServerEndpointImpl.HttpServer
All Implemented Interfaces:
TimedConnection
Enclosing class:
HttpsServerEndpoint.HttpsServerEndpointImpl

private static final class HttpsServerEndpoint.HttpsServerEndpointImpl.HttpServer
extends HttpServerConnection

An HTTP server connection that gets its client host from the HTTPS connection and closes the HTTPS connection when it shuts down.


Field Summary
private  HttpsServerEndpoint.HttpsServerEndpointImpl.HttpsServerConnection connection
           
 
Constructor Summary
HttpsServerEndpoint.HttpsServerEndpointImpl.HttpServer(Socket socket, RequestDispatcher requestDispatcher, HttpsServerEndpoint.HttpsServerEndpointImpl.HttpsServerConnection connection)
           
 
Method Summary
protected  void busy()
          Cancels the idle timeout.
protected  InvocationConstraints checkConstraints(InvocationConstraints constraints)
          Not called -- handled by inbound request
protected  void checkPermissions()
          Not called -- handled by inbound request
protected  void idle()
          Schedules the connection to close after an idle timeout.
protected  void populateContext(Collection context)
          No additional context -- supplied by inbound request
 boolean shutdown(boolean force)
          Closes the associated secure connection.
 
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

connection

private final HttpsServerEndpoint.HttpsServerEndpointImpl.HttpsServerConnection connection
Constructor Detail

HttpsServerEndpoint.HttpsServerEndpointImpl.HttpServer

HttpsServerEndpoint.HttpsServerEndpointImpl.HttpServer(Socket socket,
                                                       RequestDispatcher requestDispatcher,
                                                       HttpsServerEndpoint.HttpsServerEndpointImpl.HttpsServerConnection connection)
                                                 throws IOException
Throws:
IOException
Method Detail

checkPermissions

protected void checkPermissions()
Not called -- handled by inbound request

Overrides:
checkPermissions in class HttpServerConnection

populateContext

protected void populateContext(Collection context)
No additional context -- supplied by inbound request

Specified by:
populateContext in class HttpServerConnection

checkConstraints

protected InvocationConstraints checkConstraints(InvocationConstraints constraints)
Not called -- handled by inbound request

Overrides:
checkConstraints in class HttpServerConnection

idle

protected void idle()
Schedules the connection to close after an idle timeout.

Overrides:
idle in class HttpServerConnection

busy

protected void busy()
Cancels the idle timeout.

Overrides:
busy in class HttpServerConnection

shutdown

public boolean shutdown(boolean force)
Closes the associated secure connection.

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


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