Class AbstractWebRequest

java.lang.Object
org.serviceconnector.web.AbstractWebRequest
All Implemented Interfaces:
IWebRequest
Direct Known Subclasses:
NettyWebRequest

public abstract class AbstractWebRequest extends Object implements IWebRequest
The Class AbstractWebRequest.
  • Field Details

    • encodedSessionId

      protected String encodedSessionId
      The encoded session id.
  • Constructor Details

    • AbstractWebRequest

      public AbstractWebRequest(InetSocketAddress localAddress, InetSocketAddress remoteAddress)
      Instantiates a new abstract web request.
      Parameters:
      localAddress - the local address
      remoteAddress - the remote address
  • Method Details

    • getAttribute

      public Object getAttribute(String key)
      Gets the attribute.
      Specified by:
      getAttribute in interface IWebRequest
      Parameters:
      key - the key
      Returns:
      the attribute the attribute
    • setAttribute

      public void setAttribute(String key, Object value)
      Sets the attribute.
      Specified by:
      setAttribute in interface IWebRequest
      Parameters:
      key - the key
      value - the value the value
    • getLocalAddress

      public InetSocketAddress getLocalAddress()
      Gets the local server address.
      Specified by:
      getLocalAddress in interface IWebRequest
      Returns:
      the local address
    • getRemoteAddress

      public InetSocketAddress getRemoteAddress()
      Gets the remote address.
      Specified by:
      getRemoteAddress in interface IWebRequest
      Returns:
      the remote address
    • setLocalAddress

      public void setLocalAddress(InetSocketAddress localAddress)
      Sets the local address.
      Parameters:
      localAddress - the new local address
    • setRemoteAddress

      public void setRemoteAddress(InetSocketAddress remoteAddress)
      Sets the remote address.
      Parameters:
      remoteAddress - the new remote address
    • getHost

      public String getHost()
      Gets the host.
      Specified by:
      getHost in interface IWebRequest
      Returns:
      the host
    • getRemoteHost

      public String getRemoteHost()
      Gets the remote host.
      Specified by:
      getRemoteHost in interface IWebRequest
      Returns:
      the remote host
    • getPort

      public int getPort()
      Gets the port.
      Specified by:
      getPort in interface IWebRequest
      Returns:
      the port
    • getRemotePort

      public int getRemotePort()
      Gets the remote port.
      Specified by:
      getRemotePort in interface IWebRequest
      Returns:
      the remote port
    • getSession

      public WebSession getSession(boolean create)
      Gets the session.
      Specified by:
      getSession in interface IWebRequest
      Parameters:
      create - the create
      Returns:
      the session