Package org.apache.juneau.rest
Class RestSharedConstants
java.lang.Object
org.apache.juneau.rest.RestSharedConstants
Static constants shared across Juneau REST modules (for example
juneau-rest-server,
juneau-rest-client, and juneau-rest-mock) so wire names and other cross-tier
strings stay aligned.
Add more public static final fields here when server and client (or other REST modules)
must agree on the same literal values.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringParser session options request header (JSON5 object format).static final StringSerializer session options request header (JSON5 object format).static final StringParser session options query parameter (UON-encoded map format).static final StringSerializer session options query parameter (UON-encoded map format). -
Method Summary
-
Field Details
-
HEADER_JuneauSerializerOptions
Serializer session options request header (JSON5 object format).HTTP header names are case-insensitive; use this spelling in OpenAPI and examples. Example value:
{escapeSolidus:true,maxIndent:4} - See Also:
-
HEADER_JuneauParserOptions
Parser session options request header (JSON5 object format).HTTP header names are case-insensitive; use this spelling in OpenAPI and examples. Example value:
{trimStrings:true} - See Also:
-
QUERY_juneauSerializerOptions
Serializer session options query parameter (UON-encoded map format). Example:(maxIndent=4,sortMaps=true) - See Also:
-
QUERY_juneauParserOptions
Parser session options query parameter (UON-encoded map format). Example:(trimStrings=true) - See Also:
-