|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.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)
ServiceEndpoint
InterceptorHandlerCreator
. It is
equally with the method createNewInterceptorHandlerInstance
.
setInterceptorHandlerCreator
in interface ServiceEndpoint
pvCreator
- public InterceptorHandlerCreator getInterceptorHandlerCreator()
ServiceEndpoint
InterceptorHandlerCreator
.
getInterceptorHandlerCreator
in interface ServiceEndpoint
InterceptorHandlerCreator
implementation.public final InterceptorHandler createNewInterceptorHandlerInstance()
ServiceEndpoint
InterceptorHandler
!
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)
ServiceEndpoint
InvocationHandler
with delegate to doInvoke
.
If parameter InterceptorHandler
is null
, then is calling the method createNewInterceptorHandlerInstance
,
else is using the parameter InterceptorHandler
.
doInvoke
in interface ServiceEndpoint
pvServiceImpl
- pvMethod
- pvArgs
- pvInterceptorHandler
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |