IT. Expert System.

Android Reference

MailTo


android.net

Class MailTo



  • public class MailTo
    extends Object
    MailTo URL parser This class parses a mailto scheme URL and then can be queried for the parsed parameters. This implements RFC 2368.
    • Method Detail

      • isMailTo

        public static boolean isMailTo(String url)
        Test to see if the given string is a mailto URL
        Parameters:
        url - string to be tested
        Returns:
        true if the string is a mailto URL
      • parse

        public static MailTo parse(String url)
                            throws ParseException
        Parse and decode a mailto scheme string. This parser implements RFC 2368. The returned object can be queried for the parsed parameters.
        Parameters:
        url - String containing a mailto URL
        Returns:
        MailTo object
        Throws:
        ParseException - if the scheme is not a mailto URL
      • getTo

        public String getTo()
        Retrieve the To address line from the parsed mailto URL. This could be several email address that are comma-space delimited. If no To line was specified, then null is return
        Returns:
        comma delimited email addresses or null
      • getCc

        public String getCc()
        Retrieve the CC address line from the parsed mailto URL. This could be several email address that are comma-space delimited. If no CC line was specified, then null is return
        Returns:
        comma delimited email addresses or null
      • getSubject

        public String getSubject()
        Retrieve the subject line from the parsed mailto URL. If no subject line was specified, then null is return
        Returns:
        subject or null
      • getBody

        public String getBody()
        Retrieve the body line from the parsed mailto URL. If no body line was specified, then null is return
        Returns:
        body or null
      • getHeaders

        public Map<String,String> getHeaders()
        Retrieve all the parsed email headers from the mailto URL
        Returns:
        map containing all parsed values
      • toString

        public String toString()
        Description copied from class: Object
        Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:
           getClass().getName() + '@' + Integer.toHexString(hashCode())

        See Writing a useful toString method if you intend implementing your own toString method.

        Overrides:
        toString in class Object
        Returns:
        a printable representation of this object.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 126 / 158693868. Delta: 0.04681 с