Package org.apache.tomcat.websocket.pojo
Class PojoMethodMapping
java.lang.Object
org.apache.tomcat.websocket.pojo.PojoMethodMapping
For a POJO class annotated with 
ServerEndpoint, an instance of this class creates
 and caches the method handler, method information and parameter information for the onXXX calls.- 
Constructor SummaryConstructorsConstructorDescriptionPojoMethodMapping(Class<?> clazzPojo, List<Class<? extends Decoder>> decoderClazzes, String wsPath, InstanceManager instanceManager) Create a method mapping for the given POJO
- 
Method SummaryModifier and TypeMethodDescriptiongetMessageHandlers(Object pojo, Map<String, String> pathParameters, Session session, EndpointConfig config) Object[]getOnCloseArgs(Map<String, String> pathParameters, Session session, CloseReason closeReason) Object[]Object[]getOnOpenArgs(Map<String, String> pathParameters, Session session, EndpointConfig config) boolean
- 
Constructor Details- 
PojoMethodMappingpublic PojoMethodMapping(Class<?> clazzPojo, List<Class<? extends Decoder>> decoderClazzes, String wsPath, InstanceManager instanceManager) throws DeploymentException Create a method mapping for the given POJO- Parameters:
- clazzPojo- POJO implementation class
- decoderClazzes- Set of potential decoder classes
- wsPath- Path at which the endpoint will be deployed
- instanceManager- Instance manager to use to create Decoder instances
- Throws:
- DeploymentException- If the mapping cannot be completed
 
 
- 
- 
Method Details- 
getWsPath
- 
getOnOpen
- 
getOnOpenArgspublic Object[] getOnOpenArgs(Map<String, String> pathParameters, Session session, EndpointConfig config) throws DecodeException- Throws:
- DecodeException
 
- 
getOnClose
- 
getOnCloseArgspublic Object[] getOnCloseArgs(Map<String, String> pathParameters, Session session, CloseReason closeReason) throws DecodeException- Throws:
- DecodeException
 
- 
getOnError
- 
getOnErrorArgspublic Object[] getOnErrorArgs(Map<String, String> pathParameters, Session session, Throwable throwable) throws DecodeException- Throws:
- DecodeException
 
- 
hasMessageHandlerspublic boolean hasMessageHandlers()
- 
getMessageHandlerspublic Set<MessageHandler> getMessageHandlers(Object pojo, Map<String, String> pathParameters, Session session, EndpointConfig config) 
 
-