Package com.sun.appserv.management.client

Examples of com.sun.appserv.management.client.RedirectException


        // 1. Validity of new redirect URL itself
        // 2. if redirection is not downgrading security unintentionally
        // If it is invalid rethrow the RedirectException to CLI
        // for further processing - logging and user communciation
        if (isRedirectionInvalid(redirect, connection)) {
            throw new RedirectException(ex.getRedirectURLStr(),
                "Invalid Redirect. " +
                "Security cannot be downgraded. Please try with --secure=false");
        }
        connection = getConnectionWithRedirectedURL(connection, redirect);
    }
View Full Code Here


            if (isRedirectionEnabled) {
                int respCode = ((HttpURLConnection)mConnection).getResponseCode();
                if (respCode == HttpURLConnection.HTTP_MOVED_TEMP) {
                    String redirectUrl =
                        mConnection.getHeaderFields().get("Location").get(0);
                    throw new RedirectException(redirectUrl,
                        "HTTP connection failed: 302 Moved Temporarily");
                }
            }
            InputStream in = mConnection.getInputStream();
            mObjectInStream = new ObjectInputStream(in);
View Full Code Here

TOP

Related Classes of com.sun.appserv.management.client.RedirectException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.