org.apache.synapse.transport.passthru
Class SourceResponse
java.lang.Object
org.apache.synapse.transport.passthru.SourceResponse
public class SourceResponse
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SourceResponse
public SourceResponse(SourceConfiguration config,
int status,
SourceRequest request)
SourceResponse
public SourceResponse(SourceConfiguration config,
int status,
String statusLine,
SourceRequest request)
connect
public void connect(Pipe pipe)
start
public void start(org.apache.http.nio.NHttpServerConnection conn)
throws IOException,
org.apache.http.HttpException
- Starts the response by writing the headers
- Parameters:
conn - connection
- Throws:
IOException - if an error occurs
org.apache.http.HttpException - if an error occurs
checkResponseChunkDisable
public void checkResponseChunkDisable(org.apache.axis2.context.MessageContext responseMsgContext)
throws IOException
- Throws:
IOException
write
public int write(org.apache.http.nio.NHttpServerConnection conn,
org.apache.http.nio.ContentEncoder encoder)
throws IOException
- Consume the content through the Pipe and write them to the wire
- Parameters:
conn - connectionencoder - encoder
- Returns:
- number of bytes written
- Throws:
IOException - if an error occurs
addHeader
public void addHeader(String name,
String value)
setStatus
public void setStatus(int status)
removeHeader
public void removeHeader(String name)
getHeader
public String getHeader(String name)
hasEntity
public boolean hasEntity()
setKeepAlive
public void setKeepAlive(boolean keepAlive)
Copyright © 2005–2015 Apache Software Foundation. All rights reserved.