FileDocCategorySizeDatePackage
RedirectException.javaAPI DocGlassfish v2 API3289Fri May 04 22:36:22 BST 2007com.sun.enterprise.admin.jmx.remote.comm

RedirectException

public class RedirectException extends IOException
This class holds the redirect URL this HTTP JMX Connector client receives when it tries to connect to http server with mismatching protocol/port/both on admin-listener.

Fields Summary
private String
redirectURL
private static final Logger
logger
private boolean
debug
Constructors Summary
public RedirectException(String redirectURL)
Creates a new instance of RedirectException

    
           
       
        this.redirectURL = redirectURL;
    
Methods Summary
public java.net.URLgetRedirectURL()

        try {
            return new URL(redirectURL);
        } catch (MalformedURLException ex) {
            // log the exception as warning because most likely 
            // the subsequent attempt to redirect will fail
            logger.log(Level.WARNING, "Redirect URL received is malformed. " +
                                      "The URL is = " + redirectURL);
            if (debug) ex.printStackTrace();
        }
        return null;