|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--amwebarsentitlementservice.client.FixedProviderClient
Field Summary | |
protected static ClientInitStatus |
CLIENT_INIT_SUCCESS
|
protected static ClientRunStatus |
CLIENT_RUN_SUCCESS
|
protected static ClientShutdownStatus |
CLIENT_SHUTDOWN_SUCCESS
|
Constructor Summary | |
FixedProviderClient()
Constructor for FixedProviderClient. |
|
FixedProviderClient(AMWebARSProtocol protocol,
AMWebARSProvider provider)
Constructor for FixedProviderClient. |
Method Summary | |
void |
addContainer(AMWebARSContainer container)
Adds a AMWebARSContainer to the client. |
void |
addContainerDescriptor(AMWebARSContainerDescriptor descriptor)
Adds a container descriptor to the client. |
void |
clear()
Removed all AMWebARSContainerDescriptors from the client. |
void |
clearInternalState()
|
java.lang.Object |
clone()
|
boolean |
containsContainerDescriptor(AMWebARSContainerDescriptor descriptor)
Tests the client contains a certain descriptor. |
java.util.Iterator |
elements()
Returns an Enumeration of the AMWebARSContainerDescriptors, stored in the client. |
boolean |
equals(java.lang.Object other_object)
Tests whether this client is equal to another. |
AMWebARSClientMemento |
generateMemento()
Generates a new AMWebARSClientMemento which represents the clients current state. |
java.util.Map |
getAppContext()
Returns the app_context. |
int |
getPoolIndex()
|
AMWebARSProtocol |
getProtocol()
Gets the protocol. |
AMWebARSProvider |
getProvider()
Gets the provider. |
java.net.URL |
getRequestedURL()
Gets the requestedURL. |
Session |
getSession()
Gets the session. |
Subject |
getSubject()
Gets the subject. |
ClientInitStatus |
init()
Inits the client and the corresponding protocol. |
boolean |
isEmpty()
Tests whether this client contains no AMWebARSContainerDescriptors. |
java.util.Iterator |
keys()
Returns an Enumeration of the container_type_ids, stored in the client. |
AMWebARSContainerDescriptor |
removeContainerDescriptor(AMWebARSContainerDescriptor descriptor)
Removes a container descriptor from the client. |
ClientRunStatus |
run()
Runs the client. |
void |
setMemento(AMWebARSClientMemento memento)
Resets the client to the state that is saved in the given memento. |
void |
setPoolIndex(int index)
|
void |
setProtocol(AMWebARSProtocol protocol)
Sets the protocol. |
void |
setProvider(AMWebARSProvider provider)
Sets the provider. |
void |
setRequestedURL(java.net.URL requested_url)
Sets the requestedURL. |
void |
setSession(Session session)
Sets the session. |
void |
setSubject(Subject subject)
Sets the subject. |
ClientShutdownStatus |
shutdown()
Shuts the client down. |
int |
size()
Detirmined the number of AMWebARSContainerDescriptors this client contains. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static final ClientInitStatus CLIENT_INIT_SUCCESS
protected static final ClientRunStatus CLIENT_RUN_SUCCESS
protected static final ClientShutdownStatus CLIENT_SHUTDOWN_SUCCESS
Constructor Detail |
public FixedProviderClient()
public FixedProviderClient(AMWebARSProtocol protocol, AMWebARSProvider provider)
Method Detail |
public java.lang.Object clone()
clone
in interface PoolElement
clone
in class java.lang.Object
public AMWebARSClientMemento generateMemento()
AMWebARSClient
generateMemento
in interface AMWebARSClient
AMWebARSClient.generateMemento()
public void setMemento(AMWebARSClientMemento memento)
AMWebARSClient
setMemento
in interface AMWebARSClient
AMWebARSClient.setMemento(AMWebARSClientMemento)
public Subject getSubject()
AMWebARSClient
getSubject
in interface AMWebARSClient
AMWebARSClient.getSubject()
public void setSubject(Subject subject)
AMWebARSClient
setSubject
in interface AMWebARSClient
AMWebARSClient.setSubject(Subject)
public java.net.URL getRequestedURL()
AMWebARSClient
getRequestedURL
in interface AMWebARSClient
AMWebARSClient.getRequestedURL()
public void setRequestedURL(java.net.URL requested_url)
AMWebARSClient
setRequestedURL
in interface AMWebARSClient
AMWebARSClient.setRequestedURL(URL)
public AMWebARSProvider getProvider()
AMWebARSClient
getProvider
in interface AMWebARSClient
AMWebARSClient.getProvider()
public void setProvider(AMWebARSProvider provider)
AMWebARSClient
setProvider
in interface AMWebARSClient
AMWebARSClient.setProvider(AMWebARSProvider)
public AMWebARSProtocol getProtocol()
AMWebARSClient
getProtocol
in interface AMWebARSClient
AMWebARSClient.getProtocol()
public void setProtocol(AMWebARSProtocol protocol)
AMWebARSClient
setProtocol
in interface AMWebARSClient
AMWebARSClient.setProtocol(AMWebARSProtocol)
public java.util.Map getAppContext()
getAppContext
in interface AMWebARSClient
public void addContainerDescriptor(AMWebARSContainerDescriptor descriptor) throws java.lang.UnsupportedOperationException
addContainerDescriptor
in interface AMWebARSClient
descriptor
- ContainerDescriptor, which shall be retrieved by this client.java.lang.UnsupportedOperationException
- if the protocol_id or provider_id
doesn't match.NullPointerException
- if the descriptor is null.AMWebARSClient.addContainerDescriptor(AMWebARSContainerDescriptor)
public AMWebARSContainerDescriptor removeContainerDescriptor(AMWebARSContainerDescriptor descriptor) throws java.util.NoSuchElementException
removeContainerDescriptor
in interface AMWebARSClient
descriptor
- AMWebARScontainerDescriptor to be removedNullPointerException
- if the descriptor is nulljava.util.NoSuchElementException
- if the descriptor isn't contained in the clientAMWebARSClient.removeContainerDescriptor(AMWebARSContainerDescriptor)
public boolean containsContainerDescriptor(AMWebARSContainerDescriptor descriptor)
containsContainerDescriptor
in interface AMWebARSClient
descriptor
- AMWebARScontainerDescriptor to looked for.NullPointerException
- if the descriptor is nulljava.lang.UnsupportedOperationException
- if the protocol_id or provider_id
doesn't match.AMWebARSClient.containsContainerDescriptor(AMWebARSContainerDescriptor)
public int size()
size
in interface AMWebARSClient
AMWebARSClient.size()
public boolean isEmpty()
isEmpty
in interface AMWebARSClient
AMWebARSClient.isEmpty()
public void clear()
clear
in interface AMWebARSClient
AMWebARSClient.clear()
public java.util.Iterator elements()
elements
in interface AMWebARSClient
AMWebARSClient.elements()
public java.util.Iterator keys()
keys
in interface AMWebARSClient
AMWebARSClient.keys()
public void addContainer(AMWebARSContainer container)
AMWebARSClient
addContainer
in interface AMWebARSClient
amwebarsentitlementservice.client.AMWebARSClient
container
- to be addedpublic Session getSession()
AMWebARSClient
getSession
in interface AMWebARSClient
AMWebARSClient.getSession()
public void setSession(Session session)
AMWebARSClient
setSession
in interface AMWebARSClient
AMWebARSClient.setSession(Session)
public ClientInitStatus init()
AMWebARSClient
init
in interface AMWebARSClient
AMWebARSClient.init()
public ClientRunStatus run()
AMWebARSClient
run
in interface AMWebARSClient
AMWebARSClient.run()
public ClientShutdownStatus shutdown()
AMWebARSClient
shutdown
in interface AMWebARSClient
AMWebARSClient.shutdown()
public void clearInternalState()
clearInternalState
in interface PoolElement
public void setPoolIndex(int index)
setPoolIndex
in interface PoolElement
public int getPoolIndex()
getPoolIndex
in interface PoolElement
public boolean equals(java.lang.Object other_object)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |