net.sf.fikin.ant.httpclientanttask
Class AntMultipartPostMethod.MyParamString

java.lang.Object
  extended by net.sf.fikin.ant.httpclientanttask.AntMultipartPostMethod.MyParam
      extended by net.sf.fikin.ant.httpclientanttask.AntMultipartPostMethod.MyParamString
Enclosing class:
AntMultipartPostMethod

public class AntMultipartPostMethod.MyParamString
extends AntMultipartPostMethod.MyParam

Place a plain text as part in the multi-part post request

created on Dec 29, 2006

Since:
Version:
$Revision: 1.3 $
Author:
fiykov

Constructor Summary
AntMultipartPostMethod.MyParamString()
           
 
Method Summary
 void check()
          check if text has been set
 org.apache.commons.httpclient.methods.multipart.PartBase getPartBase()
          create HttpClient string-part
 void setValue(java.lang.String text)
          set text to place
 
Methods inherited from class net.sf.fikin.ant.httpclientanttask.AntMultipartPostMethod.MyParam
getName, setCharset, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AntMultipartPostMethod.MyParamString

public AntMultipartPostMethod.MyParamString()
Method Detail

setValue

public void setValue(java.lang.String text)
set text to place

Parameters:
text -
Ant Task Param Required:
true

check

public void check()
           throws org.apache.tools.ant.BuildException
check if text has been set

Overrides:
check in class AntMultipartPostMethod.MyParam
Throws:
org.apache.tools.ant.BuildException

getPartBase

public org.apache.commons.httpclient.methods.multipart.PartBase getPartBase()
                                                                     throws java.io.FileNotFoundException
create HttpClient string-part

Specified by:
getPartBase in class AntMultipartPostMethod.MyParam
Returns:
a StringPart object
Throws:
java.io.FileNotFoundException


Copyright © 2003-2007 Nikolay Fiykov. All Rights Reserved.