Configuration for the URI Stripper Filter
If configured, the URI Stripper filter will try to put the removed token back into the resource
path of the Location Header. To do this, the URI Stripper will attempt to preserve the tokens
which preceded and succeeded the token that was stripped from the original URI. If the token
which preceded the stripped value is present then the stripped value is added after the preceded
value. If succeeded token is present instead then the stripped token will be inserted before the
succeeded value. If neither, preceded or succeeded, values are present then the URI stripper
will not attempt to insert the stripped value into the Location header
When the URI Stripper filter receives a request it will parse the request path using the
'/' character as the delimiter and break the path into indexed tokens. Starting from index '0'
the
URI Stripper will take the element in configured token-index and remove it from the request
path.
A specific ReST resource that contains one or more links which should have the stripped URI
path segment re-inserted.
A regex which will be matched against the URI path to determine if link modification should
be attempted.
List of HTTP methods for this resource on which links should be modified.
Valid values include:
GET, DELETE, POST, PUT, PATCH, HEAD, OPTIONS, CONNECT, TRACE, ALL
NOTE: If this attribute is present, then it must not be empty.
Specifies the JSONPath to the link to be modified.
Specifies the XPath to the link to be modified.
Specifies the Namespaces to the link to be modified.
The name that the namespace appears under the XPath.
The url of the namespace that is used in the XPath.
The URI Stripper filter will parse the links in the body of a response
into tokens using the '/' character as a delimiter, re-insert the stripped token
from the request URI, then rebuild the link. Index '0' is the first path segment.
If this attribute is not present, the filter will re-insert the stripped token after
the token that preceded it in the request URI, or if that does not exist, before the
token that succeeded it in the request URI.
The action to take when a link cannot be found at a path, or when a link is found, but
the configured path segment is out of bounds.
The HttpMethod simple type defines a string
enumeration of HTTP method verbs as outlined in
RFC2616
section 9.