public class ClientSessionHandler extends AbstractProxyIoHandler
Constructor and Description |
---|
ClientSessionHandler(String cmd) |
Modifier and Type | Method and Description |
---|---|
void |
exceptionCaught(IoSession session,
Throwable cause) |
void |
messageReceived(IoSession session,
Object message)
Writes the request result to a temporary file.
|
void |
proxySessionOpened(IoSession session)
Sends the request to the proxy server when session is opened with
the proxy.
|
void |
sessionClosed(IoSession session)
Closes the temporary file if it was opened.
|
void |
sessionCreated(IoSession session) |
void |
sessionIdle(IoSession session,
IdleStatus status) |
sessionOpened
inputClosed, messageSent
public ClientSessionHandler(String cmd)
public void sessionCreated(IoSession session) throws Exception
sessionCreated
in interface IoHandler
sessionCreated
in class IoHandlerAdapter
Exception
public void proxySessionOpened(IoSession session) throws Exception
proxySessionOpened
in class AbstractProxyIoHandler
Exception
public void messageReceived(IoSession session, Object message)
messageReceived
in interface IoHandler
messageReceived
in class IoHandlerAdapter
public void sessionClosed(IoSession session) throws Exception
sessionClosed
in interface IoHandler
sessionClosed
in class IoHandlerAdapter
Exception
public void sessionIdle(IoSession session, IdleStatus status) throws Exception
sessionIdle
in interface IoHandler
sessionIdle
in class IoHandlerAdapter
Exception
public void exceptionCaught(IoSession session, Throwable cause)
exceptionCaught
in interface IoHandler
exceptionCaught
in class IoHandlerAdapter
Copyright © 2004–2016 Apache MINA Project. All rights reserved.