public class PojoMethodMapping
extends java.lang.Object
ServerEndpoint
, an instance of this class
creates and caches the method handler, method information and parameter
information for the onXXX calls.Constructor and Description |
---|
PojoMethodMapping(java.lang.Class<?> clazzPojo,
java.util.List<java.lang.Class<? extends Decoder>> decoderClazzes,
java.lang.String wsPath) |
Modifier and Type | Method and Description |
---|---|
java.util.Set<MessageHandler> |
getMessageHandlers(java.lang.Object pojo,
java.util.Map<java.lang.String,java.lang.String> pathParameters,
Session session,
EndpointConfig config) |
java.lang.reflect.Method |
getOnClose() |
java.lang.Object[] |
getOnCloseArgs(java.util.Map<java.lang.String,java.lang.String> pathParameters,
Session session,
CloseReason closeReason) |
java.lang.reflect.Method |
getOnError() |
java.lang.Object[] |
getOnErrorArgs(java.util.Map<java.lang.String,java.lang.String> pathParameters,
Session session,
java.lang.Throwable throwable) |
java.lang.reflect.Method |
getOnOpen() |
java.lang.Object[] |
getOnOpenArgs(java.util.Map<java.lang.String,java.lang.String> pathParameters,
Session session,
EndpointConfig config) |
java.lang.String |
getWsPath() |
boolean |
hasMessageHandlers() |
public PojoMethodMapping(java.lang.Class<?> clazzPojo, java.util.List<java.lang.Class<? extends Decoder>> decoderClazzes, java.lang.String wsPath) throws DeploymentException
DeploymentException
public java.lang.String getWsPath()
public java.lang.reflect.Method getOnOpen()
public java.lang.Object[] getOnOpenArgs(java.util.Map<java.lang.String,java.lang.String> pathParameters, Session session, EndpointConfig config) throws DecodeException
DecodeException
public java.lang.reflect.Method getOnClose()
public java.lang.Object[] getOnCloseArgs(java.util.Map<java.lang.String,java.lang.String> pathParameters, Session session, CloseReason closeReason) throws DecodeException
DecodeException
public java.lang.reflect.Method getOnError()
public java.lang.Object[] getOnErrorArgs(java.util.Map<java.lang.String,java.lang.String> pathParameters, Session session, java.lang.Throwable throwable) throws DecodeException
DecodeException
public boolean hasMessageHandlers()
public java.util.Set<MessageHandler> getMessageHandlers(java.lang.Object pojo, java.util.Map<java.lang.String,java.lang.String> pathParameters, Session session, EndpointConfig config)
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.