Tabnine Logo
ServletRequestContext.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.tomcat.util.http.fileupload.servlet.ServletRequestContext
constructor

Best Java code snippets using org.apache.tomcat.util.http.fileupload.servlet.ServletRequestContext.<init> (Showing top 20 results out of 315)

origin: psi-probe/psi-probe

if (FileUploadBase.isMultipartContent(new ServletRequestContext(request))) {
 upload.setHeaderEncoding(StandardCharsets.UTF_8.name());
 try {
  List<FileItem> fileItems = upload.parseRequest(new ServletRequestContext(request));
  for (FileItem fi : fileItems) {
   if (!fi.isFormField()) {
origin: psi-probe/psi-probe

 HttpServletResponse response) throws Exception {
if (FileUploadBase.isMultipartContent(new ServletRequestContext(request))) {
 upload.setHeaderEncoding(StandardCharsets.UTF_8.name());
 try {
  List<FileItem> fileItems = upload.parseRequest(new ServletRequestContext(request));
  for (FileItem fi : fileItems) {
   if (!fi.isFormField()) {
origin: org.jboss.web/jbossweb

/**
 * Processes an <a href="http://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a>
 * compliant <code>multipart/form-data</code> stream.
 *
 * @param request The servlet request to be parsed.
 *
 * @return A list of <code>FileItem</code> instances parsed from the
 *         request, in the order that they were transmitted.
 *
 * @throws FileUploadException if there are problems reading/parsing
 *                             the request or storing files.
 */
public List<FileItem> parseRequest(HttpServletRequest request)
throws FileUploadException {
  return parseRequest(new ServletRequestContext(request));
}
origin: org.apache.geronimo.ext.tomcat/util

/**
 * Utility method that determines whether the request contains multipart
 * content.
 *
 * @param request The servlet request to be evaluated. Must be non-null.
 *
 * @return <code>true</code> if the request is multipart;
 *         <code>false</code> otherwise.
 */
public static final boolean isMultipartContent(
    HttpServletRequest request) {
  if (!POST_METHOD.equalsIgnoreCase(request.getMethod())) {
    return false;
  }
  return FileUploadBase.isMultipartContent(new ServletRequestContext(request));
}
origin: org.apache.coyote/com.springsource.org.apache.coyote

/**
 * Processes an <a href="http://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a>
 * compliant <code>multipart/form-data</code> stream.
 *
 * @param request The servlet request to be parsed.
 *
 * @return A list of <code>FileItem</code> instances parsed from the
 *         request, in the order that they were transmitted.
 *
 * @throws FileUploadException if there are problems reading/parsing
 *                             the request or storing files.
 */
public List<FileItem> parseRequest(HttpServletRequest request)
throws FileUploadException {
  return parseRequest(new ServletRequestContext(request));
}
origin: codefollower/Tomcat-Research

/**
 * Utility method that determines whether the request contains multipart
 * content.
 *
 * @param request The servlet request to be evaluated. Must be non-null.
 *
 * @return <code>true</code> if the request is multipart;
 *         <code>false</code> otherwise.
 */
public static final boolean isMultipartContent(
    HttpServletRequest request) {
  if (!POST_METHOD.equalsIgnoreCase(request.getMethod())) {
    return false;
  }
  return FileUploadBase.isMultipartContent(new ServletRequestContext(request));
}
origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

/**
 * Utility method that determines whether the request contains multipart
 * content.
 *
 * @param request The servlet request to be evaluated. Must be non-null.
 *
 * @return <code>true</code> if the request is multipart;
 *         <code>false</code> otherwise.
 */
public static final boolean isMultipartContent(
    HttpServletRequest request) {
  if (!POST_METHOD.equalsIgnoreCase(request.getMethod())) {
    return false;
  }
  return FileUploadBase.isMultipartContent(new ServletRequestContext(request));
}
origin: com.ovea.tajin.server/tajin-server-tomcat7

/**
 * Processes an <a href="http://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a>
 * compliant <code>multipart/form-data</code> stream.
 *
 * @param request The servlet request to be parsed.
 *
 * @return A list of <code>FileItem</code> instances parsed from the
 *         request, in the order that they were transmitted.
 *
 * @throws FileUploadException if there are problems reading/parsing
 *                             the request or storing files.
 */
public List<FileItem> parseRequest(HttpServletRequest request)
throws FileUploadException {
  return parseRequest(new ServletRequestContext(request));
}
origin: codefollower/Tomcat-Research

/**
 * Processes an <a href="http://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a>
 * compliant <code>multipart/form-data</code> stream.
 *
 * @param request The servlet request to be parsed.
 *
 * @return A map of <code>FileItem</code> instances parsed from the request.
 *
 * @throws FileUploadException if there are problems reading/parsing
 *                             the request or storing files.
 *
 * @since 1.3
 */
public Map<String, List<FileItem>> parseParameterMap(HttpServletRequest request)
    throws FileUploadException {
  return parseParameterMap(new ServletRequestContext(request));
}
origin: codefollower/Tomcat-Research

/**
 * Processes an <a href="http://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a>
 * compliant <code>multipart/form-data</code> stream.
 *
 * @param request The servlet request to be parsed.
 *
 * @return An iterator to instances of <code>FileItemStream</code>
 *         parsed from the request, in the order that they were
 *         transmitted.
 *
 * @throws FileUploadException if there are problems reading/parsing
 *                             the request or storing files.
 * @throws IOException An I/O error occurred. This may be a network
 *   error while communicating with the client or a problem while
 *   storing the uploaded content.
 */
public FileItemIterator getItemIterator(HttpServletRequest request)
throws FileUploadException, IOException {
  return super.getItemIterator(new ServletRequestContext(request));
}
origin: org.apache.geronimo.ext.tomcat/util

/**
 * Processes an <a href="http://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a>
 * compliant <code>multipart/form-data</code> stream.
 *
 * @param request The servlet request to be parsed.
 *
 * @return A map of <code>FileItem</code> instances parsed from the request.
 *
 * @throws FileUploadException if there are problems reading/parsing
 *                             the request or storing files.
 *
 * @since 1.3
 */
public Map<String, List<FileItem>> parseParameterMap(HttpServletRequest request)
    throws FileUploadException {
  return parseParameterMap(new ServletRequestContext(request));
}
origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

/**
 * Processes an <a href="http://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a>
 * compliant <code>multipart/form-data</code> stream.
 *
 * @param request The servlet request to be parsed.
 *
 * @return A map of <code>FileItem</code> instances parsed from the request.
 *
 * @throws FileUploadException if there are problems reading/parsing
 *                             the request or storing files.
 *
 * @since 1.3
 */
public Map<String, List<FileItem>> parseParameterMap(HttpServletRequest request)
    throws FileUploadException {
  return parseParameterMap(new ServletRequestContext(request));
}
origin: org.apache.geronimo.ext.tomcat/util

/**
 * Processes an <a href="http://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a>
 * compliant <code>multipart/form-data</code> stream.
 *
 * @param request The servlet request to be parsed.
 *
 * @return An iterator to instances of <code>FileItemStream</code>
 *         parsed from the request, in the order that they were
 *         transmitted.
 *
 * @throws FileUploadException if there are problems reading/parsing
 *                             the request or storing files.
 * @throws IOException An I/O error occurred. This may be a network
 *   error while communicating with the client or a problem while
 *   storing the uploaded content.
 */
public FileItemIterator getItemIterator(HttpServletRequest request)
throws FileUploadException, IOException {
  return super.getItemIterator(new ServletRequestContext(request));
}
origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

/**
 * Processes an <a href="http://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a>
 * compliant <code>multipart/form-data</code> stream.
 *
 * @param request The servlet request to be parsed.
 *
 * @return An iterator to instances of <code>FileItemStream</code>
 *         parsed from the request, in the order that they were
 *         transmitted.
 *
 * @throws FileUploadException if there are problems reading/parsing
 *                             the request or storing files.
 * @throws IOException An I/O error occurred. This may be a network
 *   error while communicating with the client or a problem while
 *   storing the uploaded content.
 */
public FileItemIterator getItemIterator(HttpServletRequest request)
throws FileUploadException, IOException {
  return super.getItemIterator(new ServletRequestContext(request));
}
origin: com.ovea.tajin.server/tajin-server-tomcat7

  /**
   * Processes an <a href="http://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a>
   * compliant <code>multipart/form-data</code> stream.
   *
   * @param request The servlet request to be parsed.
   *
   * @return An iterator to instances of <code>FileItemStream</code>
   *         parsed from the request, in the order that they were
   *         transmitted.
   *
   * @throws FileUploadException if there are problems reading/parsing
   *                             the request or storing files.
   * @throws IOException An I/O error occurred. This may be a network
   *   error while communicating with the client or a problem while
   *   storing the uploaded content.
   */
  public FileItemIterator getItemIterator(HttpServletRequest request)
  throws FileUploadException, IOException {
    return super.getItemIterator(new ServletRequestContext(request));
  }
}
origin: org.apache.coyote/com.springsource.org.apache.coyote

  /**
   * Processes an <a href="http://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a>
   * compliant <code>multipart/form-data</code> stream.
   *
   * @param request The servlet request to be parsed.
   *
   * @return An iterator to instances of <code>FileItemStream</code>
   *         parsed from the request, in the order that they were
   *         transmitted.
   *
   * @throws FileUploadException if there are problems reading/parsing
   *                             the request or storing files.
   * @throws IOException An I/O error occurred. This may be a network
   *   error while communicating with the client or a problem while
   *   storing the uploaded content.
   */
  public FileItemIterator getItemIterator(HttpServletRequest request)
  throws FileUploadException, IOException {
    return super.getItemIterator(new ServletRequestContext(request));
  }
}
origin: org.jboss.web/jbossweb

  /**
   * Processes an <a href="http://www.ietf.org/rfc/rfc1867.txt">RFC 1867</a>
   * compliant <code>multipart/form-data</code> stream.
   *
   * @param request The servlet request to be parsed.
   *
   * @return An iterator to instances of <code>FileItemStream</code>
   *         parsed from the request, in the order that they were
   *         transmitted.
   *
   * @throws FileUploadException if there are problems reading/parsing
   *                             the request or storing files.
   * @throws IOException An I/O error occurred. This may be a network
   *   error while communicating with the client or a problem while
   *   storing the uploaded content.
   */
  public FileItemIterator getItemIterator(HttpServletRequest request)
  throws FileUploadException, IOException {
    return super.getItemIterator(new ServletRequestContext(request));
  }
}
origin: org.apache.tomcat/tomcat-catalina

try {
  List<FileItem> items =
      upload.parseRequest(new ServletRequestContext(this));
  int maxPostSize = getConnector().getMaxPostSize();
  int postSize = 0;
origin: codefollower/Tomcat-Research

try {
  List<FileItem> items =
      upload.parseRequest(new ServletRequestContext(this));
  int maxPostSize = getConnector().getMaxPostSize();
  int postSize = 0;
origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

try {
  List<FileItem> items =
      upload.parseRequest(new ServletRequestContext(this));
  int maxPostSize = getConnector().getMaxPostSize();
  int postSize = 0;
org.apache.tomcat.util.http.fileupload.servletServletRequestContext<init>

Javadoc

Construct a context for this request.

Popular methods of ServletRequestContext

  • getContentType
    Retrieve the content type of the request.
  • contentLength
    Retrieve the content length of the request.
  • getContentLength
    Retrieve the content length of the request.

Popular in Java

  • Making http post requests using okhttp
  • getContentResolver (Context)
  • compareTo (BigDecimal)
  • getSystemService (Context)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • JFrame (javax.swing)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now