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

java.lang.Object
  extended by net.sf.fikin.ant.httpclientanttask.AntMultipartPostMethod.MyParam
Direct Known Subclasses:
AntMultipartPostMethod.MyParamFile, AntMultipartPostMethod.MyParamString
Enclosing class:
AntMultipartPostMethod

public abstract class AntMultipartPostMethod.MyParam
extends java.lang.Object

Base class for all multi-part Ant tags

created on Dec 29, 2006

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

Constructor Summary
AntMultipartPostMethod.MyParam()
           
 
Method Summary
 void check()
          check if name has been set
 java.lang.String getName()
          get parameter name
abstract  org.apache.commons.httpclient.methods.multipart.PartBase getPartBase()
          get this post part (in the multi-part post) as HttpClient object
 void setCharset(java.lang.String charset)
          set character set of the parameter
 void setName(java.lang.String name)
          set parameter name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AntMultipartPostMethod.MyParam

public AntMultipartPostMethod.MyParam()
Method Detail

setName

public void setName(java.lang.String name)
set parameter name

Parameters:
name - of the parameter
Ant Task Param Required:
true

getName

public java.lang.String getName()
get parameter name

Returns:
name ofthe parameter

setCharset

public void setCharset(java.lang.String charset)
set character set of the parameter

Parameters:
charset - of the parameter
Ant Task Param Required:
false

check

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

Throws:
org.apache.tools.ant.BuildException

getPartBase

public abstract org.apache.commons.httpclient.methods.multipart.PartBase getPartBase()
                                                                              throws java.io.FileNotFoundException
get this post part (in the multi-part post) as HttpClient object

Returns:
one of the subclasses of PartBase
Throws:
java.io.FileNotFoundException


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