Package com.google.cloud.hadoop.util
Class JsonIdempotencyTokenInterceptor
- java.lang.Object
-
- com.google.cloud.hadoop.util.JsonIdempotencyTokenInterceptor
-
- All Implemented Interfaces:
com.google.api.client.http.HttpExecuteInterceptor
public class JsonIdempotencyTokenInterceptor extends Object implements com.google.api.client.http.HttpExecuteInterceptor
AHttpExecuteInterceptorthat adds an idempotency token header to GCS requests.
-
-
Field Summary
Fields Modifier and Type Field Description static StringIDEMPOTENCY_TOKEN_HEADER
-
Constructor Summary
Constructors Constructor Description JsonIdempotencyTokenInterceptor(com.google.api.client.http.HttpExecuteInterceptor chainedInterceptor)
-
-
-
Field Detail
-
IDEMPOTENCY_TOKEN_HEADER
public static final String IDEMPOTENCY_TOKEN_HEADER
- See Also:
- Constant Field Values
-
-
Method Detail
-
intercept
public void intercept(com.google.api.client.http.HttpRequest request) throws IOException- Specified by:
interceptin interfacecom.google.api.client.http.HttpExecuteInterceptor- Throws:
IOException
-
-