com.caucho.remote.server
Interface ProtocolServletFactory

All Known Implementing Classes:
AbstractProtocolServletFactory, BurlapProtocolServletFactory, HessianProtocolServletFactory

public interface ProtocolServletFactory

A factory for creating @WebService or @Remote servlets.


Method Summary
 Servlet createServlet(java.lang.Class<?> serviceClass, java.lang.Object service)
          Creates a new servlet skeleton based on an API and an object
 void setAnnotated(Annotated annotated)
          Sets the ServiceType annotated
 void setServiceType(java.lang.annotation.Annotation ann)
          Sets the ServiceType annotation
 

Method Detail

setServiceType

void setServiceType(java.lang.annotation.Annotation ann)
Sets the ServiceType annotation


setAnnotated

void setAnnotated(Annotated annotated)
Sets the ServiceType annotated


createServlet

Servlet createServlet(java.lang.Class<?> serviceClass,
                      java.lang.Object service)
                      throws ServiceException
Creates a new servlet skeleton based on an API and an object

Parameters:
serviceClass - the remoteApi exposed to the server
service - the managed service object
Throws:
ServiceException