Package org.restlet.engine.connector
Class ConnectorHelper<T extends Connector>
java.lang.Object
org.restlet.engine.Helper
org.restlet.engine.RestletHelper<T>
org.restlet.engine.connector.ConnectorHelper<T>
- Direct Known Subclasses:
ClientHelper,ServerHelper
Base connector helper.
- Author:
- Jerome Louvel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ConnectorServiceReturns the connector service associated to a request.Returns the helped Restlet context.Returns the protocols simultaneously supported.voidstart()Start callback.voidstop()Stop callback.voidupdate()Update callback with less impact than aRestletHelper.stop()followed by aRestletHelper.start().Methods inherited from class org.restlet.engine.RestletHelper
getAttributes, getHelped, getHelpedParameters, getLogger, getMetadataService, handle, setHelped
-
Constructor Details
-
ConnectorHelper
Constructor.
-
-
Method Details
-
getConnectorService
Returns the connector service associated to a request.- Returns:
- The connector service associated to a request.
-
getContext
Returns the helped Restlet context.- Overrides:
getContextin classRestletHelper<T extends Connector>- Returns:
- The helped Restlet context.
-
getProtocols
Returns the protocols simultaneously supported.- Returns:
- The protocols simultaneously supported.
-
start
Description copied from class:RestletHelperStart callback.- Specified by:
startin classRestletHelper<T extends Connector>- Throws:
Exception
-
stop
Description copied from class:RestletHelperStop callback.- Specified by:
stopin classRestletHelper<T extends Connector>- Throws:
Exception
-
update
Description copied from class:RestletHelperUpdate callback with less impact than aRestletHelper.stop()followed by aRestletHelper.start().- Specified by:
updatein classRestletHelper<T extends Connector>- Throws:
Exception
-