public class HostPolicyFactory extends Object implements RequestPolicyFactory
| Constructor and Description |
|---|
HostPolicyFactory(String host)
Create a new HostPolicyFactory object.
|
| Modifier and Type | Method and Description |
|---|---|
com.microsoft.rest.v2.policy.HostPolicyFactory.HostPolicy |
create(RequestPolicy next,
RequestPolicyOptions options)
Creates RequestPolicy.
|
public HostPolicyFactory(String host)
host - The host to set on every HttpRequest.public com.microsoft.rest.v2.policy.HostPolicyFactory.HostPolicy 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.
*/