Package org.apache.uima.resource
Interface URISpecifier
-
- All Superinterfaces:
java.lang.Cloneable,MetaDataObject,ResourceServiceSpecifier,ResourceSpecifier,java.io.Serializable,XMLizable
- All Known Implementing Classes:
URISpecifier_impl
public interface URISpecifier extends ResourceServiceSpecifier
A type ofResourceSpecifierthat locates an existingResourceservice by its URI.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringRESOURCE_TYPE_ANALYSIS_ENGINEValue forgetResourceType()representing an Analysis Engine.static java.lang.StringRESOURCE_TYPE_CAS_CONSUMERValue forgetResourceType()representing a CAS Consumer.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Parameter[]getParameters()java.lang.StringgetProtocol()Gets the name of the Protocol used to communicate with the service.java.lang.StringgetResourceType()Retrieves the type of Resource (e.g.java.lang.IntegergetTimeout()Gets the timeout period in milliseconds.java.lang.StringgetUri()Retrieves the URI at which a Resource may be located.voidsetParameters(Parameter[] parameters)voidsetProtocol(java.lang.String aProtocol)Sets the name of the Protocol used to communicate with the service.voidsetResourceType(java.lang.String aResourceType)Sets the type of Resource (e.g.voidsetTimeout(java.lang.Integer aTimeout)Sets the timeout period in milliseconds.voidsetUri(java.lang.String aUri)Sets the URI at which a Resource may be located.-
Methods inherited from interface org.apache.uima.resource.metadata.MetaDataObject
clone, equals, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, listAttributes, setAttributeValue, setSourceUrl
-
Methods inherited from interface org.apache.uima.util.XMLizable
buildFromXMLElement, buildFromXMLElement, toXML, toXML, toXML, toXML
-
-
-
-
Field Detail
-
RESOURCE_TYPE_ANALYSIS_ENGINE
static final java.lang.String RESOURCE_TYPE_ANALYSIS_ENGINE
Value forgetResourceType()representing an Analysis Engine.- See Also:
- Constant Field Values
-
RESOURCE_TYPE_CAS_CONSUMER
static final java.lang.String RESOURCE_TYPE_CAS_CONSUMER
Value forgetResourceType()representing a CAS Consumer.- See Also:
- Constant Field Values
-
-
Method Detail
-
getResourceType
java.lang.String getResourceType()
Retrieves the type of Resource (e.g. Analysis Engine, CAS Consumer) that the service at this URI is expected to implement. This is optional, but useful for clients to know what to do with the URISpecifier.- Returns:
- the type of Resource. This should be one of the constants on this class, or null if the resource type is not specified.
-
setResourceType
void setResourceType(java.lang.String aResourceType)
Sets the type of Resource (e.g. Analysis Engine, CAS Consumer) that the service at this URI is expected to implement. This is optional, but useful for clients to know what to do with the URISpecifier.- Parameters:
aResourceType- the type of Resource. This should be one of the constants on this class, or null to indicate that the resource type is not specified.
-
getUri
java.lang.String getUri()
Retrieves the URI at which a Resource may be located.- Returns:
- a URI string
-
getProtocol
java.lang.String getProtocol()
Gets the name of the Protocol used to communicate with the service. Protocol names are defined in theConstantsclass.- Returns:
- the name of the protocol.
-
getTimeout
java.lang.Integer getTimeout()
Gets the timeout period in milliseconds. If a call takes longer than this amount of time, an exception will be thrown.- Returns:
- the timeout period in milliseconds. A null value indicates that the transport layer's default value will be used.
-
setUri
void setUri(java.lang.String aUri)
Sets the URI at which a Resource may be located.- Parameters:
aUri- a URI string
-
setProtocol
void setProtocol(java.lang.String aProtocol)
Sets the name of the Protocol used to communicate with the service. Protocol names are defined in theConstantsclass.- Parameters:
aProtocol- the name of the protocol.
-
setTimeout
void setTimeout(java.lang.Integer aTimeout)
Sets the timeout period in milliseconds. If a call takes longer than this amount of time, an exception will be thrown.- Parameters:
aTimeout- the timeout period in milliseconds. A null value indicates that the transport layer's default value will be used.
-
getParameters
Parameter[] getParameters()
- Returns:
- Returns the Parameters.
-
setParameters
void setParameters(Parameter[] parameters)
- Parameters:
parameters- The Parameters to set.
-
-