Interface HttpContext

All Known Implementing Classes:
HttpContextImpl

public interface HttpContext
HTTP servlet request context
  • Method Details

    • request

      URequest request()
      An abstract API of the HTTP request
    • writer

      Appendable writer()
    • getParameter

      String getParameter(@NotNull @NotNull String key)
      Returns the last parameter or the null value.
    • getParameterNames

      Set<String> getParameterNames()
      Returns the parameter names
    • getParameter

      String getParameter(@NotNull @NotNull String key, String defaultValue)
      Returns the last parameter
    • getParameter

      <T> T getParameter(@NotNull @NotNull String key, @NotNull T defaultValue, @NotNull @NotNull Function<String,T> converter)
      Returns the type safe last parameter or the default value.
    • ofServletResponse

      static HttpContext ofServletResponse(Object httpServletResponse)
      HTTP Servlet Factory
    • ofServlet

      static HttpContext ofServlet(@Nullable @Nullable Object httpServletRequest, @NotNull @NotNull Object httpServletResponse)
      Create a default HTTP Context
    • of

      static HttpContext of(ManyMap map)
      Create a default HTTP context from a map
    • of

      static HttpContext of()
      UContext from a map