Class PojoClassHolder
java.lang.Object
org.apache.tomcat.websocket.PojoClassHolder
- All Implemented Interfaces:
ClientEndpointHolder
Holds a POJO class for use as a WebSocket client endpoint.
-
Constructor Summary
ConstructorsConstructorDescriptionPojoClassHolder(Class<?> pojoClazz, ClientEndpointConfig clientEndpointConfig) Constructs a new PojoClassHolder. -
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
-
PojoClassHolder
Constructs a new PojoClassHolder.- Parameters:
pojoClazz- the POJO class 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
-