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.ConnectorService
getConnectorService()
Returns the connector service associated to a request.org.restlet.Context
getContext()
Returns the helped Restlet context.java.util.List<org.restlet.data.Protocol>
getProtocols()
Returns the protocols simultaneously supported.void
start()
Start callback.void
stop()
Stop callback.void
update()
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:
getContext
in 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.Exception
Description copied from class:RestletHelper
Start callback.- Specified by:
start
in classRestletHelper<T extends org.restlet.Connector>
- Throws:
java.lang.Exception
-
stop
public void stop() throws java.lang.Exception
Description copied from class:RestletHelper
Stop callback.- Specified by:
stop
in classRestletHelper<T extends org.restlet.Connector>
- Throws:
java.lang.Exception
-
update
public void update() throws java.lang.Exception
Description copied from class:RestletHelper
Update callback with less impact than aRestletHelper.stop()
followed by aRestletHelper.start()
.- Specified by:
update
in classRestletHelper<T extends org.restlet.Connector>
- Throws:
java.lang.Exception
-
-