Class AbstractWMSRequest
java.lang.Object
com.vividsolutions.wms.AbstractWMSRequest
- All Implemented Interfaces:
WMSRequest
- Direct Known Subclasses:
BasicRequest, FeatureInfoRequest, MapRequest
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfor implementations seeking to work with the connection to retrieve headers or such.getImage()Connect to the service and get an Image of the map.connect and retrieve response as inputStreamGets the WMService that this object will make requests from.getText()connect and retrieve response as textabstract URLgetURL()must be implemented according to the specific needsprotected HttpURLConnectionunified way to create a url connection, may be overwritten and modifiedprotected StringreadConnection(HttpURLConnection con, long limit) protected StringvoidsetWMSVersion(String version) reset WMS version for requests to the underlying wms service
-
Field Details
-
service
-
version
-
con
-
-
Constructor Details
-
AbstractWMSRequest
-
-
Method Details
-
getService
Gets the WMService that this object will make requests from.- Specified by:
getServicein interfaceWMSRequest- Returns:
- the WMService that this object will make requests from
-
setWMSVersion
reset WMS version for requests to the underlying wms service- Specified by:
setWMSVersionin interfaceWMSRequest- Parameters:
version- the WMS version to be used
-
getURL
must be implemented according to the specific needs- Specified by:
getURLin interfaceWMSRequest- Returns:
- the URL of the WMS request
- Throws:
MalformedURLException
-
prepareConnection
unified way to create a url connection, may be overwritten and modified- Returns:
- the HttpURLConnection to use for the request
- Throws:
IOException
-
getConnection
for implementations seeking to work with the connection to retrieve headers or such.- Specified by:
getConnectionin interfaceWMSRequest- Throws:
IOException
-
getImage
Connect to the service and get an Image of the map.- Returns:
- the retrieved map Image
- Throws:
IOException
-
getInputStream
connect and retrieve response as inputStream- Returns:
- the request response as an InputStream
- Throws:
IOException
-
getText
connect and retrieve response as text- Returns:
- the request response as text
- Throws:
IOException
-
readToError
- Throws:
IOException
-
readConnection
- Throws:
IOException
-