Package org.geotools.data.wfs.internal
Class WFSRequest
Object
AbstractRequest
WFSRequest
- All Implemented Interfaces:
Request
- Direct Known Subclasses:
DescribeFeatureTypeRequest
,DescribeStoredQueriesRequest
,GetFeatureRequest
,ListStoredQueriesRequest
,TransactionRequest
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final WFSConfig
protected final WFSOperationType
protected final WFSStrategy
Fields inherited from class AbstractRequest
EXCEPTION_XML, hints, onlineResource, properties
-
Constructor Summary
ConstructorsConstructorDescriptionWFSRequest
(WFSOperationType operation, WFSConfig config, WFSStrategy strategy) -
Method Summary
Modifier and TypeMethodDescriptioncreateResponse
(HTTPResponse response) Each Request must know how to create it's counterpart Response.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.Default POST content type is xmlprotected void
protected void
Implementing subclass requests must specify their own "SERVICE" value.protected void
Sets up the version number for this request.void
performPostOutput
(OutputStream outputStream) Default to not requiring POST.boolean
Default to not requiring POST.void
void
setOutputFormat
(String outputFormat) void
setTypeName
(QName typeName) toString()
Methods inherited from class AbstractRequest
getProperties, getRequestHints, processKey, setProperty, setRequestHints
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface Request
getProperties, getRequestHints, setProperty, setRequestHints
-
Field Details
-
strategy
-
operation
-
config
-
-
Constructor Details
-
WFSRequest
-
-
Method Details
-
getOutputFormat
-
getHandle
-
setHandle
-
setOutputFormat
- Parameters:
outputFormat
- the outputFormat to set
-
setTypeName
-
getTypeName
-
getStrategy
-
getOperation
-
requiresPost
public boolean requiresPost()Description copied from class:AbstractRequest
Default to not requiring POST. Implementors can override if they need to.- Specified by:
requiresPost
in interfaceRequest
- Overrides:
requiresPost
in classAbstractRequest
- Returns:
- true if this request needs POST support, false otherwise.
-
initService
protected void initService()Description copied from class:AbstractRequest
Implementing subclass requests must specify their own "SERVICE" value. Example: setProperty("SERVICE", "WFS");- Specified by:
initService
in classAbstractRequest
-
initVersion
protected void initVersion()Description copied from class:AbstractRequest
Sets up the version number for this request. Typically something like setProperty("VERSION", "1.1.1");- Specified by:
initVersion
in classAbstractRequest
-
initRequest
protected void initRequest()- Specified by:
initRequest
in classAbstractRequest
-
getFinalURL
Description copied from interface:Request
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.- Specified by:
getFinalURL
in interfaceRequest
- Overrides:
getFinalURL
in classAbstractRequest
- Returns:
- a URL that can be used to issue the request
- See Also:
-
org.geotools.data.wms.request.Request#getFinalURL()
-
getPostContentType
Description copied from class:AbstractRequest
Default POST content type is xml- Specified by:
getPostContentType
in interfaceRequest
- Overrides:
getPostContentType
in classAbstractRequest
- Returns:
- the MIME type of the data to be sent during the request
-
performPostOutput
Description copied from class:AbstractRequest
Default to not requiring POST. Implementors can override if they need to.- Specified by:
performPostOutput
in interfaceRequest
- Overrides:
performPostOutput
in classAbstractRequest
- Throws:
IOException
-
createResponse
Description copied from interface:Request
Each Request must know how to create it's counterpart Response. Given the content type and input stream (containin the response data), this method must return an appropriate Response object.- Specified by:
createResponse
in interfaceRequest
- Throws:
ServiceException
IOException
-
toString
-