Class JsrEvents<T extends Annotation,C extends EndpointConfig>
- java.lang.Object
-
- org.eclipse.jetty.websocket.jsr356.annotations.JsrEvents<T,C>
-
- Type Parameters:
T- the annotation typeC- the endpoint config type
public class JsrEvents<T extends Annotation,C extends EndpointConfig> extends Object
The live event methods found for a specific Annotated Endpoint
-
-
Constructor Summary
Constructors Constructor Description JsrEvents(AnnotatedEndpointMetadata<T,C> metadata)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcallBinary(RemoteEndpoint.Async endpoint, Object websocket, ByteBuffer buf, boolean fin)voidcallBinaryStream(RemoteEndpoint.Async endpoint, Object websocket, InputStream stream)voidcallClose(Object websocket, CloseReason close)voidcallError(Object websocket, Throwable cause)voidcallOpen(Object websocket, EndpointConfig config)voidcallPong(RemoteEndpoint.Async endpoint, Object websocket, ByteBuffer pong)voidcallText(RemoteEndpoint.Async endpoint, Object websocket, String text, boolean fin)voidcallTextStream(RemoteEndpoint.Async endpoint, Object websocket, Reader reader)AnnotatedEndpointMetadata<T,C>getMetadata()booleanhasBinary()booleanhasBinaryStream()booleanhasText()booleanhasTextStream()voidinit(JsrSession session)booleanisBinaryPartialSupported()booleanisTextPartialSupported()voidsetPathParameters(Map<String,String> pathParameters)
-
-
-
Constructor Detail
-
JsrEvents
public JsrEvents(AnnotatedEndpointMetadata<T,C> metadata)
-
-
Method Detail
-
callBinary
public void callBinary(RemoteEndpoint.Async endpoint, Object websocket, ByteBuffer buf, boolean fin) throws DecodeException
- Throws:
DecodeException
-
callBinaryStream
public void callBinaryStream(RemoteEndpoint.Async endpoint, Object websocket, InputStream stream) throws DecodeException, IOException
- Throws:
DecodeExceptionIOException
-
callClose
public void callClose(Object websocket, CloseReason close)
-
callOpen
public void callOpen(Object websocket, EndpointConfig config)
-
callPong
public void callPong(RemoteEndpoint.Async endpoint, Object websocket, ByteBuffer pong)
-
callText
public void callText(RemoteEndpoint.Async endpoint, Object websocket, String text, boolean fin) throws DecodeException
- Throws:
DecodeException
-
callTextStream
public void callTextStream(RemoteEndpoint.Async endpoint, Object websocket, Reader reader) throws DecodeException, IOException
- Throws:
DecodeExceptionIOException
-
getMetadata
public AnnotatedEndpointMetadata<T,C> getMetadata()
-
hasBinary
public boolean hasBinary()
-
hasBinaryStream
public boolean hasBinaryStream()
-
hasText
public boolean hasText()
-
hasTextStream
public boolean hasTextStream()
-
init
public void init(JsrSession session)
-
isBinaryPartialSupported
public boolean isBinaryPartialSupported()
-
isTextPartialSupported
public boolean isTextPartialSupported()
-
-