org.aselect.server.attributes.requestors.api
Class APIAttributeRequestor

java.lang.Object
  extended by org.aselect.server.attributes.requestors.GenericAttributeRequestor
      extended by org.aselect.server.attributes.requestors.api.APIAttributeRequestor
All Implemented Interfaces:
IAttributeRequestor

public class APIAttributeRequestor
extends GenericAttributeRequestor
implements IAttributeRequestor

API call Attribute requestor.

Description:
Attribute requestor wich uses SOAP1.1, SOAP1.2, or RAW API calls to sends an API attributes retrieval call to a server.

Concurrency issues:
The APIAttributeRequestor should be initialized once.

Author:
Alfa & Ariss

Field Summary
 
Fields inherited from class org.aselect.server.attributes.requestors.GenericAttributeRequestor
_configManager, _samAgent, _systemLogger
 
Constructor Summary
APIAttributeRequestor()
          Create a new APIAttributeRequestor.
 
Method Summary
 void destroy()
          Destroy the APIAttributeRequestor.
 java.util.Hashtable getAttributes(java.util.Hashtable htTGTContext, java.util.Vector vAttributes)
          Retrieve all, or the specified attributes.
 void init(java.lang.Object oConfig)
          Initializes the APIAttributeRequestor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

APIAttributeRequestor

public APIAttributeRequestor()
Create a new APIAttributeRequestor.

Description:
calls super().

See Also:
GenericAttributeRequestor.GenericAttributeRequestor()
Method Detail

init

public void init(java.lang.Object oConfig)
          throws ASelectException
Initializes the APIAttributeRequestor.

Description:
Performs the following steps:

Specified by:
init in interface IAttributeRequestor
Parameters:
oConfig - The configuration section to use.
Throws:
ASelectException - If configuration fails.
See Also:
IAttributeRequestor.init(java.lang.Object)

getAttributes

public java.util.Hashtable getAttributes(java.util.Hashtable htTGTContext,
                                         java.util.Vector vAttributes)
                                  throws ASelectAttributesException
Retrieve all, or the specified attributes.

Specified by:
getAttributes in interface IAttributeRequestor
Parameters:
htTGTContext - the TGT context.
vAttributes - The attributes to gather.
Returns:
The retrieved attributes.
Throws:
ASelectAttributesException - If gathering fails.
See Also:
IAttributeRequestor.getAttributes(Hashtable, Vector)

destroy

public void destroy()
Destroy the APIAttributeRequestor.

Specified by:
destroy in interface IAttributeRequestor
See Also:
IAttributeRequestor.destroy()


Copyright © 2008 SURFnet BV. All Rights Reserved.