Class EndpointClassHolder
java.lang.Object
org.apache.tomcat.websocket.EndpointClassHolder
- All Implemented Interfaces:
ClientEndpointHolder
Holds a reference to a WebSocket endpoint class for later instantiation.
-
Constructor Summary
ConstructorsConstructorDescriptionEndpointClassHolder(Class<? extends Endpoint> clazz) Creates a new holder for the specified endpoint class. -
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
-
EndpointClassHolder
-
-
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
-