org.apache.tuscany.sca.core.context
Class RequestContextImpl

java.lang.Object
  extended by org.apache.tuscany.sca.core.context.RequestContextImpl
All Implemented Interfaces:
org.osoa.sca.RequestContext

public class RequestContextImpl
extends java.lang.Object
implements org.osoa.sca.RequestContext


Constructor Summary
RequestContextImpl(ProxyFactory proxyFactory)
           
 
Method Summary
<CB> CB
getCallback()
          Returns a type-safe reference to the callback provided by the caller.
<CB> org.osoa.sca.CallableReference<CB>
getCallbackReference()
          Returns a CallableReference to the callback provided by the caller.
 javax.security.auth.Subject getSecuritySubject()
          Returns the JAAS Subject of the current request.
 java.lang.String getServiceName()
          Returns the name of the service that was invoked.
<B> org.osoa.sca.CallableReference<B>
getServiceReference()
          Returns a CallableReference for the service that was invoked by the caller.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestContextImpl

public RequestContextImpl(ProxyFactory proxyFactory)
Method Detail

getSecuritySubject

public javax.security.auth.Subject getSecuritySubject()
Description copied from interface: org.osoa.sca.RequestContext
Returns the JAAS Subject of the current request.

Specified by:
getSecuritySubject in interface org.osoa.sca.RequestContext
Returns:
the Subject of the current request

getServiceName

public java.lang.String getServiceName()
Description copied from interface: org.osoa.sca.RequestContext
Returns the name of the service that was invoked.

Specified by:
getServiceName in interface org.osoa.sca.RequestContext
Returns:
the name of the service that was invoked

getServiceReference

public <B> org.osoa.sca.CallableReference<B> getServiceReference()
Description copied from interface: org.osoa.sca.RequestContext
Returns a CallableReference for the service that was invoked by the caller.

Specified by:
getServiceReference in interface org.osoa.sca.RequestContext
Type Parameters:
B - the Java type of the business interface for the reference
Returns:
a CallableReference for the service that was invoked by the caller

getCallback

public <CB> CB getCallback()
Description copied from interface: org.osoa.sca.RequestContext
Returns a type-safe reference to the callback provided by the caller.

Specified by:
getCallback in interface org.osoa.sca.RequestContext
Type Parameters:
CB - the Java type of the business interface for the callback
Returns:
a type-safe reference to the callback provided by the caller

getCallbackReference

public <CB> org.osoa.sca.CallableReference<CB> getCallbackReference()
Description copied from interface: org.osoa.sca.RequestContext
Returns a CallableReference to the callback provided by the caller.

Specified by:
getCallbackReference in interface org.osoa.sca.RequestContext
Type Parameters:
CB - the Java type of the business interface for the callback
Returns:
a CallableReference to the callback provided by the caller