|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
net.sf.fikin.ant.httpclientanttask.BaseAntMethod
net.sf.fikin.ant.httpclientanttask.BaseResponseAntMethod
net.sf.fikin.ant.httpclientanttask.AntPostMethod
public class AntPostMethod
This method is same as html-form submit. It is suitable for submitting set of fields with their values.
Examples:
<httppost url="..." >
<post name="username" value="usr" />
<post name="password" value="pswd" />
<post name="submit" value="" />
</httppost>
created on Dec 7, 2006
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class net.sf.fikin.ant.httpclientanttask.BaseResponseAntMethod |
|---|
BaseResponseAntMethod.ProjectLogOutputStream, BaseResponseAntMethod.ProjectLogWriter |
| Field Summary |
|---|
| Fields inherited from class org.apache.tools.ant.Task |
|---|
description, location, target, taskName, taskType, wrapper |
| Fields inherited from class org.apache.tools.ant.ProjectComponent |
|---|
project |
| Constructor Summary | |
|---|---|
AntPostMethod()
|
|
| Method Summary | |
|---|---|
void |
addPost(org.apache.tools.ant.types.Parameter p)
add form-parameter to the post command |
protected void |
before_execute_method()
do something before @link #execute_method() is called |
java.util.HashSet |
getPost()
get list of parameters, their names are unique nad thus this is backed by a hashtable |
protected org.apache.commons.httpclient.HttpMethod |
newHttpMethod(java.lang.String url)
factory for OPTIONS method |
protected void |
setPost(org.apache.commons.httpclient.HttpMethod method)
set given Http query values |
| Methods inherited from class net.sf.fikin.ant.httpclientanttask.BaseResponseAntMethod |
|---|
after_execute_method, check, closeOutput, getLogAppend, getLogFile, getLogLevel, getLogProcessAs, getOutStream, getOutWriter, initOutputHandler, printBytes, printString, processResponse, setLogAppend, setLogFile, setLogLevel, setLogProcessAs, setOutStream, setOutWriter |
| Methods inherited from class net.sf.fikin.ant.httpclientanttask.BaseAntMethod |
|---|
addProperty, clearHttpClient, createProxy, createUserCredentials, execute_method, execute, getConnectionTimeout, getCookiePolicy, getFailOnError, getHttpClient, getHttpMethod, getProperties, getProxy, getRetryAttempts, getShutdown, getSslAcceptUntrusted, getUrl, getUserCredentials, setConnectionTimeout, setCookiePolicy, setFailOnError, setHttpMethod, setProperties, setProxy, setRetryAttempts, setShutdown, setSslAcceptUntrusted, setUrl, setUserCredentials |
| Methods inherited from class org.apache.tools.ant.Task |
|---|
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
| Methods inherited from class org.apache.tools.ant.ProjectComponent |
|---|
getProject, setProject |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AntPostMethod()
| Method Detail |
|---|
public void addPost(org.apache.tools.ant.types.Parameter p)
p - is parameter with name and valuepublic java.util.HashSet getPost()
protected org.apache.commons.httpclient.HttpMethod newHttpMethod(java.lang.String url)
newHttpMethod in class BaseAntMethod
protected void before_execute_method()
throws org.apache.tools.ant.BuildException,
org.apache.commons.httpclient.HttpException,
java.io.IOException
before_execute_method in class BaseAntMethodorg.apache.tools.ant.BuildException
org.apache.commons.httpclient.HttpException
java.io.IOExceptionprotected void setPost(org.apache.commons.httpclient.HttpMethod method)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||