Package org.jgrapes.webconsole.base
Class WebConsole
java.lang.Object
org.jgrapes.core.internal.ComponentVertex
org.jgrapes.core.Component
org.jgrapes.webconsole.base.WebConsole
- All Implemented Interfaces:
Iterable<ComponentType>
,Channel
,ComponentType
,Eligible
,Manager
Provides the web console component related part of the console.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
The MBeans view of a console.static class
static interface
An MBean interface for getting information about all consoles.Nested classes/interfaces inherited from interface org.jgrapes.core.Channel
Channel.Default
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onConsoleConfigured
(ConsoleConfigured event, ConsoleConnection channel) Handle network configured condition.void
onJsonInput
(JsonInput event, ConsoleConnection channel) Handle JSON input.void
onRenderConlet
(RenderConletRequest event, ConsoleConnection channel) Fallback handler that sends aDeleteConlet
event if theRenderConletRequest
event has not been handled successfully.void
Discard all console connections on stop.Provides access to the weblet’s channel.Methods inherited from class org.jgrapes.core.Component
channel, component, defaultCriterion, isEligibleFor, setName
Methods inherited from class org.jgrapes.core.internal.ComponentVertex
activeEventPipeline, addHandler, attach, channelReplacements, children, componentPath, componentVertex, detach, fire, initComponentsHandlers, iterator, name, newEventPipeline, newEventPipeline, parent, registerAsGenerator, root, toString, unregisterAsGenerator
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
webletChannel
Provides access to the weblet’s channel.- Returns:
- the channel
-
onJsonInput
@Handler public void onJsonInput(JsonInput event, ConsoleConnection channel) throws InterruptedException, IOException Handle JSON input.- Parameters:
event
- the eventchannel
- the channel- Throws:
InterruptedException
- the interrupted exceptionIOException
- Signals that an I/O exception has occurred.
-
onConsoleConfigured
@Handler public void onConsoleConfigured(ConsoleConfigured event, ConsoleConnection channel) throws InterruptedException, IOException Handle network configured condition.- Parameters:
event
- the eventchannel
- the channel- Throws:
InterruptedException
- the interrupted exceptionIOException
- Signals that an I/O exception has occurred.
-
onRenderConlet
@Handler(priority=-1000000) public void onRenderConlet(RenderConletRequest event, ConsoleConnection channel) Fallback handler that sends aDeleteConlet
event if theRenderConletRequest
event has not been handled successfully.- Parameters:
event
- the eventchannel
- the channel
-
onStop
Discard all console connections on stop.- Parameters:
event
- the event
-