Class G2PServiceClient
- java.lang.Object
-
- ips.annot.autoannotator.impl.ws.bas.BasicBasServiceClient
-
- ips.annot.autoannotator.impl.ws.bas.g2p.G2PServiceClient
-
- All Implemented Interfaces:
AutoAnnotator
,ServiceDescriptorProvider<AutoAnnotationServiceDescriptor>
,java.util.concurrent.Callable<AutoAnnotation>
public class G2PServiceClient extends BasicBasServiceClient
- Author:
- K.Jaensch, klausj@phonetik.uni-muenchen.de
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface ips.annot.autoannotator.AutoAnnotator
AutoAnnotator.AnnotationRequest
-
Nested classes/interfaces inherited from class ips.annot.autoannotator.impl.ws.bas.BasicBasServiceClient
BasicBasServiceClient.ServerCaps
-
-
Field Summary
Fields Modifier and Type Field Description static G2PAnnotatorServiceDescriptor
DESCRIPTOR
static java.lang.String
RESPONSE_XML_DOWNLOAD_ELEM
static java.lang.String
RESPONSE_XML_SUCCESS_ELEM
static java.lang.String
RESPONSE_XML_TOP_ELEM
protected static java.lang.String
URL
-
Fields inherited from class ips.annot.autoannotator.impl.ws.bas.BasicBasServiceClient
annotationRequest, BASE_URL, CMDI_URL, DEFAULT_CHARSET, DEFAULT_TEXT_CONTENT_TYPE, docBuilderFactory, RESPONSE_XML_OUTPUT_ELEM, RESPONSE_XML_WARNINGS_ELEM, serverCaps
-
-
Constructor Summary
Constructors Constructor Description G2PServiceClient()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AutoAnnotation
call()
void
close()
AutoAnnotation
g2pClient(java.lang.String orthography, java.util.Locale loc)
AutoAnnotationServiceDescriptor
getServiceDescriptor()
boolean
isBundleSupported(Bundle bundle)
static void
main(java.lang.String[] args)
void
open()
void
setAnnotationRequest(AutoAnnotator.AnnotationRequest ar)
-
Methods inherited from class ips.annot.autoannotator.impl.ws.bas.BasicBasServiceClient
downloadLinkFromResponse, getServerCaps, isLanguageSupported, isMediafileSupported, masterSignalFile, needsWorker, orthoGraphyTextFromTemplateLevel, parseResponseHeader
-
-
-
-
Field Detail
-
DESCRIPTOR
public static final G2PAnnotatorServiceDescriptor DESCRIPTOR
-
URL
protected static java.lang.String URL
-
RESPONSE_XML_TOP_ELEM
public static final java.lang.String RESPONSE_XML_TOP_ELEM
- See Also:
- Constant Field Values
-
RESPONSE_XML_DOWNLOAD_ELEM
public static final java.lang.String RESPONSE_XML_DOWNLOAD_ELEM
- See Also:
- Constant Field Values
-
RESPONSE_XML_SUCCESS_ELEM
public static final java.lang.String RESPONSE_XML_SUCCESS_ELEM
- See Also:
- Constant Field Values
-
-
Method Detail
-
g2pClient
public AutoAnnotation g2pClient(java.lang.String orthography, java.util.Locale loc) throws AutoAnnotatorException
- Throws:
AutoAnnotatorException
-
main
public static void main(java.lang.String[] args)
-
call
public AutoAnnotation call() throws java.lang.Exception
- Specified by:
call
in interfacejava.util.concurrent.Callable<AutoAnnotation>
- Specified by:
call
in classBasicBasServiceClient
- Throws:
java.lang.Exception
-
open
public void open()
- Specified by:
open
in interfaceAutoAnnotator
- Overrides:
open
in classBasicBasServiceClient
-
close
public void close()
- Specified by:
close
in interfaceAutoAnnotator
- Overrides:
close
in classBasicBasServiceClient
-
setAnnotationRequest
public void setAnnotationRequest(AutoAnnotator.AnnotationRequest ar)
- Specified by:
setAnnotationRequest
in interfaceAutoAnnotator
- Overrides:
setAnnotationRequest
in classBasicBasServiceClient
-
getServiceDescriptor
public AutoAnnotationServiceDescriptor getServiceDescriptor()
- Specified by:
getServiceDescriptor
in interfaceServiceDescriptorProvider<AutoAnnotationServiceDescriptor>
- Specified by:
getServiceDescriptor
in classBasicBasServiceClient
-
isBundleSupported
public boolean isBundleSupported(Bundle bundle) throws java.io.IOException
- Specified by:
isBundleSupported
in interfaceAutoAnnotator
- Overrides:
isBundleSupported
in classBasicBasServiceClient
- Throws:
java.io.IOException
-
-