public abstract class WFSRequest extends AbstractRequest implements Request
Modifier and Type | Field and Description |
---|---|
protected WFSConfig |
config |
protected WFSOperationType |
operation |
protected WFSStrategy |
strategy |
EXCEPTION_XML, hints, onlineResource, properties
Constructor and Description |
---|
WFSRequest(WFSOperationType operation,
WFSConfig config,
WFSStrategy strategy) |
Modifier and Type | Method and Description |
---|---|
WFSResponse |
createResponse(HTTPResponse response)
Each Request must know how to create it's counterpart Response.
|
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.
|
String |
getHandle() |
WFSOperationType |
getOperation() |
String |
getOutputFormat() |
String |
getPostContentType()
Default POST content type is xml
|
WFSStrategy |
getStrategy() |
QName |
getTypeName() |
protected void |
initRequest() |
protected void |
initService()
Implementing subclass requests must specify their own "SERVICE" value.
|
protected void |
initVersion()
Sets up the version number for this request.
|
void |
performPostOutput(OutputStream outputStream)
Default to not requiring POST.
|
boolean |
requiresPost()
Default to not requiring POST.
|
void |
setHandle(String handle) |
void |
setOutputFormat(String outputFormat) |
void |
setTypeName(QName typeName) |
String |
toString() |
getProperties, getRequestHints, processKey, setProperty, setRequestHints
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getProperties, getRequestHints, setProperty, setRequestHints
protected final WFSStrategy strategy
protected final WFSOperationType operation
protected final WFSConfig config
public WFSRequest(WFSOperationType operation, WFSConfig config, WFSStrategy strategy)
public String getOutputFormat()
public String getHandle()
public void setHandle(String handle)
public void setOutputFormat(String outputFormat)
outputFormat
- the outputFormat to setpublic void setTypeName(QName typeName)
public QName getTypeName()
public WFSStrategy getStrategy()
public WFSOperationType getOperation()
public boolean requiresPost()
AbstractRequest
requiresPost
in interface Request
requiresPost
in class AbstractRequest
protected void initService()
AbstractRequest
initService
in class AbstractRequest
protected void initVersion()
AbstractRequest
initVersion
in class AbstractRequest
protected void initRequest()
initRequest
in class AbstractRequest
public URL getFinalURL()
Request
getFinalURL
in interface Request
getFinalURL
in class AbstractRequest
org.geotools.data.wms.request.Request#getFinalURL()
public String getPostContentType()
AbstractRequest
getPostContentType
in interface Request
getPostContentType
in class AbstractRequest
public void performPostOutput(OutputStream outputStream) throws IOException
AbstractRequest
performPostOutput
in interface Request
performPostOutput
in class AbstractRequest
IOException
public WFSResponse createResponse(HTTPResponse response) throws IOException
Request
createResponse
in interface Request
IOException
Copyright © 1996–2019 Geotools. All rights reserved.