org.codehaus.enunciate.modules.amf
Class AMFEndpointImpl

java.lang.Object
  extended by org.codehaus.enunciate.modules.amf.AMFEndpointImpl

public abstract class AMFEndpointImpl
extends java.lang.Object

Base class for an AMF endpoint.

Author:
Ryan Heaton

Field Summary
protected  java.lang.Object serviceBean
           
 
Constructor Summary
protected AMFEndpointImpl(java.lang.Object serviceBean)
           
 
Method Summary
protected abstract  java.lang.Class getServiceInterface()
          The service interface.
protected  java.lang.Object invokeOperation(java.lang.String operationName, java.lang.Object... params)
          Invoke an operation on the underlying service bean.
 void setSecurityChecker(SecurityExceptionChecker securityChecker)
          Set the security checker for this endpoint.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serviceBean

protected java.lang.Object serviceBean
Constructor Detail

AMFEndpointImpl

protected AMFEndpointImpl(java.lang.Object serviceBean)
Method Detail

invokeOperation

protected final java.lang.Object invokeOperation(java.lang.String operationName,
                                                 java.lang.Object... params)
                                          throws java.lang.Exception
Invoke an operation on the underlying service bean. This will transform each of its AMF object parameters to JAXB object parameters and then invoke the JAX-WS service bean. The result will be transformed into an AMF object before being returned.

Parameters:
operationName - The operation name.
params - The (AMF) parameters.
Returns:
The (AMF) result of the invocation.
Throws:
java.lang.Exception

setSecurityChecker

public void setSecurityChecker(SecurityExceptionChecker securityChecker)
Set the security checker for this endpoint.

Parameters:
securityChecker - The security checker.

getServiceInterface

protected abstract java.lang.Class getServiceInterface()
The service interface.

Returns:
The service interface.