Class AbstractHttpProtocol

  • All Implemented Interfaces:
    ai.platon.pulsar.common.config.Configurable , ai.platon.pulsar.skeleton.workflow.common.LazyConfigurable , ai.platon.pulsar.skeleton.workflow.protocol.Protocol , java.lang.AutoCloseable

    
    public abstract class AbstractHttpProtocol
     implements Protocol
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Boolean isActive()
      ImmutableConfig getConf() The configuration
      Unit setConf(ImmutableConfig conf) The configuration
      Unit configure(ImmutableConfig conf1) Set up the protocol.
      Unit reset() Reset the protocol environment, so the peer host view the client as a new one
      ProtocolOutput getProtocolOutputDeferred(WebPage page) Returns the ProtocolOutput for a fetch list entry.
      abstract Response getResponseDeferred(WebPage page, Boolean followRedirects)
      BaseRobotRules getRobotRules(WebPage page) Retrieve robot rules applicable for this url.
      Unit close()
      String toString()
      • Methods inherited from class ai.platon.pulsar.skeleton.workflow.protocol.Protocol

        cancel, cancelAll, getName, setResponse
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractHttpProtocol

        AbstractHttpProtocol()