Top Description Fields Constructors Methods
org.apache.tomcat.websocket.pojo

public Class PojoPathParam

extends Object
Class Inheritance
Imports
jakarta.websocket.DeploymentException, org.apache.tomcat.util.res.StringManager, org.apache.tomcat.websocket.Util

Stores the parameter type and name for a parameter that needs to be passed to an onXxx method of jakarta.websocket.Endpoint. The name is only present for parameters annotated with jakarta.websocket.server.PathParam. For the jakarta.websocket.Session and java.lang.Throwable parameters, getName() will always return null.

Field Summary

Modifier and TypeField and Description
private final String
private static final StringManager
private final Class<?>

Constructor Summary

AccessConstructor and Description
public
PojoPathParam(Class<?> type, String name)

Method Summary

Modifier and TypeMethod and Description
public String
public Class<?>
private static void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

nameback to summary
private final String name
smback to summary
private static final StringManager sm
typeback to summary
private final Class<?> type

Constructor Detail

PojoPathParamback to summary
public PojoPathParam(Class<?> type, String name) throws DeploymentException

Method Detail

getNameback to summary
public String getName()
getTypeback to summary
public Class<?> getType()
validateTypeback to summary
private static void validateType(Class<?> type) throws DeploymentException