webTarget - JAX-RS Client Properties (webTarget)

Configuration properties to be applied to JAX-RS WebTargets that match the specified URI when they are constructed. A property specified programmatically after object construction takes precedence over a property declared in xml.

NameTypeDefaultDescription
idstringA unique configuration ID.
uristringThe URI specified in application code. If the URI matches the URI in code, the properties are applied to that WebTarget. If the URI ends with *, then its properties are applied to any WebTarget having a URI that begins with the specified URI. If more than one URI ending with * matches a WebTarget URI, all are applied in sorted order of URI.
connectionTimeoutlongThe amount of time to wait in milliseconds for a connection to be made. This is equivalent to the com.ibm.ws.jaxrs.client.timeout programmatic property.
receiveTimeoutlongThe amount of time to wait in milliseconds for a response after a connection is established. This is equivalent to the com.ibm.ws.jaxrs.client.receive.timeout programmatic property.
proxyHoststringThe host name of the proxy server. This is equivalent to the com.ibm.ws.jaxrs.client.proxy.host programmatic property.
proxyPortintThe port of the proxy server. This is equivalent to the com.ibm.ws.jaxrs.client.proxy.port programmatic property .
proxyTypestringThe port of the proxy server. This is equivalent to the com.ibm.ws.jaxrs.client.proxy.port programmatic property .
disableCNCheckbooleanDisables the Common Name Check. Valid values are true or false. This is equivalent to the com.ibm.ws.jaxrs.client.disableCNCheck programmatic property .
authnTokenstringThe type of authorization token to use. This must be ltpa, saml, or oauth. This is equivalent to specifying one of the com.ibm.ws.jaxrs.client.ltpa.handler, com.ibm.ws.jaxrs.client.saml.sendToken, or com.ibm.ws.jaxrs.client.oauth.sendToken programmatic properties.
sslConfigstringAn id of an ssl reference found in server.xml. That ssl configuration specified by that reference is used.
otherstringAny other variables can also be specified and will be passed to the WebTarget intact.