|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.prodevelop.gvsig.mobile.fmap.driver.raster.wms.WMSProtocolHandler
This is the class that interacts with the WMS drivers. Sends requests (capabilities, images, etc) and starts the parsing process. It also instantiates the root of the layer descriptions tree, and provides a getter used by the WMS dialog to show the results.
WmsRasterDriver
,
WMSLayerDescription
Field Summary | |
static java.lang.String |
DEFAULT_WMS_VERSION
|
static java.lang.String |
EXCEPTION_TAGS_CODE
Tag used when parsing WMS responses |
static java.lang.String |
EXCEPTION_TAGS_EXCEPTION_ROOT
Tag used when parsing WMS responses |
static java.lang.String |
EXCEPTION_TAGS_SERVICE_EXCEPTION
Tag used when parsing WMS responses |
WMSLayerDescription |
root
|
Constructor Summary | |
WMSProtocolHandler()
|
Method Summary | |
void |
close()
Closes the protocol handler. |
void |
delete()
Removes all the objects owned by this object. |
boolean |
getCapabilities(java.lang.String version,
java.lang.String sym)
This method starts the get capabilities request process and parses the result. |
java.util.ArrayList |
getFormats()
|
java.lang.String |
getHost()
|
java.util.ArrayList |
getInfoFormats()
|
WMSLayerDescription |
getRoot()
|
static java.lang.String |
getSuitableWMSVersion(java.net.URL host)
Sends a GetCapabilities to the WMS server to get the version if the version parameter is null, the WMS will return the highest version supported if not it will return the lower highest version than the one requested. |
java.lang.String |
getSymbol()
|
static java.lang.String |
getSymbol(java.lang.String url)
Utility method to find out the convenient path separator symbol for a given url string. |
java.lang.String |
getVersion()
|
boolean |
isInfoable()
|
static java.lang.String |
leaveInfoable(java.lang.String all_csv,
WMSLayerDescription root,
boolean getname)
This method excludes from a comma separated string of IDs, the ones that are not infoable. |
void |
setHost(java.lang.String _host)
Sets the host url |
void |
setSymbol(java.lang.String s)
Sets the path separator symbol to use with the current WMS server |
void |
setVersion(java.lang.String v)
Sets the WMS protocol version (1.1.1, etc) |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String DEFAULT_WMS_VERSION
public WMSLayerDescription root
public static final java.lang.String EXCEPTION_TAGS_EXCEPTION_ROOT
public static final java.lang.String EXCEPTION_TAGS_SERVICE_EXCEPTION
public static final java.lang.String EXCEPTION_TAGS_CODE
Constructor Detail |
public WMSProtocolHandler()
Method Detail |
public WMSLayerDescription getRoot()
public void delete()
public void setVersion(java.lang.String v)
v
- the WMS protocol versionpublic void setSymbol(java.lang.String s)
s
- the path separator symbol to use with the current WMS serverpublic java.lang.String getVersion()
public java.lang.String getSymbol()
public java.util.ArrayList getFormats()
public java.util.ArrayList getInfoFormats()
public boolean isInfoable()
public java.lang.String getHost()
public void setHost(java.lang.String _host)
_host
- the new host urlpublic boolean getCapabilities(java.lang.String version, java.lang.String sym)
version
- the WMS protocol version to be usedsym
- the path separator symbol to be used when building requests
public void close()
public static java.lang.String getSymbol(java.lang.String url)
url
- the URL of interest
public static java.lang.String getSuitableWMSVersion(java.net.URL host) throws BadWMSResponseException
host
- host URL
BadWMSResponseException
public static java.lang.String leaveInfoable(java.lang.String all_csv, WMSLayerDescription root, boolean getname)
all_csv
- comma separated string of all layers requested by the userroot
- the layer description object of the root layergetname
- whether we wanrt to get the names or the IDs of the layers
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |