Class ServerSentEventResponder
java.lang.Object
org.wildfly.extension.mcp.server.ServerSentEventResponder
- All Implemented Interfaces:
Closeable, AutoCloseable, McpConnection, Responder
-
Nested Class Summary
Nested classes/interfaces inherited from interface McpConnection
McpConnection.Status -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()voidclose()id()booleaninitialize(InitializeRequest request) intvoidsend(jakarta.json.JsonObject message) voidbooleanstatus()voidMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Responder
sendError, sendInternalError, sendResult
-
Method Details
-
initialize
- Specified by:
initializein interfaceMcpConnection
-
setInitialized
public boolean setInitialized()- Specified by:
setInitializedin interfaceMcpConnection
-
id
- Specified by:
idin interfaceMcpConnection
-
status
- Specified by:
statusin interfaceMcpConnection
-
send
-
send
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
task
- Specified by:
taskin interfaceMcpConnection
-
cancel
public void cancel()- Specified by:
cancelin interfaceMcpConnection
-
lastEventId
public int lastEventId()- Specified by:
lastEventIdin interfaceResponder
-