Class Response

java.lang.Object
com.soklet.Response

@ThreadSafe public final class Response extends Object
Represents a logical HTTP response returned by a Resource Method.

Your application's ResponseMarshaler is responsible for taking the Response returned by a Resource Method as input and creating a finalized binary representation (MarshaledResponse), suitable for sending to clients over the wire.

Instances can be acquired via these builder factory methods:

Convenience instance factories are also available via fromStatusCode(Integer) and fromRedirect(RedirectType, String).

For performance, header collections are shallow-copied and not defensively deep-copied. Treat returned collections as immutable.

Full documentation is available at https://www.soklet.com/docs/response-writing.

Author:
Mark Allen