|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.runtime.ext.tag.TagImpl
railo.runtime.ext.tag.BodyTagImpl
railo.runtime.tag.Http
public final class Http
Lets you execute HTTP POST and GET operations on files. Using cfhttp, you can execute standard GET operations and create a query object from a text file. POST operations lets you upload MIME file types to a server, or post cookie, formfield, URL, file, or CGI variables directly to a specified server.
Field Summary | |
---|---|
static short |
MAX_REDIRECT
Maximal count of redirects (5) |
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
|
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
---|
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
---|
EVAL_BODY_AGAIN |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Constructor Summary | |
---|---|
Http()
|
Method Summary | |
---|---|
int |
doAfterBody()
|
int |
doEndTag()
|
void |
doInitBody()
|
int |
doStartTag()
|
static Object |
getOutput(InputStream is,
String contentType,
String contentEncoding,
boolean closeIS)
|
void |
hasBody(boolean hasBody)
sets if has body or not |
static boolean |
isGzipEncoded(String contentEncoding)
|
static boolean |
isText(String mimetype)
|
static String |
mergePath(String current,
String realPath)
merge to pathes to one |
void |
release()
|
static void |
releaseConnection(org.apache.commons.httpclient.HttpMethod httpMethod)
|
void |
setAddtoken(boolean addtoken)
|
void |
setCharset(String charset)
set the value charset set the charset for the call. |
void |
setColumns(String columns)
set the value columns |
void |
setDelimiter(String delimiter)
set the value delimiter Required for creating a query. |
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 |
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. |
void |
setTimeout(double 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. |
Methods inherited from class railo.runtime.ext.tag.BodyTagImpl |
---|
setBodyContent |
Methods inherited from class railo.runtime.ext.tag.TagImpl |
---|
getParent, required, required, required, required, setPageContext, setPageContext, setParent |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.servlet.jsp.tagext.Tag |
---|
getParent, setPageContext, setParent |
Field Detail |
---|
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
Constructor Detail |
---|
public Http()
Method Detail |
---|
public void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class BodyTagImpl
Tag.release()
public void setFirstrowasheaders(boolean firstrowasheaders)
firstrowasheaders
- public void setPassword(String password)
password
- value to setpublic void setProxypassword(String proxypassword)
proxypassword
- value to setpublic void setDelimiter(String delimiter)
delimiter
- value to setpublic void setResolveurl(boolean resolveurl)
resolveurl
- value to setpublic void setTimeout(double timeout) throws ExpressionException
timeout
- value to set
ExpressionException
public void setProxyserver(String proxyserver)
proxyserver
- value to setpublic void setProxyport(double proxyport)
proxyport
- value to setpublic void setFile(String file)
file
- value to setpublic void setThrowonerror(boolean throwonerror)
throwonerror
- value to setpublic void setCharset(String charset)
charset
- value to setpublic void setColumns(String columns) throws PageException
columns
- value to set
PageException
public void setPort(double port)
port
- value to setpublic void setUseragent(String useragent)
useragent
- value to setpublic void setTextqualifier(String textqualifier)
textqualifier
- value to setpublic void setProxyuser(String proxyuser)
proxyuser
- value to setpublic void setUsername(String username)
username
- value to setpublic void setUrl(String url)
url
- value to setpublic void setRedirect(boolean redirect)
redirect
- value to setpublic void setPath(String path)
path
- value to setpublic void setName(String name)
name
- value to setpublic void setMethod(String method) throws ApplicationException
method
- value to set
ApplicationException
public int doStartTag()
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class TagImpl
Tag.doStartTag()
public int doEndTag() throws PageException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class TagImpl
PageException
Tag.doEndTag()
public static boolean isText(String mimetype)
public static void releaseConnection(org.apache.commons.httpclient.HttpMethod httpMethod)
public void doInitBody()
doInitBody
in interface javax.servlet.jsp.tagext.BodyTag
doInitBody
in class BodyTagImpl
BodyTag.doInitBody()
public int doAfterBody()
doAfterBody
in interface javax.servlet.jsp.tagext.IterationTag
doAfterBody
in class BodyTagImpl
IterationTag.doAfterBody()
public void hasBody(boolean hasBody)
hasBody
- public void setParam(HttpParamBean param)
param
- public void setGetasbinary(String getAsBinary)
getAsBinary
- The getasbinary to set.public void setMultipart(boolean multiPart)
multipart
- The multipart to set.public void setMultiparttype(String multiPartType) throws ApplicationException
multipart
- The multipart to set.
ApplicationException
public void setResult(String result)
result
- The result to set.public void setAddtoken(boolean addtoken)
addtoken
- the addtoken to setpublic static String mergePath(String current, String realPath) throws MalformedURLException
current
- realPath
-
MalformedURLException
public static boolean isGzipEncoded(String contentEncoding)
public static Object getOutput(InputStream is, String contentType, String contentEncoding, boolean closeIS)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |