Oracle Server E10293-02 ユーザーズマニュアル

ページ / 108
logEvent(SipServletRequest req, Map<Object, Object> additional) Method
C-2
Oracle Communication and Mobility Server Developer’s Guide
Example C–1
Logging Events in the EventLogger Interface
public interface EventLogger 
{
  public void logEvent(SipServletRequest req, Map<Object, Object> additional);
  public void logEvent(SipServletResponse resp, Map<Object, Object> additional);
  public void logEvent(Map<Object, Object> event, String category);
  public boolean isEnabled(SipServletRequest req);
  public boolean isEnabled(SipServletResponse resp);
  public boolean isEnabled(String category);
}
logEvent(SipServletRequest req, Map<Object, Object> additional) Method
The logEvent(SipServletResponse resp, Map<Object, Object> 
additional)
 method logs an event with the characteristic request attributes listed in 
together with any additional event attributes provided. 
 describes the 
request attributes of the logEvent Method. The event is logged to the following Log4j 
category name:
"eventlogger." + loggerName + ".REQUEST." + method.
Table C–1
Request Attributes of the logEvent(SipServletRequest req, Map<Object, 
Object> additional) Method
Attribute
Description
RequestUri
The Request-URI value.
Method
The method value.
To
The To header value.
From
The From header value.
Call-ID
The Call-ID header value.
CSeq
The CSeq header value.
Via
A string of all Via header values, separated by semicolons (;).
Content-Type
The Content-Type header value, or 
""
.
Content-Length
The Content-Length header value, or 
""
.
MEDIA
A string of all SDP media line values (that is, the portion 
following m=), which are separated by semicolons(;). Only 
include this attribute for INVITE requests when SDP content is 
not present.
Service
The name of the service generating the event (that is, the full 
Log4j category name).