org.apache.mina.filter.codec.ProtocolDecoder Java Examples
The following examples show how to use
org.apache.mina.filter.codec.ProtocolDecoder.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: HackedProtocolCodecFilter.java From sailfish-core with Apache License 2.0 | 5 votes |
/** * Dispose the decoder, removing its instance from the * session's attributes, and calling the associated * dispose method. */ private void disposeDecoder(IoSession session) { ProtocolDecoder decoder = (ProtocolDecoder) session.removeAttribute(DECODER); if (decoder == null) { return; } try { decoder.dispose(session); } catch (Exception e) { LOGGER.warn("Failed to dispose: {} ({})", decoder.getClass().getName(), decoder); } }
Example #2
Source File: CodecFactory.java From sailfish-core with Apache License 2.0 | 5 votes |
@Override public ProtocolDecoder getDecoder(IoSession session) throws Exception { AbstractCodec codec = codecs.get(session); if (codec != null) { return codec; } codec = codecClass.newInstance(); codec.init(serviceContext, codecSettings, msgFactory, msgDictionary); codecs.putIfAbsent(session, codec); return codecs.get(session); }
Example #3
Source File: TftpProtocolCodecFactory.java From tftp4j with Apache License 2.0 | 4 votes |
@Nonnull @Override public ProtocolDecoder getDecoder(@Nonnull IoSession session) { return TftpDecoder.INSTANCE; }
Example #4
Source File: CommandCodecFactory.java From mina with Apache License 2.0 | 4 votes |
@Override public ProtocolDecoder getDecoder(IoSession session) throws Exception { return decoder; }
Example #5
Source File: SumkCodecFactory.java From sumk with Apache License 2.0 | 4 votes |
@Override public ProtocolDecoder getDecoder(IoSession session) throws Exception { return decoder; }
Example #6
Source File: MinaCodecAdapter.java From dubbox with Apache License 2.0 | 4 votes |
public ProtocolDecoder getDecoder() { return decoder; }
Example #7
Source File: ImageCodecFactory.java From javastruct with GNU Lesser General Public License v3.0 | 4 votes |
public ProtocolDecoder getDecoder() throws Exception { return decoder; }
Example #8
Source File: RedisProtocolCodecFactory.java From Redis-Synyed with Apache License 2.0 | 4 votes |
@Override public ProtocolDecoder getDecoder(IoSession session) throws Exception { return redisProtocolDecoder; }
Example #9
Source File: MapleCodecFactory.java From mapleLemon with GNU General Public License v2.0 | 4 votes |
@Override public ProtocolDecoder getDecoder(IoSession session) throws Exception { return decoder; }
Example #10
Source File: GameProtocolcodecFactory.java From GameServer with Apache License 2.0 | 4 votes |
public ProtocolDecoder getDecoder(IoSession session) { return decoder; }
Example #11
Source File: MinaCodecAdapter.java From dubbox with Apache License 2.0 | 4 votes |
public ProtocolDecoder getDecoder() { return decoder; }
Example #12
Source File: GameProtocolcodecFactory.java From TestClient with Apache License 2.0 | 4 votes |
public ProtocolDecoder getDecoder(IoSession session) { return decoder; }
Example #13
Source File: MapleCodecFactory.java From HeavenMS with GNU Affero General Public License v3.0 | 4 votes |
@Override public ProtocolDecoder getDecoder(IoSession session) throws Exception { return decoder; }
Example #14
Source File: WebSocketCodecFactory.java From red5-websocket with Apache License 2.0 | 4 votes |
@Override public ProtocolDecoder getDecoder(IoSession session) throws Exception { return decoder; }
Example #15
Source File: MinaCodecAdapter.java From dubbox-hystrix with Apache License 2.0 | 4 votes |
public ProtocolDecoder getDecoder() { return decoder; }
Example #16
Source File: XMPPCodecFactory.java From Openfire with Apache License 2.0 | 4 votes |
@Override public ProtocolDecoder getDecoder(IoSession session) throws Exception { return decoder; }
Example #17
Source File: WelderSensorCodec.java From camelinaction with Apache License 2.0 | 4 votes |
public ProtocolDecoder getDecoder() throws Exception { return new WelderDecoder(); }
Example #18
Source File: DhcpProtocolCodecFactory.java From dhcp4j with Apache License 2.0 | 4 votes |
@Override public ProtocolDecoder getDecoder(IoSession session) { // Create a new decoder. return decoder; }
Example #19
Source File: RTMPCodecFactory.java From red5-server-common with Apache License 2.0 | 4 votes |
/** {@inheritDoc} */ public ProtocolDecoder getDecoder(IoSession session) { return decoder; }
Example #20
Source File: DhcpProtocolCodecFactory.java From dhcp4j with Apache License 2.0 | 4 votes |
@Override public ProtocolDecoder getDecoder(IoSession session) { // Create a new decoder. return decoder; }
Example #21
Source File: RTMPMinaCodecFactory.java From red5-client with Apache License 2.0 | 4 votes |
/** {@inheritDoc} */ @Override public ProtocolDecoder getDecoder(IoSession session) { return clientDecoder; }
Example #22
Source File: AppMessageCodecFactory.java From cim with Apache License 2.0 | 4 votes |
@Override public ProtocolDecoder getDecoder(IoSession session) { return decoder; }
Example #23
Source File: WebMessageCodecFactory.java From cim with Apache License 2.0 | 4 votes |
@Override public ProtocolDecoder getDecoder(IoSession session) { return decoder; }
Example #24
Source File: WebSocketCodecFactory.java From game-server with MIT License | 4 votes |
/** {@inheritDoc} */ @Override public ProtocolDecoder getDecoder(IoSession ioSession) throws Exception { return decoder; }
Example #25
Source File: TestDnsServer.java From netty-4.1.22 with Apache License 2.0 | 4 votes |
@Override public ProtocolDecoder getDecoder(IoSession session) throws Exception { return new DnsUdpDecoder(); }
Example #26
Source File: DataCodecFactory.java From oim-fx with MIT License | 4 votes |
@Override public ProtocolDecoder getDecoder(IoSession session) { return decoder; }
Example #27
Source File: BytesDataFactory.java From oim-fx with MIT License | 4 votes |
@Override public ProtocolDecoder getDecoder(IoSession session) { return decoder; }
Example #28
Source File: TestDnsServer.java From servicetalk with Apache License 2.0 | 4 votes |
@Override public ProtocolDecoder getDecoder(IoSession session) { return new DnsUdpDecoder(); }
Example #29
Source File: DSCodecFactory.java From CXTouch with GNU General Public License v3.0 | 4 votes |
public ProtocolDecoder getDecoder(IoSession ioSession) throws Exception { return decoder; }
Example #30
Source File: MyTextLineCodecFactory.java From java-study with Apache License 2.0 | 4 votes |
public ProtocolDecoder getDecoder(IoSession session) throws Exception { return new MyTextLineCodecDecoder(charset, delimiter); }