org.n52.oxf.ows.capabilities
Class RequestMethod

java.lang.Object
  extended by org.n52.oxf.ows.capabilities.RequestMethod
Direct Known Subclasses:
GetRequestMethod, PostRequestMethod

public abstract class RequestMethod
extends Object

Specifies the type of request of a specific operation. Only HTTP is supported.

Author:
Theodor Foerster

Constructor Summary
RequestMethod(OnlineResource or)
          this constructor has all required attributes as its parameters.
RequestMethod(OnlineResource or, String[] constraints)
          this constructor has all attributes as its parameters.
 
Method Summary
 String[] getConstraints()
           
 OnlineResource getOnlineResource()
           
protected  void setConstraints(String[] constraints)
           
protected  void setOnlineResource(OnlineResource url)
           
 String toString()
           
abstract  String toXML()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RequestMethod

public RequestMethod(OnlineResource or,
                     String[] constraints)
this constructor has all attributes as its parameters.

Parameters:
or -
type -
constraints -

RequestMethod

public RequestMethod(OnlineResource or)
this constructor has all required attributes as its parameters.

Parameters:
or -
type -
Method Detail

toXML

public abstract String toXML()
Returns:
a XML representation.

getConstraints

public String[] getConstraints()
Returns:
Returns the constraints.

setConstraints

protected void setConstraints(String[] constraints)
Parameters:
constraints - The constraints to set.

getOnlineResource

public OnlineResource getOnlineResource()
Returns:

setOnlineResource

protected void setOnlineResource(OnlineResource url)
Parameters:
url -

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012-2013 52north.org. All Rights Reserved.