Class EndpointHolder
java.lang.Object
org.apache.tomcat.websocket.EndpointHolder
- All Implemented Interfaces:
ClientEndpointHolder
Holds a reference to a WebSocket endpoint instance.
-
Constructor Summary
ConstructorsConstructorDescriptionEndpointHolder(Endpoint endpoint) Creates a new holder for the specified endpoint instance. -
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
-
EndpointHolder
Creates a new holder for the specified endpoint instance.- Parameters:
endpoint- The endpoint instance to hold
-
-
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
-