org.apache.tuscany.sca.policy.logging.jdk
Class JDKLoggingPolicyInterceptor

java.lang.Object
  extended by org.apache.tuscany.sca.policy.logging.jdk.JDKLoggingPolicyInterceptor
All Implemented Interfaces:
Interceptor, Invoker

public class JDKLoggingPolicyInterceptor
extends java.lang.Object
implements Interceptor

Policy handler to handle PolicySet related to Logging with the QName {http://tuscany.apache.org/xmlns/sca/1.0/impl/java}LoggingPolicy


Field Summary
static java.lang.String loggingPolicy
           
static javax.xml.namespace.QName policySetQName
           
 
Constructor Summary
JDKLoggingPolicyInterceptor(java.lang.String context, Operation operation, PolicySet policySet)
           
 
Method Summary
 Invoker getNext()
          Returns the next invoker or null
 Message invoke(Message msg)
          Process a synchronous wire
 void setNext(Invoker next)
          Sets the next invoker
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

loggingPolicy

public static final java.lang.String loggingPolicy
See Also:
Constant Field Values

policySetQName

public static final javax.xml.namespace.QName policySetQName
Constructor Detail

JDKLoggingPolicyInterceptor

public JDKLoggingPolicyInterceptor(java.lang.String context,
                                   Operation operation,
                                   PolicySet policySet)
Method Detail

invoke

public Message invoke(Message msg)
Description copied from interface: Invoker
Process a synchronous wire

Specified by:
invoke in interface Invoker
Parameters:
msg - The request Message for the wire
Returns:
The response Message from the wire

getNext

public Invoker getNext()
Description copied from interface: Interceptor
Returns the next invoker or null

Specified by:
getNext in interface Interceptor
Returns:
The next Invoker

setNext

public void setNext(Invoker next)
Description copied from interface: Interceptor
Sets the next invoker

Specified by:
setNext in interface Interceptor
Parameters:
next - The next invoker