public final class Http41 extends BodyTagImpl implements Http
Modifier and Type | Field and Description |
---|---|
static short |
MAX_REDIRECT
Maximum redirect count (5)
|
static String |
MULTIPART_FORM_DATA |
static String |
MULTIPART_RELATED |
static int |
STATUS_REDIRECT_FOUND
Constant value for HTTP Status Code "Found 302"
|
static int |
STATUS_REDIRECT_MOVED_PERMANENTLY
Constant value for HTTP Status Code "moved Permanently 301"
|
static int |
STATUS_REDIRECT_SEE_OTHER
Constant value for HTTP Status Code "see other 303"
|
static int |
STATUS_REDIRECT_TEMPORARY_REDIRECT |
Constructor and Description |
---|
Http41() |
Modifier and Type | Method and Description |
---|---|
String |
dec(String str) |
int |
doAfterBody() |
int |
doEndTag() |
void |
doInitBody() |
int |
doStartTag() |
void |
hasBody(boolean hasBody)
sets if has body or not
|
void |
release() |
void |
setAddtoken(boolean addtoken) |
void |
setAuthtype(String strAuthType) |
void |
setCharset(String charset)
set the value charset
set the charset for the call.
|
void |
setColumns(String columns)
set the value columns
|
void |
setCompression(String strCompression) |
void |
setDelimiter(String delimiter)
set the value delimiter
Required for creating a query.
|
void |
setDomain(String domain) |
void |
setEncodeurl(boolean encoded) |
void |
setFile(String file)
set the value file
The filename to be used for the file that is accessed.
|
void |
setFirstrowasheaders(boolean firstrowasheaders) |
void |
setGetasbinary(String getAsBinary) |
void |
setMethod(String method)
set the value method
GET or POST.
|
void |
setMultipart(boolean multiPart) |
void |
setMultiparttype(String multiPartType) |
void |
setName(String name)
set the value name
The name to assign to a query if the a query is constructed from a file.
|
void |
setParam(HttpParamBean param) |
void |
setPassword(String password)
set the value password
When required by a server, a valid password.
|
void |
setPath(String path)
set the value path
The path to the directory in which a file is to be stored.
|
void |
setPort(double port)
set the value port
The port number on the server from which the object is requested.
|
void |
setPreauth(boolean preauth) |
void |
setProxypassword(String proxypassword)
set the value password
When required by a proxy server, a valid password.
|
void |
setProxyport(double proxyport)
set the value proxyport
The port number on the proxy server from which the object is requested.
|
void |
setProxyserver(String proxyserver)
set the value proxyserver
Host name or IP address of a proxy server.
|
void |
setProxyuser(String proxyuser)
set the value username
When required by a proxy server, a valid username.
|
void |
setRedirect(boolean redirect)
set the value redirect
|
void |
setResolveurl(boolean resolveurl)
set the value resolveurl
Yes or No.
|
void |
setResult(String result) |
void |
setTextqualifier(String textqualifier)
set the value textqualifier
Required for creating a query.
|
void |
setThrowonerror(boolean throwonerror)
set the value throwonerror
Boolean indicating whether to throw an exception that can be caught by using the cftry and
cfcatch tags.
|
static void |
setTimeout(org.apache.http.impl.client.HttpClientBuilder builder,
TimeSpan timeout) |
void |
setTimeout(Object timeout)
set the value timeout
|
void |
setUrl(String url)
set the value url
Full URL of the host name or IP address of the server on which the file resides.
|
void |
setUseragent(String useragent)
set the value useragent
User agent request header.
|
void |
setUsername(String username)
set the value username
When required by a server, a valid username.
|
void |
setWorkstation(String workStation) |
setBodyContent
getParent, required, required, required, required, setPageContext, setPageContext, setParent
public static final String MULTIPART_RELATED
public static final String MULTIPART_FORM_DATA
public static final short MAX_REDIRECT
public static final int STATUS_REDIRECT_MOVED_PERMANENTLY
public static final int STATUS_REDIRECT_FOUND
public static final int STATUS_REDIRECT_SEE_OTHER
public static final int STATUS_REDIRECT_TEMPORARY_REDIRECT
public Http41()
public void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class BodyTagImpl
public void setFirstrowasheaders(boolean firstrowasheaders)
setFirstrowasheaders
in interface Http
firstrowasheaders
- public void setEncodeurl(boolean encoded)
setEncodeurl
in interface Http
public void setPassword(String password)
setPassword
in interface Http
password
- value to setpublic void setProxypassword(String proxypassword)
setProxypassword
in interface Http
proxypassword
- value to setpublic void setDelimiter(String delimiter)
setDelimiter
in interface Http
delimiter
- value to setpublic void setResolveurl(boolean resolveurl)
setResolveurl
in interface Http
resolveurl
- value to setpublic void setPreauth(boolean preauth)
setPreauth
in interface Http
public void setTimeout(Object timeout) throws PageException
setTimeout
in interface Http
timeout
- value to setExpressionException
PageException
public void setProxyserver(String proxyserver)
setProxyserver
in interface Http
proxyserver
- value to setpublic void setProxyport(double proxyport)
setProxyport
in interface Http
proxyport
- value to setpublic void setFile(String file)
public void setThrowonerror(boolean throwonerror)
setThrowonerror
in interface Http
throwonerror
- value to setpublic void setCharset(String charset)
setCharset
in interface Http
charset
- value to setpublic void setColumns(String columns) throws PageException
setColumns
in interface Http
columns
- value to setPageException
public void setPort(double port)
public void setUseragent(String useragent)
setUseragent
in interface Http
useragent
- value to setpublic void setTextqualifier(String textqualifier)
setTextqualifier
in interface Http
textqualifier
- value to setpublic void setProxyuser(String proxyuser)
setProxyuser
in interface Http
proxyuser
- value to setpublic void setUsername(String username)
setUsername
in interface Http
username
- value to setpublic void setUrl(String url)
public void setRedirect(boolean redirect)
setRedirect
in interface Http
redirect
- value to setpublic void setPath(String path)
public void setName(String name)
public void setAuthtype(String strAuthType) throws ExpressionException
setAuthtype
in interface Http
ExpressionException
public void setWorkstation(String workStation)
setWorkstation
in interface Http
public void setMethod(String method) throws ApplicationException
setMethod
in interface Http
method
- value to setApplicationException
public void setCompression(String strCompression) throws ApplicationException
setCompression
in interface Http
ApplicationException
public int doStartTag()
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class TagImpl
public int doEndTag() throws PageException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class TagImpl
PageException
public static void setTimeout(org.apache.http.impl.client.HttpClientBuilder builder, TimeSpan timeout)
public void doInitBody()
doInitBody
in interface javax.servlet.jsp.tagext.BodyTag
doInitBody
in class BodyTagImpl
public int doAfterBody()
doAfterBody
in interface javax.servlet.jsp.tagext.IterationTag
doAfterBody
in class BodyTagImpl
public void hasBody(boolean hasBody)
hasBody
- public void setParam(HttpParamBean param)
public void setGetasbinary(String getAsBinary)
setGetasbinary
in interface Http
getAsBinary
- The getasbinary to set.public void setMultipart(boolean multiPart)
setMultipart
in interface Http
multipart
- The multipart to set.public void setMultiparttype(String multiPartType) throws ApplicationException
setMultiparttype
in interface Http
multipart
- The multipart to set.ApplicationException
public void setAddtoken(boolean addtoken)
setAddtoken
in interface Http
addtoken
- the addtoken to setCopyright © 2015 Lucee