Class WebSocketExtensionFactory
- java.lang.Object
-
- org.eclipse.jetty.websocket.api.extensions.ExtensionFactory
-
- org.eclipse.jetty.websocket.common.extensions.WebSocketExtensionFactory
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
Dumpable.DumpableContainer
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
-
-
Constructor Summary
Constructors Constructor Description WebSocketExtensionFactory(WebSocketContainerScope container)WebSocketExtensionFactory(WebSocketContainerScope container, InflaterPool inflaterPool, DeflaterPool deflaterPool)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddLifeCycleListener(LifeCycle.Listener listener)java.lang.Stringdump()voiddump(java.lang.Appendable out, java.lang.String indent)Dump this object (and children) into an Appendable using the provided indent after any new lines.java.lang.StringdumpSelf()The description of this/self found in the dump.DeflaterPoolgetDeflaterPool()InflaterPoolgetInflaterPool()booleanisFailed()booleanisRunning()booleanisStarted()booleanisStarting()booleanisStopped()booleanisStopping()ExtensionnewInstance(ExtensionConfig config)voidremoveLifeCycleListener(LifeCycle.Listener listener)voidstart()Starts the component.voidstop()Stops the component.java.lang.StringtoString()voidunmanage(java.lang.Object object)-
Methods inherited from class org.eclipse.jetty.websocket.api.extensions.ExtensionFactory
getAvailableExtensions, getExtension, getExtensionNames, isAvailable, iterator, register, unregister
-
-
-
-
Constructor Detail
-
WebSocketExtensionFactory
public WebSocketExtensionFactory(WebSocketContainerScope container)
-
WebSocketExtensionFactory
public WebSocketExtensionFactory(WebSocketContainerScope container, InflaterPool inflaterPool, DeflaterPool deflaterPool)
-
-
Method Detail
-
unmanage
public void unmanage(java.lang.Object object)
-
getInflaterPool
public InflaterPool getInflaterPool()
-
getDeflaterPool
public DeflaterPool getDeflaterPool()
-
newInstance
public Extension newInstance(ExtensionConfig config)
- Specified by:
newInstancein classExtensionFactory
-
start
public void start() throws java.lang.ExceptionDescription copied from interface:LifeCycleStarts the component.- Specified by:
startin interfaceLifeCycle- Throws:
java.lang.Exception- If the component fails to start- See Also:
LifeCycle.isStarted(),LifeCycle.stop(),LifeCycle.isFailed()
-
stop
public void stop() throws java.lang.ExceptionDescription copied from interface:LifeCycleStops the component. The component may wait for current activities to complete normally, but it can be interrupted.- Specified by:
stopin interfaceLifeCycle- Throws:
java.lang.Exception- If the component fails to stop- See Also:
LifeCycle.isStopped(),LifeCycle.start(),LifeCycle.isFailed()
-
isRunning
public boolean isRunning()
-
isStarted
public boolean isStarted()
- Specified by:
isStartedin interfaceLifeCycle- Returns:
- true if the component has been started.
- See Also:
LifeCycle.start(),LifeCycle.isStarting()
-
isStarting
public boolean isStarting()
- Specified by:
isStartingin interfaceLifeCycle- Returns:
- true if the component is starting.
- See Also:
LifeCycle.isStarted()
-
isStopping
public boolean isStopping()
- Specified by:
isStoppingin interfaceLifeCycle- Returns:
- true if the component is stopping.
- See Also:
LifeCycle.isStopped()
-
isStopped
public boolean isStopped()
- Specified by:
isStoppedin interfaceLifeCycle- Returns:
- true if the component has been stopped.
- See Also:
LifeCycle.stop(),LifeCycle.isStopping()
-
isFailed
public boolean isFailed()
-
addLifeCycleListener
public void addLifeCycleListener(LifeCycle.Listener listener)
- Specified by:
addLifeCycleListenerin interfaceLifeCycle
-
removeLifeCycleListener
public void removeLifeCycleListener(LifeCycle.Listener listener)
- Specified by:
removeLifeCycleListenerin interfaceLifeCycle
-
dumpSelf
public java.lang.String dumpSelf()
Description copied from interface:DumpableThe description of this/self found in the dump. Allows for alternative representation of Object other then .toString() where the long form output of toString() is represented in a cleaner way within the dump infrastructure.
-
dump
public void dump(java.lang.Appendable out, java.lang.String indent) throws java.io.IOExceptionDescription copied from interface:DumpableDump this object (and children) into an Appendable using the provided indent after any new lines. The indent should not be applied to the first object dumped.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-