Class ConfigBasedServletInfo

  • All Implemented Interfaces:
    ServletInfo

    public final class ConfigBasedServletInfo
    extends java.lang.Object
    implements ServletInfo
    A servlet info that can be configured through the spring configuration (or programmatically).

    A default random id will be created by default.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getServletId()
      Return an id that identifies this server.
      void setServletId​(java.lang.String servletId)  
      • Methods inherited from class java.lang.Object

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

      • ConfigBasedServletInfo

        public ConfigBasedServletInfo()
    • Method Detail

      • getServletId

        public java.lang.String getServletId()
        Description copied from interface: ServletInfo
        Return an id that identifies this server. This information is incorporated into the print request id so that it is possible for load balancers to redirect a request to the same server without having to keep sticky sessions. Or to find the same server after a session has expired.

        This provides an option for simple clusters to be created without having to have a shared registry for storing the look up when needing to retrieve the results of a print job.

        Specified by:
        getServletId in interface ServletInfo
      • setServletId

        public void setServletId​(java.lang.String servletId)