public class HttpsServerConnection extends AbstractState<CloseableObjectState,ServiceResultException> implements ServerConnection
ServerConnection.SecureChannelListener| Constructor and Description |
|---|
HttpsServerConnection(HttpsServer server,
org.apache.http.nio.NHttpServerConnection conn)
Constructor for HttpsServerConnection.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addConnectionListener(IConnectionListener listener)
Add response listener
|
void |
addSecureChannelListener(ServerConnection.SecureChannelListener l)
addSecureChannelListener.
|
SocketAddress |
getLocalAddress()
Get local socket address
|
org.apache.http.nio.NHttpServerConnection |
getNHttpServerConnection()
getNHttpServerConnection.
|
SocketAddress |
getRemoteAddress()
Get remote socket address
|
void |
getSecureChannels(Collection<ServerSecureChannel> list)
Get all open and opening secure channels of this connection.
|
protected void |
onStateTransition(CloseableObjectState oldState,
CloseableObjectState newState)
Override this.
|
void |
removeConnectionListener(IConnectionListener listener)
Add response listener
|
void |
removeSecureChannelListener(ServerConnection.SecureChannelListener l)
removeSecureChannelListener.
|
addStateListener, addStateNotifiable, attemptSetState, clearError, getError, getState, hasError, isStateTransitionAllowed, onListenerException, removeStateListener, removeStateNotifiable, setError, setState, setState, throwIfError, waitForState, waitForState, waitForStateUninterruptiblypublic HttpsServerConnection(HttpsServer server, org.apache.http.nio.NHttpServerConnection conn)
Constructor for HttpsServerConnection.
server - a HttpsServer object.conn - a NHttpServerConnection object.public void addConnectionListener(IConnectionListener listener)
addConnectionListener in interface ServerConnectionlistener - a IConnectionListener object.public void addSecureChannelListener(ServerConnection.SecureChannelListener l)
addSecureChannelListener.
addSecureChannelListener in interface ServerConnectionl - a ServerConnection.SecureChannelListener
object.public SocketAddress getLocalAddress()
getLocalAddress in interface ServerConnectionpublic org.apache.http.nio.NHttpServerConnection getNHttpServerConnection()
getNHttpServerConnection.
NHttpServerConnection object.public SocketAddress getRemoteAddress()
getRemoteAddress in interface ServerConnectionpublic void getSecureChannels(Collection<ServerSecureChannel> list)
getSecureChannels in interface ServerConnectionlist - list to be filledpublic void removeConnectionListener(IConnectionListener listener)
removeConnectionListener in interface ServerConnectionlistener - a IConnectionListener object.public void removeSecureChannelListener(ServerConnection.SecureChannelListener l)
removeSecureChannelListener.
removeSecureChannelListener in interface ServerConnectionl - a ServerConnection.SecureChannelListener
object.protected void onStateTransition(CloseableObjectState oldState, CloseableObjectState newState)
onStateTransition in class AbstractState<CloseableObjectState,ServiceResultException>oldState - a StateType object.newState - a StateType object.Copyright © 2026. All rights reserved.