PathParam (WebSocket 2.2 API Documentation - Apache Tomcat 11.0.23)
Description: declaration: package: jakarta.websocket.server, annotation type: PathParam

# Annotation Interface PathParam

@Retention(RUNTIME) @Target(PARAMETER) public @interface PathParam
Used to annotate method parameters on POJO endpoints that the `ServerEndpoint` has been defined with a `ServerEndpoint.value()` that uses a URI template.

- ## Required Element Summary

  Required Elements
  Modifier and Type
  Required Element
  Description
  `String`
  `value`
  The name of the path parameter from the URI template.

- ## Element Details

  - ### value

    String value
    The name of the path parameter from the URI template.
    Returns:
      The path parameter name