|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.abstracthorizon.danube.support.logging.debug.DebugConsoleLoggingConnectionHandler
public class DebugConsoleLoggingConnectionHandler
Connection handler that logs connection to a file.
| Field Summary | |
|---|---|
protected Pattern |
addressPattern
Client socket address pattern |
protected org.slf4j.Logger |
logger
Logger |
| Constructor Summary | |
|---|---|
DebugConsoleLoggingConnectionHandler()
Constructor |
|
| Method Summary | |
|---|---|
String |
getAddressPattern()
Returns address pattern. |
ConnectionHandler |
getConnectionHandler()
Returns connection handler |
void |
handleConnection(Connection connection)
This method wrapps connection to logging connection and passes it further. |
boolean |
isDirectional()
Is logging directional or not |
boolean |
isLogging()
Returns if logging is switched on or off. |
boolean |
isResolveRemoteHostNames()
Returns if host names should be resolved or not. |
void |
setAddressPattern(String addressPatternString)
Sets socket address pattern. |
void |
setConnectionHandler(ConnectionHandler connectionHandler)
Sets connection handler |
void |
setDirectional(boolean directional)
Sets for logging to be directional or not |
void |
setLogging(boolean logging)
Switches logging on or off |
void |
setResolveRemoteHostNames(boolean resolveRemoteHostNames)
Sets if remote host names are to be resolved or not. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.slf4j.Logger logger
protected Pattern addressPattern
| Constructor Detail |
|---|
public DebugConsoleLoggingConnectionHandler()
| Method Detail |
|---|
public String getAddressPattern()
public void setAddressPattern(String addressPatternString)
addressPatternString - public ConnectionHandler getConnectionHandler()
public void setConnectionHandler(ConnectionHandler connectionHandler)
connectionHandler - connection handlerpublic boolean isDirectional()
public void setDirectional(boolean directional)
directional - is logging directional or notpublic boolean isLogging()
public void setLogging(boolean logging)
logging - true if logging is to be switched onpublic boolean isResolveRemoteHostNames()
setAddressPattern(String))
public void setResolveRemoteHostNames(boolean resolveRemoteHostNames)
setAddressPattern(String))
resolveRemoteHostNames - public void handleConnection(Connection connection)
isLogging(), getAddressPattern() and #isTempLogging().
handleConnection in interface ConnectionHandlerconnection - original connection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||