deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.portal.owswatch.configs
Class ServiceRequest

java.lang.Object
  extended by org.deegree.portal.owswatch.configs.ServiceRequest
All Implemented Interfaces:
java.io.Serializable

public class ServiceRequest
extends java.lang.Object
implements java.io.Serializable

Holds the information about a certain request of a certain service, which http methods, this request cn use and what are its htmlKeys

Version:
$Revision: 20271 $, $Date: 2009-10-21 13:07:15 +0200 (Mi, 21 Okt 2009) $
Author:
Moataz Elmasry, last edited by: $Author: jmays $
See Also:
Serialized Form

Constructor Summary
ServiceRequest(java.lang.String name, java.lang.String getSnippetPath, java.lang.String postSnippetPath, boolean canPOST, boolean canGET, java.util.List<java.lang.String> htmlKeys)
          A constructor to instantate a class describing the service name and its corresponding html code that accepts specific paramters for this request
 
Method Summary
 java.util.List<java.lang.String> getHtmlKeys()
           
 java.lang.String getHtmlText()
           
 java.lang.String getName()
           
 java.lang.String getPostRequest()
          Reads an example xml file for a post request, will be used mainly for GetCapabilities. but its also possbible to assign it to any request type
 java.lang.String getValue()
           
 boolean isCanGET()
           
 boolean isCanPOST()
           
protected  java.lang.String readFileToString(java.lang.String filePath)
          Reads the html snippet file and save it as a String variable to be used later by the DHTML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceRequest

public ServiceRequest(java.lang.String name,
                      java.lang.String getSnippetPath,
                      java.lang.String postSnippetPath,
                      boolean canPOST,
                      boolean canGET,
                      java.util.List<java.lang.String> htmlKeys)
               throws java.io.IOException
A constructor to instantate a class describing the service name and its corresponding html code that accepts specific paramters for this request

Parameters:
name -
getSnippetPath -
postSnippetPath -
canPOST -
canGET -
htmlKeys -
Throws:
java.io.IOException
Method Detail

readFileToString

protected java.lang.String readFileToString(java.lang.String filePath)
                                     throws java.io.IOException
Reads the html snippet file and save it as a String variable to be used later by the DHTML

Parameters:
filePath -
Returns:
String
Throws:
java.io.IOException

getName

public java.lang.String getName()
Returns:
Request name, ex GetCapabilities

getValue

public java.lang.String getValue()
Returns:
path to html code describing the parameters for this service

isCanGET

public boolean isCanGET()
Returns:
can send GET Requests

isCanPOST

public boolean isCanPOST()
Returns:
can send POST requests

getHtmlText

public java.lang.String getHtmlText()
Returns:
String

getHtmlKeys

public java.util.List<java.lang.String> getHtmlKeys()
Returns:
List of HTML keys

getPostRequest

public java.lang.String getPostRequest()
Reads an example xml file for a post request, will be used mainly for GetCapabilities. but its also possbible to assign it to any request type

Returns:
String

deegree 2.5 (2011/06/29 09:44 build-8-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org