Package org.serviceconnector.web
Interface IWebRequest
- All Known Implementing Classes:
AbstractWebRequest,NettyWebRequest
public interface IWebRequest
The Interface IWebRequest abstracts a web request.
-
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(String key) Gets the attribute.Gets the http header for given key if any otherwise null.getHost()Gets the host.Gets the local server address.getParameter(String string) Gets the parameter.getParameterList(String string) Gets the parameter list.Gets the parameter map.intgetPort()Gets the port.Gets the remote address.Gets the remote host.intGets the remote port.getSession(boolean create) Gets the session.getURL()Returns the URI (or path) of this request.voidsetAttribute(String key, Object value) Sets the attribute.
-
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
Gets the http header for given key if any otherwise null.- Parameters:
key- the key- Returns:
- the header
-
getParameter
Gets the parameter.- Parameters:
string- the string- Returns:
- the parameter
-
getParameterList
Gets the parameter list.- Parameters:
string- the string- Returns:
- the parameter list
-
getAttribute
Gets the attribute.- Parameters:
key- the key- Returns:
- the attribute
-
setAttribute
Sets the attribute.- Parameters:
key- the keyvalue- the value
-
getSession
Gets the session.- Parameters:
create- the create- Returns:
- the session
-
getParameterMap
Gets the parameter map.- Returns:
- the parameter map
-