|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.languagecomputer.api.BaseWebServiceImpl com.languagecomputer.api.IndexWebServiceImpl
public class IndexWebServiceImpl
Implementation of IndexWebService
.
Field Summary |
---|
Fields inherited from class com.languagecomputer.api.BaseWebServiceImpl |
---|
sessionManager |
Constructor Summary | |
---|---|
IndexWebServiceImpl(SessionManager sessionManager)
Creates a new IndexWebServiceImpl using the given
sessionManager. |
Method Summary | |
---|---|
void |
finish(String sessionID)
Indicates that the current indexing session is finished and all changes to the the index should be flushed. |
String |
get(String sessionID,
String docID,
String format)
Loads the document with the given docID from the index. |
void |
index(String sessionID,
String document,
String format)
Indexes the provided document. |
void |
remove(String sessionID,
String docID)
Removes the document with the given docID from the index. |
void |
setPath(String sessionID,
String path)
Changes the index path. |
Methods inherited from class com.languagecomputer.api.BaseWebServiceImpl |
---|
registerSession, unregisterSession |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.languagecomputer.api.BaseWebService |
---|
registerSession, unregisterSession |
Constructor Detail |
---|
public IndexWebServiceImpl(SessionManager sessionManager)
IndexWebServiceImpl
using the given
sessionManager.
sessionManager
- The SessionManager
to use for Session
control.Method Detail |
---|
public void setPath(String sessionID, String path) throws Exception
setPath
in interface IndexWebService
sessionID
- The unique identifier String
for the session
for this operation.path
- The new path to the index.
Exception
- If there was an error changing the index path.public void index(String sessionID, String document, String format) throws Exception
index
in interface IndexWebService
sessionID
- The unique identifier String
for the session
for this operation.document
- The document in the format described in the
format parameter.format
- The format in which the given document is in.
Defaults to XML
.
Exception
- If there was an error indexing the document.public void finish(String sessionID) throws Exception
finish
in interface IndexWebService
sessionID
- The unique identifier String
for the session
for this operation.
Exception
- If there was an error finishing the indexing.public String get(String sessionID, String docID, String format) throws Exception
get
in interface IndexWebService
sessionID
- The unique identifier String
for the session
for this operation.docID
- The id of the document to load and return.format
- The format in which the annotations should be returned.
Defaults to XML
.
Exception
- If there was an error retrieving the document.public void remove(String sessionID, String docID) throws Exception
remove
in interface IndexWebService
sessionID
- The unique identifier String
for the session
for this operation.docID
- The id of the document to load and return.
Exception
- If there was an error removing the document.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |