Class CommunicationLogFileName

java.lang.Object
org.somda.sdc.dpws.helper.CommunicationLogFileName

public class CommunicationLogFileName extends Object
Helper class to build up communication log file names.
  • Constructor Details

    • CommunicationLogFileName

      public CommunicationLogFileName()
  • Method Details

    • create

      public 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

      public 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

      public 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

      public 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.