|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.vfny.geoserver.global.dto.ServiceDTO
Data Transfer Object representing GeoServer Service information.
ServiceConfig is intended to be extended to provide some basic data storage facilities. This class represents the basic properties of a web service.
Data Transfer object are used to communicate between the GeoServer application and its configuration and persistent layers. As such the class is final - to allow for its future use as an on-the-wire message.
It is very tempting to force Web Services to completely define their own DTO elements (rather than trying for reuse using subclassing or aggregation) - simply to force each service to document what it means by each of these peices of information.
Constructor Summary | |
ServiceDTO()
ServiceConfig constructor. |
|
ServiceDTO(ServiceDTO dto)
ServiceConfig constructor. |
Method Summary | |
java.lang.Object |
clone()
Implements clone. |
boolean |
equals(java.lang.Object other)
Implement equals. |
java.lang.String |
getAbstract()
getAbstract purpose. |
java.lang.String |
getAccessConstraints()
The access constraints associated with the service. |
java.lang.String |
getFees()
The fees associated with the service. |
java.lang.String[] |
getKeywords()
Keywords associated with the service. |
java.lang.String |
getMaintainer()
Name of the party who maintains the web service. |
java.lang.String |
getName()
Name of Service. |
java.net.URL |
getOnlineResource()
Online Reference URL for the web service. |
java.lang.String |
getTitle()
The title of the service. |
int |
hashCode()
Implement hashCode for ServiceDTO. |
boolean |
isEnabled()
Represents when the Web Service is enabled/disabled. |
void |
setAbstract(java.lang.String serviceAbstract)
Provides a short abstract about the service. |
void |
setAccessConstraints(java.lang.String constraints)
Provide the access constraints associated with the service. |
void |
setEnabled(boolean b)
setEnabled purpose. |
void |
setFees(java.lang.String string)
Provide the fees associated with the service. |
void |
setKeywords(java.lang.String[] array)
Provide keywords associated with the service. |
void |
setMaintainer(java.lang.String string)
Provide the party that maintains the web service. |
void |
setName(java.lang.String string)
setName purpose. |
void |
setOnlineResource(java.net.URL url)
setOnlineResource purpose. |
void |
setTitle(java.lang.String string)
Sets the title of the service. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ServiceDTO()
does nothing
defaultSettings()
public ServiceDTO(ServiceDTO dto)
This is equivalent to calling the clone method. When a null value is passed in, the default values are used. All non-primary datatypes are cloned with the exception of Strings (which have a singleton hash table in memory representation).
dto
- The ServiceConfig object to copy into the new ServiceConfig
object.
java.lang.NullPointerException
- If dto is nulldefaultSettings()
,
clone()
Method Detail |
public java.lang.Object clone()
clone
in interface DataTransferObject
Object.clone()
public boolean equals(java.lang.Object other)
equals
in interface DataTransferObject
other
- The ServiceConfig object which will be tested.
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in interface DataTransferObject
Object.hashCode()
public java.lang.String getName()
public java.net.URL getOnlineResource()
A location to look for when additional assistance is required.
Example: new URL("http://www.openplans.org/")
public java.lang.String getTitle()
Example: The Open Planning Project Basemap Server
public void setName(java.lang.String string)
string
- public void setOnlineResource(java.net.URL url)
url
- public void setTitle(java.lang.String string)
Example: The Open Planning Project Basemap Server
string
- Title of the Servicepublic java.lang.String getAbstract()
public java.lang.String getAccessConstraints()
When there are not any, the value "NONE" is used.
Example: "NONE"
public boolean isEnabled()
true
is service is enabledpublic java.lang.String getFees()
When there are not any fees, the value "NONE" is used.
Example: NONE
public java.lang.String[] getKeywords()
Example: new String[]{"WFS","New York"}
public java.lang.String getMaintainer()
Should ideally be contact information such as a email address.
Example: "The Open Planning Project"
public void setAbstract(java.lang.String serviceAbstract)
Example:
This is a test server. It contains some basemap data from New York City.
serviceAbstract
- Abstract describing servicepublic void setAccessConstraints(java.lang.String constraints)
When there are not any, use the value "NONE".
Example: "NONE"
constraints
- DOCUMENT ME!public void setEnabled(boolean b)
b
- public void setFees(java.lang.String string)
When there are not any fees, use the value "NONE".
Example: NONE
string
- DOCUMENT ME!public void setKeywords(java.lang.String[] array)
Example: new String[]{"WFS","New York"}
array
- DOCUMENT ME!public void setMaintainer(java.lang.String string)
Should ideally be contact information such as a email address.
Example: "The Open Planning Project"
string
- DOCUMENT ME!
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |