Class RequestMarshaller
- java.lang.Object
-
- software.amazon.awssdk.imds.internal.RequestMarshaller
-
public class RequestMarshaller extends Object
Class to parse the parameters to a SdkHttpRequest, make the call to the endpoint and send the HttpExecuteResponse to the DefaultEc2Metadata class for further processing.
-
-
Field Summary
Fields Modifier and Type Field Description static StringACCEPTstatic StringCONNECTIONstatic StringEC2_METADATA_TOKEN_TTL_HEADERstatic StringTOKEN_HEADERstatic StringTOKEN_RESOURCE_PATHstatic StringUSER_AGENT
-
Constructor Summary
Constructors Constructor Description RequestMarshaller(URI basePath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SdkHttpFullRequestcreateDataRequest(String path, String token, Duration tokenTtl)SdkHttpFullRequestcreateTokenRequest(Duration tokenTtl)
-
-
-
Field Detail
-
TOKEN_RESOURCE_PATH
public static final String TOKEN_RESOURCE_PATH
- See Also:
- Constant Field Values
-
TOKEN_HEADER
public static final String TOKEN_HEADER
- See Also:
- Constant Field Values
-
EC2_METADATA_TOKEN_TTL_HEADER
public static final String EC2_METADATA_TOKEN_TTL_HEADER
- See Also:
- Constant Field Values
-
USER_AGENT
public static final String USER_AGENT
- See Also:
- Constant Field Values
-
ACCEPT
public static final String ACCEPT
- See Also:
- Constant Field Values
-
CONNECTION
public static final String CONNECTION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RequestMarshaller
public RequestMarshaller(URI basePath)
-
-
Method Detail
-
createTokenRequest
public SdkHttpFullRequest createTokenRequest(Duration tokenTtl)
-
createDataRequest
public SdkHttpFullRequest createDataRequest(String path, String token, Duration tokenTtl)
-
-