public interface URISpecifier extends ResourceServiceSpecifier
ResourceSpecifier
that locates an existing Resource
service by its URI.Modifier and Type | Field and Description |
---|---|
static String |
RESOURCE_TYPE_ANALYSIS_ENGINE
Value for
getResourceType() representing an Analysis Engine. |
static String |
RESOURCE_TYPE_CAS_CONSUMER
Value for
getResourceType() representing a CAS Consumer. |
Modifier and Type | Method and Description |
---|---|
Parameter[] |
getParameters() |
String |
getProtocol()
Gets the name of the Protocol used to communicate with the service.
|
String |
getResourceType()
Retrieves the type of Resource (e.g.
|
Integer |
getTimeout()
Gets the timeout period in milliseconds.
|
String |
getUri()
Retrieves the URI at which a Resource may be located.
|
void |
setParameters(Parameter[] parameters) |
void |
setProtocol(String aProtocol)
Sets the name of the Protocol used to communicate with the service.
|
void |
setResourceType(String aResourceType)
Sets the type of Resource (e.g.
|
void |
setTimeout(Integer aTimeout)
Sets the timeout period in milliseconds.
|
void |
setUri(String aUri)
Sets the URI at which a Resource may be located.
|
clone, equals, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, listAttributes, setAttributeValue, setSourceUrl
buildFromXMLElement, buildFromXMLElement, toXML, toXML, toXML, toXML
static final String RESOURCE_TYPE_ANALYSIS_ENGINE
getResourceType()
representing an Analysis Engine.static final String RESOURCE_TYPE_CAS_CONSUMER
getResourceType()
representing a CAS Consumer.String getResourceType()
void setResourceType(String aResourceType)
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.String getUri()
String getProtocol()
Constants
class.Integer getTimeout()
void setUri(String aUri)
aUri
- a URI stringvoid setProtocol(String aProtocol)
Constants
class.aProtocol
- the name of the protocol.void setTimeout(Integer aTimeout)
aTimeout
- the timeout period in milliseconds. A null value indicates that the transport layer's
default value will be used.Parameter[] getParameters()
void setParameters(Parameter[] parameters)
parameters
- The Parameters to set.Copyright © 2006–2017 The Apache Software Foundation. All rights reserved.