Class PojoHolder
java.lang.Object
org.apache.tomcat.websocket.PojoHolder
- All Implemented Interfaces:
ClientEndpointHolder
Holds a POJO instance for use as a WebSocket client endpoint.
-
Constructor Summary
ConstructorsConstructorDescriptionPojoHolder(Object pojo, ClientEndpointConfig clientEndpointConfig) Constructs a new PojoHolder. -
Method Summary
Modifier and TypeMethodDescriptionReturns the fully qualified class name of the endpoint.getInstance(InstanceManager instanceManager) Returns an instance of the endpoint using the given instance manager.
-
Constructor Details
-
PojoHolder
Constructs a new PojoHolder.- Parameters:
pojo- the POJO instance annotated with@ClientEndpointclientEndpointConfig- the client endpoint configuration
-
-
Method Details
-
getClassName
Description copied from interface:ClientEndpointHolderReturns the fully qualified class name of the endpoint.- Specified by:
getClassNamein interfaceClientEndpointHolder- Returns:
- the class name
-
getInstance
Description copied from interface:ClientEndpointHolderReturns an instance of the endpoint using the given instance manager.- Specified by:
getInstancein interfaceClientEndpointHolder- Parameters:
instanceManager- the instance manager to create the endpoint- Returns:
- the endpoint instance
- Throws:
DeploymentException- if the endpoint cannot be instantiated
-