RequestInterceptor Class

  • java.lang.Object

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
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 Details

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 Details

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.

Applies to