public abstract class RequestMethod extends Object
Constructor and Description |
---|
RequestMethod(OnlineResource onlineResource)
this constructor has all required attributes as its parameters.
|
RequestMethod(OnlineResource onlineResource,
Set<Constraint> constraints) |
RequestMethod(OnlineResource onlineResouce,
String[] constraints)
Deprecated.
Use
RequestMethod(OnlineResource, Set) using type Constraint . |
Modifier and Type | Method and Description |
---|---|
boolean |
addOwsConstraint(Constraint owsConstraint)
Adds a single constraint to the set of constraints.
|
String[] |
getConstraints()
Deprecated.
Use
getOwsConstraints() and type Constraint instead |
OnlineResource |
getOnlineResource() |
Set<Constraint> |
getOwsConstraints() |
protected void |
setConstraints(String[] constraints)
Deprecated.
Use
setOwsConstraints(Set) and type Constraint instead. |
protected void |
setOnlineResource(OnlineResource onlineResource) |
boolean |
setOwsConstraints(Set<Constraint> owsConstraints)
Replaces the constraints set with the given one if it's not null.
|
String |
toString() |
abstract String |
toXML() |
@Deprecated public RequestMethod(OnlineResource onlineResouce, String[] constraints)
RequestMethod(OnlineResource, Set)
using type Constraint
.onlineResouce
- the required online resourceconstraints
- the optional constraints that are relevant for this request method.public RequestMethod(OnlineResource onlineResource, Set<Constraint> constraints)
onlineResource
- the required online resourceconstraints
- the optional constraints that are relevant for this request method.public RequestMethod(OnlineResource onlineResource)
onlineResource
- the required online resourcepublic abstract String toXML()
@Deprecated public String[] getConstraints()
getOwsConstraints()
and type Constraint
instead@Deprecated protected void setConstraints(String[] constraints)
setOwsConstraints(Set)
and type Constraint
instead.constraints
- a String[] containing constraints to setpublic OnlineResource getOnlineResource()
protected void setOnlineResource(OnlineResource onlineResource)
public Set<Constraint> getOwsConstraints()
RequestMethod
or an empty Set
if not set.public boolean addOwsConstraint(Constraint owsConstraint)
owsConstraint
- the constraint to addpublic boolean setOwsConstraints(Set<Constraint> owsConstraints)
owsConstraints
- the constrains to setCopyright © 2012–2017 52North Initiative for Geospatial Open Source Software GmbH. All rights reserved.