dev@grizzly.java.net

ParserProtocolFilter API

From: John ROM <snake-john_at_gmx.de>
Date: Mon, 26 May 2008 11:59:33 +0200

Hi,

I had the following problem.

I set up Portunification

I have a Protocol parser down the chain.

Now when MyProtocolParser returns true on isExpectingMoreData()
the ReadFilter of MyProtocolParser fails because
PUReadFilter read the expected bytes.


Ok since My MyProtocolParsER is statefull I can cope with this, but it makes my Parser ugly.

So I am thinking maybe you could change the API with a flag on ParserProtocolFilter
forcing a skipping of the Reading of the ParserProtocolFilter ReadFilter.

for Example in
ParserProtocolFilter.java

boolean continueExecution = isFlag()? true:super.execute(ctx);

private boolean flag=false;
public void setFlag(boolean flag) {
        this.flag = flag;
}

public boolean isFlag() {
        return flag;
}

Many Greetings
John




-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger