Allow to access uri of QueryStringDecoder. Related to [#2896]

Motivation:

Sometimes it is useful to be able to access the uri that was used to initialize the QueryStringDecoder.

Modifications:

Add method which allows to retrieve the uri.

Result:

Allow to retrieve the uri that was used to create the QueryStringDecoder.
This commit is contained in:
Norman Maurer 2014-09-19 20:06:22 +02:00
parent c9a1356e20
commit ae8493a567

View File

@ -165,6 +165,13 @@ public class QueryStringDecoder {
this.maxParams = maxParams; this.maxParams = maxParams;
} }
/**
* Returns the uri used to initialize this {@link QueryStringDecoder}.
*/
public String uri() {
return uri;
}
/** /**
* Returns the decoded path string of the URI. * Returns the decoded path string of the URI.
*/ */