|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xfp.AttributeContainer org.xfp.Filter org.xfp.filters.HTTPGet
Performs an HTTP request. Note that the output of this filter can be used only once, being it an InputStream.
Nested Class Summary |
Nested classes inherited from class org.xfp.Filter |
Filter.OnErrorEnum, Filter.OnLoopErrorEnum |
Field Summary |
Fields inherited from class org.xfp.AttributeContainer |
name, parentContainer |
Constructor Summary | |
HTTPGet()
|
Method Summary | |
java.io.InputStream |
execute()
Executes this filter. |
java.io.InputStream |
execute(java.lang.String url)
Executes this filter. |
java.io.InputStream |
execute(java.net.URL source)
Executes this filter. |
void |
reset()
Resets filter status after execution. |
void |
setFollowRedirects(boolean followRedirects)
Sets whether HTTP redirects (requests with response code 3xx) should be automatically followed. |
void |
setIfModified(boolean ifModified)
Sets the ifModified. |
void |
setMethod(java.lang.String method)
Sets the request method. |
void |
setPassword(java.lang.String password)
Sets the password for the basic authentication. |
void |
setUrl(java.lang.String url)
Sets the URL to get. |
void |
setUseragent(java.lang.String useragent)
Sets the User-Agent request header. |
void |
setUsername(java.lang.String user)
Sets the username for the basic authentication. |
Methods inherited from class org.xfp.Filter |
getOnError, initialize, log, newInstance, perform, toString |
Methods inherited from class org.xfp.AttributeContainer |
configureAttributes, disposeAttributes, getAttributes, getFullName, getName, initializeAttributes |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public HTTPGet()
Method Detail |
public void setUrl(java.lang.String url)
public java.io.InputStream execute() throws java.lang.Exception
java.lang.Exception
public java.io.InputStream execute(java.lang.String url) throws java.lang.Exception
java.lang.Exception
public java.io.InputStream execute(java.net.URL source) throws java.lang.Exception
java.lang.Exception
public void reset()
Filter
reset
in class Filter
Filter.reset()
public void setIfModified(boolean ifModified)
ifModified
- The ifModified to setpublic void setMethod(java.lang.String method)
HttpURLConnection.setRequestMethod(java.lang.String)
public void setFollowRedirects(boolean followRedirects)
followRedirects
- a boolean indicating whether or not to follow HTTP redirects.public void setPassword(java.lang.String password)
password
- The password to setpublic void setUsername(java.lang.String user)
user
- The username to setpublic void setUseragent(java.lang.String useragent)
useragent
- The User-Agent value
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |