tree: bfe4f600d038df6192923896b1d9fee2eeb35c5b [path history] [tgz]
  1. src/
  2. pom.xml
  3. README.MD
examples/http-trace/README.MD

Jersey HTTP PATCH

Jersey HTTP PATCH Support Example

This example demonstrates how to implement a support for HTTP TRACE method via HttpMethod annotation in Jersey.

Using HttpMethod annotation you can implement whatever name of an HTTP method you want.

Contents

The mapping of the URI path space is presented in the following table:

URI pathResource classHTTP methods
/tracing/annotatedTracingResourceTRACE
/tracing/programmatic---TRACE

Sample Response

You can trace your annotated resource using this command:

curl -v -X TRACE http://localhost:9998/base/tracing/annotated

or programmatic resource:

curl -v -X TRACE http://localhost:9998/base/tracing/programmatic

Running the Example

Run the example as follows:

mvn clean compile exec:java

This deploys the example using Grizzly container.