|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.synapse.transport.passthru.SourceHandler
public class SourceHandler
This is the class where transport interacts with the client. This class receives events for a particular connection. These events give information about the message and its various states.
| Constructor Summary | |
|---|---|
SourceHandler(SourceConfiguration sourceConfiguration)
|
|
| Method Summary | |
|---|---|
void |
closed(org.apache.http.nio.NHttpServerConnection conn)
|
void |
commitResponseHideExceptions(org.apache.http.nio.NHttpServerConnection conn,
org.apache.http.HttpResponse response)
Commit the response to the connection. |
void |
connected(org.apache.http.nio.NHttpServerConnection conn)
|
void |
endOfInput(org.apache.http.nio.NHttpServerConnection conn)
|
void |
exception(org.apache.http.nio.NHttpServerConnection conn,
Exception ex)
|
OutputStream |
getOutputStream(String method,
SourceRequest request)
Create synapse.response-source-buffer for GET and HEAD Http methods |
SourceRequest |
getSourceRequest(org.apache.http.nio.NHttpServerConnection conn)
Create SourceRequest from NHttpServerConnection conn |
void |
informReaderError(org.apache.http.nio.NHttpServerConnection conn)
|
void |
informWriterError(org.apache.http.nio.NHttpServerConnection conn)
|
void |
inputReady(org.apache.http.nio.NHttpServerConnection conn,
org.apache.http.nio.ContentDecoder decoder)
|
void |
logIOException(org.apache.http.nio.NHttpServerConnection conn,
IOException e)
|
void |
outputReady(org.apache.http.nio.NHttpServerConnection conn,
org.apache.http.nio.ContentEncoder encoder)
|
void |
requestReceived(org.apache.http.nio.NHttpServerConnection conn)
|
void |
responseReady(org.apache.http.nio.NHttpServerConnection conn)
|
void |
timeout(org.apache.http.nio.NHttpServerConnection conn)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SourceHandler(SourceConfiguration sourceConfiguration)
| Method Detail |
|---|
public void connected(org.apache.http.nio.NHttpServerConnection conn)
connected in interface org.apache.http.nio.NHttpServerEventHandlerpublic void requestReceived(org.apache.http.nio.NHttpServerConnection conn)
requestReceived in interface org.apache.http.nio.NHttpServerEventHandler
public void inputReady(org.apache.http.nio.NHttpServerConnection conn,
org.apache.http.nio.ContentDecoder decoder)
inputReady in interface org.apache.http.nio.NHttpServerEventHandlerpublic void responseReady(org.apache.http.nio.NHttpServerConnection conn)
responseReady in interface org.apache.http.nio.NHttpServerEventHandler
public void outputReady(org.apache.http.nio.NHttpServerConnection conn,
org.apache.http.nio.ContentEncoder encoder)
outputReady in interface org.apache.http.nio.NHttpServerEventHandler
public void logIOException(org.apache.http.nio.NHttpServerConnection conn,
IOException e)
public void timeout(org.apache.http.nio.NHttpServerConnection conn)
timeout in interface org.apache.http.nio.NHttpServerEventHandlerpublic void closed(org.apache.http.nio.NHttpServerConnection conn)
closed in interface org.apache.http.nio.NHttpServerEventHandler
public void endOfInput(org.apache.http.nio.NHttpServerConnection conn)
throws IOException
endOfInput in interface org.apache.http.nio.NHttpServerEventHandlerIOException
public void exception(org.apache.http.nio.NHttpServerConnection conn,
Exception ex)
exception in interface org.apache.http.nio.NHttpServerEventHandlerpublic void informReaderError(org.apache.http.nio.NHttpServerConnection conn)
public void informWriterError(org.apache.http.nio.NHttpServerConnection conn)
public void commitResponseHideExceptions(org.apache.http.nio.NHttpServerConnection conn,
org.apache.http.HttpResponse response)
conn - the connection being processedresponse - the response to commit over the connection
public OutputStream getOutputStream(String method,
SourceRequest request)
method - Http Methodrequest - Source Request
public SourceRequest getSourceRequest(org.apache.http.nio.NHttpServerConnection conn)
throws IOException,
org.apache.http.HttpException
conn - the connection being processed
IOException
org.apache.http.HttpException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||