/** * Handles a redirect exception by generating the new URL to use for the * redirect. */ protected URL handleRedirectException(RedirectRequiredException redirect) throws ServiceException { try { return new URL(redirect.getRedirectLocation()); } catch (MalformedURLException e) { ServiceException se = new ServiceException( CoreErrorDomain.ERR.invalidRedirectedToUrl); se.setInternalReason("Invalid redirected-to URL - " + redirect.getRedirectLocation()); throw se; } }
/** * Handles a redirect exception by generating the new URL to use for the * redirect. */ protected URL handleRedirectException(RedirectRequiredException redirect) throws ServiceException { try { return new URL(redirect.getRedirectLocation()); } catch (MalformedURLException e) { ServiceException se = new ServiceException( CoreErrorDomain.ERR.invalidRedirectedToUrl); se.setInternalReason("Invalid redirected-to URL - " + redirect.getRedirectLocation()); throw se; } }
/** * Handles a redirect exception by generating the new URL to use for the * redirect. */ protected URL handleRedirectException(RedirectRequiredException redirect) throws ServiceException { try { return new URL(redirect.getRedirectLocation()); } catch (MalformedURLException e) { ServiceException se = new ServiceException( CoreErrorDomain.ERR.invalidRedirectedToUrl); se.setInternalReason("Invalid redirected-to URL - " + redirect.getRedirectLocation()); throw se; } }