com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Class ContentType



  • public class ContentType
    extends Object

    Represents a Content-Type header.

    • 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 final 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.
      • setBoundary

        public final 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.
      • getCharSet

        public final String getCharSet()

        Gets or sets the value of the charset parameter.

        Value: A string that contains the value of charset parameter.
      • setCharSet

        public final void setCharSet(String value)

        Gets or sets the value of the charset parameter.

        Value: A string that contains the value of charset parameter.
      • getMediaType

        public final String getMediaType()

        Gets or sets the internet media type.

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

        public final void setMediaType(String value)

        Gets or sets the internet media type.

        Value: A String that contains the media type.
      • getName

        public final String getName()

        Gets or sets the value of the name parameter.

        Value: A String that contains the name.
      • setName

        public final void setName(String value)

        Gets or sets the value of the name parameter.

        Value: A String that contains the name.
      • getParameters

        public final TrackingStringDictionary getParameters()

        Gets the dictionary that contains the parameters.

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

        public String toString()

        Returns a String that represents this instance.

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

        public boolean equals(Object obj)

        Determines whether the specified Object is equal to this instance.

        Overrides:
        equals in class Object
        Parameters:
        obj - The Object to compare with this instance.
        Returns:
        true if the specified 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.

Copyright (c) 2008-2019 Aspose Pty Ltd. All Rights Reserved.