|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.abstracthorizon.danube.connection.ConnectionWrapper
org.abstracthorizon.danube.support.logging.LoggingConnection
public class LoggingConnection
Logging connection
| Field Summary | |
|---|---|
protected LoggingInputStream |
inputStream
Wrapped input stream |
protected OutputStream |
logOutputStream
Log output stream |
protected LoggingOutputStream |
outputStream
Wrapped output stream |
| Fields inherited from class org.abstracthorizon.danube.connection.ConnectionWrapper |
|---|
connection, logger |
| Constructor Summary | |
|---|---|
LoggingConnection(Connection connection,
OutputStream logOutputStream,
boolean directional,
boolean temporaryLog)
Constructor. |
|
| Method Summary | ||
|---|---|---|
|
adapt(Class<T> cls)
Adopts this object using supplied adopter manager |
|
OutputStream |
getDebugOutputStream()
Returns logger output stream. |
|
InputStream |
getInputStream()
Retruns logged input stream |
|
OutputStream |
getOutputStream()
Returns logged output stream |
|
boolean |
isLogging()
Returns if logging is switched on or off |
|
boolean |
isTermporaryLog()
Returns is logging temporary or not |
|
void |
setLogging(boolean logging)
Turns logging on or off |
|
void |
setTemporaryLog(boolean temporaryLog)
Sets flag if log is temporary or not |
|
| Methods inherited from class org.abstracthorizon.danube.connection.ConnectionWrapper |
|---|
close, isClosed |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected LoggingInputStream inputStream
protected LoggingOutputStream outputStream
protected OutputStream logOutputStream
| Constructor Detail |
|---|
public LoggingConnection(Connection connection,
OutputStream logOutputStream,
boolean directional,
boolean temporaryLog)
connection - wrapped connectionlogOutputStream - log output streamdirectional - is logging directionaltemporaryLog - is log temporary log| Method Detail |
|---|
public <T> T adapt(Class<T> cls)
ConnectionWrapper
adapt in interface Adaptableadapt in class ConnectionWrappercls - class to be adopted to
public InputStream getInputStream()
public OutputStream getOutputStream()
public OutputStream getDebugOutputStream()
public void setLogging(boolean logging)
logging - set to true if logging is switched onpublic boolean isLogging()
true logging is switched on or offpublic void setTemporaryLog(boolean temporaryLog)
temporaryLog - is log temporary or notpublic boolean isTermporaryLog()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||