Package net.visma.autopay.http.signature
Class SignatureComponents.Builder
java.lang.Object
net.visma.autopay.http.signature.SignatureComponents.Builder
- Enclosing class:
- SignatureComponents
Builder class to build
SignatureComponents
objects-
Method Summary
Modifier and TypeMethodDescriptionAdds an @authority derived component - the authority (host) of the target URI for a requestbinaryWrappedHeader
(String headerName) Adds a single Binary-wrapped HTTP Field componentbinaryWrappedTrailer
(String trailerName) Adds a single Binary-wrapped HTTP Field component for a trailerbuild()
ConstructsSignatureComponents
object from this builderdictionaryMember
(String headerName, String dictionaryKey) Adds a single Dictionary Structured Field Member componentAdds a single HTTP Field (header) componentAdds multiple HTTP Field (header) componentsheaders
(Collection<String> headerNames) Adds multiple HTTP Field (header) componentsmethod()
Adds a @method derived component - the method used for a requestpath()
Adds a @path derived component - the absolute path portion of the target URI for a requestquery()
Adds a @query derived component - the query portion of the target URI for a requestqueryParam
(String paramName) Adds a @query-param derived component - a parsed query parameter of the target URI for a requestAdds an @authority derived component for Related Request - the authority (host) of the target URI for a requestrelatedRequestBinaryWrappedHeader
(String headerName) Adds a single Binary-wrapped HTTP Field component for Related requestrelatedRequestBinaryWrappedTrailer
(String trailerName) Adds a single Binary-wrapped HTTP Field component for a trailer from Related requestrelatedRequestDictionaryMember
(String headerName, String dictionaryKey) Adds a single Dictionary Structured Field Member component for Related RequestrelatedRequestHeader
(String headerName) Adds a single HTTP Field (header) component for Related Request (req, request that triggered generated response)Adds a @method derived component for Related Request - the method used for a requestAdds a @path derived component for Related Request - the absolute path portion of the target URI for a requestAdds a @query derived component for Related Request - the query portion of the target URI for a requestrelatedRequestQueryParam
(String paramName) Adds a @query-param derived component for Related Request - a parsed query parameter of the target URI for a requestAdds a @request-target derived component for Related RequestAdds a @scheme derived component for Related Request - the scheme of the target URI for a requestrelatedRequestStructuredHeader
(String headerName) Adds a single Structured Field (header) component for Related Request.relatedRequestStructuredTrailer
(String trailerName) Adds a single Structured Field component for a trailer from Related Request.Adds a @target-uri derived component for Related Request - the full target URI for a requestrelatedRequestTrailer
(String trailerName) Adds a single HTTP Field component for a trailed from Related Request (req, request that triggered generated response)relatedRequestTrailerDictionaryMember
(String trailerName, String dictionaryKey) Adds a single Dictionary Structured Field Member component for a trailer from Related RequestAdds a @request-target derived componentscheme()
Adds a @scheme derived component - the scheme of the target URI for a requeststatus()
Adds a @status derived component - the status code for a responsestructuredHeader
(String headerName) Adds a single Structured Field (header) component, re-serialized to its standard form (without redundant whitespaces)structuredTrailer
(String trailerName) Adds a single Structured Field component for a trailer, re-serialized to its standard form (without redundant whitespaces)Adds a @target-uri derived component - the full target URI for a requestAdds a single HTTP Field component for a trailertrailerDictionaryMember
(String trailerName, String dictionaryKey) Adds a single Dictionary Structured Field Member component for a trailerAdds multiple HTTP Field components for trailerstrailers
(Collection<String> trailerNames) Adds multiple HTTP Field components for trailers
-
Method Details
-
header
Adds a single HTTP Field (header) component- Parameters:
headerName
- Header name- Returns:
- This builder
- See Also:
-
- HTTP Fields
HeaderComponent
-
headers
Adds multiple HTTP Field (header) components- Parameters:
headerNames
- Header names- Returns:
- This builder
- See Also:
-
- HTTP Fields
HeaderComponent
-
headers
Adds multiple HTTP Field (header) components- Parameters:
headerNames
- Header names- Returns:
- This builder
- See Also:
-
- HTTP Fields
HeaderComponent
-
structuredHeader
Adds a single Structured Field (header) component, re-serialized to its standard form (without redundant whitespaces)- Parameters:
headerName
- Header name- Returns:
- This builder
- See Also:
-
- Strict Serialization of HTTP Structured Fields
HeaderComponent
-
dictionaryMember
Adds a single Dictionary Structured Field Member component- Parameters:
headerName
- Header namedictionaryKey
- Dictionary member key- Returns:
- This builder
- See Also:
-
- Dictionary Structured Field Members
HeaderComponent
-
binaryWrappedHeader
Adds a single Binary-wrapped HTTP Field component- Parameters:
headerName
- Header name- Returns:
- This builder
- See Also:
-
trailer
Adds a single HTTP Field component for a trailer- Parameters:
trailerName
- Trailer name- Returns:
- This builder
- See Also:
-
- Trailer Fields
HeaderComponent
-
trailers
Adds multiple HTTP Field components for trailers- Parameters:
trailerNames
- Trailer names- Returns:
- This builder
- See Also:
-
- Trailer Fields
HeaderComponent
-
trailers
Adds multiple HTTP Field components for trailers- Parameters:
trailerNames
- Trailer names- Returns:
- This builder
- See Also:
-
- Trailer Fields
HeaderComponent
-
structuredTrailer
Adds a single Structured Field component for a trailer, re-serialized to its standard form (without redundant whitespaces)- Parameters:
trailerName
- Trailer name- Returns:
- This builder
- See Also:
-
- Trailer Fields
- Strict Serialization of HTTP Structured Fields
HeaderComponent
-
trailerDictionaryMember
public SignatureComponents.Builder trailerDictionaryMember(String trailerName, String dictionaryKey) Adds a single Dictionary Structured Field Member component for a trailer- Parameters:
trailerName
- Trailer namedictionaryKey
- Dictionary member key- Returns:
- This builder
- See Also:
-
- Trailer Fields
- Dictionary Structured Field Members
HeaderComponent
-
binaryWrappedTrailer
Adds a single Binary-wrapped HTTP Field component for a trailer- Parameters:
trailerName
- Trailer name- Returns:
- This builder
- See Also:
-
method
Adds a @method derived component - the method used for a request- Returns:
- This builder
- See Also:
-
- Method
DerivedComponent
-
targetUri
Adds a @target-uri derived component - the full target URI for a request- Returns:
- This builder
- See Also:
-
- Target URI
DerivedComponent
-
authority
Adds an @authority derived component - the authority (host) of the target URI for a request- Returns:
- This builder
- See Also:
-
- Authority
DerivedComponent
-
scheme
Adds a @scheme derived component - the scheme of the target URI for a request- Returns:
- This builder
- See Also:
-
- Scheme
DerivedComponent
-
requestTarget
Adds a @request-target derived component- Returns:
- This builder
- See Also:
-
- Request Target
DerivedComponent
-
path
Adds a @path derived component - the absolute path portion of the target URI for a request- Returns:
- This builder
- See Also:
-
- Path
DerivedComponent
-
query
Adds a @query derived component - the query portion of the target URI for a request- Returns:
- This builder
- See Also:
-
- Query
DerivedComponent
-
queryParam
Adds a @query-param derived component - a parsed query parameter of the target URI for a request- Parameters:
paramName
- Query parameter name. Must be provided in decoded form, e.g. "q$p s" rather than "q%24p+r".- Returns:
- This builder
- See Also:
-
- Query Parameters
DerivedComponent
-
status
Adds a @status derived component - the status code for a response- Returns:
- This builder
- See Also:
-
- Status Code
DerivedComponent
-
build
ConstructsSignatureComponents
object from this builder- Returns:
- SignatureComponents object
-