public class SpringHttpServicesServlet
extends javax.servlet.http.HttpServlet
<bean name="/UserService" class="org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter" lazy-init="false">
<property name="service" ref="userService" />
<property name="serviceInterface" value="com.acme.services.UserService" />
</bean>
<bean name="/GroupService" class="org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter" lazy-init="false">
<property name="service" ref="groupService" />
<property name="serviceInterface" value="com.acme.services.GroupService" />
</bean>
web.xml:
<servlet>
<servlet-name>httpServicesServlet</servlet-name>
<servlet-class>net.sf.jstuff.integration.spring.SpringHttpServicesServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>httpServicesServlet</servlet-name>
<url-pattern>/remoting/*</url-pattern>
</servlet-mapping>
| Constructor and Description |
|---|
SpringHttpServicesServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
setShowIndex(boolean showIndex) |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, serviceprotected void service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
service in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionpublic void setShowIndex(boolean showIndex)
Copyright © 2010–2021 Vegard IT GmbH, Germany. All rights reserved.