Class MAUSServiceClient
- java.lang.Object
-
- ips.annot.autoannotator.impl.ws.bas.BasicBasServiceClient
-
- ips.annot.autoannotator.impl.ws.bas.maus.MAUSServiceClient
-
- All Implemented Interfaces:
AutoAnnotator,ServiceDescriptorProvider<AutoAnnotationServiceDescriptor>,java.util.concurrent.Callable<AutoAnnotation>
public class MAUSServiceClient 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 MAUSAnnotatorServiceDescriptorDESCRIPTORstatic java.lang.StringRESPONSE_XML_DOWNLOAD_ELEMstatic java.lang.StringRESPONSE_XML_SUCCESS_ELEMstatic java.lang.StringRESPONSE_XML_TOP_ELEM-
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 MAUSServiceClient()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AutoAnnotationcall()voidclose()AutoAnnotationServiceDescriptorgetServiceDescriptor()booleanisBundleSupported(Bundle bundle)booleanisInsertKanonicalTier()booleanisInsertOrthographyTier()static voidmain(java.lang.String[] args)voidopen()voidsetAnnotationRequest(AutoAnnotator.AnnotationRequest ar)voidsetInsertKanonicalTier(boolean insertKanonicalTier)voidsetInsertOrthographyTier(boolean insertOrthographyTier)AutoAnnotationwebMAUSClient(java.io.File audioFile, java.lang.String kanCont, java.util.Locale loc)-
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 MAUSAnnotatorServiceDescriptor DESCRIPTOR
-
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
-
isInsertKanonicalTier
public boolean isInsertKanonicalTier()
- Returns:
- the insertKanonicalTier
-
setInsertKanonicalTier
public void setInsertKanonicalTier(boolean insertKanonicalTier)
- Parameters:
insertKanonicalTier- the insertKanonicalTier to set
-
isInsertOrthographyTier
public boolean isInsertOrthographyTier()
- Returns:
- the insertOrthographyTier
-
setInsertOrthographyTier
public void setInsertOrthographyTier(boolean insertOrthographyTier)
- Parameters:
insertOrthographyTier- the insertOrthographyTier to set
-
webMAUSClient
public AutoAnnotation webMAUSClient(java.io.File audioFile, java.lang.String kanCont, 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
-
isBundleSupported
public boolean isBundleSupported(Bundle bundle) throws java.io.IOException
- Specified by:
isBundleSupportedin interfaceAutoAnnotator- Overrides:
isBundleSupportedin classBasicBasServiceClient- Throws:
java.io.IOException
-
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
-
-