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 intgetConnectionTimeout()Get the connection timeout.StringgetPassword()Get thepasswordused for authentication.intgetReadTimeout()Get the read timeout.longgetResponseBodyLengthLimit()Get theresponseBodyLengthLimitproperty.StringgetResponseCharset()Get theresponseCharsetproperty.StringgetUser()Get theuserused for authentication.StringgetUserAgent()Get theuserAgentproperty.booleanisFollowRedirects()Get thefollowRedirectsproperty.booleanisIgnoreServerCertificates()Get theignoreServerCertificatesproperty.booleanisPreemptive()Get thepreemptiveproperty.voidsetConnectionTimeout(int p_iConnectionTimeout)Set the connection timeout.voidsetFollowRedirects(boolean p_bFollowRedirects)Set thefollowRedirectsproperty.voidsetIgnoreServerCertificates(boolean p_bIgnoreServerCertificates)Set theignoreServerCertificatesproperty.voidsetPassword(String p_strPassword)Set thepasswordused for authentication.voidsetPreemptive(boolean p_bPreemptive)Set thepreemptiveproperty (must betrue).voidsetReadTimeout(int p_iReadTimeout)Set the read timeout.voidsetResponseBodyLengthLimit(long p_lLimitDownloadLength)Set theresponseBodyLengthLimitproperty.voidsetResponseCharset(String p_strResponseCharset)Set theresponseCharsetproperty.voidsetUser(String p_strUser)Set theuserused for authentication.voidsetUserAgent(String p_strUserAgent)Set theuserAgentproperty.
-
-
-
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 theignoreServerCertificatesproperty.- Returns:
- The
ignoreServerCertificatesproperty.
-
setIgnoreServerCertificates
public void setIgnoreServerCertificates(boolean p_bIgnoreServerCertificates)
Set theignoreServerCertificatesproperty.- Parameters:
p_bIgnoreServerCertificates- The new value of theignoreServerCertificatesproperty.
-
getUserAgent
public String getUserAgent()
Get theuserAgentproperty.- Returns:
- The
userAgentproperty.
-
setUserAgent
public void setUserAgent(String p_strUserAgent)
Set theuserAgentproperty.- Parameters:
p_strUserAgent- The new value of theuserAgentproperty.
-
isFollowRedirects
public boolean isFollowRedirects()
Get thefollowRedirectsproperty.- Returns:
- The
followRedirectsproperty.
-
setFollowRedirects
public void setFollowRedirects(boolean p_bFollowRedirects)
Set thefollowRedirectsproperty.- Parameters:
p_bFollowRedirects- The new value of thefollowRedirectsproperty.
-
getResponseBodyLengthLimit
public long getResponseBodyLengthLimit()
Get theresponseBodyLengthLimitproperty.- Returns:
- The
responseBodyLengthLimitproperty.
-
setResponseBodyLengthLimit
public void setResponseBodyLengthLimit(long p_lLimitDownloadLength)
Set theresponseBodyLengthLimitproperty.- Parameters:
p_lLimitDownloadLength- The new value of theresponseBodyLengthLimitproperty.
-
getResponseCharset
public String getResponseCharset()
Get theresponseCharsetproperty.- Returns:
- The
responseCharsetproperty.
-
setResponseCharset
public void setResponseCharset(String p_strResponseCharset)
Set theresponseCharsetproperty.- Parameters:
p_strResponseCharset- The new value of theresponseCharsetproperty.
-
isPreemptive
public boolean isPreemptive()
Get thepreemptiveproperty.- Returns:
- The
preemptiveproperty.
-
setPreemptive
public void setPreemptive(boolean p_bPreemptive)
Set thepreemptiveproperty (must betrue).- Parameters:
p_bPreemptive- The new value of thepreemptiveproperty.
-
getUser
public String getUser()
Get theuserused for authentication.- Returns:
- The
userproperty.
-
setUser
public void setUser(String p_strUser)
Set theuserused for authentication.- Parameters:
p_strUser- The new value of theuserproperty.
-
getPassword
public String getPassword()
Get thepasswordused for authentication.- Returns:
- The
passwordproperty.
-
setPassword
public void setPassword(String p_strPassword)
Set thepasswordused for authentication.- Parameters:
p_strPassword- The new value of thepasswordproperty.
-
-