com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Class ContentType



  • public class ContentType
    extends Object

    Represents a Content-Type header.

    • Constructor Summary

      Constructors 
      Constructor and Description
      ContentType()
      Initializes a new instance of the ContentType class.
      ContentType(String contentType)
      Initializes a new instance of the ContentType class.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      boolean equals(Object rparam)
      Determines whether the specified System.Object is equal to this instance.
      String getBoundary()
      Gets or sets the value of the boundary parameter included in the Content-Type header.
      String getCharSet()
      Gets or sets the value of the charset parameter.
      String getMediaType()
      Gets or sets the internet media type.
      String getName()
      Gets or sets the value of the name parameter.
      com.aspose.ms.System.Collections.Specialized.StringDictionary getParameters()
      Gets the dictionary that contains the parameters.
      int hashCode()
      Returns a hash code for this instance.
      void setBoundary(String value)
      Gets or sets the value of the boundary parameter included in the Content-Type header.
      void setCharSet(String value)
      Gets or sets the value of the charset parameter.
      void setMediaType(String value)
      Gets or sets the internet media type.
      void setName(String value)
      Gets or sets the value of the name parameter.
      String toString()
      Returns a System.String that represents this instance.
    • Constructor Detail

      • ContentType

        public ContentType()

        Initializes a new instance of the ContentType class.

      • ContentType

        public ContentType(String contentType)

        Initializes a new instance of the ContentType class.

        Parameters:
        contentType - Type of the content.
    • Method Detail

      • getBoundary

        public String getBoundary()

        Gets or sets the value of the boundary parameter included in the Content-Type header.

        Value: A string that contains the value of boundary parameter.
        Returns:
        a String object.
      • setBoundary

        public void setBoundary(String value)

        Gets or sets the value of the boundary parameter included in the Content-Type header.

        Value: A string that contains the value of boundary parameter.
        Parameters:
        value - a String object.
      • getCharSet

        public String getCharSet()

        Gets or sets the value of the charset parameter.

        Value: A string that contains the value of charset parameter.
        Returns:
        a String object.
      • setCharSet

        public void setCharSet(String value)

        Gets or sets the value of the charset parameter.

        Value: A string that contains the value of charset parameter.
        Parameters:
        value - a String object.
      • getMediaType

        public String getMediaType()

        Gets or sets the internet media type.

        Value: A String that contains the media type.
        Returns:
        a String object.
      • setMediaType

        public void setMediaType(String value)

        Gets or sets the internet media type.

        Value: A String that contains the media type.
        Parameters:
        value - a String object.
      • getName

        public String getName()

        Gets or sets the value of the name parameter.

        Value: A String that contains the name.
        Returns:
        a String object.
      • setName

        public void setName(String value)

        Gets or sets the value of the name parameter.

        Value: A String that contains the name.
        Parameters:
        value - a String object.
      • getParameters

        public com.aspose.ms.System.Collections.Specialized.StringDictionary getParameters()

        Gets the dictionary that contains the parameters.

        Value: A StringDictionary that contains name and value pairs.
        Returns:
        a StringDictionary object.
      • toString

        public String toString()

        Returns a System.String that represents this instance.

        Overrides:
        toString in class Object
        Returns:
        A System.String that represents this instance.
      • equals

        public boolean equals(Object rparam)

        Determines whether the specified System.Object is equal to this instance.

        Overrides:
        equals in class Object
        Parameters:
        rparam - The System.Object to compare with this instance.
        Returns:
        true if the specified System.Object is equal to this instance; otherwise, false.
      • hashCode

        public int hashCode()

        Returns a hash code for this instance.

        Overrides:
        hashCode in class Object
        Returns:
        A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.