Package org.restlet.engine.connector
Class ConnectorHelper<T extends org.restlet.Connector>
- java.lang.Object
-
- org.restlet.engine.Helper
-
- org.restlet.engine.RestletHelper<T>
-
- org.restlet.engine.connector.ConnectorHelper<T>
-
- Direct Known Subclasses:
ClientHelper,ServerHelper
public abstract class ConnectorHelper<T extends org.restlet.Connector> extends RestletHelper<T>
Base connector helper.- Author:
- Jerome Louvel
-
-
Constructor Summary
Constructors Constructor Description ConnectorHelper(T connector)Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.restlet.service.ConnectorServicegetConnectorService()Returns the connector service associated to a request.org.restlet.ContextgetContext()Returns the helped Restlet context.java.util.List<org.restlet.data.Protocol>getProtocols()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 Detail
-
ConnectorHelper
public ConnectorHelper(T connector)
Constructor.
-
-
Method Detail
-
getConnectorService
public static org.restlet.service.ConnectorService getConnectorService()
Returns the connector service associated to a request.- Returns:
- The connector service associated to a request.
-
getContext
public org.restlet.Context getContext()
Returns the helped Restlet context.- Overrides:
getContextin classRestletHelper<T extends org.restlet.Connector>- Returns:
- The helped Restlet context.
-
getProtocols
public java.util.List<org.restlet.data.Protocol> getProtocols()
Returns the protocols simultaneously supported.- Returns:
- The protocols simultaneously supported.
-
start
public void start() throws java.lang.ExceptionDescription copied from class:RestletHelperStart callback.- Specified by:
startin classRestletHelper<T extends org.restlet.Connector>- Throws:
java.lang.Exception
-
stop
public void stop() throws java.lang.ExceptionDescription copied from class:RestletHelperStop callback.- Specified by:
stopin classRestletHelper<T extends org.restlet.Connector>- Throws:
java.lang.Exception
-
update
public void update() throws java.lang.ExceptionDescription copied from class:RestletHelperUpdate callback with less impact than aRestletHelper.stop()followed by aRestletHelper.start().- Specified by:
updatein classRestletHelper<T extends org.restlet.Connector>- Throws:
java.lang.Exception
-
-