Class TLcdOWSRequestMethod
- All Implemented Interfaces:
ILcdDataObject
,ILcdXMLSimpleLink
,ILcdCloneable
,ILcdDeepCloneable
,Cloneable
This class represents a HTTP request method for an operation, specifying a connection point URL and an optional list of constraints.
In the OnlineResourceType, the xlink:href attribute in the xlink:simpleLink attribute group shall be used to contain this URL. The other attributes in the xlink:simpleLink attribute group should not be used.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final TLcdDataProperty
Data property that maps to theConstraint
element.static final TLcdDataProperty
Data linkInfo property.static final TLcdDataProperty
Data linkedObject property. -
Constructor Summary
ConstructorDescriptionCreates a newTLcdOWSRequestMethod
.TLcdOWSRequestMethod
(TLcdDataType aType) Creates a newTLcdOWSRequestMethod
instance with the given data type.TLcdOWSRequestMethod
(String aHref) Creates a newTLcdOWSRequestMethod
for a connection point URL. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addConstraint
(TLcdOWSDomain aConstraint) Adds a constraint to this request method.Returns the value of the property that maps to theConstraint
element.getConstraint
(int aIndex) Returns the constraint at the given index.int
Returns the number of constraints.Returns the value of the linkedObject property.Returns the value of the linkInfo property.void
removeConstraint
(int aIndex) Removes the constraint at the given position.void
setLinkedObject
(Object aValue) Sets the value of the linkedObject property.void
setLinkInfo
(Object aValue) Sets the value of the linkInfo property.Methods inherited from class com.luciad.ogc.ows.model.TLcdOWSOnlineResource
getActuate, getArcrole, getHref, getLinkage, getRole, getShow, getTitle, getType, setActuate, setArcrole, setHref, setRole, setShow, setTitle
-
Field Details
-
CONSTRAINT_PROPERTY
Data property that maps to theConstraint
element. The possible values for this property are instances ofList<TLcdOWSDomain>
. -
LINK_INFO_PROPERTY
Data linkInfo property. The possible values for this property are instances ofObject
. -
LINKED_OBJECT_PROPERTY
Data linkedObject property. The possible values for this property are instances ofObject
.
-
-
Constructor Details
-
TLcdOWSRequestMethod
public TLcdOWSRequestMethod()Creates a newTLcdOWSRequestMethod
. -
TLcdOWSRequestMethod
Creates a newTLcdOWSRequestMethod
instance with the given data type.- Parameters:
aType
- The data type.
-
TLcdOWSRequestMethod
Creates a newTLcdOWSRequestMethod
for a connection point URL.- Parameters:
aHref
- a connection point URL
-
-
Method Details
-
addConstraint
Adds a constraint to this request method. The constraint list is an optional unordered list of valid domain constraints on non-parameter quantities that each apply to this request method for this request method.- Parameters:
aConstraint
- the constraint to be added.
-
getConstraintCount
public int getConstraintCount()Returns the number of constraints.- Returns:
- the number of constraints.
-
removeConstraint
public void removeConstraint(int aIndex) Removes the constraint at the given position.- Parameters:
aIndex
- the index of the constraint to be removed
-
getConstraint
Returns the constraint at the given index. The constraint list is an optional unordered list of valid domain constraints on non-parameter quantities that each apply to this request method for this request method.- Parameters:
aIndex
- the index of the constraint to be retrieved- Returns:
- the constraint at the given index.
-
getConstraint
Returns the value of the property that maps to theConstraint
element.Optional unordered list of valid domain constraints on non-parameter quantities that each apply to this request method for this operation. If one of these Constraint elements has the same "name" attribute as a Constraint element in the OperationsMetadata or Operation element, this Constraint element shall override the other one for this operation. The list of required and optional constraints for this request method for this operation shall be specified in the Implementation Specification for this service.
- Returns:
- the value of the
CONSTRAINT_PROPERTY
property.
-
getLinkInfo
Returns the value of the linkInfo property.- Returns:
- the value of the
LINK_INFO_PROPERTY
property.
-
setLinkInfo
Sets the value of the linkInfo property.- Parameters:
aValue
- the value to set for theLINK_INFO_PROPERTY
property.
-
getLinkedObject
Returns the value of the linkedObject property.- Returns:
- the value of the
LINKED_OBJECT_PROPERTY
property.
-
setLinkedObject
Sets the value of the linkedObject property.- Parameters:
aValue
- the value to set for theLINKED_OBJECT_PROPERTY
property.
-