class ITAListener

ITAListener receives calls from TA.

Inheritance:


Public Methods

[more]virtual list<map<string, IProfile*>*> * getTargetContexts(string targetId)
[more]virtual list<map<string, IProfile*>*> * getContexts()
[more]virtual void sessionForwardRequest(string sessionId, map<string, string>* forwardInfo)
The TA requests the client to open a session with different socket.
[more]virtual void abortSession(string sessionId)
The TA has terminated a session, when the TA will have no knowledge about that session.
[more]virtual void updateValues(list<string>* sessionIds, list<string>* paths, list<string>* operations, list<string>* values, list<bool>* hasDynRes)
The TA signals a change in the target’s status, affecting one or more sessions.
[more]virtual void updateDynRes(list<string>* sessionIds, list<string>* eltIds)
Signals that the set of resources pertaining to a specific socket element has been changed.
[more]virtual IUCHStore* getLocalUCHStore()
Gets an Object of LocalUCHStore.
[more]virtual bool setValidation(ITA* ta, bool activate)
Check whether to do validation for the TA or not.
[more]virtual string startUriService(ITA* ta, string scheme, int port, bool portIsFlexible, string basePath, bool basePathIsFlexible, list<map<string, IProfile*>*>* contexts)
The ITA requests the UCH to start servicing a URI which is made up of a given scheme, port, and base path.
[more]virtual void addUriServiceContexts(string uri, list<map<string, IProfile*>*>*contexts)
[more]virtual void removeUriServiceContexts(string uri, list<map<string, IProfile*>*>* contexts)
[more]virtual void stopUriService(string uri)
The ITA requests the UCH to stop servicing a URI that was requested to be serviced in a previous call to startUriService().
[more]virtual string getIpAddress()
Get the IP address of the UCH.
[more]virtual string getDocument(string uri, string postData, map<string, IProfile*>* context)
Get specified document through HTTP GET or POST.
[more]virtual map<string, string> * getUCHProps()
Get a Map of UCH Properties.
[more]virtual bool isImplemented(string functionName)
Returns whether specified function is implemented or not.
[more]virtual list<list<map<string, list<string>*>*>*> * getResources(string sessionId, list<map<string, list<string>*>*>* resPropsList)
Get resource from the UCH specified by Resource Properties.
[more]virtual list<map<string, string>*> * uploadResources(list<map<string, list<string>*>*>* props, list<string>* resourceUri)
Upload Resources on Resource Server.


Documentation

ITAListener receives calls from TA. UCH implements this interface. The Listener receives calls from TA and forwards them to the UIPM and thereby to the client.

ovirtual list<map<string, IProfile*>*> * getTargetContexts(string targetId)

Parameters:
targetId - a String value of targetId
Returns:
a List<Map<String, IProfile>> of user and controller profile map

ovirtual list<map<string, IProfile*>*> * getContexts()

Parameters:
targetId - a String value of targetId
Returns:
a List<Map<String, IProfile>> of user and controller profile map

ovirtual void sessionForwardRequest(string sessionId, map<string, string>* forwardInfo)
The TA requests the client to open a session with different socket.

Parameters:
sessionId - a String value of sessionId
forwardInfo - Map<String, String>

ovirtual void abortSession(string sessionId)
The TA has terminated a session, when the TA will have no knowledge about that session.

Parameters:
sessionId - a String value of sessionId

ovirtual void updateValues(list<string>* sessionIds, list<string>* paths, list<string>* operations, list<string>* values, list<bool>* hasDynRes)
The TA signals a change in the target’s status, affecting one or more sessions.

Parameters:
sessionIds - a List<String> of sessionIds
paths - a List<String> of paths
operations - a List<String> of operations
values - a List<String> of values
hasDynRes - a List<Boolean> of hasDynRes

ovirtual void updateDynRes(list<string>* sessionIds, list<string>* eltIds)
Signals that the set of resources pertaining to a specific socket element has been changed.

Parameters:
sessionIds - a List<String> of sessionIds
eltIds - a List<String> of elementIds

ovirtual IUCHStore* getLocalUCHStore()
Gets an Object of LocalUCHStore.

Returns:
an Object of IUCHStore

ovirtual bool setValidation(ITA* ta, bool activate)
Check whether to do validation for the TA or not.

Parameters:
ta - an Object of ITA
activate - a boolean value of activate
Returns:
boolean whether to do validation for the TA or not

ovirtual string startUriService(ITA* ta, string scheme, int port, bool portIsFlexible, string basePath, bool basePathIsFlexible, list<map<string, IProfile*>*>* contexts)
The ITA requests the UCH to start servicing a URI which is made up of a given scheme, port, and base path. If successful, the UCH will forward all messages that have this URI as its base, to controllerRequest().

Parameters:
ta - an ITA object
scheme - a String value of schema
port - a port no
portIsFlexible - a boolean value
basePath - a String value of basePath
basePathIsFlexible - a boolean value
contexts - a List<Map<String, IProfile>>
Returns:
a String value of URI @throws UCHException

ovirtual void addUriServiceContexts(string uri, list<map<string, IProfile*>*>*contexts)

Parameters:
uri - a String value of URI
contexts - a List<Map<String, IProfile>> of user and controller profile map @throws UCHException an Object of org.myurc.uch.UCHException

ovirtual void removeUriServiceContexts(string uri, list<map<string, IProfile*>*>* contexts)

Parameters:
uri - a String value of URI
contexts - a List<Map<String, IProfile>> of user and controller profile map @throws UCHException an Object of org.myurc.uch.UCHException

ovirtual void stopUriService(string uri)
The ITA requests the UCH to stop servicing a URI that was requested to be serviced in a previous call to startUriService().

Parameters:
uri - a String value of URI @throws UCHException

ovirtual string getIpAddress()
Get the IP address of the UCH.

Returns:
return a string value

ovirtual string getDocument(string uri, string postData, map<string, IProfile*>* context)
Get specified document through HTTP GET or POST.

Parameters:
uri - a String value of URI
postData - a String value of postData
context - a Map<string, IProfile>
Returns:
a String value of requested Document @throws UCHException

ovirtual map<string, string> * getUCHProps()
Get a Map of UCH Properties.

Returns:
an object of Map<String, String> or UCH Properties

ovirtual bool isImplemented(string functionName)
Returns whether specified function is implemented or not.

Parameters:
functionName - a String value of function Name
Returns:
whether the function is implemented or not

ovirtual list<list<map<string, list<string>*>*>*> * getResources(string sessionId, list<map<string, list<string>*>*>* resPropsList)
Get resource from the UCH specified by Resource Properties.

Parameters:
sessionId - a String value of sessionId
resProps - a list<map<string, list<string>*>*> of Resource Properties
Returns:
a list<list<map<string,list<string>*>*>*> value

ovirtual list<map<string, string>*> * uploadResources(list<map<string, list<string>*>*>* props, list<string>* resourceUri)
Upload Resources on Resource Server.

Parameters:
props - an Object of List<Map<String, List<String>>>
resourceUri - an Object of List<String>
Returns:
an Object of Map<String, String>


Direct child classes:
TAListener
Author:
Parikshit Thakur & Team, Trace R&D Center
Version:
Revision: 1.0

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.