Package org.cometd.documentation.oort
Class OortServiceDocs.NameEditService
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.cometd.oort.OortService<Boolean,OortService.ServerContext>
org.cometd.documentation.oort.OortServiceDocs.NameEditService
- All Implemented Interfaces:
EventListener
,org.cometd.bayeux.Bayeux.BayeuxListener
,org.cometd.bayeux.server.ConfigurableServerChannel.ServerChannelListener
,org.cometd.bayeux.server.ServerChannel.MessageListener
,org.eclipse.jetty.util.component.LifeCycle
- Enclosing class:
- OortServiceDocs
@Service("name_edit")
public class OortServiceDocs.NameEditService
extends OortService<Boolean,OortService.ServerContext>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.cometd.oort.OortService
OortService.Request, OortService.Result<U extends Object>, OortService.ServerContext
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener
Nested classes/interfaces inherited from interface org.cometd.bayeux.server.ConfigurableServerChannel.ServerChannelListener
org.cometd.bayeux.server.ConfigurableServerChannel.ServerChannelListener.Weak
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
org.eclipse.jetty.util.component.LifeCycle.Listener
-
Field Summary
FieldsFields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
destroy()
void
editName(org.cometd.bayeux.server.ServerSession remote, org.cometd.bayeux.server.ServerMessage message)
protected OortService.Result<Boolean>
onForward(OortService.Request request)
protected void
onForwardFailed(Object failure, OortService.ServerContext context)
protected void
onForwardSucceeded(Boolean result, OortService.ServerContext context)
Methods inherited from class org.cometd.oort.OortService
doStart, doStop, forward, getLocalSession, getName, getOort, getTimeout, onForwardMessage, onMessage, onResultMessage, setTimeout, toString
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stop
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.cometd.bayeux.server.ServerChannel.MessageListener
onMessage
-
Field Details
-
NAME
- See Also:
- Constant Field Values
-
-
Constructor Details
-
NameEditService
-
-
Method Details
-
construct
- Throws:
Exception
-
destroy
- Throws:
Exception
-
editName
@Listener("/service/edit") public void editName(org.cometd.bayeux.server.ServerSession remote, org.cometd.bayeux.server.ServerMessage message) -
onForward
- Specified by:
onForward
in classOortService<Boolean,OortService.ServerContext>
-
onForwardSucceeded
- Specified by:
onForwardSucceeded
in classOortService<Boolean,OortService.ServerContext>
-
onForwardFailed
- Specified by:
onForwardFailed
in classOortService<Boolean,OortService.ServerContext>
-