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 MAUSAnnotatorServiceDescriptor
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
-
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 AutoAnnotation
call()
void
close()
AutoAnnotationServiceDescriptor
getServiceDescriptor()
boolean
isBundleSupported(Bundle bundle)
boolean
isInsertKanonicalTier()
boolean
isInsertOrthographyTier()
static void
main(java.lang.String[] args)
void
open()
void
setAnnotationRequest(AutoAnnotator.AnnotationRequest ar)
void
setInsertKanonicalTier(boolean insertKanonicalTier)
void
setInsertOrthographyTier(boolean insertOrthographyTier)
AutoAnnotation
webMAUSClient(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:
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
-
isBundleSupported
public boolean isBundleSupported(Bundle bundle) throws java.io.IOException
- Specified by:
isBundleSupported
in interfaceAutoAnnotator
- Overrides:
isBundleSupported
in classBasicBasServiceClient
- Throws:
java.io.IOException
-
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
-
-