Module bus.http

Class Httpv.SerialPreprocessor

java.lang.Object
org.miaixz.bus.http.Httpv.SerialPreprocessor
All Implemented Interfaces:
Preprocessor
Enclosing class:
Httpv

public static class Httpv.SerialPreprocessor extends Object implements Preprocessor
A preprocessor that ensures serial execution of other preprocessors.
  • Constructor Details

    • SerialPreprocessor

      public SerialPreprocessor(Preprocessor preprocessor)
      Constructs a new SerialPreprocessor.
      Parameters:
      preprocessor - The preprocessor to wrap.
  • Method Details

    • doProcess

      public void doProcess(Preprocessor.PreChain chain)
      Description copied from interface: Preprocessor
      Performs 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:
      doProcess in interface Preprocessor
      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.