public class LogService extends Service
Template
. Constructor and Description |
---|
LogService()
Constructor.
|
LogService(boolean enabled)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Filter |
createInboundFilter(Context context)
Create the filter that should be invoked for incoming calls.
|
java.lang.String |
getLogFormat()
Returns the format used.
|
java.lang.String |
getLoggerName()
Returns the name of the JDK's logger to use when logging access calls.
|
Reference |
getLogPropertiesRef()
Returns the URI reference of the log properties.
|
boolean |
isIdentityCheck()
Indicates if the identity check (as specified by RFC1413) is enabled.
|
void |
setIdentityCheck(boolean identityCheck)
Indicates if the identity check (as specified by RFC1413) is enabled.
|
void |
setLogFormat(java.lang.String format)
Sets the format to use when logging calls.
|
void |
setLoggerName(java.lang.String name)
Sets the name of the JDK's logger to use when logging access calls.
|
void |
setLogPropertiesRef(Reference logPropertiesRef)
Sets the URI reference of the log properties.
|
void |
setLogPropertiesRef(java.lang.String logPropertiesUri)
Sets the URI reference of the log properties.
|
void |
start()
Starts the log service by attempting to read the log properties if the
getLogPropertiesRef() returns a non null URI reference. |
createOutboundFilter, getContext, isEnabled, isStarted, isStopped, setContext, setEnabled, stop
public LogService()
public LogService(boolean enabled)
enabled
- True if the service has been enabled.public Filter createInboundFilter(Context context)
Service
createInboundFilter
in class Service
context
- The current context.public java.lang.String getLogFormat()
for format syntax and variables.
public java.lang.String getLoggerName()
public Reference getLogPropertiesRef()
public boolean isIdentityCheck()
public void setIdentityCheck(boolean identityCheck)
identityCheck
- True if the identity check is enabled.public void setLogFormat(java.lang.String format)
format
- The format to use when loggin calls.for format syntax and variables.
public void setLoggerName(java.lang.String name)
name
- The name of the JDK's logger to use when logging access calls.public void setLogPropertiesRef(Reference logPropertiesRef)
logPropertiesRef
- The URI reference of the log properties.public void setLogPropertiesRef(java.lang.String logPropertiesUri)
logPropertiesUri
- The URI reference of the log properties.public void start() throws java.lang.Exception
getLogPropertiesRef()
returns a non null URI reference.Copyright © 2005-2012. All Rights Reserved.