Class GroovyHttpRequestWrapper
- java.lang.Object
-
- de.uplanet.lucy.server.scripting.groovy.json.GroovyHttpRequestWrapper
-
public final class GroovyHttpRequestWrapper extends Object
- Since:
- Intrexx 7.0.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getConnectionTimeout()
Get the connection timeout.String
getPassword()
Get thepassword
used for authentication.int
getReadTimeout()
Get the read timeout.long
getResponseBodyLengthLimit()
Get theresponseBodyLengthLimit
property.String
getResponseCharset()
Get theresponseCharset
property.String
getUser()
Get theuser
used for authentication.String
getUserAgent()
Get theuserAgent
property.boolean
isFollowRedirects()
Get thefollowRedirects
property.boolean
isIgnoreServerCertificates()
Get theignoreServerCertificates
property.boolean
isPreemptive()
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
setUser(String p_strUser)
Set theuser
used for authentication.void
setUserAgent(String p_strUserAgent)
Set theuserAgent
property.
-
-
-
Method Detail
-
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
public String getUserAgent()
Get theuserAgent
property.- Returns:
- The
userAgent
property.
-
setUserAgent
public void setUserAgent(String p_strUserAgent)
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
public String getResponseCharset()
Get theresponseCharset
property.- Returns:
- The
responseCharset
property.
-
setResponseCharset
public void setResponseCharset(String p_strResponseCharset)
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
public String getUser()
Get theuser
used for authentication.- Returns:
- The
user
property.
-
setUser
public void setUser(String p_strUser)
Set theuser
used for authentication.- Parameters:
p_strUser
- The new value of theuser
property.
-
getPassword
public String getPassword()
Get thepassword
used for authentication.- Returns:
- The
password
property.
-
setPassword
public void setPassword(String p_strPassword)
Set thepassword
used for authentication.- Parameters:
p_strPassword
- The new value of thepassword
property.
-
-