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