Class PageTemplatesXmlRenderer

  • All Implemented Interfaces:, java.lang.Cloneable, java.lang.Comparable<>

    public class PageTemplatesXmlRenderer
    • Field Summary

      Modifier and Type Field Description
      static java.lang.String DEFAULT_ENCODING  
      static java.lang.String DEFAULT_MIMETYPE  
      • Fields inherited from class

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void beginList​(<?> list)  
      void beginResponse​( stream)  
      void data​( data)  
      void endList​(<?> list)  
      void endResponse()  
      void error​( writer, Result result)  
      java.lang.String getEncoding()  
      java.lang.String getMimeType()  
      java.lang.String getRequestedEncoding​(Query query)
      Returns the encoding of the query, or the encoding given by the template if none is set
      void init()  
      static void renderMessageDefaultErrorHit​( writer, ErrorMessage error)  
      static boolean simpleRenderDefaultErrorHit​( writer, ErrorHit defaultErrorHit)  
      • Methods inherited from class

        clientClosed, deconstruct, getExecution, getRecursionLevel, getResponse, onClientClosed, render, renderBeforeHandover, setNetworkWiring
      • Methods inherited from class

      • Methods inherited from class

        compareTo, getClassName, getId, getIdString, hasInitializedId, initId, isDeconstructable, setIsDeconstructable, toString
      • Methods inherited from class java.lang.Object

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

      • PageTemplatesXmlRenderer

        public PageTemplatesXmlRenderer()
      • PageTemplatesXmlRenderer

        public PageTemplatesXmlRenderer​(java.util.concurrent.Executor executor)
        Creates a json renderer using a custom executor. Using a custom executor is useful for tests to avoid creating new threads for each renderer registry.
    • Method Detail

      • init

        public void init()
        init in class<Result>
      • getEncoding

        public java.lang.String getEncoding()
        Specified by:
        getEncoding in class<Result>
      • getMimeType

        public java.lang.String getMimeType()
        Specified by:
        getMimeType in class<Result>
      • error

        public void error​( writer,
                          Result result)
      • simpleRenderDefaultErrorHit

        public static boolean simpleRenderDefaultErrorHit​( writer,
                                                          ErrorHit defaultErrorHit)
      • renderMessageDefaultErrorHit

        public static void renderMessageDefaultErrorHit​( writer,
                                                        ErrorMessage error)
      • beginResponse

        public void beginResponse​( stream)
        Specified by:
        beginResponse in class<Result>
      • getRequestedEncoding

        public final java.lang.String getRequestedEncoding​(Query query)
        Returns the encoding of the query, or the encoding given by the template if none is set
      • beginList

        public void beginList​(<?> list)
        Specified by:
        beginList in class<Result>
      • data

        public void data​( data)
        Specified by:
        data in class<Result>
      • endList

        public void endList​(<?> list)
        Specified by:
        endList in class<Result>
      • endResponse

        public void endResponse()
        Specified by:
        endResponse in class<Result>