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 WFSConfigprotected final WFSOperationTypeprotected final WFSStrategyFields 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 voidprotected voidImplementing subclass requests must specify their own "SERVICE" value.protected voidSets up the version number for this request.voidperformPostOutput(OutputStream outputStream) Default to not requiring POST.booleanDefault to not requiring POST.voidvoidsetOutputFormat(String outputFormat) voidsetTypeName(QName typeName) toString()Methods inherited from class AbstractRequest
getProperties, getRequestHints, processKey, setProperty, setRequestHintsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:AbstractRequestDefault to not requiring POST. Implementors can override if they need to.- Specified by:
requiresPostin interfaceRequest- Overrides:
requiresPostin classAbstractRequest- Returns:
- true if this request needs POST support, false otherwise.
-
initService
protected void initService()Description copied from class:AbstractRequestImplementing subclass requests must specify their own "SERVICE" value. Example: setProperty("SERVICE", "WFS");- Specified by:
initServicein classAbstractRequest
-
initVersion
protected void initVersion()Description copied from class:AbstractRequestSets up the version number for this request. Typically something like setProperty("VERSION", "1.1.1");- Specified by:
initVersionin classAbstractRequest
-
initRequest
protected void initRequest()- Specified by:
initRequestin classAbstractRequest
-
getFinalURL
Description copied from interface:RequestOnce 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:
getFinalURLin interfaceRequest- Overrides:
getFinalURLin 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:AbstractRequestDefault POST content type is xml- Specified by:
getPostContentTypein interfaceRequest- Overrides:
getPostContentTypein classAbstractRequest- Returns:
- the MIME type of the data to be sent during the request
-
performPostOutput
Description copied from class:AbstractRequestDefault to not requiring POST. Implementors can override if they need to.- Specified by:
performPostOutputin interfaceRequest- Overrides:
performPostOutputin classAbstractRequest- Throws:
IOException
-
createResponse
Description copied from interface:RequestEach 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:
createResponsein interfaceRequest- Throws:
ServiceExceptionIOException
-
toString
-