public class PortPolicyFactory extends Object implements RequestPolicyFactory
| Constructor and Description |
|---|
PortPolicyFactory(int port)
Create a new PortPolicyFactory object.
|
PortPolicyFactory(int port,
boolean overwrite)
Create a new PortPolicyFactory object.
|
| Modifier and Type | Method and Description |
|---|---|
RequestPolicy |
create(RequestPolicy next,
RequestPolicyOptions options)
Creates RequestPolicy.
|
public PortPolicyFactory(int port)
port - The port to set on every HttpRequest.public PortPolicyFactory(int port,
boolean overwrite)
port - The port to set.overwrite - Whether or not to overwrite a HttpRequest's port if it already has one.public RequestPolicy 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.
*/