/** * Permanently redirects the client to a target URI. The client is expected * to reuse the same method for the new request. * * @param targetRef * The target URI reference. */ @Override public void redirectPermanent(Reference targetRef) { getWrappedResponse().redirectPermanent(targetRef); }
/** * Permanently redirects the client to a target URI. The client is expected * to reuse the same method for the new request. * * @param targetUri * The target URI. */ @Override public void redirectPermanent(String targetUri) { getWrappedResponse().redirectPermanent(targetUri); }
@Override public Object get( Context context, Request request, Response response, Variant variant ) throws ResourceException { response.redirectPermanent( createRootReference( request, indexTemplateResource.getResourceUri().replaceFirst( "/", "" ) ) ); return null; } }
getLogger().log(Level.INFO, "Permanently redirecting client to: " + targetRef); response.redirectPermanent(targetRef); break;
@Override public Object get(Context context, Request request, Response response, Variant variant) throws ResourceException { try { final UrlPathInterpretation interpretation = requestSegmentInterpetor.parse(request); if (interpretation.isRedirect()) { response.redirectPermanent(interpretation.getRedirectUri()); return null; } return createRepresentation(interpretation, getYumRepository(request, interpretation)); } catch (ResourceException e) { throw e; } catch (Exception e) { throw new ResourceException(Status.SERVER_ERROR_INTERNAL, e); } }
response.redirectPermanent(path + "/"); return null;
res.redirectPermanent(createRedirectReference(req).getTargetRef().toString() + "/");
res.redirectPermanent( createRedirectReference( req ).getTargetRef().toString() + "/" );
if ( !path.endsWith( "/" ) ) response.redirectPermanent( path + "/" ); return null;