Package si.mazi.rescu

Class Params

java.lang.Object
si.mazi.rescu.Params
All Implemented Interfaces:
Serializable

public final class Params
extends Object
implements Serializable

This class provides support for various types of HTTP params, especially in the context of RESTful web services, but may be also used to construct urls in other contexts.

Eg. this can be used to produce a URL query string:

Params.of("username", "john", "score", 2, "answer", "yes/no").asQueryString()

will produce:

username=john&score=2&answer=yes%2Fno

Author:
Matija Mazi
See Also:
Serialized Form