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.LifeCycle
LifeCycle.Listener
-
-
Constructor Summary
Constructors Constructor Description WebSocketExtensionFactory(WebSocketContainerScope container)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addLifeCycleListener(LifeCycle.Listener listener)
java.lang.String
dump()
void
dump(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.String
dumpSelf()
The description of this/self found in the dump.java.util.Map<java.lang.String,java.lang.Class<? extends Extension>>
getAvailableExtensions()
java.lang.Class<? extends Extension>
getExtension(java.lang.String name)
java.util.Set<java.lang.String>
getExtensionNames()
boolean
isAvailable(java.lang.String name)
boolean
isFailed()
boolean
isRunning()
boolean
isStarted()
boolean
isStarting()
boolean
isStopped()
boolean
isStopping()
java.util.Iterator<java.lang.Class<? extends Extension>>
iterator()
Extension
newInstance(ExtensionConfig config)
void
register(java.lang.String name, java.lang.Class<? extends Extension> extension)
void
removeLifeCycleListener(LifeCycle.Listener listener)
void
start()
Starts the component.void
stop()
Stops the component.java.lang.String
toString()
void
unregister(java.lang.String name)
-
-
-
Constructor Detail
-
WebSocketExtensionFactory
public WebSocketExtensionFactory(WebSocketContainerScope container)
-
-
Method Detail
-
getAvailableExtensions
public java.util.Map<java.lang.String,java.lang.Class<? extends Extension>> getAvailableExtensions()
- Overrides:
getAvailableExtensions
in classExtensionFactory
-
getExtension
public java.lang.Class<? extends Extension> getExtension(java.lang.String name)
- Overrides:
getExtension
in classExtensionFactory
-
getExtensionNames
public java.util.Set<java.lang.String> getExtensionNames()
- Overrides:
getExtensionNames
in classExtensionFactory
-
isAvailable
public boolean isAvailable(java.lang.String name)
- Overrides:
isAvailable
in classExtensionFactory
-
newInstance
public Extension newInstance(ExtensionConfig config)
- Specified by:
newInstance
in classExtensionFactory
-
register
public void register(java.lang.String name, java.lang.Class<? extends Extension> extension)
- Overrides:
register
in classExtensionFactory
-
unregister
public void unregister(java.lang.String name)
- Overrides:
unregister
in classExtensionFactory
-
iterator
public java.util.Iterator<java.lang.Class<? extends Extension>> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<java.lang.Class<? extends Extension>>
- Overrides:
iterator
in classExtensionFactory
-
start
public void start() throws java.lang.Exception
Description copied from interface:LifeCycle
Starts the component.- Specified by:
start
in 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.Exception
Description copied from interface:LifeCycle
Stops the component. The component may wait for current activities to complete normally, but it can be interrupted.- Specified by:
stop
in 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:
isStarted
in interfaceLifeCycle
- Returns:
- true if the component has been started.
- See Also:
LifeCycle.start()
,LifeCycle.isStarting()
-
isStarting
public boolean isStarting()
- Specified by:
isStarting
in interfaceLifeCycle
- Returns:
- true if the component is starting.
- See Also:
LifeCycle.isStarted()
-
isStopping
public boolean isStopping()
- Specified by:
isStopping
in interfaceLifeCycle
- Returns:
- true if the component is stopping.
- See Also:
LifeCycle.isStopped()
-
isStopped
public boolean isStopped()
- Specified by:
isStopped
in 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:
addLifeCycleListener
in interfaceLifeCycle
-
removeLifeCycleListener
public void removeLifeCycleListener(LifeCycle.Listener listener)
- Specified by:
removeLifeCycleListener
in interfaceLifeCycle
-
dumpSelf
public java.lang.String dumpSelf()
Description copied from interface:Dumpable
The 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.IOException
Description copied from interface:Dumpable
Dump 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:
toString
in classjava.lang.Object
-
-