|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.portal.owswatch.ServiceConfiguration
public class ServiceConfiguration
A data class to hold the information about a certain test. Like test name , type, etc..
Constructor Summary | |
---|---|
ServiceConfiguration(int serviceId,
java.lang.String serviceName,
java.lang.String httpMethod,
java.lang.String onlineResource,
boolean active,
int interval,
int timeout,
java.util.Properties requestParams)
This constructor is used by both ServicesConfigurationFactory and to build requests from the jsp page ,when adding/changing a service. |
Method Summary | |
---|---|
protected java.lang.String |
createGETRequest()
|
java.lang.String |
createHttpRequest()
Creates a http request based on the content of the Service. |
protected java.lang.String |
createPOSTRequest()
|
static int |
generateServiceId()
|
java.lang.String |
getHttpMethod()
|
org.apache.commons.httpclient.HttpMethodBase |
getHttpMethodBase()
Creates an HttpMethodBase on the first call and keeps returning it back |
java.lang.String |
getOnlineResource()
|
java.util.Properties |
getProperties()
|
int |
getRefreshRate()
|
java.lang.String |
getRequestType()
|
static int |
getServiceCounter()
|
int |
getServiceid()
|
java.lang.String |
getServiceName()
|
java.lang.String |
getServiceType()
|
java.lang.String |
getServiceVersion()
|
int |
getTimeout()
|
Validator |
getValidator()
Generically creates an instance of the needed Validator using reflection |
int |
hashCode()
|
boolean |
isActive()
|
void |
setActive(boolean active)
|
void |
setOnlineResource(java.lang.String onlineResource)
|
static void |
setServiceCounter(int serviceCounter)
|
void |
setServiceName(java.lang.String serviceName)
|
void |
setTimeout(int timeout)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServiceConfiguration(int serviceId, java.lang.String serviceName, java.lang.String httpMethod, java.lang.String onlineResource, boolean active, int interval, int timeout, java.util.Properties requestParams) throws ConfigurationsException
serviceId
- -1 to assign a new id to this serviceserviceName
- httpMethod
- onlineResource
- active
- interval
- timeout
- requestParams
- Contains the kvp request parameter, it must at least the following keys include VERSION, SERVICE,
REQUEST
ConfigurationsException
- if any of the mandatory parameters is nullMethod Detail |
---|
public java.util.Properties getProperties()
public java.lang.String createHttpRequest()
protected java.lang.String createGETRequest()
protected java.lang.String createPOSTRequest()
public static int generateServiceId()
public int getServiceid()
public boolean isActive()
public void setActive(boolean active)
active
- public java.lang.String getHttpMethod()
public int getRefreshRate()
public java.lang.String getOnlineResource()
public java.lang.String getRequestType()
public java.lang.String getServiceName()
public java.lang.String getServiceType()
public java.lang.String getServiceVersion()
public int getTimeout()
public static int getServiceCounter()
public static void setServiceCounter(int serviceCounter)
serviceCounter
- Sets the service counter. It should be used solely by the class ServiceWatcherpublic void setOnlineResource(java.lang.String onlineResource)
onlineResource
- of the servicepublic void setServiceName(java.lang.String serviceName)
serviceName
- public void setTimeout(int timeout)
timeout
- in millisecondspublic org.apache.commons.httpclient.HttpMethodBase getHttpMethodBase() throws OGCWebServiceException
HttpMethodBase
OGCWebServiceException
- If no Httpmethod could be initialized as POSTpublic Validator getValidator() throws ConfigurationsException
Validator
ConfigurationsException
public int hashCode()
hashCode
in class java.lang.Object
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org