public class LogViewerConlet extends org.jgrapes.webconsole.base.freemarker.FreeMarkerConlet<org.jgrapes.webconsole.base.AbstractConlet.ConletBaseModel>
A conlet for displaying the OSGi log.
org.jgrapes.webconsole.base.freemarker.FreeMarkerConlet.RenderConletFromTemplate
Constructor and Description |
---|
LogViewerConlet(org.jgrapes.core.Channel componentChannel,
org.osgi.framework.BundleContext context)
Creates a new component with its channel set to the given channel.
|
Modifier and Type | Method and Description |
---|---|
protected org.jgrapes.webconsole.base.AbstractConlet.ConletTrackingInfo |
doAddConlet(org.jgrapes.webconsole.base.events.AddConletRequest event,
org.jgrapes.webconsole.base.ConsoleSession channel) |
protected void |
doNotifyConletModel(org.jgrapes.webconsole.base.events.NotifyConletModel event,
org.jgrapes.webconsole.base.ConsoleSession channel,
org.jgrapes.webconsole.base.AbstractConlet.ConletBaseModel conletState) |
protected Set<org.jgrapes.webconsole.base.Conlet.RenderMode> |
doRenderConlet(org.jgrapes.webconsole.base.events.RenderConletRequest event,
org.jgrapes.webconsole.base.ConsoleSession channel,
String conletId,
org.jgrapes.webconsole.base.AbstractConlet.ConletBaseModel conletModel) |
protected boolean |
doSetLocale(org.jgrapes.webconsole.base.events.SetLocale event,
org.jgrapes.webconsole.base.ConsoleSession channel,
String conletId) |
protected String |
generateConletId() |
void |
onConsoleReady(org.jgrapes.webconsole.base.events.ConsoleReady event,
org.jgrapes.webconsole.base.ConsoleSession channel)
On
ConsoleReady , fire the AddConletType . |
void |
onStop(org.jgrapes.core.events.Stop event) |
protected Optional<org.jgrapes.webconsole.base.AbstractConlet.ConletBaseModel> |
stateFromSession(org.jgrapes.http.Session session,
String conletId) |
doGetResource, fmConletModel, fmModel, fmSessionModel, fmTypeModel, freemarkerConfig
afterOnClosed, conletIds, conletIdsByConsoleSession, doConletDeleted, l10nBundles, localizations, onAddConletRequest, onClosed, onConletDeleted, onConletResourceRequest, onNotifyConletModel, onRenderConletRequest, onSetLocale, putInSession, putInSession, removeState, resourceBundle, setPeriodicRefresh, statesFromSession, supportedLocales, trackConlet, trackedSessions, type
channel, component, defaultCriterion, isEligibleFor, setName
activeEventPipeline, addHandler, attach, children, componentPath, componentVertex, detach, fire, initComponentsHandlers, iterator, name, newEventPipeline, newEventPipeline, newSyncEventPipeline, parent, registerAsGenerator, root, toString, unregisterAsGenerator
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public LogViewerConlet(org.jgrapes.core.Channel componentChannel, org.osgi.framework.BundleContext context)
Creates a new component with its channel set to the given channel.
componentChannel
- the channel that the component’s handlers listen
on by default and that Manager.fire(Event, Channel...)
sends the event to@Handler(channels=org.jgrapes.core.Channel.class) public void onStop(org.jgrapes.core.events.Stop event)
@Handler public void onConsoleReady(org.jgrapes.webconsole.base.events.ConsoleReady event, org.jgrapes.webconsole.base.ConsoleSession channel) throws freemarker.template.TemplateNotFoundException, freemarker.template.MalformedTemplateNameException, freemarker.core.ParseException, IOException
On ConsoleReady
, fire the AddConletType
.
event
- the eventchannel
- the channelfreemarker.template.TemplateNotFoundException
- the template not found exceptionfreemarker.template.MalformedTemplateNameException
- the malformed template name
exceptionfreemarker.core.ParseException
- the parse exceptionIOException
- Signals that an I/O exception has occurred.protected String generateConletId()
generateConletId
in class org.jgrapes.webconsole.base.AbstractConlet<org.jgrapes.webconsole.base.AbstractConlet.ConletBaseModel>
protected Optional<org.jgrapes.webconsole.base.AbstractConlet.ConletBaseModel> stateFromSession(org.jgrapes.http.Session session, String conletId)
stateFromSession
in class org.jgrapes.webconsole.base.AbstractConlet<org.jgrapes.webconsole.base.AbstractConlet.ConletBaseModel>
protected org.jgrapes.webconsole.base.AbstractConlet.ConletTrackingInfo doAddConlet(org.jgrapes.webconsole.base.events.AddConletRequest event, org.jgrapes.webconsole.base.ConsoleSession channel) throws Exception
doAddConlet
in class org.jgrapes.webconsole.base.AbstractConlet<org.jgrapes.webconsole.base.AbstractConlet.ConletBaseModel>
Exception
protected Set<org.jgrapes.webconsole.base.Conlet.RenderMode> doRenderConlet(org.jgrapes.webconsole.base.events.RenderConletRequest event, org.jgrapes.webconsole.base.ConsoleSession channel, String conletId, org.jgrapes.webconsole.base.AbstractConlet.ConletBaseModel conletModel) throws Exception
doRenderConlet
in class org.jgrapes.webconsole.base.AbstractConlet<org.jgrapes.webconsole.base.AbstractConlet.ConletBaseModel>
Exception
protected void doNotifyConletModel(org.jgrapes.webconsole.base.events.NotifyConletModel event, org.jgrapes.webconsole.base.ConsoleSession channel, org.jgrapes.webconsole.base.AbstractConlet.ConletBaseModel conletState) throws Exception
doNotifyConletModel
in class org.jgrapes.webconsole.base.AbstractConlet<org.jgrapes.webconsole.base.AbstractConlet.ConletBaseModel>
Exception
protected boolean doSetLocale(org.jgrapes.webconsole.base.events.SetLocale event, org.jgrapes.webconsole.base.ConsoleSession channel, String conletId) throws Exception
doSetLocale
in class org.jgrapes.webconsole.base.AbstractConlet<org.jgrapes.webconsole.base.AbstractConlet.ConletBaseModel>
Exception