Package org.serviceconnector.web
Class AbstractWebRequest
java.lang.Object
org.serviceconnector.web.AbstractWebRequest
- All Implemented Interfaces:
IWebRequest
- Direct Known Subclasses:
NettyWebRequest
The Class AbstractWebRequest.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAbstractWebRequest(InetSocketAddress localAddress, InetSocketAddress remoteAddress) Instantiates a new abstract web request. -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(String key) Gets the attribute.getHost()Gets the host.Gets the local server address.intgetPort()Gets the port.Gets the remote address.Gets the remote host.intGets the remote port.getSession(boolean create) Gets the session.voidsetAttribute(String key, Object value) Sets the attribute.voidsetLocalAddress(InetSocketAddress localAddress) Sets the local address.voidsetRemoteAddress(InetSocketAddress remoteAddress) Sets the remote address.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.serviceconnector.web.IWebRequest
getHeader, getParameter, getParameterList, getParameterMap, getURL
-
Field Details
-
encodedSessionId
The encoded session id.
-
-
Constructor Details
-
AbstractWebRequest
Instantiates a new abstract web request.- Parameters:
localAddress- the local addressremoteAddress- the remote address
-
-
Method Details
-
getAttribute
Gets the attribute.- Specified by:
getAttributein interfaceIWebRequest- Parameters:
key- the key- Returns:
- the attribute the attribute
-
setAttribute
Sets the attribute.- Specified by:
setAttributein interfaceIWebRequest- Parameters:
key- the keyvalue- the value the value
-
getLocalAddress
Gets the local server address.- Specified by:
getLocalAddressin interfaceIWebRequest- Returns:
- the local address
-
getRemoteAddress
Gets the remote address.- Specified by:
getRemoteAddressin interfaceIWebRequest- Returns:
- the remote address
-
setLocalAddress
Sets the local address.- Parameters:
localAddress- the new local address
-
setRemoteAddress
Sets the remote address.- Parameters:
remoteAddress- the new remote address
-
getHost
Gets the host.- Specified by:
getHostin interfaceIWebRequest- Returns:
- the host
-
getRemoteHost
Gets the remote host.- Specified by:
getRemoteHostin interfaceIWebRequest- Returns:
- the remote host
-
getPort
public int getPort()Gets the port.- Specified by:
getPortin interfaceIWebRequest- Returns:
- the port
-
getRemotePort
public int getRemotePort()Gets the remote port.- Specified by:
getRemotePortin interfaceIWebRequest- Returns:
- the remote port
-
getSession
Gets the session.- Specified by:
getSessionin interfaceIWebRequest- Parameters:
create- the create- Returns:
- the session
-