public static RedirectionAction buildFormPostContentAction ( final WebContext context , final String content ) { if ( ContextHelper . isPost ( context ) && useModernHttpCodes ) { return new TemporaryRedirectAction ( content ) ; } else { return new OkAction ( content ) ; } }
Build the appropriate redirection action for a content which is a form post .