Class GroovyHttpRequestWrapper
java.lang.Object
de.uplanet.lucy.server.scripting.groovy.json.GroovyHttpRequestWrapper
- Since:
- Intrexx 7.0.
-
Method Summary
Modifier and TypeMethodDescriptionint
Get the connection timeout.Get thepassword
used for authentication.int
Get the read timeout.long
Get theresponseBodyLengthLimit
property.Get theresponseCharset
property.getUser()
Get theuser
used for authentication.Get theuserAgent
property.boolean
Get thefollowRedirects
property.boolean
Get theignoreServerCertificates
property.boolean
Get thepreemptive
property.void
setConnectionTimeout
(int p_iConnectionTimeout) Set the connection timeout.void
setFollowRedirects
(boolean p_bFollowRedirects) Set thefollowRedirects
property.void
setIgnoreServerCertificates
(boolean p_bIgnoreServerCertificates) Set theignoreServerCertificates
property.void
setPassword
(String p_strPassword) Set thepassword
used for authentication.void
setPreemptive
(boolean p_bPreemptive) Set thepreemptive
property (must betrue
).void
setReadTimeout
(int p_iReadTimeout) Set the read timeout.void
setResponseBodyLengthLimit
(long p_lLimitDownloadLength) Set theresponseBodyLengthLimit
property.void
setResponseCharset
(String p_strResponseCharset) Set theresponseCharset
property.void
Set theuser
used for authentication.void
setUserAgent
(String p_strUserAgent) Set theuserAgent
property.
-
Method Details
-
getConnectionTimeout
public int getConnectionTimeout()Get the connection timeout. The default value is 3000 ms.- Returns:
- The connection timeout in milliseconds.
-
setConnectionTimeout
public void setConnectionTimeout(int p_iConnectionTimeout) Set the connection timeout.- Parameters:
p_iConnectionTimeout
- The new value of the connection timeout in milliseconds.
-
getReadTimeout
public int getReadTimeout()Get the read timeout. The default value is 3000 ms.- Returns:
- The read timeout in milliseconds.
-
setReadTimeout
public void setReadTimeout(int p_iReadTimeout) Set the read timeout.- Parameters:
p_iReadTimeout
- The read timeout in milliseconds.
-
isIgnoreServerCertificates
public boolean isIgnoreServerCertificates()Get theignoreServerCertificates
property.- Returns:
- The
ignoreServerCertificates
property.
-
setIgnoreServerCertificates
public void setIgnoreServerCertificates(boolean p_bIgnoreServerCertificates) Set theignoreServerCertificates
property.- Parameters:
p_bIgnoreServerCertificates
- The new value of theignoreServerCertificates
property.
-
getUserAgent
Get theuserAgent
property.- Returns:
- The
userAgent
property.
-
setUserAgent
Set theuserAgent
property.- Parameters:
p_strUserAgent
- The new value of theuserAgent
property.
-
isFollowRedirects
public boolean isFollowRedirects()Get thefollowRedirects
property.- Returns:
- The
followRedirects
property.
-
setFollowRedirects
public void setFollowRedirects(boolean p_bFollowRedirects) Set thefollowRedirects
property.- Parameters:
p_bFollowRedirects
- The new value of thefollowRedirects
property.
-
getResponseBodyLengthLimit
public long getResponseBodyLengthLimit()Get theresponseBodyLengthLimit
property.- Returns:
- The
responseBodyLengthLimit
property.
-
setResponseBodyLengthLimit
public void setResponseBodyLengthLimit(long p_lLimitDownloadLength) Set theresponseBodyLengthLimit
property.- Parameters:
p_lLimitDownloadLength
- The new value of theresponseBodyLengthLimit
property.
-
getResponseCharset
Get theresponseCharset
property.- Returns:
- The
responseCharset
property.
-
setResponseCharset
Set theresponseCharset
property.- Parameters:
p_strResponseCharset
- The new value of theresponseCharset
property.
-
isPreemptive
public boolean isPreemptive()Get thepreemptive
property.- Returns:
- The
preemptive
property.
-
setPreemptive
public void setPreemptive(boolean p_bPreemptive) Set thepreemptive
property (must betrue
).- Parameters:
p_bPreemptive
- The new value of thepreemptive
property.
-
getUser
Get theuser
used for authentication.- Returns:
- The
user
property.
-
setUser
Set theuser
used for authentication.- Parameters:
p_strUser
- The new value of theuser
property.
-
getPassword
Get thepassword
used for authentication.- Returns:
- The
password
property.
-
setPassword
Set thepassword
used for authentication.- Parameters:
p_strPassword
- The new value of thepassword
property.
-