Class RequestInterceptor
- java.lang.Object
-
- com.microsoft.azure.batch.BatchClientBehavior
-
- com.microsoft.azure.batch.interceptor.RequestInterceptor
-
- Direct Known Subclasses:
ClientRequestIdInterceptor
,DetailLevelInterceptor
,PageSizeInterceptor
,ServerTimeoutInterceptor
public class RequestInterceptor extends BatchClientBehavior
ABatchClientBehavior
that modifies requests to the Batch service.
-
-
Constructor Summary
Constructors Constructor Description RequestInterceptor()
Initializes a new instance of RequestInterceptor.RequestInterceptor(BatchRequestInterceptHandler handler)
Initializes a new instance of RequestInterceptor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BatchRequestInterceptHandler
handler()
Gets the handler which will intercept requests to the Batch service.RequestInterceptor
withHandler(BatchRequestInterceptHandler handler)
Sets the handler which will intercept requests to the Batch service.
-
-
-
Constructor Detail
-
RequestInterceptor
public RequestInterceptor()
Initializes a new instance of RequestInterceptor.
-
RequestInterceptor
public RequestInterceptor(BatchRequestInterceptHandler handler)
Initializes a new instance of RequestInterceptor.- Parameters:
handler
- The handler which will intercept requests to the Batch service.
-
-
Method Detail
-
handler
public BatchRequestInterceptHandler handler()
Gets the handler which will intercept requests to the Batch service.- Returns:
- The handler which will intercept requests to the Batch service.
-
withHandler
public RequestInterceptor withHandler(BatchRequestInterceptHandler handler)
Sets the handler which will intercept requests to the Batch service.- Parameters:
handler
- The handler which will intercept requests to the Batch service.- Returns:
- The current instance.
-
-