amwebarsentitlementservice.provider
Class AMWebARSProvider

java.lang.Object
  |
  +--amwebarsentitlementservice.provider.AMWebARSProvider
All Implemented Interfaces:
java.io.Serializable

public class AMWebARSProvider
extends java.lang.Object
implements java.io.Serializable

Represents a real world provider.

See Also:
Serialized Form

Field Summary
static java.lang.String PROVIDER_XML_NAME
           
 
Method Summary
protected  java.lang.Object clone()
          It isn't permited to clone the object: The clone method throws the CloneNotSupportedException.
 boolean equals(java.lang.Object other_object)
          Tests whether this AMWebARSProvider is equal to another.
 java.lang.String getClientKeyAlias()
          Gets the client_key_alias.
 char[] getClientKeyPassword()
          Gets the client_key_password.
static AMWebARSProvider getInstance(java.lang.String provider_id)
          Returns the only instance of Provider with that provider_id.
 java.lang.String getName()
          Gets the name.
 java.lang.String getProviderID()
          Gets the provider_id.
 java.net.URL getProviderURL()
          Gets the provider_url.
 void setClientKeyAlias(java.lang.String client_key_alias)
          Sets the client_key_alias.
 void setClientKeyPassword(char[] client_key_password)
          Sets the client_key_password.
 void setName(java.lang.String name)
          Sets the name.
 void setProviderURL(java.net.URL provider_url)
          Sets the provider_url.
 java.lang.String toString()
          Generates the String representation of the provider
 org.jdom.Element toXML()
          Translates the provider to XML
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PROVIDER_XML_NAME

public static final java.lang.String PROVIDER_XML_NAME
Method Detail

getInstance

public static AMWebARSProvider getInstance(java.lang.String provider_id)
Returns the only instance of Provider with that provider_id. The method uses the Single Instance by ID pattern.
Parameters:
provider_id - String ID of the provider
Returns:
AMWebARSProvider single instance of Provider with that ID.

clone

protected java.lang.Object clone()
                          throws java.lang.CloneNotSupportedException
It isn't permited to clone the object: The clone method throws the CloneNotSupportedException.
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException -  

getProviderID

public java.lang.String getProviderID()
Gets the provider_id.
Returns:
Returns a String

getName

public java.lang.String getName()
Gets the name.
Returns:
Returns a String

setName

public void setName(java.lang.String name)
Sets the name.
Parameters:
name - The name to set

getProviderURL

public java.net.URL getProviderURL()
Gets the provider_url.
Returns:
Returns a URL

setProviderURL

public void setProviderURL(java.net.URL provider_url)
Sets the provider_url.
Parameters:
provider_url - The provider_url to set

getClientKeyAlias

public java.lang.String getClientKeyAlias()
Gets the client_key_alias.
Returns:
Returns a String

setClientKeyAlias

public void setClientKeyAlias(java.lang.String client_key_alias)
Sets the client_key_alias.
Parameters:
client_key_alias - The client_key_alias to set

getClientKeyPassword

public char[] getClientKeyPassword()
Gets the client_key_password.
Returns:
Returns a char[]

setClientKeyPassword

public void setClientKeyPassword(char[] client_key_password)
Sets the client_key_password.
Parameters:
client_key_password - The client_key_password to set

equals

public boolean equals(java.lang.Object other_object)
Tests whether this AMWebARSProvider is equal to another.
Overrides:
equals in class java.lang.Object
Returns:
boolean true if both obj are the same.

toString

public java.lang.String toString()
Generates the String representation of the provider
Overrides:
toString in class java.lang.Object
Returns:
String

toXML

public org.jdom.Element toXML()
Translates the provider to XML
Returns:
XML Element of the provider