JavaScript is disabled on your browser.
javax.mail.internet

Class ContentDisposition



  • public class ContentDisposition
    extends java.lang.Object
    A MIME Content-Disposition value.
    • Constructor Summary

      Constructors
      Constructor and Description
      ContentDisposition ()
      Constructor for an empty Content-Disposition.
      ContentDisposition (java.lang.String s)
      Constructor that parses a Content-Disposition value from an RFC 2045 string representation.
      ContentDisposition (java.lang.String disposition, ParameterList list)
      Constructor.
    • Method Summary

      Methods
      Modifier and Type Method and Description
      java.lang.String getDisposition ()
      Returns the disposition value.
      java.lang.String getParameter (java.lang.String name)
      Returns the specified parameter value, or null if this parameter is not present.
      ParameterList getParameterList ()
      Returns the parameters, or null if there are no parameters.
      void setDisposition (java.lang.String disposition)
      Sets the disposition value.
      void setParameter (java.lang.String name, java.lang.String value)
      Sets the specified parameter.
      void setParameterList (ParameterList list)
      Sets the parameters.
      java.lang.String toString ()
      Returns an RFC 2045 string representation of this Content-Disposition.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ContentDisposition

        public ContentDisposition()
        Constructor for an empty Content-Disposition.
      • ContentDisposition

        public ContentDisposition(java.lang.String disposition,
         ParameterList list)
        Constructor.
        Parameters:
        disposition - the disposition value
        list - the parameters
      • ContentDisposition

        public ContentDisposition(java.lang.String s)
         throws ParseException 
        Constructor that parses a Content-Disposition value from an RFC 2045 string representation.
        Parameters:
        s - the Content-Disposition value
        Throws:
        ParseException - if there was an error in the value
    • Method Detail

      • getDisposition

        public java.lang.String getDisposition()
        Returns the disposition value.
      • getParameter

        public java.lang.String getParameter(java.lang.String name)
        Returns the specified parameter value, or null if this parameter is not present.
        Parameters:
        name - the parameter name
      • getParameterList

        public ParameterList getParameterList()
        Returns the parameters, or null if there are no parameters.
      • setDisposition

        public void setDisposition(java.lang.String disposition)
        Sets the disposition value.
        Parameters:
        disposition - the disposition value
      • setParameter

        public void setParameter(java.lang.String name,
         java.lang.String value)
        Sets the specified parameter.
        Parameters:
        name - the parameter name
        value - the parameter value
      • setParameterList

        public void setParameterList(ParameterList list)
        Sets the parameters.
        Parameters:
        list - the parameters
      • toString

        public java.lang.String toString()
        Returns an RFC 2045 string representation of this Content-Disposition.
        Overrides:
        toString in class java.lang.Object

AltStyle によって変換されたページ (->オリジナル) /