defines the differt types of operations that may be performed
by a map server, their access addresses and formats.
----------------------------------------------------------------------
- Version:
- 2002-03-08
- Author:
- Katharina Lupp
Fields inherited from interface org.deegree.services.wms.capabilities.Operation |
CAPABILITIES, CAPABILITIES_NAME, DESCRIBELAYER, DESCRIBELAYER_NAME, FEATUREINFO, FEATUREINFO_NAME, GETCAPABILITIES, GETCAPABILITIES_NAME, GETFEATUREINFO, GETFEATUREINFO_NAME, GETLEGENDGRAPHIC, GETLEGENDGRAPHIC_NAME, GETMAP, GETMAP_NAME, GETSCALEBAR, GETSCALEBAR_NAME, GETSTYLES, GETSTYLES_NAME, MAP, MAP_NAME, PUTSTYLES, PUTSTYLES_NAME, UNKNOWN, UNKNOWN_NAME |
Constructor Summary |
(package private) |
Operation_Impl()
default constructor |
(package private) |
Operation_Impl(java.lang.String operationName,
Format[] formats,
DCPType[] types)
constructor initializing the class with the and uses default
responsible classes |
(package private) |
Operation_Impl(java.lang.String operationName,
Format[] formats,
DCPType[] types,
java.lang.String responsibleClass)
constructor initializing the class with the |
Method Summary |
void |
addDCPType(DCPType dCPType)
adds the available Distributed Computing Platforms (DCPs) for a operation.
|
void |
addFormat(Format format)
Adds a format to the Operation's formats (if it is not defined
yet).
|
java.lang.String |
exportAsXML()
Returns an XML representation of this object. |
DCPType[] |
getDCPTypes()
returns the available Distributed Computing Platforms (DCPs) for a operation.
|
Format |
getFormat(java.lang.String format)
Returns the specified Format (currently as a String),
if the Operation supports it, else null.
|
Format[] |
getFormats()
returns the formats a operation is able to return its results |
static java.lang.String |
getName(int operationType)
|
java.lang.String |
getOperationName()
returns the name of the operation defined above. |
int |
getOperationType()
returns the operation type defnied above. |
java.lang.String |
getResponsibleClass()
returns the name of the class that's responsible for handling the
operation (request). |
void |
setDCPType(DCPType[] dCPTypes)
adds the available Distributed Computing Platforms (DCPs) for a operation.
|
void |
setFormats(Format[] formats)
adds the formats a operation is able to return its results |
void |
setOperationName(java.lang.String operationName)
sets the name of the operation defined above. |
void |
setOperationType(int operationType)
sets the operation type defnied above. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
dCPType
private java.util.ArrayList dCPType
formats
private java.util.HashMap formats
operationName
private java.lang.String operationName
operationType
private int operationType
responsibleClass
private java.lang.String responsibleClass
Operation_Impl
Operation_Impl()
- default constructor
Operation_Impl
Operation_Impl(java.lang.String operationName,
Format[] formats,
DCPType[] types)
- constructor initializing the class with the and uses default
responsible classes
Operation_Impl
Operation_Impl(java.lang.String operationName,
Format[] formats,
DCPType[] types,
java.lang.String responsibleClass)
- constructor initializing the class with the
getFormat
public Format getFormat(java.lang.String format)
- Returns the specified Format (currently as a String),
if the Operation supports it, else null.
- Specified by:
getFormat
in interface Operation
- Parameters:
format
- the name of the Format to look up
- Returns:
- the name of the Format, null if it is not supported
addFormat
public void addFormat(Format format)
- Adds a format to the Operation's formats (if it is not defined
yet).
- Specified by:
addFormat
in interface Operation
- Parameters:
format
- the name of the format to add
getFormats
public Format[] getFormats()
- returns the formats a operation is able to return its results
- Specified by:
getFormats
in interface Operation
setFormats
public void setFormats(Format[] formats)
- adds the formats a operation is able to return its results
getDCPTypes
public DCPType[] getDCPTypes()
- returns the available Distributed Computing Platforms (DCPs) for a operation.
At present, only HTTP (GET & POST) is defined.
- Specified by:
getDCPTypes
in interface Operation
addDCPType
public void addDCPType(DCPType dCPType)
- adds the available Distributed Computing Platforms (DCPs) for a operation.
At present, only HTTP (GET & POST) is defined.
- Specified by:
addDCPType
in interface Operation
setDCPType
public void setDCPType(DCPType[] dCPTypes)
- adds the available Distributed Computing Platforms (DCPs) for a operation.
At present, only HTTP (GET & POST) is defined.
getOperationType
public int getOperationType()
- returns the operation type defnied above. If the operation isn't known
Operation.UNKNOWN (-1) will be returned.
- Specified by:
getOperationType
in interface Operation
setOperationType
public void setOperationType(int operationType)
- sets the operation type defnied above. If the operation isn't known
Operation.UNKNOWN (-1) will be returned.
getOperationName
public java.lang.String getOperationName()
- returns the name of the operation defined above.
- Specified by:
getOperationName
in interface Operation
setOperationName
public void setOperationName(java.lang.String operationName)
- sets the name of the operation defined above.
getName
public static java.lang.String getName(int operationType)
- Parameters:
operationType
-
- Returns:
getResponsibleClass
public java.lang.String getResponsibleClass()
- returns the name of the class that's responsible for handling the
operation (request). Defaults are:
- GetMap -> org.deegree_impl.services.wms.GetMapHandler
- GetFeatureInfo -> org.deegree_impl.services.wms.GetFeatureInfoHandler
For GetCapabilities operation no handler is required.
- Specified by:
getResponsibleClass
in interface Operation
toString
public java.lang.String toString()
- Returns:
exportAsXML
public java.lang.String exportAsXML()
- Returns an XML representation of this object.
- Specified by:
exportAsXML
in interface Marshallable
- Returns:
- XML-representation of this object