public class PojoMethodMapping extends 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(Class<?> clazzPojo,
List<Class<? extends Decoder>> decoderClazzes,
String wsPath) |
Modifier and Type | Method and Description |
---|---|
Set<MessageHandler> |
getMessageHandlers(Object pojo,
Map<String,String> pathParameters,
Session session,
EndpointConfig config) |
Method |
getOnClose() |
Object[] |
getOnCloseArgs(Map<String,String> pathParameters,
Session session,
CloseReason closeReason) |
Method |
getOnError() |
Object[] |
getOnErrorArgs(Map<String,String> pathParameters,
Session session,
Throwable throwable) |
Method |
getOnOpen() |
Object[] |
getOnOpenArgs(Map<String,String> pathParameters,
Session session,
EndpointConfig config) |
String |
getWsPath() |
boolean |
hasMessageHandlers() |
public PojoMethodMapping(Class<?> clazzPojo, List<Class<? extends Decoder>> decoderClazzes, String wsPath) throws DeploymentException
DeploymentException
public String getWsPath()
public Method getOnOpen()
public Object[] getOnOpenArgs(Map<String,String> pathParameters, Session session, EndpointConfig config) throws DecodeException
DecodeException
public Method getOnClose()
public Object[] getOnCloseArgs(Map<String,String> pathParameters, Session session, CloseReason closeReason) throws DecodeException
DecodeException
public Method getOnError()
public Object[] getOnErrorArgs(Map<String,String> pathParameters, Session session, Throwable throwable) throws DecodeException
DecodeException
public boolean hasMessageHandlers()
public Set<MessageHandler> getMessageHandlers(Object pojo, Map<String,String> pathParameters, Session session, EndpointConfig config)
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.