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.
|
String |
getLogFormat()
Returns the format used.
|
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(String format)
Sets the format to use when logging calls.
|
void |
setLoggerName(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(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 String getLogFormat()
for format syntax and variables.
public String getLoggerName()
public Reference getLogPropertiesRef()
public boolean isIdentityCheck()
public void setIdentityCheck(boolean identityCheck)
identityCheck
- True if the identity check is enabled.public void setLogFormat(String format)
format
- The format to use when loggin calls.for format syntax and variables.
public void setLoggerName(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(String logPropertiesUri)
logPropertiesUri
- The URI reference of the log properties.public void start() throws Exception
getLogPropertiesRef()
returns a non null URI reference.Copyright © 2005–2016. All rights reserved.