congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
DiskFileItem.getContentType
Code IndexAdd Tabnine to your IDE (free)

How to use
getContentType
method
in
org.apache.tomcat.util.http.fileupload.disk.DiskFileItem

Best Java code snippets using org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.getContentType (Showing top 6 results out of 315)

origin: org.apache.geronimo.ext.tomcat/util

/**
 * Returns the content charset passed by the agent or <code>null</code> if
 * not defined.
 *
 * @return The content charset passed by the agent or <code>null</code> if
 *         not defined.
 */
public String getCharSet() {
  ParameterParser parser = new ParameterParser();
  parser.setLowerCaseNames(true);
  // Parameter parser can handle null input
  Map<String,String> params = parser.parse(getContentType(), ';');
  return params.get("charset");
}
origin: org.apache.coyote/com.springsource.org.apache.coyote

/**
 * Returns the content charset passed by the agent or <code>null</code> if
 * not defined.
 *
 * @return The content charset passed by the agent or <code>null</code> if
 *         not defined.
 */
public String getCharSet() {
  ParameterParser parser = new ParameterParser();
  parser.setLowerCaseNames(true);
  // Parameter parser can handle null input
  Map<String,String> params = parser.parse(getContentType(), ';');
  return params.get("charset");
}
origin: com.ovea.tajin.server/tajin-server-tomcat7

/**
 * Returns the content charset passed by the agent or <code>null</code> if
 * not defined.
 *
 * @return The content charset passed by the agent or <code>null</code> if
 *         not defined.
 */
public String getCharSet() {
  ParameterParser parser = new ParameterParser();
  parser.setLowerCaseNames(true);
  // Parameter parser can handle null input
  Map<String,String> params = parser.parse(getContentType(), ';');
  return params.get("charset");
}
origin: codefollower/Tomcat-Research

/**
 * Returns the content charset passed by the agent or <code>null</code> if
 * not defined.
 *
 * @return The content charset passed by the agent or <code>null</code> if
 *         not defined.
 */
public String getCharSet() {
  ParameterParser parser = new ParameterParser();
  parser.setLowerCaseNames(true);
  // Parameter parser can handle null input
  Map<String,String> params = parser.parse(getContentType(), ';');
  return params.get("charset");
}
origin: org.jboss.web/jbossweb

/**
 * Returns the content charset passed by the agent or <code>null</code> if
 * not defined.
 *
 * @return The content charset passed by the agent or <code>null</code> if
 *         not defined.
 */
public String getCharSet() {
  ParameterParser parser = new ParameterParser();
  parser.setLowerCaseNames(true);
  // Parameter parser can handle null input
  Map<String,String> params = parser.parse(getContentType(), ';');
  return params.get("charset");
}
origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

/**
 * Returns the content charset passed by the agent or <code>null</code> if
 * not defined.
 *
 * @return The content charset passed by the agent or <code>null</code> if
 *         not defined.
 */
public String getCharSet() {
  ParameterParser parser = new ParameterParser();
  parser.setLowerCaseNames(true);
  // Parameter parser can handle null input
  Map<String,String> params = parser.parse(getContentType(), ';');
  return params.get("charset");
}
org.apache.tomcat.util.http.fileupload.diskDiskFileItemgetContentType

Javadoc

Returns the content type passed by the agent or null if not defined.

Popular methods of DiskFileItem

  • getHeaders
    Returns the file item headers.
  • getStoreLocation
    Returns the java.io.File object for the FileItem's data's temporary location on the disk. Note that
  • <init>
    Constructs a new DiskFileItem instance.
  • get
    Returns the contents of the file as an array of bytes. If the contents of the file were not yet cach
  • getCharSet
    Returns the content charset passed by the agent or null if not defined.
  • getFieldName
    Returns the name of the field in the multipart form corresponding to this file item.
  • getName
    Returns the original filename in the client's filesystem.
  • getSize
    Returns the size of the file.
  • getTempFile
    Creates and returns a java.io.File representing a uniquely named temporary file in the configured re
  • getUniqueId
    Returns an identifier that is unique within the class loader used to load this class, but does not h
  • isFormField
    Determines whether or not a FileItem instance represents a simple form field.
  • isInMemory
    Provides a hint as to whether or not the file contents will be read from memory.
  • isFormField,
  • isInMemory,
  • getOutputStream,
  • getString,
  • setDefaultCharset

Popular in Java

  • Parsing JSON documents to java classes using gson
  • runOnUiThread (Activity)
  • onCreateOptionsMenu (Activity)
  • getResourceAsStream (ClassLoader)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top Sublime Text plugins
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