public class HttpsServer extends AbstractState<CloseableObjectState,ServiceResultException> implements EndpointServer
| Modifier and Type | Class and Description |
|---|---|
class |
HttpsServer.HttpsEndpointHandle |
class |
HttpsServer.SocketHandle |
EndpointServer.EndpointHandle, EndpointServer.ReverseEndpointHandleConnectionMonitor.ConnectListener| Modifier and Type | Field and Description |
|---|---|
static org.apache.http.params.HttpParams |
DEFAULT_HTTPPARAMS
Constant
DEFAULT_HTTPPARAMS |
discoveryEndpoint| Constructor and Description |
|---|
HttpsServer(Application application)
Constructor for HttpsServer.
|
addStateListener, addStateNotifiable, attemptSetState, clearError, getError, getState, hasError, isStateTransitionAllowed, onListenerException, onStateTransition, removeStateListener, removeStateNotifiable, setError, setState, setState, throwIfError, waitForState, waitForState, waitForStateUninterruptiblyclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddStateListener, addStateNotifiable, getError, getState, removeStateListener, removeStateNotifiable, waitForState, waitForState, waitForStateUninterruptiblypublic static final org.apache.http.params.HttpParams DEFAULT_HTTPPARAMS
DEFAULT_HTTPPARAMSpublic HttpsServer(Application application) throws ServiceResultException
Constructor for HttpsServer.
application - a Application object.ServiceResultException - if any.public static TrustManager[] makeTrustManager(CertificateValidator... validators)
makeTrustManager.
validators - a CertificateValidator
object.TrustManager objects.public void addConnectionListener(ConnectionMonitor.ConnectListener l)
addConnectionListener.
addConnectionListener in interface ConnectionMonitorl - a ConnectionMonitor.ConnectListener object.public EndpointServer.EndpointHandle bind(SocketAddress socketAddress, EndpointBinding endpointBinding) throws ServiceResultException
bind in interface EndpointServersocketAddress - a SocketAddress object.endpointBinding - a EndpointBinding object.EndpointServer.EndpointHandle object.ServiceResultException - if any.public EndpointServer.ReverseEndpointHandle bindReverse(SocketAddress addressToConnect, ReverseConnectionParameters parameters, ScheduledExecutorService retryScheduledExecutorService)
EndpointServerbindReverse in interface EndpointServerpublic CloseableObject close()
close.
close in interface CloseableObjectCloseableObject object.public List<SocketAddress> getBoundSocketAddresses()
getBoundSocketAddresses.
getBoundSocketAddresses in interface EndpointServerList object.public void getConnections(Collection<ServerConnection> result)
getConnections.
getConnections in interface ConnectionMonitorresult - a Collection object.public EncoderContext getEncoderContext()
getEncoderContext.
getEncoderContext in interface EndpointServerEncoderContext object.public EndpointBindingCollection getEndpointBindings()
getEndpointBindings in interface EndpointServerpublic HttpsSettings getHttpsSettings()
getHttpsSettings.
HttpsSettings object.public Collection<HttpsSecurityPolicy> getSupportedSecurityPolicies()
getSupportedSecurityPolicies.
Collection object.public int getWorkerThreadCount()
getWorkerThreadCount.
setWorkerThreadCount(int)public void removeConnectionListener(ConnectionMonitor.ConnectListener l)
removeConnectionListener.
removeConnectionListener in interface ConnectionMonitorl - a ConnectionMonitor.ConnectListener object.public void setWorkerThreadCount(int workerThreadCount)
workerThreadCount - a int.public HttpsServer.SocketHandle[] socketHandleSnapshot()
socketHandleSnapshot.
HttpsServer.SocketHandle
objects.protected void initReactor()
throws ServiceResultException
initReactor.
ServiceResultException - if any.protected void shutdownReactor()
shutdownReactor.
Copyright © 2026. All rights reserved.