Class SpringServerHttpConnection

All Implemented Interfaces:
FlowCallback, ContextAwareManagedObject, InputManagedObject, ManagedObject, ServerHttpConnection

public class SpringServerHttpConnection extends ProcessAwareServerHttpConnectionManagedObject<ByteBuffer>
  • Constructor Details

    • SpringServerHttpConnection

      public SpringServerHttpConnection(HttpServerLocation serverLocation, boolean isSecure, Supplier<HttpMethod> methodSupplier, Supplier<String> requestUriSupplier, HttpVersion version, NonMaterialisedHttpHeaders requestHeaders, ByteSequence requestEntity, HttpHeaderValue serverName, DateHttpHeaderClock dateHttpHeaderClock, boolean isIncludeStackTraceOnEscalation, HttpResponseWriter<ByteBuffer> writer, StreamBufferPool<ByteBuffer> bufferPool, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Object handler, org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter handlerAdapter, org.springframework.web.servlet.DispatcherServlet dispatcherServlet, org.springframework.context.ApplicationContext applicationContext)
      Instantiate.
      Parameters:
      serverLocation - HttpServerLocation.
      isSecure - Indicates if secure.
      methodSupplier - Supplier for the HttpRequest HttpMethod.
      requestUriSupplier - Supplier for the HttpRequest URI.
      version - HttpVersion for the HttpRequest.
      requestHeaders - NonMaterialisedHttpHeaders for the HttpRequest.
      requestEntity - ByteSequence for the HttpRequest entity.
      serverName - Name of the server. May be null if not sending Server HttpHeader.
      dateHttpHeaderClock - DateHttpHeaderClock. May be null to not send Date HttpHeader.
      isIncludeStackTraceOnEscalation - true to include the Escalation stack trace in the HttpResponse.
      writer - HttpResponseWriter.
      bufferPool - StreamBufferPool.
      request - HttpServletRequest.
      response - HttpServletResponse.
      handler - Handler object.
      handlerAdapter - RequestMappingHandlerAdapter.
      dispatcherServlet - DispatcherServlet.
      applicationContext - ApplicationContext.
  • Method Details

    • getHttpServletRequest

      public jakarta.servlet.http.HttpServletRequest getHttpServletRequest()
      Obtains the HttpServletRequest.
      Returns:
      HttpServletRequest.
    • getHttpServletResponse

      public jakarta.servlet.http.HttpServletResponse getHttpServletResponse()
      Obtains the HttpServletResponse.
      Returns:
      HttpServletResponse.
    • getSpringHandler

      public Object getSpringHandler()
      Obtains the Spring handler.
      Returns:
      Spring handler.
    • getRequestMappingHandlerAdapter

      public org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter getRequestMappingHandlerAdapter()
      Obtains the RequestMappingHandlerAdapter.
      Returns:
      RequestMappingHandlerAdapter.
    • getDispatcherServlet

      public org.springframework.web.servlet.DispatcherServlet getDispatcherServlet()
      Obtains the DispatcherServlet.
      Returns:
      DispatcherServlet.
    • getApplicationContext

      public org.springframework.context.ApplicationContext getApplicationContext()
      Obtains the ApplicationContext.
      Returns:
      ApplicationContext.
    • getModelAndViewContainer

      public org.springframework.web.method.support.ModelAndViewContainer getModelAndViewContainer()
      Obtains the ModelAndViewContainer.
      Returns:
      ModelAndViewContainer.
    • getNativeWebRequest

      public org.springframework.web.context.request.NativeWebRequest getNativeWebRequest()
      Obtains the NativeWebRequest.
      Returns:
      NativeWebRequest.
    • getModelAndViewBridge

      public ModelAndViewBridge getModelAndViewBridge(Method method) throws Exception
      Obtains the ModelAndViewBridge for the Method.
      Parameters:
      method - Method.
      Returns:
      ModelAndViewBridge for the Method.
      Throws:
      Exception - If fails to construct ModelAndViewBridge to the Method.
    • getRenderModelAndViewBridge

      public ModelAndViewBridge getRenderModelAndViewBridge() throws Exception
      Obtains the ModelAndViewBridge to render result.
      Returns:
      ModelAndViewBridge to render result.
      Throws:
      Exception - If fails to obtain.