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

java.lang.Object
  extended by net.jini.jeri.ssl.Utilities
      extended by net.jini.jeri.ssl.HttpsServerEndpoint.HttpsServerEndpointImpl.HttpsRequestDispatcher
All Implemented Interfaces:
RequestDispatcher
Enclosing class:
HttpsServerEndpoint.HttpsServerEndpointImpl

private static final class HttpsServerEndpoint.HttpsServerEndpointImpl.HttpsRequestDispatcher
extends Utilities
implements RequestDispatcher

Implements RequestDispatcher using the specified RequestDispatcher and ServerConnection.


Nested Class Summary
 
Nested classes/interfaces inherited from class net.jini.jeri.ssl.Utilities
Utilities.SSLContextInfo
 
Field Summary
private  HttpsServerEndpoint.HttpsServerEndpointImpl.HttpsServerConnection connection
           
private  RequestDispatcher requestDispatcher
           
 
Fields inherited from class net.jini.jeri.ssl.Utilities
ANY_KEY_ALGORITHM, clientLogger, DSA_KEY_ALGORITHM, getSubjectPermission, initLogger, INTEGRITY_PREFERRED, INTEGRITY_REQUIRED, RSA_KEY_ALGORITHM, serverLogger, UNKNOWN_PRINCIPAL
 
Constructor Summary
HttpsServerEndpoint.HttpsServerEndpointImpl.HttpsRequestDispatcher(RequestDispatcher requestDispatcher, HttpsServerEndpoint.HttpsServerEndpointImpl.HttpsServerConnection connection)
           
 
Method Summary
 void dispatch(InboundRequest request)
          Processes an inbound request.
 
Methods inherited from class net.jini.jeri.ssl.Utilities
checkValidity, contains, doesEncryption, doesServerAuthentication, equals, firstX509Cert, getCertFactory, getCipherAlgorithm, getClassName, getClientPrincipals, getClientPrincipals, getClientSSLContextInfo, getKeyAlgorithm, getKeyExchangeAlgorithm, getPermittedKeyAlgorithms, getServerPrincipals, getServerSSLContextInfo, getSupportedCipherSuites, hasStrongCipherAlgorithm, logThrow, maintainsIntegrity, permittedKeyAlgorithm, position, releaseClientSSLContextInfo, safeEquals, subjectString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

requestDispatcher

private final RequestDispatcher requestDispatcher

connection

private final HttpsServerEndpoint.HttpsServerEndpointImpl.HttpsServerConnection connection
Constructor Detail

HttpsServerEndpoint.HttpsServerEndpointImpl.HttpsRequestDispatcher

HttpsServerEndpoint.HttpsServerEndpointImpl.HttpsRequestDispatcher(RequestDispatcher requestDispatcher,
                                                                   HttpsServerEndpoint.HttpsServerEndpointImpl.HttpsServerConnection connection)
Method Detail

dispatch

public void dispatch(InboundRequest request)
Description copied from interface: RequestDispatcher
Processes an inbound request.

The supplied InboundRequest is used to read the request data and to write the response. The request is processed in the current thread; this method does not return until it is done processing the request.

After the invocation of this method completes (either by returning normally or by throwing an exception), the supplied InboundRequest will be automatically terminated (see InboundRequest.abort()). If this method completes before the close method has been invoked on the stream returned by the request's getResponseOutputStream method, there is no guarantee that any or none of the data written to the stream will be delivered; the implication is that the implementation of this method is no longer interested in the successful delivery of the response.

Specified by:
dispatch in interface RequestDispatcher
Parameters:
request - the InboundRequest to use to read the request data and write the response


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