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, setRequestHintsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetProperties, getRequestHints, setProperty, setRequestHintsprotected 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()
AbstractRequestrequiresPost in interface RequestrequiresPost in class AbstractRequestprotected void initService()
AbstractRequestinitService in class AbstractRequestprotected void initVersion()
AbstractRequestinitVersion in class AbstractRequestprotected void initRequest()
initRequest in class AbstractRequestpublic URL getFinalURL()
RequestgetFinalURL in interface RequestgetFinalURL in class AbstractRequestorg.geotools.data.wms.request.Request#getFinalURL()public String getPostContentType()
AbstractRequestgetPostContentType in interface RequestgetPostContentType in class AbstractRequestpublic void performPostOutput(OutputStream outputStream) throws IOException
AbstractRequestperformPostOutput in interface RequestperformPostOutput in class AbstractRequestIOExceptionpublic WFSResponse createResponse(HTTPResponse response) throws IOException
RequestcreateResponse in interface RequestIOExceptionCopyright © 1996–2019 Geotools. All rights reserved.