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
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThe MBeans view of a console.static classstatic interfaceAn 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 TypeMethodDescriptionvoidonConsoleConfigured(ConsoleConfigured event, ConsoleConnection channel) Handle network configured condition.voidonJsonInput(JsonInput event, ConsoleConnection channel) Handle JSON input.voidonRenderConlet(RenderConletRequest event, ConsoleConnection channel) Fallback handler that sends aDeleteConletevent if theRenderConletRequestevent has not been handled successfully.voidDiscard all console connections on stop.Provides access to the weblet’s channel.Methods inherited from class org.jgrapes.core.Component
channel, component, defaultCriterion, isEligibleFor, setNameMethods 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, unregisterAsGeneratorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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 aDeleteConletevent if theRenderConletRequestevent has not been handled successfully.- Parameters:
event- the eventchannel- the channel
-
onStop
Discard all console connections on stop.- Parameters:
event- the event
-