public class ClientIdentityFeature
extends javax.xml.ws.WebServiceFeature
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).
Modifier and Type | Class and Description |
---|---|
static interface |
ClientIdentityFeature.ParentIdCalculator
Deprecated.
|
static class |
ClientIdentityFeature.Type
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
private static ClientIdentityFeature.ParentIdCalculator |
_calculator
Deprecated.
|
private java.lang.String |
_clientId
Deprecated.
|
private boolean |
_disposed
Deprecated.
|
private boolean |
_generatedId
Deprecated.
|
private java.util.List<java.beans.PropertyChangeListener> |
_listeners
Deprecated.
|
private java.lang.String |
_parentId
Deprecated.
|
private java.lang.String |
_rawClientId
Deprecated.
|
private ClientIdentityFeature.Type |
_type
Deprecated.
|
private static java.lang.String |
ID
Deprecated.
|
private static java.util.logging.Logger |
LOGGER
Deprecated.
|
Constructor and Description |
---|
ClientIdentityFeature()
Deprecated.
Create a ClientIdentityFeature with a null raw client ID.
|
ClientIdentityFeature(java.lang.String rawClientId)
Deprecated.
Create a ClientIdentityFeature with the given raw client ID.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Deprecated.
|
java.lang.String |
calculateParentId()
Deprecated.
Calculates the ID of the parent container for this client.
|
void |
dispose()
Deprecated.
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(java.lang.Object other)
Deprecated.
|
private void |
firePropertyChangeEvent(java.lang.String propName,
java.lang.Object oldValue,
java.lang.Object newValue)
Deprecated.
|
java.lang.String |
getClientId()
Deprecated.
The unique ID for this client.
|
java.lang.String |
getID()
Deprecated.
Get the ID for this feature type
|
java.lang.String |
getParentId()
Deprecated.
Get the portion of the clientId for this feature that was prepended to
the rawClientId (if any).
|
java.lang.String |
getRawClientId()
Deprecated.
The unique ID for this client.
|
ClientIdentityFeature.Type |
getType()
Deprecated.
Internal use only.
|
int |
hashCode()
Deprecated.
|
private void |
internalSetClientId(java.lang.String clientId,
boolean prependContext)
Deprecated.
|
boolean |
isGeneratedRawClientId()
Deprecated.
Returns an indication of whether the raw client ID for this feature was
system generated (true) or not (false).
|
private boolean |
objectsEqual(java.lang.Object oldValue,
java.lang.Object newValue)
Deprecated.
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Deprecated.
|
void |
setClientId(java.lang.String clientId)
Deprecated.
Allows a client to set its own unique client ID.
|
void |
setClientId(java.lang.String clientId,
boolean prependContext)
Deprecated.
Allows a client to set its own unique client ID.
|
void |
setGeneratedRawClientId(java.lang.String rawClientId)
Deprecated.
System use only.
|
static void |
setParentIdCalculator(ClientIdentityFeature.ParentIdCalculator calc)
Deprecated.
|
void |
setType(ClientIdentityFeature.Type type)
Deprecated.
Internal use only.
|
java.lang.String |
toString()
Deprecated.
|
private static ClientIdentityFeature.ParentIdCalculator _calculator
private static final java.util.logging.Logger LOGGER
private static java.lang.String ID
private java.lang.String _rawClientId
private java.lang.String _parentId
private java.lang.String _clientId
private ClientIdentityFeature.Type _type
private boolean _generatedId
private java.util.List<java.beans.PropertyChangeListener> _listeners
private boolean _disposed
public ClientIdentityFeature()
public ClientIdentityFeature(java.lang.String rawClientId)
public static void setParentIdCalculator(ClientIdentityFeature.ParentIdCalculator calc)
public java.lang.String getID()
getID
in class javax.xml.ws.WebServiceFeature
public void setClientId(java.lang.String clientId)
clientId
- The ID to use. Must not be null.ClientIdentityFeature.setClientId(String, boolean)
public void setClientId(java.lang.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(java.lang.String rawClientId)
public boolean isGeneratedRawClientId()
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
private void firePropertyChangeEvent(java.lang.String propName, java.lang.Object oldValue, java.lang.Object newValue)
private boolean objectsEqual(java.lang.Object oldValue, java.lang.Object newValue)
private void internalSetClientId(java.lang.String clientId, boolean prependContext)
public void dispose()
public java.lang.String calculateParentId()
public java.lang.String getClientId()
public java.lang.String getRawClientId()
public java.lang.String getParentId()
public void setType(ClientIdentityFeature.Type type)
public ClientIdentityFeature.Type getType()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object