Skip to content

PathTemplateHandler description points to deprecated functionality. #21

@liamsc

Description

@liamsc

Undertow's 2.0 docs state:

Path Template
Similar to the path handler, however the path template handler allows you to use URI template expressions in the path, for example /rest/{name}. The value of the relevant path template items are stored as an attachment on the exchange, under the io.undertow.server.handlers.PathTemplateHandler#PATH_TEMPLATE_MATCH attachment key.

ref: http://undertow.io/undertow-docs/undertow-docs-2.0.0/index.html#built-in-handlers

However when I navigate to the PathTemplateHandler I see that the PATH_TEMPLATE_MATCH is deprecated.

 /** @deprecated */
    @Deprecated
    public static final AttachmentKey<PathTemplateHandler.PathTemplateMatch> PATH_TEMPLATE_MATCH = AttachmentKey.create(PathTemplateHandler.PathTemplateMatch.class);

The docs should reflect non-deprecated functionality here.

For reference I am using the following versions of undertow in Maven:

 <properties>
        <undertow.version>2.0.15.Final</undertow.version>
  </properties>

    <dependencies>
        <dependency>
            <groupId>io.undertow</groupId>
            <artifactId>undertow-core</artifactId>
            <version>${undertow.version}</version>
        </dependency>
        <dependency>
            <groupId>io.undertow</groupId>
            <artifactId>undertow-servlet</artifactId>
            <version>${undertow.version}</version>
        </dependency>
        <dependency>
            <groupId>io.undertow</groupId>
            <artifactId>undertow-websockets-jsr</artifactId>
            <version>${undertow.version}</version>
        </dependency>
    </dependencies>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions