Class SpringServerHttpConnection

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

public class SpringServerHttpConnection extends ProcessAwareServerHttpConnectionManagedObject<ByteBuffer>
  • Constructor Details

  • Method Details

    • methodParameter

      public static void methodParameter(ObjectResponse<Object> response)
      Parameters:
      response - ObjectResponse.
    • setResponse

      public void setResponse(Object responseObject, ManagedFunctionObjectType<?> managedFunctionObjectType, String responseView, Throwable responseFailure)
      Specifies the response.
      Parameters:
      responseObject - Response object.
      managedFunctionObjectType - ManagedFunctionObjectType.
      responseView - Response view.
      responseFailure - Response Throwable.
    • flagManuallyHandle

      public void flagManuallyHandle()
      Flags manually handling HttpServletResponse.
    • 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.
    • writeResponse

      public void writeResponse() throws Throwable
      Write the response.
      Throws:
      Throwable - If fails to write response.