com.caucho.hessian.server

Class HessianServlet


public class HessianServlet
extends GenericServlet

Servlet for serving Hessian services.

Field Summary

private Class
_homeAPI
private Object
_homeImpl
private HessianSkeleton
_homeSkeleton
private Class
_objectAPI
private Object
_objectImpl
private HessianSkeleton
_objectSkeleton

Method Summary

Class
getAPIClass()
Gets the api-class.
String
getServletInfo()
private void
init(Object service)
void
init(ServletConfig config)
Initialize the service, including the service object.
private Class
loadClass(String className)
void
service(ServletRequest request, ServletResponse response)
Execute a request.
void
setAPIClass(Class api)
Sets the api-class.
void
setHome(Object home)
Sets the home implementation
void
setHomeAPI(Class api)
Sets the home api.
void
setObject(Object object)
Sets the object implementation
void
setObjectAPI(Class api)
Sets the object api.
void
setService(Object service)
Sets the service class.

Field Details

_homeAPI

private Class _homeAPI

_homeImpl

private Object _homeImpl

_homeSkeleton

private HessianSkeleton _homeSkeleton

_objectAPI

private Class _objectAPI

_objectImpl

private Object _objectImpl

_objectSkeleton

private HessianSkeleton _objectSkeleton

Method Details

getAPIClass

public Class getAPIClass()
Gets the api-class.

getServletInfo

public String getServletInfo()

init

private void init(Object service)
            throws ServletException

init

public void init(ServletConfig config)
            throws ServletException
Initialize the service, including the service object.

loadClass

private Class loadClass(String className)
            throws ClassNotFoundException

service

public void service(ServletRequest request,
                    ServletResponse response)
            throws IOException,
                   ServletException
Execute a request. The path-info of the request selects the bean. Once the bean's selected, it will be applied.

setAPIClass

public void setAPIClass(Class api)
Sets the api-class.

setHome

public void setHome(Object home)
Sets the home implementation

setHomeAPI

public void setHomeAPI(Class api)
Sets the home api.

setObject

public void setObject(Object object)
Sets the object implementation

setObjectAPI

public void setObjectAPI(Class api)
Sets the object api.

setService

public void setService(Object service)
Sets the service class.