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 G2PAnnotatorServiceDescriptorDESCRIPTORstatic java.lang.StringRESPONSE_XML_DOWNLOAD_ELEMstatic java.lang.StringRESPONSE_XML_SUCCESS_ELEMstatic java.lang.StringRESPONSE_XML_TOP_ELEMprotected static java.lang.StringURL-
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 AutoAnnotationcall()voidclose()AutoAnnotationg2pClient(java.lang.String orthography, java.util.Locale loc)AutoAnnotationServiceDescriptorgetServiceDescriptor()booleanisBundleSupported(Bundle bundle)static voidmain(java.lang.String[] args)voidopen()voidsetAnnotationRequest(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:
callin interfacejava.util.concurrent.Callable<AutoAnnotation>- Specified by:
callin classBasicBasServiceClient- Throws:
java.lang.Exception
-
open
public void open()
- Specified by:
openin interfaceAutoAnnotator- Overrides:
openin classBasicBasServiceClient
-
close
public void close()
- Specified by:
closein interfaceAutoAnnotator- Overrides:
closein classBasicBasServiceClient
-
setAnnotationRequest
public void setAnnotationRequest(AutoAnnotator.AnnotationRequest ar)
- Specified by:
setAnnotationRequestin interfaceAutoAnnotator- Overrides:
setAnnotationRequestin classBasicBasServiceClient
-
getServiceDescriptor
public AutoAnnotationServiceDescriptor getServiceDescriptor()
- Specified by:
getServiceDescriptorin interfaceServiceDescriptorProvider<AutoAnnotationServiceDescriptor>- Specified by:
getServiceDescriptorin classBasicBasServiceClient
-
isBundleSupported
public boolean isBundleSupported(Bundle bundle) throws java.io.IOException
- Specified by:
isBundleSupportedin interfaceAutoAnnotator- Overrides:
isBundleSupportedin classBasicBasServiceClient- Throws:
java.io.IOException
-
-