Spring Integration

org.springframework.integration.httpinvoker
Class HttpInvokerInboundGateway

java.lang.Object
  extended by org.springframework.integration.context.IntegrationObjectSupport
      extended by org.springframework.integration.endpoint.AbstractEndpoint
          extended by org.springframework.integration.gateway.MessagingGatewaySupport
              extended by org.springframework.integration.gateway.RemotingInboundGatewaySupport
                  extended by org.springframework.integration.httpinvoker.HttpInvokerInboundGateway
All Implemented Interfaces:
BeanFactoryAware, BeanNameAware, InitializingBean, Lifecycle, Phased, SmartLifecycle, NamedComponent, RequestReplyExchanger, TrackableComponent, HttpRequestHandler

Deprecated. as of 2.0.x. We recommend using the REST-based HTTP adapters instead.

@Deprecated
public class HttpInvokerInboundGateway
extends RemotingInboundGatewaySupport
implements HttpRequestHandler

An inbound gateway adapter for HttpInvoker-based remoting. Since this class implements HttpRequestHandler, it can be configured with a delegating Servlet where the servlet-name matches this adapter's bean name. For example, the following servlet can be defined in web.xml:

 <servlet>
     <servlet-name>httpInvokerGateway</servlet-name>
     <servlet-class>org.springframework.web.context.support.HttpRequestHandlerServlet</servlet-class>
 </servlet>
 
And, this would match the following bean definition in the application context loaded by a ContextLoaderListener:
 <bean id="httpInvokerGateway" class="org.springframework.integration.adapter.httpinvoker.HttpInvokerGateway">
     <constructor-arg ref="requestChannel"/>
 </bean>
 

Alternatively, in a Spring MVC application, the DispatcherServlet can delegate to the "httpInvokerGateway" bean based on a handler mapping configuration. In that case, the HttpRequestHandlerServlet would not be necessary.

Author:
Mark Fisher

Field Summary
 
Fields inherited from class org.springframework.integration.context.IntegrationObjectSupport
logger
 
Constructor Summary
HttpInvokerInboundGateway()
          Deprecated.  
 
Method Summary
 void handleRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Deprecated.  
protected  void onInit()
          Deprecated. Subclasses may implement this for initialization logic.
 
Methods inherited from class org.springframework.integration.gateway.RemotingInboundGatewaySupport
exchange, setExpectReply
 
Methods inherited from class org.springframework.integration.gateway.MessagingGatewaySupport
doStart, doStop, getComponentType, receive, send, sendAndReceive, sendAndReceiveMessage, setExceptionMapper, setReplyChannel, setReplyMapper, setReplyTimeout, setRequestChannel, setRequestMapper, setRequestTimeout, setShouldThrowErrors, setShouldTrack
 
Methods inherited from class org.springframework.integration.endpoint.AbstractEndpoint
getPhase, isAutoStartup, isRunning, setAutoStartup, setPhase, setTaskScheduler, start, stop, stop
 
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport
afterPropertiesSet, getBeanFactory, getComponentName, getConversionService, getRequiredMetadataPersister, getTaskScheduler, setBeanFactory, setBeanName, setComponentName, setConversionService, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.springframework.integration.context.NamedComponent
getComponentName
 

Constructor Detail

HttpInvokerInboundGateway

public HttpInvokerInboundGateway()
Deprecated. 
Method Detail

onInit

protected void onInit()
               throws Exception
Deprecated. 
Description copied from class: IntegrationObjectSupport
Subclasses may implement this for initialization logic.

Overrides:
onInit in class MessagingGatewaySupport
Throws:
Exception

handleRequest

public void handleRequest(javax.servlet.http.HttpServletRequest request,
                          javax.servlet.http.HttpServletResponse response)
                   throws javax.servlet.ServletException,
                          IOException
Deprecated. 
Specified by:
handleRequest in interface HttpRequestHandler
Throws:
javax.servlet.ServletException
IOException

Spring Integration

Copyright © 2010. All Rights Reserved.