java.lang.Object
org.miaixz.bus.http.Httpv.SerialPreprocessor
- All Implemented Interfaces:
Preprocessor
- Enclosing class:
Httpv
A preprocessor that ensures serial execution of other preprocessors.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.miaixz.bus.http.plugin.httpv.Preprocessor
Preprocessor.PreChain -
Constructor Summary
ConstructorsConstructorDescriptionSerialPreprocessor(Preprocessor preprocessor) Constructs a newSerialPreprocessor. -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled after a process is finished to run the next pending task.voiddoProcess(Preprocessor.PreChain chain) Performs the preprocessing logic.
-
Constructor Details
-
SerialPreprocessor
Constructs a newSerialPreprocessor.- Parameters:
preprocessor- The preprocessor to wrap.
-
-
Method Details
-
doProcess
Description copied from interface:PreprocessorPerforms the preprocessing logic. After processing,Preprocessor.PreChain.proceed()must be called to continue the request execution, unless the request is to be intentionally blocked.- Specified by:
doProcessin interfacePreprocessor- Parameters:
chain- The processing chain, which provides context and a way to continue the request.
-
afterProcess
public void afterProcess()Called after a process is finished to run the next pending task.
-