Class GatewayInterface.AbstractMessagePrinter

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static byte[] arg1
      <arg name="
      protected static byte[] arg2
      "><![CDATA[
      protected static byte[] arg3
      ]]></arg>
      protected static byte[] argindex  
      protected static byte[] argnull  
      protected static byte[] end
      </messagebody></message>
      protected static byte[] head1
      <message><messagetype>
      protected static byte[] head2
      </messagetype><messagebody>
      protected int type  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getMinConnectionMode()
      Minimum connection mode needed to run, or zero to always run.
      StatMetric getStatMetric()
      A stat metric to update when this message finishes.
      protected void writeArg​(java.io.OutputStream pw, java.lang.String argName, java.lang.String argVal)  
      protected void writeArg​(java.io.OutputStream pw, java.lang.String argName, java.lang.String argVal, int idx)  
      protected void writeHead​(java.io.OutputStream pw)
      Opens message element, writes messagetype element, opens messagebody element
      • Methods inherited from class java.lang.Object

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

      • head1

        protected static byte[] head1
        <message><messagetype>
      • head2

        protected static byte[] head2
        </messagetype><messagebody>
      • arg1

        protected static byte[] arg1
        <arg name="
      • arg2

        protected static byte[] arg2
        "><![CDATA[
      • arg3

        protected static byte[] arg3
        ]]></arg>
      • argnull

        protected static byte[] argnull
      • argindex

        protected static byte[] argindex
      • end

        protected static byte[] end
        </messagebody></message>
      • type

        protected int type
    • Constructor Detail

      • AbstractMessagePrinter

        public AbstractMessagePrinter​(int type)
    • Method Detail

      • writeHead

        protected void writeHead​(java.io.OutputStream pw)
                          throws java.io.IOException
        Opens message element, writes messagetype element, opens messagebody element
        Throws:
        java.io.IOException
      • writeArg

        protected void writeArg​(java.io.OutputStream pw,
                                java.lang.String argName,
                                java.lang.String argVal)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • writeArg

        protected void writeArg​(java.io.OutputStream pw,
                                java.lang.String argName,
                                java.lang.String argVal,
                                int idx)
                         throws java.io.IOException
        Throws:
        java.io.IOException