Package org.somda.sdc.dpws.helper
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 Summary
Constructors Constructor Description CommunicationLogFileName()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Stringappend(String prefix, String appendix)Appends an identifier to a base name.static StringappendHttpHeaderSuffix(String name)Appends the HTTP header file extension to the given name.static StringappendSoapSuffix(String name)Appends the SOAP file extension to the given name.static Stringcreate(String direction, CommunicationContext communicationContext)Creates a communication log file base name.
-
-
-
Method Detail
-
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.
-
-