|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
net.sf.crispy.server.HttpServiceEndpoint
A special implementation from a ServiceEndpoint for the http protocoll.
| Constructor Summary | |
HttpServiceEndpoint()
|
|
| Method Summary | |
InterceptorHandler |
createNewInterceptorHandlerInstance()
Hint:Every call from this method must get a new instance from InterceptorHandler! |
java.lang.Object |
doInvoke(java.lang.Object pvServiceImpl,
java.lang.reflect.Method pvMethod,
java.lang.Object[] pvArgs,
InterceptorHandler pvInterceptorHandler)
Execute the service with the InvocationHandler with delegate to doInvoke.
|
InterceptorHandlerCreator |
getInterceptorHandlerCreator()
Get a implementation for the interface InterceptorHandlerCreator. |
java.lang.Object |
getService(javax.servlet.http.HttpServletRequest pvRequest,
javax.servlet.http.HttpServletResponse pvResponse)
This is a alternative to the Object getService(String pvServiceInterfaceName) method.
|
void |
setInterceptorHandlerCreator(InterceptorHandlerCreator pvCreator)
Set a implementation for the interface InterceptorHandlerCreator. |
| Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public HttpServiceEndpoint()
| Method Detail |
public void setInterceptorHandlerCreator(InterceptorHandlerCreator pvCreator)
ServiceEndpointInterceptorHandlerCreator. It is
equally with the method createNewInterceptorHandlerInstance.
setInterceptorHandlerCreator in interface ServiceEndpointpvCreator - public InterceptorHandlerCreator getInterceptorHandlerCreator()
ServiceEndpointInterceptorHandlerCreator.
getInterceptorHandlerCreator in interface ServiceEndpointInterceptorHandlerCreator implementation.public final InterceptorHandler createNewInterceptorHandlerInstance()
ServiceEndpointInterceptorHandler!
createNewInterceptorHandlerInstance in interface ServiceEndpoint
public java.lang.Object getService(javax.servlet.http.HttpServletRequest pvRequest,
javax.servlet.http.HttpServletResponse pvResponse)
throws java.lang.Exception
Object getService(String pvServiceInterfaceName) method.
With this method you can use SessionID (request.getSession().getId())
for a service with scope equals Session.
pvRequest - pvResponse -
null.
For a real service implementation must override this method.
java.lang.Exception
public java.lang.Object doInvoke(java.lang.Object pvServiceImpl,
java.lang.reflect.Method pvMethod,
java.lang.Object[] pvArgs,
InterceptorHandler pvInterceptorHandler)
ServiceEndpointInvocationHandler with delegate to doInvoke.
If parameter InterceptorHandler is null, then is calling the method createNewInterceptorHandlerInstance,
else is using the parameter InterceptorHandler.
doInvoke in interface ServiceEndpointpvServiceImpl - pvMethod - pvArgs - pvInterceptorHandler -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||