RequestInterceptor Class
- java.
lang. Object - BatchClientBehavior
- com.
microsoft. azure. batch. interceptor. RequestInterceptor
- com.
public class RequestInterceptor extends BatchClientBehavior
A BatchClientBehavior that modifies requests to the Batch service.
Constructor Summary
Constructor | Description |
---|---|
RequestInterceptor() |
Initializes a new instance of RequestInterceptor. |
RequestInterceptor(BatchRequestInterceptHandler handler) |
Initializes a new instance of RequestInterceptor. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Batch |
handler()
Gets the handler which will intercept requests to the Batch service. |
Request |
withHandler(BatchRequestInterceptHandler handler)
Sets the handler which will intercept requests to the Batch service. |
Constructor Details
RequestInterceptor
public RequestInterceptor()
Initializes a new instance of RequestInterceptor.
RequestInterceptor
public RequestInterceptor(BatchRequestInterceptHandler handler)
Initializes a new instance of RequestInterceptor.
Parameters:
Method Details
handler
public BatchRequestInterceptHandler handler()
Gets the handler which will intercept requests to the Batch service.
Returns:
withHandler
public RequestInterceptor withHandler(BatchRequestInterceptHandler handler)
Sets the handler which will intercept requests to the Batch service.
Parameters:
Returns:
Applies to
Azure SDK for Java