Class BasicMAUSWebServiceClient
- java.lang.Object
-
- ips.annot.autoannotator.impl.ws.bas.BasicBasServiceClient
-
- ips.annot.autoannotator.impl.ws.bas.maus.BasicMAUSWebServiceClient
-
- All Implemented Interfaces:
AutoAnnotator
,ServiceDescriptorProvider<AutoAnnotationServiceDescriptor>
,java.util.concurrent.Callable<AutoAnnotation>
public class BasicMAUSWebServiceClient extends BasicBasServiceClient
- Author:
- K.Jaensch, klausj@phonetik.uni-muenchen.de
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
BasicMAUSWebServiceClient.ServerCaps
-
Nested classes/interfaces inherited from interface ips.annot.autoannotator.AutoAnnotator
AutoAnnotator.AnnotationRequest
-
-
Field Summary
Fields Modifier and Type Field Description static BasicMAUSAnnotatorServiceDescriptor
DESCRIPTOR
-
Fields inherited from class ips.annot.autoannotator.impl.ws.bas.BasicBasServiceClient
BASE_URL, CMDI_URL, RESPONSE_XML_DOWNLOAD_ELEM, RESPONSE_XML_OUTPUT_ELEM, RESPONSE_XML_SUCCESS_ELEM, RESPONSE_XML_TOP_ELEM, RESPONSE_XML_WARNINGS_ELEM, serverCaps
-
-
Constructor Summary
Constructors Constructor Description BasicMAUSWebServiceClient()
-
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.io.File orthoGraphyFile, java.util.Locale loc)
AutoAnnotation
webMAUSClient(java.io.File audioFile, java.lang.String transcript, java.lang.String textFilename)
AutoAnnotation
webMAUSClient(java.io.File audioFile, java.lang.String orthoGraphy, java.lang.String orthoGraphyFilename, java.util.Locale loc)
AutoAnnotation
webMAUSClient(java.io.File audioFile, java.lang.String orthoGraphy, java.util.Locale loc)
AutoAnnotation
webMAUSClient(java.io.File audioFile, org.apache.http.entity.mime.content.ContentBody textBody, 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 BasicMAUSAnnotatorServiceDescriptor DESCRIPTOR
-
-
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 orthoGraphy, java.util.Locale loc) throws AutoAnnotatorException
- Throws:
AutoAnnotatorException
-
webMAUSClient
public AutoAnnotation webMAUSClient(java.io.File audioFile, java.lang.String orthoGraphy, java.lang.String orthoGraphyFilename, java.util.Locale loc) throws AutoAnnotatorException
- Throws:
AutoAnnotatorException
-
webMAUSClient
public AutoAnnotation webMAUSClient(java.io.File audioFile, java.io.File orthoGraphyFile, java.util.Locale loc) throws AutoAnnotatorException
- Throws:
AutoAnnotatorException
-
webMAUSClient
public AutoAnnotation webMAUSClient(java.io.File audioFile, org.apache.http.entity.mime.content.ContentBody textBody, 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
-
isBundleSupported
public boolean isBundleSupported(Bundle bundle) throws java.io.IOException
- Specified by:
isBundleSupported
in interfaceAutoAnnotator
- Overrides:
isBundleSupported
in classBasicBasServiceClient
- Throws:
java.io.IOException
-
getServiceDescriptor
public AutoAnnotationServiceDescriptor getServiceDescriptor()
- Specified by:
getServiceDescriptor
in interfaceServiceDescriptorProvider<AutoAnnotationServiceDescriptor>
- Specified by:
getServiceDescriptor
in classBasicBasServiceClient
-
webMAUSClient
public AutoAnnotation webMAUSClient(java.io.File audioFile, java.lang.String transcript, java.lang.String textFilename) throws AutoAnnotatorException
- Throws:
AutoAnnotatorException
-
-