com.sun.grizzly.portunif
Interface PUPreProcessor

All Known Implementing Classes:
TLSPUPreProcessor

public interface PUPreProcessor

Author:
Alexey Stashok

Method Summary
 String getId()
          Returns PUPreProcessor id
 void postProcess(Context context, PUProtocolRequest protocolRequest)
          Method is called if no ProtocolFinder was found.
 boolean process(Context context, PUProtocolRequest protocolRequest)
          Method performs data preprocessing, before it will be passed to ProtocolFinder collection
 

Method Detail

getId

String getId()
Returns PUPreProcessor id

Returns:
PUPreProcessor id

process

boolean process(Context context,
                PUProtocolRequest protocolRequest)
                throws IOException
Method performs data preprocessing, before it will be passed to ProtocolFinder collection

Returns:
true, if preprocessing was completed and initial data was changed, false if preprocessing didn't change anything in the source data set
Throws:
IOException

postProcess

void postProcess(Context context,
                 PUProtocolRequest protocolRequest)
                 throws IOException
Method is called if no ProtocolFinder was found. PUPreProcessor should restore PUProtocolRequest and make it ready for the next data read operation.

Throws:
IOException


Copyright © 2010 SUN Microsystems. All Rights Reserved.