lucee.Componentcfboom.lang.Object
cfboom.http.client.support.HttpAccessor
Property Summary | ||||
---|---|---|---|---|
type | property | default | serializable | required |
any
|
HttpMethod
|
true
|
false
|
|
any
|
log
|
true
|
false
|
|
any
|
requestFactory
|
true
|
false
|
Constructor Summary | |
---|---|
init()
|
Method Summary | |
---|---|
ClientHttpRequest
|
createRequest(any uri, [HttpMethod method])
Create a new {@link ClientHttpRequest} via this template's {@link ClientHttpRequestFactory}. |
SimpleClientHttpRequestFactory
|
getRequestFactory()
Return the request factory that this accessor uses for obtaining client request handles. |
void
|
setRequestFactory(SimpleClientHttpRequestFactory requestFactory)
Set the request factory that this accessor uses for obtaining client request handles. |
Methods inherited from class cfboom.lang.Object |
---|
$equals, getComponentName, getIdentityHashCode, getIdentityString, getMeta, hashCode, toString |
Methods inherited from class lucee.Component |
---|
None |
Constructor Detail |
---|
Property Detail |
---|
access
- publicrequired
- falsereturntype
- anyinject
- HttpMethod@cfboom-httpserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- logbox:logger:{this}serializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- SimpleClientHttpRequestFactory@cfboom-httpserializable
- trueMethod Detail |
---|
Create a new {@link ClientHttpRequest} via this template's {@link ClientHttpRequestFactory}.
uri
method
Return the request factory that this accessor uses for obtaining client request handles.
Set the request factory that this accessor uses for obtaining client request handles.
The default is a {@link SimpleClientHttpRequestFactory} based on the JDK's own HTTP libraries ({@link java.net.HttpURLConnection}).
Note that the standard JDK HTTP library does not support the HTTP PATCH method. Configure the Apache HttpComponents or OkHttp request factory to enable PATCH.
requestFactory