org.gcube.common.ghn.client.proxy.interceptors
Class ScopeInjector

java.lang.Object
  extended by org.gcube.common.ghn.client.proxy.interceptors.ScopeInjector
All Implemented Interfaces:
CallInterceptor

public class ScopeInjector
extends Object
implements CallInterceptor

Injects scope header in outgoing call.

Author:
Fabio Simeoni

Constructor Summary
ScopeInjector()
           
 
Method Summary
 void onCallBinding(Map<String,Object> ctxt)
           
 void onRequest(int callId, Map<String,Object> ctx, org.jboss.netty.handler.codec.http.HttpRequest request)
           
 void onResponse(int callId, Map<String,Object> ctxt, org.jboss.netty.handler.codec.http.HttpResponse request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScopeInjector

public ScopeInjector()
Method Detail

onCallBinding

public void onCallBinding(Map<String,Object> ctxt)
Specified by:
onCallBinding in interface CallInterceptor

onRequest

public void onRequest(int callId,
                      Map<String,Object> ctx,
                      org.jboss.netty.handler.codec.http.HttpRequest request)
Specified by:
onRequest in interface CallInterceptor

onResponse

public void onResponse(int callId,
                       Map<String,Object> ctxt,
                       org.jboss.netty.handler.codec.http.HttpResponse request)
                throws Exception
Specified by:
onResponse in interface CallInterceptor
Throws:
Exception


Copyright © 2012. All Rights Reserved.