org.n52.oxf.ows.capabilities
Class DCP

java.lang.Object
  extended by org.n52.oxf.ows.capabilities.DCP

public class DCP
extends Object

Container for the different RequestMethods. Currently only HTTP POST and GET supported.

Author:
Theodor Foerster, Arne Broering

Constructor Summary
DCP(GetRequestMethod httpGet, PostRequestMethod httpPost)
           
DCP(List<RequestMethod> methods)
           
 
Method Summary
protected  void addHTTPGet(GetRequestMethod getMethod)
           
protected  void addHTTPPost(PostRequestMethod postMethod)
           
 List<GetRequestMethod> getHTTPGetRequestMethods()
           
 List<PostRequestMethod> getHTTPPostRequestMethods()
           
 String toString()
           
 String toXML()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DCP

public DCP(GetRequestMethod httpGet,
           PostRequestMethod httpPost)
Parameters:
httpGet -
httpPost -

DCP

public DCP(List<RequestMethod> methods)
Parameters:
methods -
Method Detail

toXML

public String toXML()
Returns:
a XML representation of this DCP.

getHTTPGetRequestMethods

public List<GetRequestMethod> getHTTPGetRequestMethods()
Returns:
Returns a list of all HTTPGetRequestMethods.

addHTTPGet

protected void addHTTPGet(GetRequestMethod getMethod)
Parameters:
get - The hTTPGet to set.

getHTTPPostRequestMethods

public List<PostRequestMethod> getHTTPPostRequestMethods()
Returns:
Returns a list of all HTTPPostRequestMethods.

addHTTPPost

protected void addHTTPPost(PostRequestMethod postMethod)
Parameters:
post - The hTTPPost to set.

toString

public String toString()
Overrides:
toString in class Object


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