public class ProtocolPolicyFactory extends Object implements RequestPolicyFactory
| Constructor and Description |
|---|
ProtocolPolicyFactory(String protocol)
Create a new ProtocolPolicyFactory object.
|
ProtocolPolicyFactory(String protocol,
boolean overwrite)
Create a new ProtocolPolicyFactory object.
|
| Modifier and Type | Method and Description |
|---|---|
com.microsoft.rest.v2.policy.ProtocolPolicyFactory.ProtocolPolicy |
create(RequestPolicy next,
RequestPolicyOptions options)
Creates RequestPolicy.
|
public ProtocolPolicyFactory(String protocol)
protocol - The protocol to set on every HttpRequest.public ProtocolPolicyFactory(String protocol, boolean overwrite)
protocol - The protocol to set.overwrite - Whether or not to overwrite a HttpRequest's protocol if it already has one.public com.microsoft.rest.v2.policy.ProtocolPolicyFactory.ProtocolPolicy create(RequestPolicy next, RequestPolicyOptions options)
RequestPolicyFactorycreate in interface RequestPolicyFactorynext - the next RequestPolicy in the request-response pipeline.options - The optional arguments that can be passed to a RequestPolicy./**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/