public class HttpRequestDecorator extends BaseObject implements IhttpRequest, IAdaptable
Modifier and Type | Field and Description |
---|---|
private object<? extends IhttpRequest> |
decoratedHttpRequest |
Constructor and Description |
---|
HttpRequestDecorator() |
Modifier and Type | Method and Description |
---|---|
void |
__net_http_HttpRequestDecorator_constructor__(object<? extends IhttpRequest> _poHttpRequest) |
void |
__net_http_HttpRequestDecorator_execute__() |
void |
clearCookies()
Removes all cookies from this message.
|
void |
clearHeaders()
Removes all headers from this message.
|
object<? extends _BaseObject_> |
getAdapter(object<? extends LegacyClass> _poAdaptTo) |
character |
getCharacterEncoding()
Get the message's content encoding.
|
integer |
getContentLength()
Get the message content length.
|
raw |
getContentMd5()
Get an MD5 hash of the message's content.
|
character |
getContentType()
Get message content type.
|
object<? extends Cookie> |
getCookie(character pcName)
Returns a cookie by name from this message.
|
integer |
getCookies(OutputExtentParameter<object<? extends Cookie>> _extpoCookies)
Returns all the cookies for this message.
|
protected object<? extends IhttpRequest> |
getDecoratedHttpRequest() |
object<? extends _BaseObject_> |
getEntity()
Get an object containing the message body/entity.
|
object<? extends HttpHeader> |
getHeader(character pcName)
Returns a named header.
|
integer |
getHeaders(OutputExtentParameter<object<? extends HttpHeader>> _extpoHeader)
Returns all the headers.
|
character |
getMethod()
Get the HTTP method.
|
character |
getTransferEncoding()
Get the message's Transfer-Encoding.
|
object<? extends Uri> |
getUri()
Get the HTTP URI.
|
character |
getVersion()
Get the HTTP version supported.
|
logical |
hasCookie(character pcName)
Indicates whether a cookie exists for this message.
|
logical |
hasCookie(object<? extends Cookie> poCookie)
Indicates whether a cookie exists for this message.
|
logical |
hasHeader(character pcName)
Indicates whether a header exists for this message or not.
|
void |
removeCookie(character pcName)
Removes coolies from this message for a given name.
|
void |
removeCookie(object<? extends Cookie> poCookie)
Removes a cookie from this message.
|
void |
removeHeader(character _pcName)
Removes all headers with a given name from the set of message headers.
|
void |
setCharacterEncoding(character var)
Set the message's content encoding.
|
void |
setContentLength(integer var)
Set the message content length.
|
void |
setContentMd5(raw var)
Set an MD5 hash of the message's content.
|
void |
setContentType(character var)
Set message content type.
|
void |
setCookie(object<? extends Cookie> poCookie)
Adds a cookie to this message
|
void |
setCookies(object<? extends Cookie>[] poCookies) |
void |
setEntity(object<? extends _BaseObject_> var)
Set an object containing the message body/entity.
|
void |
setHeader(object<? extends HttpHeader> poHeader)
Adds header info to this message's collection of headers.
|
void |
setHeaders(object<? extends HttpHeader>[] poHeaders) |
void |
setMethod(character var)
Set the HTTP method.
|
void |
setTransferEncoding(character var)
Set the message's Transfer-Encoding.
|
void |
setUri(object<? extends Uri> var)
Set the HTTP URI.
|
void |
setVersion(character var)
Set the HTTP version supported.
|
__lang_BaseObject_constructor__, __lang_BaseObject_execute__, assertNotNull, assertNotNull, clone, getLegacyClass, getNextSibling, getPrevSibling, legacyEquals, toLegacyString
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
__lang_BaseObject_constructor__, clone, getLegacyClass, getNextSibling, getPrevSibling, isTracked, legacyEquals, toLegacyString
private object<? extends IhttpRequest> decoratedHttpRequest
public void __net_http_HttpRequestDecorator_execute__()
protected object<? extends IhttpRequest> getDecoratedHttpRequest()
public character getMethod()
IhttpRequest
getMethod
in interface IhttpRequest
public void setMethod(character var)
IhttpRequest
setMethod
in interface IhttpRequest
var
- the HTTP method.public object<? extends Uri> getUri()
IhttpRequest
getUri
in interface IhttpRequest
public void setUri(object<? extends Uri> var)
IhttpRequest
setUri
in interface IhttpRequest
var
- the HTTP URI.public character getVersion()
IhttpMessage
getVersion
in interface IhttpMessage
public void setVersion(character var)
IhttpMessage
setVersion
in interface IhttpMessage
var
- the HTTP version supported.public character getContentType()
IhttpMessage
getContentType
in interface IhttpMessage
public void setContentType(character var)
IhttpMessage
setContentType
in interface IhttpMessage
var
- message content type.public character getCharacterEncoding()
IhttpMessage
getCharacterEncoding
in interface IhttpMessage
public void setCharacterEncoding(character var)
IhttpMessage
setCharacterEncoding
in interface IhttpMessage
var
- the message's content encoding.public raw getContentMd5()
IhttpMessage
getContentMd5
in interface IhttpMessage
public void setContentMd5(raw var)
IhttpMessage
setContentMd5
in interface IhttpMessage
var
- an MD5 hash of the message's content.public object<? extends _BaseObject_> getEntity()
IhttpMessage
getEntity
in interface IhttpMessage
public void setEntity(object<? extends _BaseObject_> var)
IhttpMessage
setEntity
in interface IhttpMessage
var
- an object containing the message body/entity.public integer getContentLength()
IhttpMessage
getContentLength
in interface IhttpMessage
public void setContentLength(integer var)
IhttpMessage
setContentLength
in interface IhttpMessage
var
- the message content length.public character getTransferEncoding()
IhttpMessage
getTransferEncoding
in interface IhttpMessage
public void setTransferEncoding(character var)
IhttpMessage
setTransferEncoding
in interface IhttpMessage
var
- the message's Transfer-Encoding.public void __net_http_HttpRequestDecorator_constructor__(object<? extends IhttpRequest> _poHttpRequest)
public void setHeader(object<? extends HttpHeader> poHeader)
IhttpMessage
setHeader
in interface IhttpMessage
poHeader
- The header.public void setHeaders(object<? extends HttpHeader>[] poHeaders)
setHeaders
in interface IhttpMessage
public object<? extends HttpHeader> getHeader(character pcName)
IhttpMessage
getHeader
in interface IhttpMessage
pcName
- The name of the header to retrieve.public integer getHeaders(OutputExtentParameter<object<? extends HttpHeader>> _extpoHeader)
IhttpMessage
getHeaders
in interface IhttpMessage
_extpoHeader
- An array of headers.public void removeHeader(character _pcName)
IhttpMessage
removeHeader
in interface IhttpMessage
_pcName
- The name of the header to remove.public logical hasHeader(character pcName)
IhttpMessage
hasHeader
in interface IhttpMessage
pcName
- The name of a header to check.true
if this message contains the header.public void clearHeaders()
IhttpMessage
clearHeaders
in interface IhttpMessage
public void setCookie(object<? extends Cookie> poCookie)
IhttpMessage
setCookie
in interface IhttpMessage
poCookie
- The cookie to add.public void setCookies(object<? extends Cookie>[] poCookies)
setCookies
in interface IhttpMessage
public integer getCookies(OutputExtentParameter<object<? extends Cookie>> _extpoCookies)
IhttpMessage
getCookies
in interface IhttpMessage
_extpoCookies
- An array of cookies.public void removeCookie(object<? extends Cookie> poCookie)
IhttpMessage
removeCookie
in interface IhttpMessage
poCookie
- The cookie to remove.public logical hasCookie(object<? extends Cookie> poCookie)
IhttpMessage
hasCookie
in interface IhttpMessage
poCookie
- The cookie to check.true
if this message contains the cookie.public void clearCookies()
IhttpMessage
clearCookies
in interface IhttpMessage
public void removeCookie(character pcName)
IhttpMessage
removeCookie
in interface IhttpMessage
pcName
- The name of the cookie(s) to remove.public logical hasCookie(character pcName)
IhttpMessage
hasCookie
in interface IhttpMessage
pcName
- The cookie's name to check.true
if this message contains the cookie.public object<? extends Cookie> getCookie(character pcName)
IhttpMessage
getCookie
in interface IhttpMessage
pcName
- The cookie's name to check.public object<? extends _BaseObject_> getAdapter(object<? extends LegacyClass> _poAdaptTo)
getAdapter
in interface IAdaptable