Save This Page
Home » jakarta-jmeter-2.3.4_src » org.apache.jmeter.protocol.http.util » [javadoc | source]
org.apache.jmeter.protocol.http.util
public class: HTTPFileArg [javadoc | source]
java.lang.Object
   org.apache.jmeter.testelement.AbstractTestElement
      org.apache.jmeter.protocol.http.util.HTTPFileArg

All Implemented Interfaces:
    Serializable, TestElement

Class representing a file parameter for http upload. Consists of a http parameter name/file path pair with (optional) mimetype. Also provides temporary storage for the headers which are sent with files.
Constructor:
 public HTTPFileArg() 
 public HTTPFileArg(String path) 
    Constructor for the HTTPFileArg object with given path.
 public HTTPFileArg(HTTPFileArg file) 
    Copy Constructor.
 public HTTPFileArg(String path,
    String paramname,
    String mimetype) 
    Constructor for the HTTPFileArg object with full information.
 public HTTPFileArg(JMeterProperty path,
    JMeterProperty paramname,
    JMeterProperty mimetype) 
    Constructor for the HTTPFileArg object with full information, using existing properties
Method from org.apache.jmeter.protocol.http.util.HTTPFileArg Summary:
getHeader,   getMimeType,   getParamName,   getPath,   isNotEmpty,   setHeader,   setMimeType,   setParamName,   setPath,   toString
Methods from org.apache.jmeter.testelement.AbstractTestElement:
addProperty,   addTestElement,   canRemove,   clear,   clearTemporary,   clone,   emptyTemporary,   equals,   getName,   getProperty,   getPropertyAsBoolean,   getPropertyAsBoolean,   getPropertyAsDouble,   getPropertyAsFloat,   getPropertyAsInt,   getPropertyAsLong,   getPropertyAsString,   getThreadContext,   getThreadName,   isEnabled,   isRunningVersion,   isTemporary,   logProperties,   mergeIn,   nextIsNull,   propertyIterator,   recoverRunningVersion,   removeProperty,   setName,   setProperty,   setProperty,   setRunningVersion,   setTemporary,   setThreadContext,   setThreadName,   threadFinished,   threadStarted,   traverse,   traverseCollection,   traverseMap,   traverseProperty
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.jmeter.protocol.http.util.HTTPFileArg Detail:
 public String getHeader() 
    Gets the saved body header for the HTTPFileArg object.
 public String getMimeType() 
    Get the mimetype of the File.
 public String getParamName() 
    Get the http parameter name of the File.
 public String getPath() 
    Get the path of the File.
 public boolean isNotEmpty() 
    Check if the entry is not empty.
 public  void setHeader(String newHeader) 
    Sets the body header for the HTTPFileArg object. Header contains path, parameter name and mime type information. This is only intended for use by methods which need to store information temporarily whilst creating the HTTP body.
 public  void setMimeType(String newMimeType) 
    Set the mimetype of the File.
 public  void setParamName(String newParamName) 
    Set the http parameter name of the File.
 public  void setPath(String newPath) 
    Set the path of the File.
 public String toString() 
    returns path, param name, mime type information of HTTPFileArg object.