|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.wisc.trace.uch.TAListener
public class TAListener
Implements the methods of ITAListener. Also maintain information about targets and its sessions.
| Method Summary | |
|---|---|
void |
abortSession(String sessionId)
The TA has terminated a session, when the TA will have no knowledge about that session. |
void |
addUriServiceContexts(String uri,
List<Map<String,IProfile>> contexts)
Called when the TA wants to add one or more contexts to a URI service. |
String |
getDocument(String uri,
String postData,
Map<String,IProfile> context)
Get specified document through HTTP GET or POST. |
String |
getIpAddress()
Get the IP address of the UCH. |
IUCHStore |
getLocalUCHStore()
Gets an Object of LocalUCHStore. |
List<List<Map<String,List<String>>>> |
getResources(String sessionId,
List<Map<String,List<String>>> resProps)
Get resource from the UCH specified by Resource Properties. |
List<Map<String,IProfile>> |
getTargetContexts(String targetId)
Get list of contexts for specified target. |
Map<String,String> |
getUCHProps()
Get a Map of UCH Properties. |
boolean |
isImplemented(String functionName)
Returns whether specified function is implemented or not. |
void |
removeUriServiceContexts(String uri,
List<Map<String,IProfile>> contexts)
Called when the TA wants to remove one or more contexts to a URI service. |
void |
sessionForwardRequest(String sessionId,
Map<String,String> forwardInfo)
The TA requests the client to open a session with different socket. |
boolean |
setValidation(ITA ta,
boolean activate)
Check whether to do validation for the TA or not. |
String |
startUriService(ITA ta,
String scheme,
int port,
boolean portIsFlexible,
String basePath,
boolean 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. |
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(). |
void |
updateDynRes(List<String> sessionIds,
List<String> eltIds)
Signals that the set of resources pertaining to a specific socket element has been changed. |
void |
updateValues(List<String> sessionIds,
List<String> paths,
List<String> operations,
List<String> values,
List<Boolean> hasDynRes)
The TA signals a change in the target’s status, affecting one or more sessions. |
List<Map<String,String>> |
uploadResources(List<Map<String,List<String>>> props,
List<String> resourceUri)
Upload Resources on Resource Server. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public String getDocument(String uri,
String postData,
Map<String,IProfile> context)
throws UCHException
ITAListener
getDocument in interface ITAListeneruri - a String value of URIpostData - a String value of postDatacontext - a Map<String, IProfile> of user and controller profile
UCHException - an Object of UCHExceptionITAListener.getDocument(String, String, Map)public String getIpAddress()
ITAListener
getIpAddress in interface ITAListenerITAListener.getIpAddress()public IUCHStore getLocalUCHStore()
ITAListener
getLocalUCHStore in interface ITAListenerITAListener.getLocalUCHStore()
public List<List<Map<String,List<String>>>> getResources(String sessionId,
List<Map<String,List<String>>> resProps)
ITAListener
getResources in interface ITAListenersessionId - a String value of sessionIdresProps - a Map<String, List<String>> of Resource Properties
ITAListener.getResources(String, List)public Map<String,String> getUCHProps()
ITAListener
getUCHProps in interface ITAListenerITAListener.getUCHProps()public boolean isImplemented(String functionName)
ITAListener
isImplemented in interface ITAListenerfunctionName - a String value of function Name
ITAListener.isImplemented(java.lang.String)
public String startUriService(ITA ta,
String scheme,
int port,
boolean portIsFlexible,
String basePath,
boolean basePathIsFlexible,
List<Map<String,IProfile>> contexts)
throws UCHException
ITAListener
startUriService in interface ITAListenerta - an ITA objectscheme - a String value of schemaport - a port noportIsFlexible - a boolean valuebasePath - a String value of basePathbasePathIsFlexible - a boolean valuecontexts - a List<Map<String, IProfile>> of user and controller profile map
UCHException - an Object of UCHExceptionITAListener.startUriService(ITA, String, int, boolean, String, boolean, List)
public void stopUriService(String uri)
throws UCHException
ITAListener
stopUriService in interface ITAListeneruri - a String value of URI
UCHException - an Object of UCHExceptionITAListener.stopUriService(String)
public List<Map<String,String>> uploadResources(List<Map<String,List<String>>> props,
List<String> resourceUri)
ITAListener
uploadResources in interface ITAListenerprops - an Object of List<Map<String, List<String>>>resourceUri - an Object of List<String>
ITAListener.uploadResources(List, List)public void abortSession(String sessionId)
ITAListener
abortSession in interface ITAListenersessionId - a String value of sessionIdITAListener.abortSession(java.lang.String)
public void sessionForwardRequest(String sessionId,
Map<String,String> forwardInfo)
ITAListener
sessionForwardRequest in interface ITAListenersessionId - a String value of sessionIdforwardInfo - Map<String, String>ITAListener.sessionForwardRequest(java.lang.String, java.util.Map)
public boolean setValidation(ITA ta,
boolean activate)
ITAListener
setValidation in interface ITAListenerta - an Object of ITAactivate - a boolean value of activate
ITAListener.setValidation(ITA, boolean)
public void updateDynRes(List<String> sessionIds,
List<String> eltIds)
ITAListener
updateDynRes in interface ITAListenersessionIds - a List<String> of sessionIdseltIds - a List<String> of elementIdsITAListener.updateDynRes(List, List)
public void updateValues(List<String> sessionIds,
List<String> paths,
List<String> operations,
List<String> values,
List<Boolean> hasDynRes)
ITAListener
updateValues in interface ITAListenersessionIds - a List<String> of sessionIdspaths - a List<String> of pathsoperations - a List<String> of operationsvalues - a List<String> of valueshasDynRes - a List<Boolean> of hasDynResITAListener.updateValues(java.util.List, java.util.List, java.util.List, java.util.List, java.util.List)
public void addUriServiceContexts(String uri,
List<Map<String,IProfile>> contexts)
throws UCHException
ITAListener
addUriServiceContexts in interface ITAListeneruri - a String value of URIcontexts - a List<Map<String, IProfile>> of user and controller profile map
UCHException - an Object of UCHExceptionITAListener.addUriServiceContexts(String, List)
public void removeUriServiceContexts(String uri,
List<Map<String,IProfile>> contexts)
throws UCHException
ITAListener
removeUriServiceContexts in interface ITAListeneruri - a String value of URIcontexts - a List<Map<String, IProfile>> of user and controller profile map
UCHException - an Object of UCHExceptionITAListener.removeUriServiceContexts(String, List)public List<Map<String,IProfile>> getTargetContexts(String targetId)
ITAListener
getTargetContexts in interface ITAListenertargetId - a String value of targetId
ITAListener.getTargetContexts(String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||