public abstract class AbstractRequestPolicy extends Object implements RequestPolicy
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractRequestPolicy(RequestPolicy nextPolicy,
RequestPolicyOptions options)
Initialize the fields for this AbstractRequestPolicy.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
log(HttpPipelineLogLevel logLevel,
String message,
Object... formattedMessageArguments)
Attempt to log the provided message to the provided logger.
|
protected RequestPolicy |
nextPolicy()
Get the next RequestPolicy in the policy chain.
|
protected RequestPolicyOptions |
options()
Get the options that were provided to this AbstractRequestPolicy.
|
boolean |
shouldLog(HttpPipelineLogLevel logLevel)
Get whether or not a log with the provided log level should be logged.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsendAsyncprotected AbstractRequestPolicy(RequestPolicy nextPolicy, RequestPolicyOptions options)
nextPolicy - The next RequestPolicy in the policy chain.options - The options for this RequestPolicy.protected RequestPolicy nextPolicy()
protected RequestPolicyOptions options()
public boolean shouldLog(HttpPipelineLogLevel logLevel)
logLevel - The log level of the log that will be logged.protected void log(HttpPipelineLogLevel logLevel, String message, Object... formattedMessageArguments)
logLevel - The log level of this log.message - The message of this log.formattedMessageArguments - The formatted arguments to apply to the message./**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/