|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.mina.proxy.AbstractProxyLogicHandler
org.apache.mina.proxy.handlers.http.AbstractHttpLogicHandler
public abstract class AbstractHttpLogicHandler
AbstractHttpLogicHandler.java - Base class for HTTP proxy AbstractProxyLogicHandler implementations.
Provides HTTP request encoding/response decoding functionality.
| Constructor Summary | |
|---|---|
AbstractHttpLogicHandler(ProxyIoSession proxyIoSession)
Creates a new AbstractHttpLogicHandler. |
|
| Method Summary | |
|---|---|
protected HttpProxyResponse |
decodeResponse(String response)
Parse a HTTP response from the proxy server. |
abstract void |
handleResponse(HttpProxyResponse response)
Handles a HTTP response from the proxy server. |
void |
messageReceived(IoFilter.NextFilter nextFilter,
IoBuffer buf)
Handles incoming data during the handshake process. |
void |
writeRequest(IoFilter.NextFilter nextFilter,
HttpProxyRequest request)
Calls #writeRequest0(NextFilter, HttpProxyRequest) to write the request. |
| Methods inherited from class org.apache.mina.proxy.AbstractProxyLogicHandler |
|---|
closeSession, closeSession, enqueueWriteRequest, flushPendingWriteRequests, getProxyFilter, getProxyIoSession, getSession, isHandshakeComplete, setHandshakeComplete, writeData |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.mina.proxy.ProxyLogicHandler |
|---|
doHandshake |
| Constructor Detail |
|---|
public AbstractHttpLogicHandler(ProxyIoSession proxyIoSession)
AbstractHttpLogicHandler.
proxyIoSession - the ProxyIoSession in use.request - the requested url to negotiate with the proxy.| Method Detail |
|---|
public void messageReceived(IoFilter.NextFilter nextFilter,
IoBuffer buf)
throws ProxyAuthException
nextFilter - the next filterbuf - the buffer holding received data
ProxyAuthException - if authentication fails
public abstract void handleResponse(HttpProxyResponse response)
throws ProxyAuthException
response - The response.
ProxyAuthException
public void writeRequest(IoFilter.NextFilter nextFilter,
HttpProxyRequest request)
#writeRequest0(NextFilter, HttpProxyRequest) to write the request.
If needed a reconnection to the proxy is done previously.
nextFilter - the next filterrequest - the http request
protected HttpProxyResponse decodeResponse(String response)
throws Exception
response - The response string.
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||