net.jini.jeri.ssl
Class HttpsEndpoint.HttpsEndpointImpl
java.lang.Object
net.jini.jeri.ssl.Utilities
net.jini.jeri.ssl.SslEndpointImpl
net.jini.jeri.ssl.HttpsEndpoint.HttpsEndpointImpl
- All Implemented Interfaces:
- ConnectionEndpoint
- Enclosing class:
- HttpsEndpoint
private static final class HttpsEndpoint.HttpsEndpointImpl
- extends SslEndpointImpl
Implementation delegate
Field Summary |
private long |
timeLastVerified
Time at which the server endpoint was last pinged. |
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 |
timeLastVerified
private long timeLastVerified
- Time at which the server endpoint was last pinged.
HttpsEndpoint.HttpsEndpointImpl
HttpsEndpoint.HttpsEndpointImpl(Endpoint endpoint,
String serverHost,
int port,
SocketFactory socketFactory)
- Creates an instance of this class.
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.