org.qtunes.web
Class WebConnectionWrapper
java.lang.Object
org.qtunes.web.WebConnectionWrapper
- All Implemented Interfaces:
- WebConnection
public class WebConnectionWrapper
- extends java.lang.Object
- implements WebConnection
An WebConnection that wraps another.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
con
protected WebConnection con
WebConnectionWrapper
public WebConnectionWrapper(WebConnection con)
getRemoteAddress
public java.net.InetSocketAddress getRemoteAddress()
- Specified by:
getRemoteAddress
in interface WebConnection
getRequestURI
public java.net.URI getRequestURI()
- Specified by:
getRequestURI
in interface WebConnection
getResponseCode
public int getResponseCode()
- Specified by:
getResponseCode
in interface WebConnection
close
public void close()
throws java.io.IOException
- Specified by:
close
in interface WebConnection
- Throws:
java.io.IOException
sendResponseHeaders
public void sendResponseHeaders(int status,
int length)
throws java.io.IOException
- Specified by:
sendResponseHeaders
in interface WebConnection
- Throws:
java.io.IOException
getOutputStream
public java.io.OutputStream getOutputStream()
- Specified by:
getOutputStream
in interface WebConnection
getInputStream
public java.io.InputStream getInputStream()
- Specified by:
getInputStream
in interface WebConnection
getMethod
public java.lang.String getMethod()
- Specified by:
getMethod
in interface WebConnection
getRequestHeader
public java.lang.String getRequestHeader(java.lang.String key)
- Specified by:
getRequestHeader
in interface WebConnection
getRequestHeaders
public java.util.List<java.lang.String> getRequestHeaders(java.lang.String key)
- Specified by:
getRequestHeaders
in interface WebConnection
getRequestHeaderNames
public java.util.Collection<java.lang.String> getRequestHeaderNames()
- Specified by:
getRequestHeaderNames
in interface WebConnection
setResponseHeader
public void setResponseHeader(java.lang.String key,
java.lang.String value)
- Specified by:
setResponseHeader
in interface WebConnection
addResponseHeader
public void addResponseHeader(java.lang.String key,
java.lang.String value)
- Specified by:
addResponseHeader
in interface WebConnection
setResponseHeader
public void setResponseHeader(java.lang.String key,
java.util.Date value)
- Specified by:
setResponseHeader
in interface WebConnection
getParameter
public java.lang.String getParameter(java.lang.String key)
- Specified by:
getParameter
in interface WebConnection
getParameterValues
public java.util.List<java.lang.String> getParameterValues(java.lang.String key)
- Specified by:
getParameterValues
in interface WebConnection
getParameters
public java.util.Map<java.lang.String,java.lang.Object> getParameters()
- Specified by:
getParameters
in interface WebConnection
getWebService
public WebService getWebService()
- Specified by:
getWebService
in interface WebConnection