|
Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.1.2) Part Number E27170-02 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.xml.ws.WebServiceFeature
weblogic.jws.jaxws.WLSWebServiceFeature
weblogic.jws.jaxws.client.ClientIdentityFeature
public class ClientIdentityFeature
Client-side feature to track the identity for a client (client is a location in the code that creates client instances (Port/Stub instances) for a particular business purpose. If you decide to use durable client instances (client instances that are re-initialized if they don't complete before the current VM is restarted), you should take care to call the 'dispose' method on this class when you are done using any of the durable client instances you may have created using this ClientIdentityFeature.
Best practice is to initialize a ClientIdentityFeature as a VM singleton, and to dispose it when the 'container' for the code exits (for example in a PreDestroy annotated method).
Nested Class Summary | |
---|---|
static interface |
ClientIdentityFeature.ParentIdCalculator
Used to calculate the ID value for a parent of a client instance. |
static class |
ClientIdentityFeature.Type
|
Field Summary |
---|
Fields inherited from class javax.xml.ws.WebServiceFeature |
---|
enabled |
Constructor Summary | |
---|---|
ClientIdentityFeature()
Create a ClientIdentityFeature with a null raw client ID. |
|
ClientIdentityFeature(String rawClientId)
Create a ClientIdentityFeature with the given raw client ID. |
Method Summary | |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
|
String |
calculateParentId()
Calculates the ID of the parent container for this client. |
void |
dispose()
Dispose of any resources held by the client identified by this feature, thus allowing the ID for this client to be reused later in the lifetime of the current VM. |
boolean |
equals(Object other)
|
String |
getClientId()
The unique ID for this client. |
String |
getID()
Get the ID for this feature type |
String |
getParentId()
Get the portion of the clientId for this feature that was prepended to the rawClientId (if any). |
String |
getRawClientId()
The unique ID for this client. |
int |
hashCode()
|
boolean |
isGeneratedRawClientId()
Returns an indication of whether the raw client ID for this feature was system generated (true) or not (false). |
void |
removePropertyChangeListener(PropertyChangeListener listener)
|
void |
setClientId(String clientId)
Allows a client to set its own unique client ID. |
void |
setClientId(String clientId,
boolean prependContext)
Allows a client to set its own unique client ID. |
void |
setGeneratedRawClientId(String rawClientId)
System use only. |
static void |
setParentIdCalculator(ClientIdentityFeature.ParentIdCalculator calc)
|
String |
toString()
|
Methods inherited from class weblogic.jws.jaxws.WLSWebServiceFeature |
---|
featuresAreEqual, getClientIdComponent, isKnownTubelineImpactingFeature, isTubelineImpact, setTubelineImpact |
Methods inherited from class javax.xml.ws.WebServiceFeature |
---|
isEnabled |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ClientIdentityFeature()
public ClientIdentityFeature(String rawClientId)
Method Detail |
---|
public static void setParentIdCalculator(ClientIdentityFeature.ParentIdCalculator calc)
public String getID()
getID
in class WebServiceFeature
public void setClientId(String clientId)
clientId
- The ID to use. Must not be null.ClientIdentityFeature.setClientId(String, boolean)
public void setClientId(String clientId, boolean prependContext)
clientId
- The ID to use. This will be the value returned by
getRawClientId (and getClientId() too if prependContext is false).
Must not be null.prependContext
- If true, the actual client ID used for this feature
will be <context>:clientId where <context> is the
context in which this client is being initialized. On-server, this
context is <server name>:<app name>[_<app version>]:<component name>
Off-server this context is empty. If prependContext is false, the
clientID param is used directly as the full client ID of the featurepublic void setGeneratedRawClientId(String rawClientId)
public boolean isGeneratedRawClientId()
public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public void dispose()
public String calculateParentId()
public String getClientId()
public String getRawClientId()
public String getParentId()
public int hashCode()
hashCode
in class Object
public boolean equals(Object other)
equals
in class Object
public String toString()
toString
in class Object
|
Copyright 1996, 2013, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.1.2) Part Number E27170-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |