net.jini.jeri.ssl
Class HttpsEndpoint.HttpsEndpointImpl

java.lang.Object
  extended by net.jini.jeri.ssl.Utilities
      extended by net.jini.jeri.ssl.SslEndpointImpl
          extended by net.jini.jeri.ssl.HttpsEndpoint.HttpsEndpointImpl
All Implemented Interfaces:
ConnectionEndpoint
Enclosing class:
HttpsEndpoint

private static final class HttpsEndpoint.HttpsEndpointImpl
extends SslEndpointImpl

Implementation delegate


Nested Class Summary
 
Nested classes/interfaces inherited from class net.jini.jeri.ssl.Utilities
Utilities.SSLContextInfo
 
Field Summary
private  long timeLastVerified
          Time at which the server endpoint was last pinged.
 
Fields inherited from class net.jini.jeri.ssl.SslEndpointImpl
connectionManager, disableSocketConnect, endpoint, logger, port, serverHost, socketFactory
 
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
HttpsEndpoint.HttpsEndpointImpl(Endpoint endpoint, String serverHost, int port, SocketFactory socketFactory)
          Creates an instance of this class.
 
Method Summary
 Connection connect(OutboundRequestHandle handle)
          Creates a new connection.
(package private)  OutboundRequest getOutboundRequest(CallContext callContext)
          Returns an outbound request for the specified call context.
(package private)  OutboundRequestIterator newRequest(CallContext callContext)
          Implements Endpoint.newRequest when the constraints are supported.
private  void pingEndpoint(HttpsEndpoint.HttpsConnection connection)
          Ping the server endpoint to test the connection.
 
Methods inherited from class net.jini.jeri.ssl.SslEndpointImpl
connect, equals, fieldsToString, hashCode, newRequest, toString
 
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, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

timeLastVerified

private long timeLastVerified
Time at which the server endpoint was last pinged.

Constructor Detail

HttpsEndpoint.HttpsEndpointImpl

HttpsEndpoint.HttpsEndpointImpl(Endpoint endpoint,
                                String serverHost,
                                int port,
                                SocketFactory socketFactory)
Creates an instance of this class.

Method Detail

newRequest

OutboundRequestIterator newRequest(CallContext callContext)
Implements Endpoint.newRequest when the constraints are supported.

Overrides:
newRequest in class SslEndpointImpl

getOutboundRequest

OutboundRequest getOutboundRequest(CallContext callContext)
                             throws IOException
Returns an outbound request for the specified call context.

Throws:
IOException

pingEndpoint

private void pingEndpoint(HttpsEndpoint.HttpsConnection connection)
                   throws IOException
Ping the server endpoint to test the connection. Throw (or pass) an IOException if the server endpoint doesn't respond. If the ping succeeds, the connection will have been returned to the idle pool.

Throws:
IOException

connect

public Connection connect(OutboundRequestHandle handle)
Description copied from class: SslEndpointImpl
Creates a new connection.

Specified by:
connect in interface ConnectionEndpoint
Overrides:
connect in class SslEndpointImpl
Parameters:
handle - the handle for the request
Returns:
a new connection that can be used to send a request for the specified handle


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