org.mule.transport.http
Class HttpServerConnection
java.lang.Object
org.mule.transport.http.HttpServerConnection
public class HttpServerConnection
- extends java.lang.Object
A connection to the SimpleHttpServer.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpServerConnection
public HttpServerConnection(java.net.Socket socket,
java.lang.String encoding,
HttpConnector connector)
throws java.io.IOException
- Throws:
java.io.IOException
close
public void close()
isOpen
public boolean isOpen()
setKeepAlive
public void setKeepAlive(boolean b)
isKeepAlive
public boolean isKeepAlive()
getInputStream
public java.io.InputStream getInputStream()
getOutputStream
public java.io.OutputStream getOutputStream()
getWriter
public ResponseWriter getWriter()
throws java.io.UnsupportedEncodingException
- Returns the ResponseWriter used to write the output to the socket.
- Returns:
- This connection's ResponseWriter
- Throws:
java.io.UnsupportedEncodingException
readRequest
public HttpRequest readRequest()
throws java.io.IOException
- Throws:
java.io.IOException
readResponse
public HttpResponse readResponse()
throws java.io.IOException
- Throws:
java.io.IOException
writeRequest
public void writeRequest(HttpRequest request)
throws java.io.IOException
- Throws:
java.io.IOException
writeResponse
public void writeResponse(HttpResponse response)
throws java.io.IOException,
TransformerException
- Throws:
java.io.IOException
TransformerException
getSocketTimeout
public int getSocketTimeout()
throws java.net.SocketException
- Throws:
java.net.SocketException
setSocketTimeout
public void setSocketTimeout(int timeout)
throws java.net.SocketException
- Throws:
java.net.SocketException
Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.