Package org.somda.sdc.dpws.helper
Class CommunicationLogFileName
java.lang.Object
org.somda.sdc.dpws.helper.CommunicationLogFileName
Helper class to build up communication log file names.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringAppends 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.
-
Constructor Details
-
CommunicationLogFileName
public CommunicationLogFileName()
-
-
Method Details
-
create
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
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
Appends the SOAP file extension to the given name.- Parameters:
name- the file name.- Returns:
- a string of the format
<NAME>.xml.
-
appendHttpHeaderSuffix
Appends the HTTP header file extension to the given name.- Parameters:
name- the file name.- Returns:
- a string of the format
<NAME>.txt.
-