com.ibm.xdms.function
Interface UsageRecordLogger

All Superinterfaces:
Function

public interface UsageRecordLogger
extends Function

The DomXmlProcessor class handles the function of processing an XML document. This includes the ability to for a DOM object from a string representation of the XML document as well as validating the document against the schemas.


Field Summary
static java.lang.String COPYRIGHT
           
 
Method Summary
 void logSIPRecord(java.lang.String requester, java.lang.String sipType, java.lang.String document, int subscribeBytes, int notifyBytes, int statusCode, java.lang.String pChargingFunctionAddresses, java.lang.String pChargingVector)
          Logs a SIP Record
 void logXCAPRecord(java.lang.String requester, java.lang.String xcapType, java.lang.String document, int requestBytes, int responseBytes, int statusCode)
          Logs an XCAP Record
 
Methods inherited from interface com.ibm.xdms.function.Function
getApplicationUsage, init
 

Field Detail

COPYRIGHT

static final java.lang.String COPYRIGHT
Method Detail

logXCAPRecord

void logXCAPRecord(java.lang.String requester,
                   java.lang.String xcapType,
                   java.lang.String document,
                   int requestBytes,
                   int responseBytes,
                   int statusCode)
                   throws XdmsException
Logs an XCAP Record

Parameters:
requester - The requester
xcapType - The XCAP request Type (same as HTTP METHOD)
document - The document selector
requestBytes - The request content length
responseBytes - The response content length
statusCode - The response status code
Throws:
XdmsException

logSIPRecord

void logSIPRecord(java.lang.String requester,
                  java.lang.String sipType,
                  java.lang.String document,
                  int subscribeBytes,
                  int notifyBytes,
                  int statusCode,
                  java.lang.String pChargingFunctionAddresses,
                  java.lang.String pChargingVector)
                  throws XdmsException
Logs a SIP Record

Parameters:
requester - The requester
sipType - The SIP request Type such as SUBSCRIBE
document - The document selector *
subscribeBytes - The subscribe content length
notifyBytes - The notify content length
statusCode - The response status code
pChargingFunctionAddresses - The CCF addresses for charging
pChargingVector - The charging vector
Throws:
XdmsException