org.apache.qpid.contrib.hessian
Class HessianEndpoint

java.lang.Object
  extended by org.apache.qpid.contrib.hessian.HessianEndpoint

public class HessianEndpoint
extends Object

Endpoint for serving Hessian services. This class is derived from HessianServlet.

Author:
Emmanuel Bourg

Constructor Summary
HessianEndpoint()
          Creates an hessian endpoint.
HessianEndpoint(Object serviceImpl)
          Creates an hessian endpoint for the specified service.
 
Method Summary
 String getQueuePrefix()
          Returns the prefix of the queue created to receive the hessian requests.
 SerializerFactory getSerializerFactory()
          Gets the serializer factory.
 org.apache.qpid.transport.Session run(org.apache.qpid.transport.Connection conn)
          Starts the endpoint on the connection specified.
 void setQueuePrefix(String prefix)
          Sets the prefix of the queue created to receive the hessian requests.
 void setSendCollectionType(boolean sendType)
          Sets the serializer send collection java type.
 void setSerializerFactory(SerializerFactory factory)
          Sets the serializer factory.
 void setServiceAPI(Class serviceAPI)
          Specifies the interface of the service.
 void setServiceImpl(Object serviceImpl)
          Specifies the object implementing the service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HessianEndpoint

public HessianEndpoint()
Creates an hessian endpoint.


HessianEndpoint

public HessianEndpoint(Object serviceImpl)
Creates an hessian endpoint for the specified service.

Parameters:
serviceImpl - The remote object to be exposed by the endpoint
Method Detail

setServiceAPI

public void setServiceAPI(Class serviceAPI)
Specifies the interface of the service.


setServiceImpl

public void setServiceImpl(Object serviceImpl)
Specifies the object implementing the service.


setSerializerFactory

public void setSerializerFactory(SerializerFactory factory)
Sets the serializer factory.


getSerializerFactory

public SerializerFactory getSerializerFactory()
Gets the serializer factory.


getQueuePrefix

public String getQueuePrefix()
Returns the prefix of the queue created to receive the hessian requests.


setQueuePrefix

public void setQueuePrefix(String prefix)
Sets the prefix of the queue created to receive the hessian requests.


setSendCollectionType

public void setSendCollectionType(boolean sendType)
Sets the serializer send collection java type.


run

public org.apache.qpid.transport.Session run(org.apache.qpid.transport.Connection conn)
Starts the endpoint on the connection specified. A session bound to a dedicated queue is created on the connection and a listener is installed to respond to hessian requests. The endpoint is stopped by closing the session returned.

Parameters:
conn - The AMQP connection
Returns:
the AMQP session handling the requests for the endpoint


Copyright © 2010-2012. All Rights Reserved.