public class HttpRequest extends HttpMessage implements IhttpRequest
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
CHAR |
protected static java.lang.String |
INPUT |
private character |
mcMethod |
private character |
method
Request method.
|
private object<? extends Uri> |
moUri |
protected static java.lang.String |
NET_COOKIE |
protected static java.lang.String |
NET_HTTP_METHOD_ENUM |
protected static java.lang.String |
NET_URI |
protected static java.lang.String |
OBJECT |
private object<? extends Uri> |
uri
Request URI
|
Constructor and Description |
---|
HttpRequest() |
Modifier and Type | Method and Description |
---|---|
void |
__net_http_HttpRequest_constructor__()
Constructor.
|
void |
__net_http_HttpRequest_constructor__(character _pcMethod,
object<? extends Uri> _poURI)
Constructor.
|
void |
__net_http_HttpRequest_constructor__(object<? extends MethodEnum> _poMethod,
object<? extends Uri> _poURI)
Constructor.
|
void |
__net_http_HttpRequest_execute__()
Execute method
|
void |
clearCookies()
Removes all cookies from this request.
|
character |
getMethod()
Get the HTTP method.
|
object<? extends Uri> |
getUri()
Get the HTTP URI.
|
void |
initialize()
Initialize
|
void |
removeCookie(character _pcName)
Removes cookies from this message for a given name
|
void |
setCookie(object<? extends Cookie> _poCookie)
Adds a cookie to this request.
|
protected void |
setHost(object<? extends Uri> _poUri)
Sets the Host header based on the request's URI.
|
void |
setMethod(character _method)
Set the HTTP method.
|
void |
setUri(object<? extends Uri> _uri)
Set the HTTP URI.
|
private void |
stripCookieHeader(character pcName) |
__net_http_HttpMessage_constructor__, __net_http_HttpMessage_destructor__, __net_http_HttpMessage_execute__, clearHeaders, destroy, getAdapter, getCharacterEncoding, getContentLength, getContentMd5, getContentType, getCookie, getCookies, getCookies, getEntity, getHeader, getHeaders, getHeaders, getTransferEncoding, getVersion, hasCookie, hasCookie, hasHeader, removeCookie, removeHeader, setCharacterEncoding, setContentLength, setContentMd5, setContentType, setCookies, setEntity, setHeader, setHeaders, setTransferEncoding, setVersion
__lang_BaseObject_constructor__, __lang_BaseObject_execute__, assertNotNull, assertNotNull, clone, getLegacyClass, getNextSibling, getPrevSibling, legacyEquals, toLegacyString
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clearHeaders, getCharacterEncoding, getContentLength, getContentMd5, getContentType, getCookie, getCookies, getEntity, getHeader, getHeaders, getTransferEncoding, getVersion, hasCookie, hasCookie, hasHeader, removeCookie, removeHeader, setCharacterEncoding, setContentLength, setContentMd5, setContentType, setCookies, setEntity, setHeader, setHeaders, setTransferEncoding, setVersion
__lang_BaseObject_constructor__, clone, getLegacyClass, getNextSibling, getPrevSibling, isTracked, legacyEquals, toLegacyString
protected static final java.lang.String CHAR
protected static final java.lang.String OBJECT
protected static final java.lang.String INPUT
protected static final java.lang.String NET_URI
protected static final java.lang.String NET_COOKIE
protected static final java.lang.String NET_HTTP_METHOD_ENUM
private final character method
private character mcMethod
public character getMethod()
getMethod
in interface IhttpRequest
public void setMethod(character _method)
setMethod
in interface IhttpRequest
_method
- the HTTP method.public object<? extends Uri> getUri()
getUri
in interface IhttpRequest
public void setUri(object<? extends Uri> _uri)
setUri
in interface IhttpRequest
_uri
- the HTTP URI.public void clearCookies()
clearCookies
in interface IhttpMessage
clearCookies
in class HttpMessage
public void removeCookie(character _pcName)
removeCookie
in interface IhttpMessage
removeCookie
in class HttpMessage
_pcName
- The name of the cookie(s) to remove.protected void setHost(object<? extends Uri> _poUri)
_poUri
- the request's URI.public void setCookie(object<? extends Cookie> _poCookie)
setCookie
in interface IhttpMessage
setCookie
in class HttpMessage
_poCookie
- The cookie to add.public void initialize()
initialize
in interface ISupportInitialize
initialize
in class HttpMessage
public void __net_http_HttpRequest_execute__()
public void __net_http_HttpRequest_constructor__()
public void __net_http_HttpRequest_constructor__(character _pcMethod, object<? extends Uri> _poURI)
_pcMethod
- request method._poURI
- request URI.public void __net_http_HttpRequest_constructor__(object<? extends MethodEnum> _poMethod, object<? extends Uri> _poURI)
_poMethod
- request MethodEnum._poURI
- request URI.private void stripCookieHeader(character pcName)