Interface IWebRequest

All Known Implementing Classes:
AbstractWebRequest, NettyWebRequest

public interface IWebRequest
The Interface IWebRequest abstracts a web request.
  • Method Details

    • getLocalAddress

      InetSocketAddress getLocalAddress()
      Gets the local server address.
      Returns:
      the local address
    • getRemoteAddress

      InetSocketAddress getRemoteAddress()
      Gets the remote address.
      Returns:
      the remote address
    • getHost

      String getHost()
      Gets the host.
      Returns:
      the host
    • getPort

      int getPort()
      Gets the port.
      Returns:
      the port
    • getRemoteHost

      String getRemoteHost()
      Gets the remote host.
      Returns:
      the remote host
    • getRemotePort

      int getRemotePort()
      Gets the remote port.
      Returns:
      the remote port
    • getURL

      String getURL()
      Returns the URI (or path) of this request.
      Returns:
      the uRL
    • getHeader

      String getHeader(String key)
      Gets the http header for given key if any otherwise null.
      Parameters:
      key - the key
      Returns:
      the header
    • getParameter

      String getParameter(String string)
      Gets the parameter.
      Parameters:
      string - the string
      Returns:
      the parameter
    • getParameterList

      List<String> getParameterList(String string)
      Gets the parameter list.
      Parameters:
      string - the string
      Returns:
      the parameter list
    • getAttribute

      Object getAttribute(String key)
      Gets the attribute.
      Parameters:
      key - the key
      Returns:
      the attribute
    • setAttribute

      void setAttribute(String key, Object value)
      Sets the attribute.
      Parameters:
      key - the key
      value - the value
    • getSession

      WebSession getSession(boolean create)
      Gets the session.
      Parameters:
      create - the create
      Returns:
      the session
    • getParameterMap

      Map<String,List<String>> getParameterMap()
      Gets the parameter map.
      Returns:
      the parameter map