|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.languagecomputer.api.BaseWebClient<AnnotationMetaWebService> com.languagecomputer.api.AnnotationMetaServiceWebClient
public class AnnotationMetaServiceWebClient
Web service client wrapper for the AnnotationMetaService
. Handles
all the web service interaction code. Combined with the
AnnotationMetaService
class, this provides a java-to-java
interaction that masks the web service functionality.
Constructor Summary | |
---|---|
AnnotationMetaServiceWebClient(ServiceConfig serviceConfig)
Creates a new AnnotationMetaServiceWebClient with the given
ServiceConfig . |
Method Summary | |
---|---|
void |
annotate(Document document,
List<String> services)
Process the given Document with the given services. |
AnnotationType |
getAnnotationType(String service)
Returns the AnnotationType that corresponds to the given
service. |
String |
getName()
Returns the name of the service to use for URL lookup. |
protected Class<AnnotationMetaWebService> |
getWebServiceClass()
Returns the BaseWebService class this BaseWebClient
wraps. |
Document |
process(URL url,
String fileType,
List<String> services)
Process the given URL of the given type, then
annotate the given services. |
Methods inherited from class com.languagecomputer.api.BaseWebClient |
---|
disconnect, getSessionID, getWebService, registerSession, sessionRegistered, setSession, setSessionID, 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.Service |
---|
setSession |
Constructor Detail |
---|
public AnnotationMetaServiceWebClient(ServiceConfig serviceConfig)
AnnotationMetaServiceWebClient
with the given
ServiceConfig
.
Method Detail |
---|
public String getName()
getName
in interface Service
getName
in class BaseWebClient<AnnotationMetaWebService>
protected Class<AnnotationMetaWebService> getWebServiceClass()
BaseWebService
class this BaseWebClient
wraps.
getWebServiceClass
in class BaseWebClient<AnnotationMetaWebService>
public Document process(URL url, String fileType, List<String> services)
URL
of the given type, then
annotate the given services.
process
in interface AnnotationMetaService
url
- java.net.URL
of the file to process.fileType
- (Advanced Users) Optional file type to force.
Document
corresponding to the given
url.public void annotate(Document document, List<String> services)
Document
with the given services.
annotate
in interface AnnotationMetaService
document
- Document
to process.services
- List
of services to run. In most cases, the
services should be run in the order specified, unless a re-order is
necessary for dependencies.public AnnotationType getAnnotationType(String service)
AnnotationType
that corresponds to the given
service. Returns null
if the service is not
recognized.
getAnnotationType
in interface AnnotationMetaService
service
- Name of the Service
.
AnnotationType
the given service is
responsible for.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |