Package org.refcodes.rest
Interface HttpRestServer
-
- All Superinterfaces:
org.refcodes.net.BaseLocatorAccessor,org.refcodes.net.BaseLocatorAccessor.BaseLocatorBuilder<RestServer>,org.refcodes.net.BaseLocatorAccessor.BaseLocatorMutator,org.refcodes.net.BaseLocatorAccessor.BaseLocatorProperty,org.refcodes.net.BasicAuthObservable<HttpRestServer>,org.refcodes.component.Closable,org.refcodes.component.Closable.CloseBuilder<RestServer>,org.refcodes.component.ConnectionComponent<RestServer>,org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<org.refcodes.net.HttpServerContext,HttpRestServer>,org.refcodes.component.ConnectionOpenable<RestServer>,org.refcodes.component.ConnectionOpenable.ConnectionOpenBuilder<RestEndpoint,RestServer>,org.refcodes.component.ConnectionStatusAccessor,HttpExceptionHandlerAccessor,HttpExceptionHandlerAccessor.HttpExceptionHandlerBuilder<RestServer>,HttpExceptionHandlerAccessor.HttpExceptionHandlerMutator,HttpExceptionHandlerAccessor.HttpExceptionHandlerProperty,HttpExceptionHandlingAccessor,HttpExceptionHandlingAccessor.HttpExceptionHandlingBuilder<RestServer>,HttpExceptionHandlingAccessor.HttpExceptionHandlingMutator,HttpExceptionHandlingAccessor.HttpExceptionHandlingProperty,org.refcodes.net.HttpsConnectionRequestObservable<HttpRestServer>,org.refcodes.security.KeyStoreDescriptorAccessor,org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorBuilder<HttpRestServer>,org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorMutator,org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorProperty,org.refcodes.component.LinkComponent,org.refcodes.io.MaxConnectionsAccessor,org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsBuilder<HttpRestServer>,org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsMutator,org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsProperty,org.refcodes.net.MediaTypeFactoryLookup,org.refcodes.net.MediaTypeFactoryLookup.MutableMediaTypeFactoryLookup,org.refcodes.observer.Observable<RestServer>,org.refcodes.observer.Observers<RestEndpoint,RestServer>,org.refcodes.component.Openable,org.refcodes.mixin.PortAccessor,org.refcodes.mixin.PortAccessor.PortBuilder<HttpRestServer>,org.refcodes.mixin.PortAccessor.PortMutator,org.refcodes.mixin.PortAccessor.PortProperty,org.refcodes.net.RealmAccessor,org.refcodes.net.RealmAccessor.RealmBuilder<RestServer>,org.refcodes.net.RealmAccessor.RealmMutator,org.refcodes.net.RealmAccessor.RealmProperty,org.refcodes.runtime.RequestCorrelation<RestServer>,RestServer,org.refcodes.net.SchemeAccessor,org.refcodes.net.SchemeAccessor.SchemeBuilder<HttpRestServer>,org.refcodes.net.SchemeAccessor.SchemeMutator,org.refcodes.net.SchemeAccessor.SchemeProperty,org.refcodes.runtime.SessionCorrelation<RestServer>
- All Known Subinterfaces:
HttpRegistryRestServer<DESC,B>
- All Known Implementing Classes:
AbstractHttpRegistryRestServerDecorator,AbstractHttpRestServerDecorator,HttpRestServerImpl,HttpRestServerSingleton
public interface HttpRestServer extends RestServer, org.refcodes.component.LinkComponent, org.refcodes.component.ConnectionStatusAccessor, org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<org.refcodes.net.HttpServerContext,HttpRestServer>, org.refcodes.net.BasicAuthObservable<HttpRestServer>, org.refcodes.net.HttpsConnectionRequestObservable<HttpRestServer>, org.refcodes.mixin.PortAccessor.PortProperty, org.refcodes.mixin.PortAccessor.PortBuilder<HttpRestServer>, org.refcodes.net.SchemeAccessor.SchemeProperty, org.refcodes.net.SchemeAccessor.SchemeBuilder<HttpRestServer>, org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorProperty, org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorBuilder<HttpRestServer>, org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsProperty, org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsBuilder<HttpRestServer>
Extends aRestServerto be capable of opening a server socket on the local host with the provided port number viaConnectionOpenable.open(Object)or with an additional maximum number of connections viaopen(int, int). To open a HTTPS port, use the methods such as:open(KeyStoreDescriptor, int)oropen(KeyStoreDescriptor, int, int)oropen(String, KeyStoreDescriptor, int)oropen(String, KeyStoreDescriptor, int, int). AHttpRestServercan be shutdown viaClosable.close().
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.net.BaseLocatorAccessor
org.refcodes.net.BaseLocatorAccessor.BaseLocatorBuilder<B extends org.refcodes.net.BaseLocatorAccessor.BaseLocatorBuilder<B>>, org.refcodes.net.BaseLocatorAccessor.BaseLocatorMutator, org.refcodes.net.BaseLocatorAccessor.BaseLocatorProperty
-
Nested classes/interfaces inherited from interface org.refcodes.component.Closable
org.refcodes.component.Closable.CloseAutomaton, org.refcodes.component.Closable.CloseBuilder<B extends org.refcodes.component.Closable.CloseBuilder<B>>
-
Nested classes/interfaces inherited from interface org.refcodes.component.ConnectionComponent
org.refcodes.component.ConnectionComponent.ConnectionAutomaton<CON extends java.lang.Object>, org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<CON extends java.lang.Object,B extends org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<CON,B>>
-
Nested classes/interfaces inherited from interface org.refcodes.component.ConnectionOpenable
org.refcodes.component.ConnectionOpenable.ConnectionOpenAutomaton<CON extends java.lang.Object>, org.refcodes.component.ConnectionOpenable.ConnectionOpenBuilder<CON extends java.lang.Object,B extends org.refcodes.component.ConnectionOpenable.ConnectionOpenBuilder<CON,B>>
-
Nested classes/interfaces inherited from interface org.refcodes.component.ConnectionStatusAccessor
org.refcodes.component.ConnectionStatusAccessor.ConnectionStatusMutator, org.refcodes.component.ConnectionStatusAccessor.ConnectionStatusProperty
-
Nested classes/interfaces inherited from interface org.refcodes.rest.HttpExceptionHandlerAccessor
HttpExceptionHandlerAccessor.HttpExceptionHandlerBuilder<B extends HttpExceptionHandlerAccessor.HttpExceptionHandlerBuilder<B>>, HttpExceptionHandlerAccessor.HttpExceptionHandlerMutator, HttpExceptionHandlerAccessor.HttpExceptionHandlerProperty
-
Nested classes/interfaces inherited from interface org.refcodes.rest.HttpExceptionHandlingAccessor
HttpExceptionHandlingAccessor.HttpExceptionHandlingBuilder<B extends HttpExceptionHandlingAccessor.HttpExceptionHandlingBuilder<B>>, HttpExceptionHandlingAccessor.HttpExceptionHandlingMutator, HttpExceptionHandlingAccessor.HttpExceptionHandlingProperty
-
Nested classes/interfaces inherited from interface org.refcodes.security.KeyStoreDescriptorAccessor
org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorBuilder<B extends org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorBuilder<B>>, org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorMutator, org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorProperty
-
Nested classes/interfaces inherited from interface org.refcodes.component.LinkComponent
org.refcodes.component.LinkComponent.LinkAutomaton, org.refcodes.component.LinkComponent.LinkComponentBuilder<B extends org.refcodes.component.LinkComponent.LinkComponentBuilder<B>>
-
Nested classes/interfaces inherited from interface org.refcodes.io.MaxConnectionsAccessor
org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsBuilder<B extends org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsBuilder<B>>, org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsMutator, org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsProperty
-
Nested classes/interfaces inherited from interface org.refcodes.net.MediaTypeFactoryLookup
org.refcodes.net.MediaTypeFactoryLookup.MutableMediaTypeFactoryLookup
-
Nested classes/interfaces inherited from interface org.refcodes.component.Openable
org.refcodes.component.Openable.OpenAutomaton, org.refcodes.component.Openable.OpenBuilder<B extends org.refcodes.component.Openable.OpenBuilder<B>>
-
Nested classes/interfaces inherited from interface org.refcodes.mixin.PortAccessor
org.refcodes.mixin.PortAccessor.PortBuilder<B extends org.refcodes.mixin.PortAccessor.PortBuilder<B>>, org.refcodes.mixin.PortAccessor.PortMutator, org.refcodes.mixin.PortAccessor.PortProperty
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidopen()default voidopen(int aPort)Opens the HTTP sever connection (socket) at the given portdefault voidopen(int aPort, int aMaxConnections)Opens the HTTP sever connection (socket) at the given port allowing the given number of maximum connections at the same time.default voidopen(java.lang.String aProtocol, org.refcodes.security.KeyStoreDescriptor aStoreDescriptor)Same asopen(String, KeyStoreDescriptor, int)but: The number of maximum connections at the same time is decided upon by the implementations's default value.default voidopen(java.lang.String aProtocol, org.refcodes.security.KeyStoreDescriptor aStoreDescriptor, int aPort)Same asopen(String, KeyStoreDescriptor, int, int)but: The number of maximum connections at the same time is decided upon by the implementations's default value.voidopen(java.lang.String aProtocol, org.refcodes.security.KeyStoreDescriptor aStoreDescriptor, int aPort, int aMaxConnections)Opens the HTTPS sever connection (socket) at the given port allowing the given number of maximum connections at the same time using the provided HTTPS configuration parameters.default voidopen(org.refcodes.data.Scheme aScheme, org.refcodes.security.KeyStoreDescriptor aStoreDescriptor)Same asopen(String, KeyStoreDescriptor, int)but: The number of maximum connections at the same time is decided upon by the implementations's default value.default voidopen(org.refcodes.data.Scheme aScheme, org.refcodes.security.KeyStoreDescriptor aStoreDescriptor, int aPort)Same asopen(String, KeyStoreDescriptor, int, int)but: The number of maximum connections at the same time is decided upon by the implementations's default value.default voidopen(org.refcodes.data.Scheme aScheme, org.refcodes.security.KeyStoreDescriptor aStoreDescriptor, int aPort, int aMaxConnections)Opens the HTTPS sever connection (socket) at the given port allowing the given number of maximum connections at the same time using the provided HTTPS configuration parameters.default voidopen(org.refcodes.net.HttpServerContext aConnection)default voidopen(org.refcodes.security.KeyStoreDescriptor aStoreDescriptor)Same asopen(String, KeyStoreDescriptor, int)but: The protocol for the underlyingSSLContextused is set to "TLS".default voidopen(org.refcodes.security.KeyStoreDescriptor aStoreDescriptor, int aPort)Same asopen(String, KeyStoreDescriptor, int, int)but: The protocol for the underlyingSSLContextused is set to "TLS".default voidopen(org.refcodes.security.KeyStoreDescriptor aStoreDescriptor, int aPort, int aMaxConnections)Same asopen(String, KeyStoreDescriptor, int, int)but: The protocol for the underlyingSSLContextused is set to "TLS".default HttpRestServerwithBaseLocator(java.lang.String aBaseLocator)default HttpRestServerwithClose()default HttpRestServerwithCloseIn(int aCloseInMillis)default HttpRestServerwithCloseQuietly()default HttpRestServerwithDisableRequestCorrelation()default HttpRestServerwithDisableSessionCorrelation()default HttpRestServerwithEnableRequestCorrelation()default HttpRestServerwithEnableSessionCorrelation()default HttpRestServerwithHttpExceptionHandler(HttpExceptionHandler aHttpErrorHandler)Sets theHttpExceptionHandlerfor theHttpExceptionHandlerproperty.default HttpRestServerwithHttpExceptionHandling(HttpExceptionHandling aHttpErrorHandling)Sets theHttpExceptionHandlingfor theHttpExceptionHandlingproperty.default HttpRestServerwithKeyStoreDescriptor(org.refcodes.security.KeyStoreDescriptor aStoreDescriptor)default HttpRestServerwithMaxConnections(int aMaxConnections)default HttpRestServerwithOpen(int aPort)Builder method for opening theHttpRestServer.default HttpRestServerwithOpen(org.refcodes.net.HttpServerContext aConnection)default HttpRestServerwithPort(int aPort)default HttpRestServerwithProtocol(java.lang.String aProtocol)default HttpRestServerwithRealm(java.lang.String aRealm)default HttpRestServerwithRequestCorrelation(boolean hasRequestCorrelation)default HttpRestServerwithScheme(org.refcodes.data.Scheme aScheme)default HttpRestServerwithSessionCorrelation(boolean hasSessionCorrelation)-
Methods inherited from interface org.refcodes.net.BaseLocatorAccessor.BaseLocatorMutator
setBaseLocator
-
Methods inherited from interface org.refcodes.component.Closable
close, closeIn, closeQuietly, closeUnchecked
-
Methods inherited from interface org.refcodes.component.ConnectionOpenable.ConnectionOpenBuilder
withOpenUnchecked
-
Methods inherited from interface org.refcodes.component.ConnectionStatusAccessor
getConnectionStatus, isConnectionOpened
-
Methods inherited from interface org.refcodes.rest.HttpExceptionHandlerAccessor
getHttpExceptionHandler
-
Methods inherited from interface org.refcodes.rest.HttpExceptionHandlerAccessor.HttpExceptionHandlerBuilder
withOnHttpException
-
Methods inherited from interface org.refcodes.rest.HttpExceptionHandlerAccessor.HttpExceptionHandlerMutator
onHttpException, setHttpExceptionHandler
-
Methods inherited from interface org.refcodes.rest.HttpExceptionHandlingAccessor
getHttpExceptionHandling
-
Methods inherited from interface org.refcodes.rest.HttpExceptionHandlingAccessor.HttpExceptionHandlingMutator
setHttpExceptionHandling
-
Methods inherited from interface org.refcodes.net.HttpsConnectionRequestObservable
onConnectionRequest
-
Methods inherited from interface org.refcodes.security.KeyStoreDescriptorAccessor
getKeyStoreDescriptor
-
Methods inherited from interface org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorMutator
setKeyStoreDescriptor
-
Methods inherited from interface org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsMutator
setMaxConnections
-
Methods inherited from interface org.refcodes.net.MediaTypeFactoryLookup
getFactoryMediaTypes, hasMediaTypeFactory, toMediaTypeFactory
-
Methods inherited from interface org.refcodes.net.MediaTypeFactoryLookup.MutableMediaTypeFactoryLookup
addMediaTypeFactory
-
Methods inherited from interface org.refcodes.observer.Observable
hasObserverSubscription, subscribeObserver, unsubscribeObserver
-
Methods inherited from interface org.refcodes.observer.Observers
disableObservers, enableObservers, isObserversActive, observers, setObserversActive
-
Methods inherited from interface org.refcodes.runtime.RequestCorrelation
disableRequestCorrelation, enableRequestCorrelation, hasRequestCorrelation, setRequestCorrelation
-
Methods inherited from interface org.refcodes.rest.RestServer
onDelete, onGet, onPost, onPut, onRequest, onRequest, onRequest, withDisableObservers, withEnableObservers, withObserversActive
-
-
-
-
Method Detail
-
withHttpExceptionHandler
default HttpRestServer withHttpExceptionHandler(HttpExceptionHandler aHttpErrorHandler)
Sets theHttpExceptionHandlerfor theHttpExceptionHandlerproperty.- Specified by:
withHttpExceptionHandlerin interfaceHttpExceptionHandlerAccessor.HttpExceptionHandlerBuilder<RestServer>- Parameters:
aHttpErrorHandler- TheHttpExceptionHandlerto be stored by theHttpExceptionHandlerproperty.- Returns:
- The builder for applying multiple build operations.
-
withHttpExceptionHandling
default HttpRestServer withHttpExceptionHandling(HttpExceptionHandling aHttpErrorHandling)
Sets theHttpExceptionHandlingfor theHttpExceptionHandlingproperty.- Specified by:
withHttpExceptionHandlingin interfaceHttpExceptionHandlingAccessor.HttpExceptionHandlingBuilder<RestServer>- Parameters:
aHttpErrorHandling- TheHttpExceptionHandlingto be stored by theHttpExceptionHandlingproperty.- Returns:
- The builder for applying multiple build operations.
-
withSessionCorrelation
default HttpRestServer withSessionCorrelation(boolean hasSessionCorrelation)
- Specified by:
withSessionCorrelationin interfaceRestServer- Specified by:
withSessionCorrelationin interfaceorg.refcodes.runtime.SessionCorrelation<RestServer>
-
withEnableSessionCorrelation
default HttpRestServer withEnableSessionCorrelation()
- Specified by:
withEnableSessionCorrelationin interfaceRestServer- Specified by:
withEnableSessionCorrelationin interfaceorg.refcodes.runtime.SessionCorrelation<RestServer>
-
withDisableSessionCorrelation
default HttpRestServer withDisableSessionCorrelation()
- Specified by:
withDisableSessionCorrelationin interfaceRestServer- Specified by:
withDisableSessionCorrelationin interfaceorg.refcodes.runtime.SessionCorrelation<RestServer>
-
withRequestCorrelation
default HttpRestServer withRequestCorrelation(boolean hasRequestCorrelation)
- Specified by:
withRequestCorrelationin interfaceorg.refcodes.runtime.RequestCorrelation<RestServer>- Specified by:
withRequestCorrelationin interfaceRestServer
-
withEnableRequestCorrelation
default HttpRestServer withEnableRequestCorrelation()
- Specified by:
withEnableRequestCorrelationin interfaceorg.refcodes.runtime.RequestCorrelation<RestServer>- Specified by:
withEnableRequestCorrelationin interfaceRestServer
-
withDisableRequestCorrelation
default HttpRestServer withDisableRequestCorrelation()
- Specified by:
withDisableRequestCorrelationin interfaceorg.refcodes.runtime.RequestCorrelation<RestServer>- Specified by:
withDisableRequestCorrelationin interfaceRestServer
-
withRealm
default HttpRestServer withRealm(java.lang.String aRealm)
- Specified by:
withRealmin interfaceorg.refcodes.net.RealmAccessor.RealmBuilder<RestServer>- Specified by:
withRealmin interfaceRestServer
-
withBaseLocator
default HttpRestServer withBaseLocator(java.lang.String aBaseLocator)
- Specified by:
withBaseLocatorin interfaceorg.refcodes.net.BaseLocatorAccessor.BaseLocatorBuilder<RestServer>- Specified by:
withBaseLocatorin interfaceRestServer
-
withClose
default HttpRestServer withClose() throws org.refcodes.component.CloseException
- Specified by:
withClosein interfaceorg.refcodes.component.Closable.CloseBuilder<RestServer>- Throws:
org.refcodes.component.CloseException
-
withCloseQuietly
default HttpRestServer withCloseQuietly()
- Specified by:
withCloseQuietlyin interfaceorg.refcodes.component.Closable.CloseBuilder<RestServer>
-
withCloseIn
default HttpRestServer withCloseIn(int aCloseInMillis)
- Specified by:
withCloseInin interfaceorg.refcodes.component.Closable.CloseBuilder<RestServer>
-
withOpen
default HttpRestServer withOpen(org.refcodes.net.HttpServerContext aConnection) throws org.refcodes.component.OpenException
- Specified by:
withOpenin interfaceorg.refcodes.component.ConnectionOpenable.ConnectionOpenBuilder<RestEndpoint,RestServer>- Throws:
org.refcodes.component.OpenException
-
withOpen
default HttpRestServer withOpen(int aPort) throws org.refcodes.component.OpenException
Builder method for opening theHttpRestServer. Delegates toopen(int)and returns this method.- Parameters:
aPort- The port on which to listen for requests.- Returns:
- This instance for applying method chaining.
- Throws:
org.refcodes.component.OpenException- thrown in case something went wrong such as the port being already in use.
-
withPort
default HttpRestServer withPort(int aPort)
- Specified by:
withPortin interfaceorg.refcodes.mixin.PortAccessor.PortBuilder<HttpRestServer>
-
withScheme
default HttpRestServer withScheme(org.refcodes.data.Scheme aScheme)
- Specified by:
withSchemein interfaceorg.refcodes.net.SchemeAccessor.SchemeBuilder<HttpRestServer>
-
withProtocol
default HttpRestServer withProtocol(java.lang.String aProtocol)
- Specified by:
withProtocolin interfaceorg.refcodes.net.SchemeAccessor.SchemeBuilder<HttpRestServer>
-
withKeyStoreDescriptor
default HttpRestServer withKeyStoreDescriptor(org.refcodes.security.KeyStoreDescriptor aStoreDescriptor)
- Specified by:
withKeyStoreDescriptorin interfaceorg.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorBuilder<HttpRestServer>
-
withMaxConnections
default HttpRestServer withMaxConnections(int aMaxConnections)
- Specified by:
withMaxConnectionsin interfaceorg.refcodes.io.MaxConnectionsAccessor.MaxConnectionsBuilder<HttpRestServer>
-
open
default void open() throws org.refcodes.component.OpenException- Specified by:
openin interfaceorg.refcodes.component.Openable- Throws:
org.refcodes.component.OpenException
-
open
default void open(int aPort) throws org.refcodes.component.OpenExceptionOpens the HTTP sever connection (socket) at the given port- Parameters:
aPort- The port on which to listen for requests.- Throws:
org.refcodes.component.OpenException- thrown in case something went wrong such as the port being already in use.
-
open
default void open(int aPort, int aMaxConnections) throws org.refcodes.component.OpenExceptionOpens the HTTP sever connection (socket) at the given port allowing the given number of maximum connections at the same time.- Parameters:
aPort- The port on which to listen for requests.aMaxConnections- The number of maximum connections at the same time.- Throws:
org.refcodes.component.OpenException- thrown in case something went wrong such as the port being already in use.
-
open
default void open(java.lang.String aProtocol, org.refcodes.security.KeyStoreDescriptor aStoreDescriptor, int aPort) throws org.refcodes.component.OpenExceptionSame asopen(String, KeyStoreDescriptor, int, int)but:- The number of maximum connections at the same time is decided upon by the implementations's default value.
- Parameters:
aProtocol- The protocol to use, e.g. "TLS".aStoreDescriptor- The store descriptor describing yourKeyStorerequired for HTTPS.aPort- The port on which to listen for requests.- Throws:
org.refcodes.component.OpenException- thrown in case something went wrong such as the port being already in use.
-
open
default void open(java.lang.String aProtocol, org.refcodes.security.KeyStoreDescriptor aStoreDescriptor) throws org.refcodes.component.OpenExceptionSame asopen(String, KeyStoreDescriptor, int)but:- The number of maximum connections at the same time is decided upon by the implementations's default value.
- Parameters:
aProtocol- The protocol to use, e.g. "TLS".aStoreDescriptor- The store descriptor describing yourKeyStorerequired for HTTPS.- Throws:
org.refcodes.component.OpenException- thrown in case something went wrong such as the port being already in use.
-
open
default void open(org.refcodes.security.KeyStoreDescriptor aStoreDescriptor, int aPort, int aMaxConnections) throws org.refcodes.component.OpenExceptionSame asopen(String, KeyStoreDescriptor, int, int)but:- The protocol for the underlying
SSLContextused is set to "TLS". - The type of
KeyStoreis set to "JKS". - The password for the
KeyStore's key is assumed to be the same as the providedKeyStorepassword.
- Parameters:
aStoreDescriptor- The store descriptor describing yourKeyStorerequired for HTTPS.aPort- The port on which to listen for requests.aMaxConnections- The number of maximum connections at the same time.- Throws:
org.refcodes.component.OpenException- thrown in case something went wrong such as the port being already in use.
- The protocol for the underlying
-
open
default void open(org.refcodes.security.KeyStoreDescriptor aStoreDescriptor, int aPort) throws org.refcodes.component.OpenExceptionSame asopen(String, KeyStoreDescriptor, int, int)but:- The protocol for the underlying
SSLContextused is set to "TLS". - The type of
KeyStoreis set to "JKS".
- Parameters:
aStoreDescriptor- The store descriptor describing yourKeyStorerequired for HTTPS.aPort- The port on which to listen for requests.- Throws:
org.refcodes.component.OpenException- thrown in case something went wrong such as the port being already in use.
- The protocol for the underlying
-
open
default void open(org.refcodes.security.KeyStoreDescriptor aStoreDescriptor) throws org.refcodes.component.OpenExceptionSame asopen(String, KeyStoreDescriptor, int)but:- The protocol for the underlying
SSLContextused is set to "TLS". - The type of
KeyStoreis set to "JKS".
- Parameters:
aStoreDescriptor- The store descriptor describing yourKeyStorerequired for HTTPS.- Throws:
org.refcodes.component.OpenException- thrown in case something went wrong such as the port being already in use.
- The protocol for the underlying
-
open
default void open(org.refcodes.data.Scheme aScheme, org.refcodes.security.KeyStoreDescriptor aStoreDescriptor, int aPort, int aMaxConnections) throws org.refcodes.component.OpenExceptionOpens the HTTPS sever connection (socket) at the given port allowing the given number of maximum connections at the same time using the provided HTTPS configuration parameters.- Parameters:
aScheme- TheSchemeto use, e.g.Scheme.HTTPSdefaults to "TLS".aStoreDescriptor- The store descriptor describing yourKeyStorerequired for HTTPS.aPort- The port on which to listen for requests.aMaxConnections- The number of maximum connections at the same time.- Throws:
org.refcodes.component.OpenException- thrown in case something went wrong such as the port being already in use.
-
open
default void open(org.refcodes.data.Scheme aScheme, org.refcodes.security.KeyStoreDescriptor aStoreDescriptor, int aPort) throws org.refcodes.component.OpenExceptionSame asopen(String, KeyStoreDescriptor, int, int)but:- The number of maximum connections at the same time is decided upon by the implementations's default value.
- Parameters:
aScheme- TheSchemeto use, e.g.Scheme.HTTPSdefaults to "TLS".aStoreDescriptor- The store descriptor describing yourKeyStorerequired for HTTPS.aPort- The port on which to listen for requests.- Throws:
org.refcodes.component.OpenException- thrown in case something went wrong such as the port being already in use.
-
open
default void open(org.refcodes.data.Scheme aScheme, org.refcodes.security.KeyStoreDescriptor aStoreDescriptor) throws org.refcodes.component.OpenExceptionSame asopen(String, KeyStoreDescriptor, int)but:- The number of maximum connections at the same time is decided upon by the implementations's default value.
- Parameters:
aScheme- TheSchemeto use, e.g.Scheme.HTTPSdefaults to "TLS".aStoreDescriptor- The store descriptor describing yourKeyStorerequired for HTTPS.- Throws:
org.refcodes.component.OpenException- thrown in case something went wrong such as the port being already in use.
-
open
void open(java.lang.String aProtocol, org.refcodes.security.KeyStoreDescriptor aStoreDescriptor, int aPort, int aMaxConnections) throws org.refcodes.component.OpenExceptionOpens the HTTPS sever connection (socket) at the given port allowing the given number of maximum connections at the same time using the provided HTTPS configuration parameters.- Parameters:
aProtocol- The protocol to use, e.g. "TLS".aStoreDescriptor- The store descriptor describing yourKeyStorerequired for HTTPS.aPort- The port on which to listen for requests.aMaxConnections- The number of maximum connections at the same time.- Throws:
org.refcodes.component.OpenException- thrown in case something went wrong such as the port being already in use.
-
open
default void open(org.refcodes.net.HttpServerContext aConnection) throws org.refcodes.component.OpenException- Specified by:
openin interfaceorg.refcodes.component.ConnectionOpenable<RestServer>- Throws:
org.refcodes.component.OpenException
-
-