org.qtunes.web
Class WebConnectionWrapper

java.lang.Object
  extended by org.qtunes.web.WebConnectionWrapper
All Implemented Interfaces:
WebConnection

public class WebConnectionWrapper
extends java.lang.Object
implements WebConnection

An WebConnection that wraps another.


Field Summary
protected  WebConnection con
           
 
Constructor Summary
WebConnectionWrapper(WebConnection con)
           
 
Method Summary
 void addResponseHeader(java.lang.String key, java.lang.String value)
           
 void close()
           
 java.io.InputStream getInputStream()
           
 java.lang.String getMethod()
           
 java.io.OutputStream getOutputStream()
           
 java.lang.String getParameter(java.lang.String key)
           
 java.util.Map<java.lang.String,java.lang.Object> getParameters()
           
 java.util.List<java.lang.String> getParameterValues(java.lang.String key)
           
 java.net.InetSocketAddress getRemoteAddress()
           
 java.lang.String getRequestHeader(java.lang.String key)
           
 java.util.Collection<java.lang.String> getRequestHeaderNames()
           
 java.util.List<java.lang.String> getRequestHeaders(java.lang.String key)
           
 java.net.URI getRequestURI()
           
 int getResponseCode()
           
 WebService getWebService()
           
 void sendResponseHeaders(int status, int length)
           
 void setResponseHeader(java.lang.String key, java.util.Date value)
           
 void setResponseHeader(java.lang.String key, java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

con

protected WebConnection con
Constructor Detail

WebConnectionWrapper

public WebConnectionWrapper(WebConnection con)
Method Detail

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