|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Request
This represents a Request to be made against a Open Web Service.
Field Summary | |
---|---|
static java.lang.String |
REQUEST
Represents the REQUEST parameter |
static java.lang.String |
SERVICE
|
static java.lang.String |
VERSION
Represents the VERSION parameter |
static java.lang.String |
WMTVER
Represents the WMTVER parameter |
Method Summary | |
---|---|
Response |
createResponse(java.lang.String contentType,
java.io.InputStream inputStream)
Each Request must know how to create it's counterpart Response. |
java.net.URL |
getFinalURL()
Once the properties of the request are configured, this will return the URL that points to the server and contains all of the appropriate name/value parameters. |
java.lang.String |
getPostContentType()
If this request uses POST, it must specify the content type of the data that is to be written out during performPostOutput(). |
java.util.Properties |
getProperties()
|
void |
performPostOutput(java.io.OutputStream outputStream)
This is called during the connection to the server, allowing this request to write out data to the server by using the provided outputStream. |
boolean |
requiresPost()
This method indicates whether this request needs to transmit some data to the server using POST. |
void |
setProperty(java.lang.String name,
java.lang.String value)
Sets the name/value property for this request. |
Field Detail |
---|
static final java.lang.String REQUEST
static final java.lang.String VERSION
static final java.lang.String WMTVER
static final java.lang.String SERVICE
Method Detail |
---|
java.net.URL getFinalURL()
void setProperty(java.lang.String name, java.lang.String value)
value
according to the
OWS specifications! The code will not do this for you.
Different OWS specifications define different ways to do this. There are
notorious differences between WMS 1.1.1 (section 6.2.1) and
WMS 1.3.0 (section 6.3.2) for example.
If value is null, "name" is removed from the properties table.
name
- the name of the propertyvalue
- the value of the propertyjava.util.Properties getProperties()
Response createResponse(java.lang.String contentType, java.io.InputStream inputStream) throws ServiceException, java.io.IOException
contentType
- the MIME type of the data in the inputStreaminputStream
- contains the data from the response
ServiceException
java.io.IOException
boolean requiresPost()
java.lang.String getPostContentType()
void performPostOutput(java.io.OutputStream outputStream) throws java.io.IOException
outputStream
-
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |