Class CommunicationLogFileName

  • All Implemented Interfaces:

    
    public class CommunicationLogFileName
    
                        

    Helper class to build up communication log file names.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

      • CommunicationLogFileName

        CommunicationLogFileName()
    • Method Detail

      • create

         static String create(String direction, CommunicationContext communicationContext)

        Creates a communication log file base name.

        Parameters:
        direction - the communication direction.
        communicationContext - the communication context to be used to find address and port info.
        Returns:

        a string of the format <NANO-TIME>_<HH-mm-ss-SSS>_<DIRECTION>_<ADDR>_<PORT>.

      • append

         static String append(String prefix, String appendix)

        Appends an identifier to a base name.

        Parameters:
        prefix - the base name prefix.
        appendix - the portion to append.
        Returns:

        a string of the format <PREFIX>_<APPENDIX>.

      • appendSoapSuffix

         static String appendSoapSuffix(String name)

        Appends the SOAP file extension to the given name.

        Parameters:
        name - the file name.
        Returns:

        a string of the format <NAME>.xml.

      • appendHttpHeaderSuffix

         static String appendHttpHeaderSuffix(String name)

        Appends the HTTP header file extension to the given name.

        Parameters:
        name - the file name.
        Returns:

        a string of the format <NAME>.txt.