|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.activemath.webapp.tutor.cgWSClient.ClientUtil
public class ClientUtil
Facilitate the client call to the web service via Axis2. All the methods in this class just make the request in an OMElement
| Field Summary | |
|---|---|
static String |
cgNameSpace
|
static String |
cgNSprefix
|
static String |
ERROR_MSG_ELNM
|
| Constructor Summary | |
|---|---|
ClientUtil()
|
|
| Method Summary | |
|---|---|
static org.apache.axiom.om.OMElement |
getEchoOMElement()
Make the request for calling the Echo service method |
static org.apache.axiom.om.OMElement |
getGenerateCourseWithLearnerKnowledgeMapRequest(String task,
List contentIds,
Map learnerKnowledge)
Make the request for calling the generateCourseWithLearnerKnowledgeMap. |
static org.apache.axiom.om.OMElement |
getGenerateCourseWithLearnerModelURLRequest(String task,
String learnerModelURL,
String userId,
List contentIds)
Make the request for calling the generateCourseWithLearnerModelURL service method |
static org.apache.axiom.om.OMElement |
getMetadataOntologieRequestOMElement()
Make the request for calling the metadataOntology. |
static org.apache.axiom.om.OMElement |
getPingOMElement()
Make the request for calling the ping service method |
static org.apache.axiom.om.OMElement |
getRegisterRepositoryRequest(String name,
String bindingURL,
String ontologieURL,
String mappingURL,
String testContentId)
Make the request for calling the registerRepository. |
static org.apache.axiom.om.OMElement |
getTaskDefinitionRequestOMElement()
Make the request for calling the getTaskDefinition service method |
static org.apache.axiom.om.OMElement |
getUnRegisterRepositoryRequest(String bindingURL)
Make the request for calling the registerRepository. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String cgNameSpace
public static final String cgNSprefix
public static final String ERROR_MSG_ELNM
| Constructor Detail |
|---|
public ClientUtil()
| Method Detail |
|---|
public static org.apache.axiom.om.OMElement getEchoOMElement()
public static org.apache.axiom.om.OMElement getPingOMElement()
public static org.apache.axiom.om.OMElement getTaskDefinitionRequestOMElement()
public static org.apache.axiom.om.OMElement getGenerateCourseWithLearnerModelURLRequest(String task,
String learnerModelURL,
String userId,
List contentIds)
task - learnerModelURL - userId - contentIds - a list of String
public static org.apache.axiom.om.OMElement getGenerateCourseWithLearnerKnowledgeMapRequest(String task,
List contentIds,
Map learnerKnowledge)
task - contentIds - learnerKnowledge -
getGenerateCourseWithLearnerModelURLRequest, and the
learnerKnowledgeMap ist a Map. The key and value pair will be filled in the child element
"pair" of the result OMElement. The "pair" contains two child element: "contentId" and
"mastery". The "contentId" contains the key from the Map and the "mastery" contains
the value from the Map corresponding to the key.
public static org.apache.axiom.om.OMElement getRegisterRepositoryRequest(String name,
String bindingURL,
String ontologieURL,
String mappingURL,
String testContentId)
name - bindingURL - ontologieURL - mappingURL - testContentId -
public static org.apache.axiom.om.OMElement getUnRegisterRepositoryRequest(String bindingURL)
bindingURL -
public static org.apache.axiom.om.OMElement getMetadataOntologieRequestOMElement()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||