|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.activemath.omdocjdom.mbase.OJXMLRPCmbaseServer
public class OJXMLRPCmbaseServer
This class acts as a generic wrapper of any given MBaseRef to serve
it through XML-RPC on the given port number.
Use its peer OJXmlRpcMBaseRef to communicate with it and obtain an
MBaseRef at the other side.
| Nested Class Summary | |
|---|---|
class |
OJXMLRPCmbaseServer.ReloadErrorHandler
This class is made public only for the purposes of being served by XML-RPC server... |
| Field Summary | |
|---|---|
static String |
CVS_ID
Missing description of the Field |
protected static org.apache.commons.logging.Log |
log
Missing description of the Field |
static int |
NO_SUCH_ITEM_ERRCODE
The XML-RPC error code sent when an ID requested did not exist. |
| Constructor Summary | |
|---|---|
OJXMLRPCmbaseServer(int portNumber,
MBaseRef mbaseRef)
Missing description of constructor for the OJXMLRPCmbaseServer object |
|
OJXMLRPCmbaseServer(MBaseRef mbaseRef)
|
|
OJXMLRPCmbaseServer(Subconfiguration config)
A constructor that reads its properties from the Manager properties and uses the Manager's MBaseRef. |
|
| Method Summary | |
|---|---|
boolean |
assertItsUp()
Relays to MBaseRef.assertItsUp(). |
protected void |
attemptShutdown(String candidatePassword)
Missing description of the Method |
MBaseRef |
close()
Closes the attached server listening to the socket. |
protected void |
finalize()
Missing description of the Method |
String |
getAttribute(String id,
String attributeName)
Missing description of the gets the attribute attribute of the OJXMLRPCmbaseServer object |
String |
getCanonicalID(String givenID)
Calls MBaseRef.getCanonicalID(org.activemath.abstractcontent.MBaseID). |
String |
getChildren(String id,
String xPathExpr)
|
Vector |
getCollectionsProvided()
Calls MBaseRef.getStructuredListOfConcepts(java.util.Collection). |
Hashtable |
getCommonName(String id)
Missing description of the gets the commonName attribute of the OJXMLRPCmbaseServer object |
String |
getCompleteDCMetadata(String id)
Missing description of the gets the completeDCMetadata attribute of the OJXMLRPCmbaseServer object |
Vector |
getDefinitions(String id,
Vector collections)
Missing description of the gets the definitions attribute of the OJXMLRPCmbaseServer object |
Vector |
getDependencies(String id)
This method returns a vector (an XML-RPC array) of
dependencies. |
String |
getFormalContent(String id)
Missing description of the gets the formalContent attribute of the OJXMLRPCmbaseServer object |
Vector |
getForWhat(String id)
Missing description of the gets the forWhat attribute of the OJXMLRPCmbaseServer object |
String |
getMetadata(String id)
Missing description of the gets the metadata attribute of the OJXMLRPCmbaseServer object |
String |
getMethodNames()
Returns the attached description of the methods (FIXME: currently missing). |
Hashtable |
getOMDocPath(String givenID)
Returns the path of the OMDoc from which was loaded the element pointed at by this ID. |
Vector |
getProofs(String id,
Vector collections)
Missing description of the gets the proofs attribute of the OJXMLRPCmbaseServer object |
Vector |
getRelated(String id,
Vector collections)
This method returns a vector (an XML-RPC array) of
dependencies. |
String |
getStructuredListOfConcepts(Vector collections)
Missing description of the gets the structuredListOfConcepts attribute of the OJXMLRPCmbaseServer object |
String |
getTextualContent(String id)
Missing description of the gets the textualContent attribute of the OJXMLRPCmbaseServer object |
String |
getTheory(String id)
Missing description of the gets the theory attribute of the OJXMLRPCmbaseServer object |
String |
getTypeString(String id)
Missing description of the gets the typeString attribute of the OJXMLRPCmbaseServer object |
Vector |
listItems(String idString)
|
Vector |
listTheories(Vector collections)
|
String |
reload()
|
String |
reload(Vector collections)
|
String |
reloadWithErrors()
|
String |
reloadWithErrors(String collName)
|
String |
reloadWithErrors(Vector collections)
Reloads the content from the directory. |
Vector |
searchIDs(String idSubstring)
Searches for an id by substring... |
Vector |
searchText(String textToSearch,
Vector collections)
Calls MBaseRef.searchText(java.lang.String, java.util.Collection). |
String |
shutdown(String key)
Shuts down using the generated password (currently deactivated) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CVS_ID
public static final int NO_SUCH_ITEM_ERRCODE
protected static org.apache.commons.logging.Log log
| Constructor Detail |
|---|
public OJXMLRPCmbaseServer(Subconfiguration config)
throws MBaseException
Manager's MBaseRef.
config - Missing description of Parameter
MBaseException - Missing description of Exception
public OJXMLRPCmbaseServer(int portNumber,
MBaseRef mbaseRef)
throws MBaseException
portNumber - Missing description of ParametermbaseRef - Missing description of Parameter
MBaseException - Missing description of Exception
public OJXMLRPCmbaseServer(MBaseRef mbaseRef)
throws MBaseException
MBaseException| Method Detail |
|---|
public Vector getDependencies(String id)
throws Exception
array) of
dependencies. Dependency objects are simple records with the following
keys:
getDependencies(java.lang.String), the "of" value
is the id requested and for getRelated(java.lang.String, java.util.Vector), the "on" value is the id
requested.
id - Missing description of Parameter
MBaseException - Missing description of Exception
Exception
public Vector getRelated(String id,
Vector collections)
throws Exception
array) of
dependencies. Dependency objects are simple records with the following
keys:
getDependencies(java.lang.String), the "of" value
is the id requested and for getRelated(java.lang.String, java.util.Vector), the "on" value is the id
requested.
id - Missing description of Parametercollections - Missing description of Parameter
MBaseException - Missing description of Exception
Exception
public Vector getForWhat(String id)
throws Exception
id - Missing description of Parameter
MBaseException - Missing description of Exception
Exception
public Vector getDefinitions(String id,
Vector collections)
throws Exception
id - Missing description of Parametercollections - Missing description of Parameter
MBaseException - Missing description of Exception
Exception
public Vector getProofs(String id,
Vector collections)
throws Exception
id - Missing description of Parametercollections - Missing description of Parameter
MBaseException - Missing description of Exception
Exception
public String getTypeString(String id)
throws Exception
id - Missing description of Parameter
MBaseException - Missing description of Exception
Exception
public String getTheory(String id)
throws Exception
id - Missing description of Parameter
MBaseException - Missing description of Exception
Exception
public Hashtable getCommonName(String id)
throws Exception
id - Missing description of Parameter
MBaseException - Missing description of Exception
Exception
public String getMetadata(String id)
throws Exception
id - Missing description of Parameter
MBaseException - Missing description of Exception
Exception
public String getCompleteDCMetadata(String id)
throws Exception
id - Missing description of Parameter
MBaseException - Missing description of Exception
Exception
public String getTextualContent(String id)
throws Exception
id - Missing description of Parameter
MBaseException - Missing description of Exception
Exception
public String getFormalContent(String id)
throws Exception
id - Missing description of Parameter
MBaseException - Missing description of Exception
Exception
public String getAttribute(String id,
String attributeName)
throws Exception
id - Missing description of ParameterattributeName - Missing description of Parameter
MBaseException - Missing description of Exception
Exception
public String getChildren(String id,
String xPathExpr)
throws Exception
Exceptionpublic String getMethodNames()
public Vector listItems(String idString)
throws Exception
Exception
public Vector listTheories(Vector collections)
throws Exception
Exception
public String getStructuredListOfConcepts(Vector collections)
throws Exception
collections - Missing description of Parameter
MBaseException - Missing description of Exception
Exception
public Vector getCollectionsProvided()
throws Exception
MBaseRef.getStructuredListOfConcepts(java.util.Collection).
MBaseException - if anything happens.
Exception
public String getCanonicalID(String givenID)
throws Exception
MBaseRef.getCanonicalID(org.activemath.abstractcontent.MBaseID).
givenID - A string with, at least, the ID name
MBaseItemNotFoundException - If there is no such ID.
Exception - If anything happens
public Hashtable getOMDocPath(String givenID)
throws Exception
givenID - The ID to be found
path, the path relative to the basePath.lineNumber the line-number in the filecolumnNumber the column-number in the fileMBaseItemNotFoundException - if the ID is not found
Exception - If anything happens,
public Vector searchText(String textToSearch,
Vector collections)
throws Exception
MBaseRef.searchText(java.lang.String, java.util.Collection).
textToSearch - collections - The collections to search through
Exception - If anything happens.
public boolean assertItsUp()
throws Exception
MBaseRef.assertItsUp().
MBaseException - Missing description of Exception
Exception
public String shutdown(String key)
throws Exception
key - The password
Exception - if anything
public String reload()
throws Exception
Exception
public String reload(Vector collections)
throws Exception
Exception
public String reloadWithErrors()
throws Exception
Exception
public String reloadWithErrors(String collName)
throws Exception
Exception
public String reloadWithErrors(Vector collections)
throws Exception
AuthorExtendedMBaseRef.
nextError
which is a record of keys systemId (the file-name, relative
to the basePath), message, exceptionClass, lineNumber, and columnNumber
Or a string saying finished
Exceptionpublic Vector searchIDs(String idSubstring)
idSubstring - The substring to search (may be empty to get a compelte list)
public MBaseRef close()
protected void attemptShutdown(String candidatePassword)
candidatePassword - Missing description of Parameterprotected void finalize()
finalize in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||