Package com.mdsol.mauth
Class MAuthRequest.Builder
java.lang.Object
com.mdsol.mauth.MAuthRequest.Builder
- Enclosing class:
MAuthRequest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Construct a MAuthRequest object If mauthHeaders are provided, get the value of the highest protocol version to construct objectstatic MAuthRequest.Builderget()withAuthenticationHeaderValue(String authenticationHeaderValue) withBodyInputStream(InputStream bodyInputStream) withHttpMethod(String httpMethod) withMauthHeaders(Map<String, String> mauthHeaders) Set Mauth headers (it may include the both sets of Mauth V1 and V2)withMessagePayload(byte[] messagePayload) withQueryParameters(String queryParameters) withResourcePath(String resourcePath) withTimeHeaderValue(String timeHeaderValue)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
get
-
withAuthenticationHeaderValue
-
withTimeHeaderValue
-
withMessagePayload
-
withHttpMethod
-
withResourcePath
-
withQueryParameters
-
withBodyInputStream
-
withMauthHeaders
Set Mauth headers (it may include the both sets of Mauth V1 and V2)- Parameters:
mauthHeaders- the request headers for Mauth, such as Mauth V1, X_MWS_AUTHENTICATION_HEADER_NAME, X_MWS_TIME_HEADER_NAME Mauth V2, MCC_AUTHENTICATION_HEADER_NAME and MCC_TIME_HEADER_NAME- Returns:
- Builder
-
build
Construct a MAuthRequest object If mauthHeaders are provided, get the value of the highest protocol version to construct object- Returns:
- a object of MAuthRequest
-