public abstract class AbstractStxPlugin extends Object
Constructor and Description |
---|
AbstractStxPlugin() |
protected StopWatch watch
public abstract String getInterfaceType()
public abstract Map<String,String> getInterfaceNamesByLanguageCode()
public RemoteFileAccessor getRemoteFileAccessor()
public void setRemoteFileAccessor(RemoteFileAccessor remoteFileAccessor)
public void clearLogSuffix()
public final void logForOperator(LogLevel lvl, String defaultMessage, String... translations)
lvl
- the level of the error. Beware : an error log can trigger an email to the operator. Be explicit in the
problems that you log and propose a solution.defaultMessage
- the default message. Pattern must be : [localeCode] message. Example [en] reading the catalog. This
message will be chosen if the locale code is not matching any of the messages below.translations
- same pattern as above.public void validate() throws ValidationException
ValidationException
protected List<StxFunction> findAllFunctions(Class<?> aClass)
public Map<String,String> validateStringWithTranslations(String stringWithTranslations, String desc) throws ValidationException
ValidationException
public String getTranslatedMessage(String defaultMessage, String... translations)
public final InterfaceParametersProvider getInterfaceParametersProvider()
public final void setInterfaceParametersProvider(InterfaceParametersProvider interfaceParametersProvider)
public final OperatorInternationalizedLogger getInternationalizedLogger()
public final void setInternationalizedLogger(OperatorInternationalizedLogger logger)
public final Logger getLogger()
public final void setLogger(Logger logger)
protected final HttpClientHelper getCurrentHttpClientHelper()
public final void setDummyHttpClientHelper(HttpClientHelper dummyHttpClientHelper)
public final void setHttpClientHelper(HttpClientHelper httpClientHelper)
public final HttpClientHelper getHttpClientHelper()
public final HttpClientHelper getDummyHttpClientHelper()
protected final XmlRpcClientHelper getCurrentXmlRpcClientHelper()
public final void setDummyXmlRpcClientHelper(XmlRpcClientHelper dummyXmlRpcClientHelper)
public final void setXmlRpcClientHelper(XmlRpcClientHelper xmlRpcClientHelper)
public final XmlRpcClientHelper getXmlRpcClientHelper()
public final XmlRpcClientHelper getDummyXmlRpcClientHelper()
public List<ParameterDefinition> listParameterDefinitions()
public List<ParameterDefinition> listParameterDefinitions(boolean registeringMode)
public JaxwsSoapProxyHelper getJaxwsSoapProxyHelper()
public void setJaxwsSoapProxyHelper(JaxwsSoapProxyHelper jaxwsSoapProxyHelper)
public JaxRpcSoapProxyHelper getJaxRpcSoapProxyHelper()
public void setJaxRpcSoapProxyHelper(JaxRpcSoapProxyHelper jaxRpcSoapProxyHelper)
public boolean isDemoPlugin()
public UniqueValuesHelper getUniqueValuesHelper()
public void setUniqueValuesHelper(UniqueValuesHelper uniqueValuesHelper)
public MappingReader getMappingReader()
public void setMappingReader(MappingReader mappingReader)
public void logDownloadableData(LogLevel lvl, String fileName, String data, String message, String... translations)
lvl
- : log levelfileName
- : name of the downloadable file.data
- : content of the data.message
- : Optional : may contain a message accompanying the file.translations
- : possible translations for the message, in the format en=First translation in EN,
fr=Translation in FR, etc.public ExecutorServiceProvider getExecutorServiceProvider()
public void setExecutorServiceProvider(ExecutorServiceProvider executorServiceProvider)
Copyright © 2021. All rights reserved.