Package org.somda.sdc.dpws.http
Interface HttpConnectionInterceptor
-
- All Implemented Interfaces:
public interface HttpConnectionInterceptorHttp connection interceptor interface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumHttpConnectionInterceptor.SourceThe source that established the connection.
-
Method Summary
Modifier and Type Method Description UnitonFirstIntercept(UUID connectionId, SSLSession sslSession, HttpConnectionInterceptor.Source source)Called once, when the first message is sent through a connection. UnitonIntercept(UUID connectionId)Called on every message sent through a connection. UnitonLastIntercept(UUID connectionId)Called once, when the last message is sent through a connection. UnitonClientRequestFailure(Throwable cause, SocketAddress targetAddress, Integer retryCount)Called when a client request fails. UnitonServerSslHandshakeFailure(Throwable cause, SocketAddress peerAddress, List<Certificate> peerCertificates)Called when a server SSL handshake fails. -
-
Method Detail
-
onFirstIntercept
Unit onFirstIntercept(UUID connectionId, SSLSession sslSession, HttpConnectionInterceptor.Source source)
Called once, when the first message is sent through a connection.
- Parameters:
connectionId- the unique id of the connectionsslSession- the SSL session of the connectionsource- the source, that established the connection
-
onIntercept
Unit onIntercept(UUID connectionId)
Called on every message sent through a connection.
- Parameters:
connectionId- the unique id of the connection
-
onLastIntercept
Unit onLastIntercept(UUID connectionId)
Called once, when the last message is sent through a connection.
- Parameters:
connectionId- the unique id of the connection
-
onClientRequestFailure
Unit onClientRequestFailure(Throwable cause, SocketAddress targetAddress, Integer retryCount)
Called when a client request fails.
- Parameters:
cause- the cause of the failuretargetAddress- the target address for which the attempted client connection failed or null, if the target address is not availableretryCount- the number of retries that have been attempted so far
-
onServerSslHandshakeFailure
Unit onServerSslHandshakeFailure(Throwable cause, SocketAddress peerAddress, List<Certificate> peerCertificates)
Called when a server SSL handshake fails.
- Parameters:
cause- the cause of the failurepeerAddress- the address of the peer that attempted to connectpeerCertificates- the peer certificates if they can be extracted or empty otherwise
-
-
-
-