Package org.serviceconnector.web.netty
Class NettyWebRequest
java.lang.Object
org.serviceconnector.web.AbstractWebRequest
org.serviceconnector.web.netty.NettyWebRequest
- All Implemented Interfaces:
IWebRequest
The Class NettyWebRequest.
-
Field Summary
Fields inherited from class org.serviceconnector.web.AbstractWebRequest
encodedSessionId -
Constructor Summary
ConstructorsConstructorDescriptionNettyWebRequest(io.netty.handler.codec.http.FullHttpRequest httpRequest, InetSocketAddress localAddress, InetSocketAddress remoteAddress) Instantiates a new netty web request. -
Method Summary
Modifier and TypeMethodDescriptionGets the http header for given key if any otherwise null.getParameter(String name) Gets the parameter.getParameterList(String name) Gets the parameter list.Gets the parameter map.getURL()Returns the URI (or path) of this request.Methods inherited from class org.serviceconnector.web.AbstractWebRequest
getAttribute, getHost, getLocalAddress, getPort, getRemoteAddress, getRemoteHost, getRemotePort, getSession, setAttribute, setLocalAddress, setRemoteAddress
-
Constructor Details
-
NettyWebRequest
public NettyWebRequest(io.netty.handler.codec.http.FullHttpRequest httpRequest, InetSocketAddress localAddress, InetSocketAddress remoteAddress) Instantiates a new netty web request.- Parameters:
httpRequest- the requestlocalAddress- the local addressremoteAddress- the remote address
-
-
Method Details
-
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:
name- the string- Returns:
- the parameter
-
getParameterList
Gets the parameter list.- Parameters:
name- the string- Returns:
- the parameter list
-
getParameterMap
Gets the parameter map.- Returns:
- the parameter map
-