Package adams.flow.webservice.meka
Class DownloadClassifier
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.flow.webservice.AbstractWebServiceClientTransformer<DownloadClassifier,meka.classifiers.multilabel.MultiLabelClassifier>
-
- adams.flow.webservice.meka.DownloadClassifier
-
- All Implemented Interfaces:
adams.core.AdditionalInformationHandler
,adams.core.CleanUpHandler
,adams.core.Destroyable
,adams.core.ErrorProvider
,adams.core.GlobalInfoSupporter
,adams.core.logging.LoggingLevelHandler
,adams.core.logging.LoggingSupporter
,adams.core.option.OptionHandler
,adams.core.QuickInfoSupporter
,adams.core.SizeOfHandler
,AlternativeUrlSupporter
,WebServiceClient
,WebServiceClientConsumer<DownloadClassifier>
,WebServiceClientProducer<meka.classifiers.multilabel.MultiLabelClassifier>
,WsdlUrlProvider
,Serializable
public class DownloadClassifier extends AbstractWebServiceClientTransformer<DownloadClassifier,meka.classifiers.multilabel.MultiLabelClassifier>
Client for download a classifier model.- Author:
- FracPete (fracpete at waikato ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected DownloadClassifier
m_Download
download input objectprotected MekaService
m_Port
the port instance.protected DownloadClassifierResponseObject
m_Returned
response objectprotected MekaServiceService
m_Service
the service instance.-
Fields inherited from class adams.flow.webservice.AbstractWebServiceClientTransformer
m_AlternativeURL, m_ConnectionTimeout, m_InInterceptor, m_LastError, m_OutInterceptor, m_Owner, m_ReceiveTimeout, m_ResponseData, m_ResponseDataListeners, m_UseAlternativeURL
-
-
Constructor Summary
Constructors Constructor Description DownloadClassifier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class[]
accepts()
Returns the classes that are accepted input.void
cleanUp()
Cleans up the client.protected void
doQuery()
Performs the actual webservice query.Class[]
generates()
Returns the classes that this client generates.URL
getWsdlLocation()
Returns the WSDL location.String
globalInfo()
Returns a string describing the object.protected void
reset()
Resets the scheme.void
setRequestData(DownloadClassifier value)
Sets the data for the request, if any.-
Methods inherited from class adams.flow.webservice.AbstractWebServiceClientTransformer
addResponseDataListener, alternativeURLTipText, connectionTimeoutTipText, defineOptions, getAdditionalInformation, getAlternativeURL, getConnectionTimeout, getDefaultAlternativeURL, getDefaultInInterceptor, getDefaultOutInterceptor, getInInterceptor, getLastError, getOutInterceptor, getOwner, getQuickInfo, getReceiveTimeout, getResponseData, getUseAlternativeURL, hasLastError, hasResponseData, inInterceptorTipText, initialize, notifyResponseDataListeners, outInterceptorTipText, postQuery, preQuery, query, receiveTimeoutTipText, removeResponseDataListener, setAlternativeURL, setConnectionTimeout, setInInterceptor, setOutInterceptor, setOwner, setReceiveTimeout, setResponseData, setUseAlternativeURL, useAlternativeURLTipText
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, loggingLevelTipText, newOptionManager, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Field Detail
-
m_Download
protected DownloadClassifier m_Download
download input object
-
m_Returned
protected DownloadClassifierResponseObject m_Returned
response object
-
m_Service
protected transient MekaServiceService m_Service
the service instance.
-
m_Port
protected transient MekaService m_Port
the port instance.
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfo
in interfaceadams.core.GlobalInfoSupporter
- Specified by:
globalInfo
in classadams.core.option.AbstractOptionHandler
- Returns:
- a description suitable for displaying in the gui
-
reset
protected void reset()
Resets the scheme.- Overrides:
reset
in classadams.core.option.AbstractOptionHandler
-
accepts
public Class[] accepts()
Returns the classes that are accepted input.- Returns:
- the classes that are accepted
-
setRequestData
public void setRequestData(DownloadClassifier value)
Sets the data for the request, if any.- Parameters:
value
- the request data
-
generates
public Class[] generates()
Returns the classes that this client generates.- Returns:
- the classes
-
getWsdlLocation
public URL getWsdlLocation()
Returns the WSDL location.- Specified by:
getWsdlLocation
in interfaceWsdlUrlProvider
- Specified by:
getWsdlLocation
in classAbstractWebServiceClientTransformer<DownloadClassifier,meka.classifiers.multilabel.MultiLabelClassifier>
- Returns:
- the location
-
doQuery
protected void doQuery() throws Exception
Performs the actual webservice query.- Specified by:
doQuery
in classAbstractWebServiceClientTransformer<DownloadClassifier,meka.classifiers.multilabel.MultiLabelClassifier>
- Throws:
Exception
- if accessing webservice fails for some reason
-
cleanUp
public void cleanUp()
Cleans up the client.- Specified by:
cleanUp
in interfaceadams.core.CleanUpHandler
- Overrides:
cleanUp
in classAbstractWebServiceClientTransformer<DownloadClassifier,meka.classifiers.multilabel.MultiLabelClassifier>
-
-