commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sul...@apache.org
Subject cvs commit: jakarta-commons/fileupload/src/test/org/apache/commons/fileupload HttpServletRequestFactory.java
Date Sun, 27 Oct 2002 17:05:36 GMT
sullis      2002/10/27 09:05:36

  Added:       fileupload/src/test/org/apache/commons/fileupload
                        HttpServletRequestFactory.java
  Log:
  
  
  Revision  Changes    Path
  1.1                  jakarta-commons/fileupload/src/test/org/apache/commons/fileupload/HttpServletRequestFactory.java
  
  Index: HttpServletRequestFactory.java
  ===================================================================
  package org.apache.commons.fileupload;
  
  import javax.servlet.http.HttpServletRequest;
  
  /**
   * 
   *
   * 
   * 
   * 
   * 
   */
  final class HttpServletRequestFactory
  {
  	static public HttpServletRequest createHttpServletRequestWithNullContentType()
  	{
  		byte[] requestData = "foobar".getBytes();
  		return new MyHttpServletRequest(
  							requestData,
  							null);
  	}
  
  	static public HttpServletRequest createValidHttpServletRequest(
  		final String[] strFileNames)
  	{
  		byte[] requestData = "todo".getBytes();
  		return new MyHttpServletRequest(
  							requestData,
  							FileUpload.MULTIPART_FORM_DATA);
  	}
  
  	static public HttpServletRequest createInvalidHttpServletRequest()
  	{
  		byte[] requestData = "foobar".getBytes();
  		return new MyHttpServletRequest(
  							requestData,
  							FileUpload.MULTIPART_FORM_DATA);
  	}
  }
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message