Example usage for javax.management MBeanException getLocalizedMessage

List of usage examples for javax.management MBeanException getLocalizedMessage

Introduction

In this page you can find the example usage for javax.management MBeanException getLocalizedMessage.

Prototype

public String getLocalizedMessage() 

Source Link

Document

Creates a localized description of this throwable.

Usage

From source file:com.cyberway.issue.crawler.fetcher.FetchHTTP.java

/**
 * Load cookies from the file specified in the order file.
 *
 * <p>/*from   www. j a v  a  2s  .  c o m*/
 * The file is a text file in the Netscape's 'cookies.txt' file format.<br>
 * Example entry of cookies.txt file:<br>
 * <br>
 * www.archive.org FALSE / FALSE 1074567117 details-visit texts-cralond<br>
 * <br>
 * Each line has 7 tab-separated fields:<br>
 * <li>1. DOMAIN: The domain that created and have access to the cookie
 * value.
 * <li>2. FLAG: A TRUE or FALSE value indicating if hosts within the given
 * domain can access the cookie value.
 * <li>3. PATH: The path within the domain that the cookie value is valid
 * for.
 * <li>4. SECURE: A TRUE or FALSE value indicating if to use a secure
 * connection to access the cookie value.
 * <li>5. EXPIRATION: The expiration time of the cookie value (unix style.)
 * <li>6. NAME: The name of the cookie value
 * <li>7. VALUE: The cookie value
 */
public void loadCookies() {
    try {
        loadCookies((String) getAttribute(ATTR_LOAD_COOKIES));
    } catch (MBeanException e) {
        logger.warning(e.getLocalizedMessage());
    } catch (ReflectionException e) {
        logger.warning(e.getLocalizedMessage());
    } catch (AttributeNotFoundException e) {
        logger.warning(e.getLocalizedMessage());
    }
}

From source file:com.cyberway.issue.crawler.fetcher.FetchHTTP.java

/**
 * Saves cookies to the file specified in the order file.
 *
 * Output file is in the Netscape 'cookies.txt' format.
 *
 *//*from www . j  av  a2 s.com*/
public void saveCookies() {
    try {
        saveCookies((String) getAttribute(ATTR_SAVE_COOKIES));
    } catch (MBeanException e) {
        logger.warning(e.getLocalizedMessage());
    } catch (ReflectionException e) {
        logger.warning(e.getLocalizedMessage());
    } catch (AttributeNotFoundException e) {
        logger.warning(e.getLocalizedMessage());
    }
}

From source file:org.archive.crawler.fetcher.OptimizeFetchHTTP.java

/**
 * Load cookies from the file specified in the order file.
 *
 * <p>//from   w  w w.  j  a v  a2  s . co m
 * The file is a text file in the Netscape's 'cookies.txt' file format.<br>
 * Example entry of cookies.txt file:<br>
 * <br>
 * www.archive.org FALSE / FALSE 1074567117 details-visit texts-cralond<br>
 * <br>
 * Each line has 7 tab-separated fields:<br>
 * <li>1. DOMAIN: The domain that created and have access to the cookie
 * value.
 * <li>2. FLAG: A TRUE or FALSE value indicating if hosts within the given
 * domain can access the cookie value.
 * <li>3. PATH: The path within the domain that the cookie value is valid
 * for.
 * <li>4. SECURE: A TRUE or FALSE value indicating if to use a secure
 * connection to access the cookie value.
 * <li>5. EXPIRATION: The expiration time of the cookie value (unix style.)
 * <li>6. NAME: The name of the cookie value
 * <li>7. VALUE: The cookie value
 */
public void loadCookies() {
    try {
        loadCookies((String) getAttribute(ATTR_LOAD_COOKIES));
    } catch (MBeanException e) {
        logger.warn(e.getLocalizedMessage());
    } catch (ReflectionException e) {
        logger.warn(e.getLocalizedMessage());
    } catch (AttributeNotFoundException e) {
        logger.warn(e.getLocalizedMessage());
    }
}

From source file:org.archive.crawler.fetcher.OptimizeFetchHTTP.java

/**
 * Saves cookies to the file specified in the order file.
 *
 * Output file is in the Netscape 'cookies.txt' format.
 *
 *///from  w  ww  . j  ava2  s  .  com
public void saveCookies() {
    try {
        saveCookies((String) getAttribute(ATTR_SAVE_COOKIES));
    } catch (MBeanException e) {
        logger.warn(e.getLocalizedMessage());
    } catch (ReflectionException e) {
        logger.warn(e.getLocalizedMessage());
    } catch (AttributeNotFoundException e) {
        logger.warn(e.getLocalizedMessage());
    }
}