|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.moximedia.ows.wms.WmsService
Implementation of a WMS service.
| Field Summary |
| Fields inherited from interface com.moximedia.ows.types.ServiceType |
SERVICE_TYPE_ACETATE, SERVICE_TYPE_WFS, SERVICE_TYPE_WMS |
| Fields inherited from interface com.moximedia.ows.types.LayerType |
LAYER_TYPE_ACETATE, LAYER_TYPE_WFS, LAYER_TYPE_WMS |
| Constructor Summary | |
WmsService()
Creates a new WmsService object |
|
| Method Summary | |
java.lang.String |
getAuthenticationId()
Gets the authentication ID or keyword that specifies authentication parameters. |
java.lang.String |
getFeatureInfo(Map map,
Layers lyrs,
int x,
int y,
int maxResults)
Creates the URL used for the WMS GetFeature request for this service for multiple layers. |
java.lang.String |
getFeatureInfo(Map map,
WmsLayer lyr,
int x,
int y,
int maxResults)
Creates the URL used for the WMS GetFeature request for this service for a single layer. |
java.lang.String |
getForwardedImage(Map map,
java.lang.String imageUrl)
Makes a local copy of a remote image and returns a URL to it. |
java.lang.String |
getGetCapabilitiesUrl()
Gets the capabilities URL if one is specified. |
java.lang.String |
getGetFeatureInfoExceptionFormat()
Gets the GetFeatureInfo exception format. |
java.lang.String |
getGetFeatureInfoFormat()
Gets the GetFeatureInfo request format. |
java.lang.String |
getGetFeatureInfoParsingFormat()
Gets the name of the class used for parsing the GetFeatureInfo response for this service. |
java.lang.String |
getGetFeatureInfoRequest()
Gets the last GetFeatureInfo request made to this service. |
java.lang.String |
getGetFeatureInfoResponse()
Gets the last GetFeatureInfo response received from this service. |
java.lang.String |
getGetFeatureInfoUrl()
Gets the base URL used for the WMS GetFeatureInfo requests. |
java.lang.String |
getGetMapExceptionFormat()
Gets the exception format used in GetMap requests. |
java.lang.String |
getGetMapFormat()
Gets the format used in GetMap requests, like image/png. |
java.lang.String |
getGetMapRequest()
Gets the last GetMap request sent to this service. |
java.lang.String |
getGetMapUrl()
Gets the base URL used for the WMS GetMap requests. |
boolean |
getIsPortalService()
Returns an indicator of whether the service is one that has been added by the wms portal routine. |
boolean |
getIsUploadService()
Returns an indicator of whether the service is one that has been added by the user using an upload routines. |
boolean |
getIsUserAddedService()
Returns an indicator of whether the service is one that has been added by the user using an upload routine or the wms portal routines. |
Layers |
getLayers()
Gets the layers in this service. |
java.lang.String |
getMap(Map map,
boolean transparent)
Creates the URL used for the WMS GetMap request for this service. |
java.lang.String |
getMap(Map map,
Layers layers,
boolean transparent)
Creates the URL used for the WMS GetMap request for this service. |
java.lang.String |
getMap(Map map,
Layers layers,
int width,
int height,
Envelope extent,
java.lang.String srs,
boolean transparent)
Creates the URL used for the WMS GetMap request for this service. |
java.lang.String |
getName()
Get the name of this service. |
int |
getObjectId()
Gets the IMF assigned object id for this service. |
java.awt.image.BufferedImage |
getProjectedImage(Map map,
Layers layers,
boolean transparent)
Creates a projected image for the specified layers in this service. |
Projection |
getProjection()
Gets the projection of this service. |
int |
getServiceType()
Gets the service type of this service. |
java.lang.String |
getSld()
Gets the URL of the service's styled layer descriptor SLD or null if there isn't one. |
java.lang.String |
getSrs()
Gets the SRS code for this service. |
boolean |
getTransparent()
Returns an indicator of whether the GetMap request asks for a transparent image. |
java.lang.String |
getVersion()
Gets the version number used in WMS requests to this service. |
long |
getVersionNumber()
Gets the version number as a comparable number. |
long |
getVersionNumber(java.lang.String versionString)
Gets the comparable numeric version number associated with a string. |
boolean |
hasAuthentication()
Returns an indicator of whether the service uses authentication. |
boolean |
hasSemiTransparentLayers()
Returns an indicator of whether the service contains any semi-transparent layers. |
boolean |
isForwarded()
Returns an indicator of whether images received from the service are copied and forwarded. |
boolean |
isQueryable()
Returns an indicator as to whether the service is queryable, as indicated by the presence of a valid GET-FEATURE-INFO element. |
void |
query(Map map,
Layer lyr,
int x,
int y)
Perform a GetFeatureInfo query on one layer in this service. |
void |
setAuthentication(java.lang.String userpass)
Sets the username and password. |
void |
setBackgroundColor(Color color)
Sets the background color |
void |
setExtraFeatureInfoRequestParameter(java.lang.String paramName,
java.lang.String paramValue)
Sets an extra vendor specific parameter to add to GetFeatureInfo requests from this WMS service. |
void |
setExtraMapRequestParameter(java.lang.String paramName,
java.lang.String paramValue)
Sets an extra vendor specific parameter to add to GetMap requests from this WMS service. |
void |
setForwarded(boolean forwarded)
Sets the service to be forwarded. |
void |
setGetFeatureInfoExceptionFormat(java.lang.String format)
Sets the GetFeatureInfo exception format. |
void |
setGetFeatureInfoFormat(java.lang.String format)
Sets the GetFeatureInfo request format. |
void |
setGetFeatureInfoParsingFormat(java.lang.String format)
Sets the name of the class used for parsing the GetFeatureInfo response for this service. |
void |
setGetFeatureInfoUrl(java.lang.String href)
Sets the base URL used for the WMS GetFeatureInfo requests. |
void |
setGetMapExceptionFormat(java.lang.String format)
Sets the exception format used in GetMap requests. |
void |
setGetMapFormat(java.lang.String format)
Sets the format used in GetMap requests, like image/png. |
void |
setGetMapUrl(java.lang.String href)
Sets the base URL used for the WMS GetMap requests. |
void |
setIsPortalService(boolean isPortal)
Sets an indicator of whether the service is one that has been added by the wms portal routines. |
void |
setIsUploadService(boolean isUpload)
Sets an indicator of whether the service is one that has been added by the user using an upload routines. |
void |
setName(java.lang.String name)
Sets the name of this service. |
void |
setProjection(Projection prj)
Sets the service's projection and SRS. |
void |
setSld(java.lang.String href)
Sets the service's styled layer descriptor SLD. |
void |
setSrs(java.lang.String srs)
Sets the service's srs string. |
void |
setTransparent(boolean flag)
Sets whether the GetMap request asks for a transparent image. |
void |
setVersion(java.lang.String version)
Sets the version number used in WMS requests to this service. |
void |
setXmlAttribute(Map map,
java.lang.String element,
java.lang.String name,
java.lang.String value)
Sets one of the attributes of this object using a string value. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public WmsService()
| Method Detail |
public boolean getIsPortalService()
public void setIsPortalService(boolean isPortal)
isPortal - if the service has been added, otherwise false.public boolean getIsUploadService()
public void setIsUploadService(boolean isUpload)
isUpload - if the service has been added, otherwise false.public boolean getIsUserAddedService()
public boolean hasAuthentication()
public java.lang.String getAuthenticationId()
public void setAuthentication(java.lang.String userpass)
userpass - The credentials separated by a colon, user:passpublic void setBackgroundColor(Color color)
public java.lang.String getGetCapabilitiesUrl()
public boolean isForwarded()
isForwarded in interface Servicepublic void setForwarded(boolean forwarded)
forwarded - True if it should be forwarded, otherwise false.public java.lang.String getGetFeatureInfoExceptionFormat()
public void setGetFeatureInfoExceptionFormat(java.lang.String format)
format - The exception format.public java.lang.String getGetFeatureInfoFormat()
public void setGetFeatureInfoFormat(java.lang.String format)
format - The GetFeatureInfo request format.public java.lang.String getGetFeatureInfoParsingFormat()
public void setGetFeatureInfoParsingFormat(java.lang.String format)
public java.lang.String getGetFeatureInfoRequest()
public java.lang.String getGetFeatureInfoResponse()
public java.lang.String getGetFeatureInfoUrl()
public void setGetFeatureInfoUrl(java.lang.String href)
href - The base URL.public java.lang.String getGetMapExceptionFormat()
public void setGetMapExceptionFormat(java.lang.String format)
format - The exception format.public java.lang.String getGetMapRequest()
public java.lang.String getGetMapFormat()
public void setGetMapFormat(java.lang.String format)
format - The request format.public java.lang.String getGetMapUrl()
public void setGetMapUrl(java.lang.String href)
href - The base URL.public Layers getLayers()
public java.lang.String getName()
getName in interface Servicepublic void setName(java.lang.String name)
name - The name of this service.public int getObjectId()
getObjectId in interface Servicepublic Projection getProjection()
public void setProjection(Projection prj)
prj - The projection.public int getServiceType()
getServiceType in interface Servicepublic void setSld(java.lang.String href)
href - The URL to the SLD. Set the SLD to null
if you don't want to use an SLD.public java.lang.String getSld()
public java.lang.String getSrs()
public void setSrs(java.lang.String srs)
srs - The SRS string.public boolean getTransparent()
public void setTransparent(boolean flag)
flag - True if transparency is requested, otherwise false.public java.lang.String getVersion()
public void setVersion(java.lang.String version)
version - The version number, like 1.1.1public long getVersionNumber()
public long getVersionNumber(java.lang.String versionString)
versionString - The version string.
public void query(Map map,
Layer lyr,
int x,
int y)
map - The map containing the service and layer.lyr - The layer.x - The x coordinate value in pixels.y - The y coordinate value in pixels.public boolean isQueryable()
public void setXmlAttribute(Map map,
java.lang.String element,
java.lang.String name,
java.lang.String value)
map - The map that contains this service.element - The XML element tag containing this attribute.name - The XML attribute name.value - The XML attribute value.
public java.lang.String getMap(Map map,
boolean transparent)
map - The map containing the servicetransparent - True if tranparent otherwise false.
public java.lang.String getMap(Map map,
Layers layers,
boolean transparent)
getMap in interface Servicemap - The map containing the servicelayers - The layers to draw.transparent - True if tranparent otherwise false.
public java.lang.String getMap(Map map,
Layers layers,
int width,
int height,
Envelope extent,
java.lang.String srs,
boolean transparent)
map - The map containing the servicelayers - The layers to draw.width - The map width in pixels.height - The map height in pixels.extent - The map extent.srs - The spatial reference system code.transparent - True if tranparent otherwise false.
public java.lang.String getFeatureInfo(Map map,
WmsLayer lyr,
int x,
int y,
int maxResults)
map - The map containing the servicelyr - The layer to query.x - The query point x coordinate in pixels.y - The query point y coordinate in pixels.maxResults - The maximum number of results to return.
public java.lang.String getFeatureInfo(Map map,
Layers lyrs,
int x,
int y,
int maxResults)
map - The map containing the servicex - The query point x coordinate in pixels.y - The query point y coordinate in pixels.maxResults - The maximum number of results to return.
public java.lang.String getForwardedImage(Map map,
java.lang.String imageUrl)
map - The map used for this service.imageUrl - The image returned from the GetMap request.
public java.awt.image.BufferedImage getProjectedImage(Map map,
Layers layers,
boolean transparent)
map - The map used for this service.layers - The layers to draw.transparent - True if the map should be transparent, otherwise false.
public boolean hasSemiTransparentLayers()
public void setExtraFeatureInfoRequestParameter(java.lang.String paramName,
java.lang.String paramValue)
paramName - The parameter name.paramValue - The parameter value.
public void setExtraMapRequestParameter(java.lang.String paramName,
java.lang.String paramValue)
paramName - The parameter name.paramValue - The parameter value.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||