Class SocketTrace
java.lang.Object
org.simpleframework.transport.connect.SocketTrace
- All Implemented Interfaces:
Trace
The
SocketTrace
is used to wrap an trace for safety.
Wrapping an trace in this way ensures that even if the trace is
badly written there is little chance that it will affect the
operation of the server.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
trace
This is the actual trace that is being wrapped by this.
-
-
Constructor Details
-
SocketTrace
Constructor for theSocketTrace
object. This will create a trace object that wraps the one provided. If the provided trace is null then this will simply ignore all events.- Parameters:
trace
- this is the trace that is to be wrapped by this
-
-
Method Details
-
trace
This method is used to accept an event that occurred on the socket associated with this trace. Typically the event is a symbolic description of the event such as an enum or a string. -
trace
This method is used to accept an event that occurred on the socket associated with this trace. Typically the event is a symbolic description of the event such as an enum or a string.
-