Package org.apache.mina.proxy
Class AbstractProxyIoHandler
- java.lang.Object
-
- org.apache.mina.core.service.IoHandlerAdapter
-
- org.apache.mina.proxy.AbstractProxyIoHandler
-
- All Implemented Interfaces:
IoHandler
public abstract class AbstractProxyIoHandler extends IoHandlerAdapter
AbstractProxyIoHandler.java -IoHandler
that intercepts events until handshake is complete.- Since:
- MINA 2.0.0-M3
- Author:
- Apache MINA Project
-
-
Constructor Summary
Constructors Constructor Description AbstractProxyIoHandler()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
proxySessionOpened(IoSession session)
Method called only when handshake has completed.void
sessionOpened(IoSession session)
Hooked session opened event.-
Methods inherited from class org.apache.mina.core.service.IoHandlerAdapter
event, exceptionCaught, inputClosed, messageReceived, messageSent, sessionClosed, sessionCreated, sessionIdle
-
-
-
-
Method Detail
-
proxySessionOpened
public abstract void proxySessionOpened(IoSession session) throws Exception
Method called only when handshake has completed.- Parameters:
session
- the io session- Throws:
Exception
- If the proxy session can't be opened
-
sessionOpened
public final void sessionOpened(IoSession session) throws Exception
Hooked session opened event.- Specified by:
sessionOpened
in interfaceIoHandler
- Overrides:
sessionOpened
in classIoHandlerAdapter
- Parameters:
session
- the io session- Throws:
Exception
- If we get an exception while processing the open event
-
-