Class GrizzlyRestServicePublishService.RedirectErrorPageGenerator

  • All Implemented Interfaces:
    org.glassfish.grizzly.http.server.ErrorPageGenerator
    Enclosing class:
    GrizzlyRestServicePublishService

    public static class GrizzlyRestServicePublishService.RedirectErrorPageGenerator
    extends java.lang.Object
    implements org.glassfish.grizzly.http.server.ErrorPageGenerator
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String redirecturl
      Redirect URL.
    • Constructor Summary

      Constructors 
      Constructor Description
      RedirectErrorPageGenerator​(java.lang.String redirecturl)
      Creates the Generator.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String generate​(org.glassfish.grizzly.http.server.Request request, int status, java.lang.String reasonPhrase, java.lang.String description, java.lang.Throwable exception)
      Generates the error page with a redirect.
      java.lang.String getRedirectUrl()
      Returns the redirect URL.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • redirecturl

        protected java.lang.String redirecturl
        Redirect URL.
    • Constructor Detail

      • RedirectErrorPageGenerator

        public RedirectErrorPageGenerator​(java.lang.String redirecturl)
        Creates the Generator.
    • Method Detail

      • getRedirectUrl

        public java.lang.String getRedirectUrl()
        Returns the redirect URL.
        Returns:
        The redirect URL.
      • generate

        public java.lang.String generate​(org.glassfish.grizzly.http.server.Request request,
                                         int status,
                                         java.lang.String reasonPhrase,
                                         java.lang.String description,
                                         java.lang.Throwable exception)
        Generates the error page with a redirect.
        Specified by:
        generate in interface org.glassfish.grizzly.http.server.ErrorPageGenerator