OWSHttpRequest | R Documentation |
OWSHttpRequest
OWSHttpRequest
R6Class
object.
Object of R6Class
for modelling a generic OWS http request
ows4R::OGCAbstractObject
-> OWSHttpRequest
ows4R::OGCAbstractObject$ERROR()
ows4R::OGCAbstractObject$INFO()
ows4R::OGCAbstractObject$WARN()
ows4R::OGCAbstractObject$encode()
ows4R::OGCAbstractObject$getClass()
ows4R::OGCAbstractObject$getClassName()
ows4R::OGCAbstractObject$getNamespaceDefinition()
ows4R::OGCAbstractObject$isFieldInheritedFrom()
ows4R::OGCAbstractObject$logger()
ows4R::OGCAbstractObject$print()
new()
Initializes an OWS HTTP request
OWSHttpRequest$new( element, namespacePrefix, capabilities, op, type, url, request, user = NULL, pwd = NULL, token = NULL, headers = c(), config = httr::config(), namedParams = NULL, attrs = NULL, contentType = "text/xml", mimeType = "text/xml", skipXmlComments = TRUE, logger = NULL, ... )
element
element
namespacePrefix
namespace prefix
capabilities
object of class or extending OWSCapabilities
op
object of class OWSOperation
type
type of request, eg. GET, POST
url
url
request
request name
user
user
pwd
password
token
token
headers
headers
config
config
namedParams
a named list
attrs
attributes
contentType
content type. Default value is "text/xml"
mimeType
mime type. Default value is "text/xml"
skipXmlComments
Skip XML comments from response
logger
logger
...
any other parameter
execute()
Executes the request
OWSHttpRequest$execute()
getCapabilities()
Get capabilities
OWSHttpRequest$getCapabilities()
an object of class or extending OWSCapabilities
getRequest()
Get request
OWSHttpRequest$getRequest()
the request
getRequestHeaders()
Get request headers
OWSHttpRequest$getRequestHeaders()
the request headers
getStatus()
get status code
OWSHttpRequest$getStatus()
the request status code
getResponse()
get request response
OWSHttpRequest$getResponse()
the request response
getException()
get request exception
OWSHttpRequest$getException()
the request exception
hasException()
Indicates if it has an exception
OWSHttpRequest$hasException()
TRUE
if it has an exception, FALSE
otherwise
getResult()
Get the result TRUE
if the request is successful, FALSE
otherwise
OWSHttpRequest$getResult()
the result, object of class logical
setResult()
Set the result
OWSHttpRequest$setResult(result)
result
object of class logical
clone()
The objects of this class are cloneable with this method.
OWSHttpRequest$clone(deep = FALSE)
deep
Whether to make a deep clone.
Abstract class used internally by ows4R
Emmanuel Blondel <emmanuel.blondel1@gmail.com>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.