Class HttpProcessor
- java.lang.Object
-
- org.webharvest.runtime.processors.AbstractProcessor<HttpDef>
-
- org.webharvest.runtime.processors.HttpProcessor
-
@Autoscanned @TargetNamespace({"http://org.webharvest/schema/2.1/core","http://org.webharvest/schema/1.0/config"}) @Definition(value="http", validAttributes={"id","url","method(get;post)","follow-redirects(true;false)","ignore-response-body(true;false)","retry-attempts","retry-delay","retry-delay-factor","content-type(*mime)","charset(*charset)","username","password","cookie-policy(default;browser;ignore;netscape;rfc_2109)"}, requiredAttributes="url", definitionClass=HttpDef.class) public class HttpProcessor extends AbstractProcessor<HttpDef>
Http processor.
-
-
Field Summary
-
Fields inherited from class org.webharvest.runtime.processors.AbstractProcessor
elementDef, LOG
-
-
Constructor Summary
Constructors Constructor Description HttpProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addHttpHeader(String name, String value)
protected void
addHttpParam(String name, boolean isFile, String fileName, String contentType, Variable value)
Variable
execute(DynamicScopeContext context)
-
Methods inherited from class org.webharvest.runtime.processors.AbstractProcessor
debug, getBodyTextContent, getBodyTextContent, getBodyTextContent, getElementDef, getParentProcessor, getRunningLevel, run, setElementDef, setParentProcessor, setProperty
-
-
-
-
Method Detail
-
execute
public Variable execute(DynamicScopeContext context) throws InterruptedException
- Specified by:
execute
in classAbstractProcessor<HttpDef>
- Throws:
InterruptedException
-
addHttpParam
protected void addHttpParam(String name, boolean isFile, String fileName, String contentType, Variable value)
-
-