Builder<OutboundTarget>public static final class OutboundTarget.Builder extends java.lang.Object implements Builder<OutboundTarget>
OutboundTarget.| Modifier and Type | Method | Description |
|---|---|---|
OutboundTarget.Builder |
addHost(java.lang.String host) |
Add supported host for this target.
|
OutboundTarget.Builder |
addPath(java.lang.String path) |
Add supported paths for this target.
|
OutboundTarget.Builder |
addTransport(java.lang.String transport) |
Add supported transports for this target.
|
OutboundTarget |
build() |
Build a
OutboundTarget instance from this builder. |
OutboundTarget.Builder |
config(Config config) |
Set config for this target.
|
<U,V extends U> |
customObject(java.lang.Class<U> objectClass,
V anObject) |
Set or replace a custom object.
|
public OutboundTarget.Builder config(Config config)
config - Config object to configure the providerpublic OutboundTarget.Builder addHost(java.lang.String host)
Valid examples:
host - name or IP of host, with possible "*" asterisk character to match any sequencepublic OutboundTarget.Builder addTransport(java.lang.String transport)
Valid examples:
transport - that is supportedpublic OutboundTarget.Builder addPath(java.lang.String path)
path - supported path (regular expression supported)public <U,V extends U> OutboundTarget.Builder customObject(java.lang.Class<U> objectClass, V anObject)
U - Class of the custom object to be stored. The object instance is available ONLY under this classV - Implementation of the classobjectClass - Class of object as expected by security provideranObject - Custom object to be used by outbound security providerpublic OutboundTarget build()
OutboundTarget instance from this builder.build in interface Builder<OutboundTarget>Copyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.