Package com.denimgroup.threadfix.exception

Examples of com.denimgroup.threadfix.exception.IllegalStateRestException


    public static String urlEncode(String input) {
        try {
            return URLEncoder.encode(input, "UTF-8");
        } catch (UnsupportedEncodingException e) {
            throw new IllegalStateRestException(e, "UTF-8 not supported.");
        }
    }
View Full Code Here


     */
    @Nonnull
    private Response retrieveHtmlResponse(HttpURLConnection con) throws IOException {

        if (con == null) {
            throw new IllegalStateRestException("Invalid connection, unable to continue.");
        }

        int responseCode = con.getResponseCode();
        if (responseCode == 302) {
            String redirectTarget = con.getHeaderField("Location");
View Full Code Here

                log.warn("Received response code " + serverResponse.getStatusCode() +
                        " and the response string didn't contain </User>. " +
                        "The user is probably not authenticated for " + domainProject);
            }
        } catch (UnsupportedEncodingException e) {
            throw new IllegalStateRestException(e, "UTF-8 not supported.");
        }

        return false;
    }
View Full Code Here

                log.warn("XML didn't have <Lists>, returning null.");
            }

            return null;
        } catch (UnsupportedEncodingException e) {
            throw new IllegalStateRestException(e,
                    "Got UnsupportedEncodingException for UTF-8, this should never happen.");
        }
    }
View Full Code Here

                log.warn("XML didn't have <Fields>, returning null.");
            }

            return null;
        } catch (UnsupportedEncodingException e) {
            throw new IllegalStateRestException(e,
                    "Got UnsupportedEncodingException for UTF-8, this should never happen.");
        }
    }
View Full Code Here

                log.warn("XML didn't have <Users>, returning null.");
            }

            return null;
        } catch (UnsupportedEncodingException e) {
            throw new IllegalStateRestException(e,
                    "Got UnsupportedEncodingException for UTF-8, this should never happen.");
        }
    }
View Full Code Here

                log.warn("XML didn't have <Users>, returning null.");
            }

            return null;
        } catch (UnsupportedEncodingException e) {
            throw new IllegalStateRestException(e,
                    "Got UnsupportedEncodingException for UTF-8, this should never happen.");
        }
    }
View Full Code Here

TOP

Related Classes of com.denimgroup.threadfix.exception.IllegalStateRestException

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.