public class MultilineOrientedResponseDecoder
extends org.jboss.netty.handler.codec.oneone.OneToOneDecoder
MultilineOrientedResponseDecoder class.
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_MULTILINE_INDICATOR |
Constructor and Description |
---|
MultilineOrientedResponseDecoder()
Constructor for MultilineOrientedResponseDecoder.
|
MultilineOrientedResponseDecoder(String multilineIndicator)
Constructor for MultilineOrientedResponseDecoder.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkIndicator(String line)
checkIndicator
|
protected Object |
decode(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.Channel channel,
Object msg)
This method decodes
String objects into MultilineOrientedResponse instances
that contain each line of the string response. |
String |
getMultilineIndicator()
getMultilineIndicator
|
public static final String DEFAULT_MULTILINE_INDICATOR
public MultilineOrientedResponseDecoder()
Constructor for MultilineOrientedResponseDecoder.
multilineIndicator
- a String
object.protected Object decode(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.Channel channel, Object msg) throws Exception
String
objects into MultilineOrientedResponse
instances
that contain each line of the string response.decode
in class org.jboss.netty.handler.codec.oneone.OneToOneDecoder
Exception
protected boolean checkIndicator(String line)
checkIndicator
line
- a String
object.Copyright © 2020. All rights reserved.