Class FeatureList


  • public class FeatureList
    extends java.lang.Object
    Represents features supported by server (as returned by FEAT command). Use the static members of this class to refer to well known feature names. Example: check if the server supports PARALLEL feature:
       FeatureList fl = new FeatureList(client.getFeatureList());
       if (fl.contains(FeatureList.PARALLEL)) {
           ...
       }
       
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  FeatureList.Feature
      RFC 2389 specified the following syntax for FEAT responce
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String ABUF  
      static java.lang.String CKSUM  
      static java.lang.String DCAU  
      static java.lang.String ERET  
      static java.lang.String ESTO  
      protected java.util.List<FeatureList.Feature> features  
      static java.lang.String GETPUT  
      static java.lang.String MDTM  
      static java.lang.String MODEX  
      static java.lang.String PARALLEL  
      static java.lang.String PIPE  
      static java.lang.String SBUF  
      static java.lang.String SIZE  
    • Constructor Summary

      Constructors 
      Constructor Description
      FeatureList​(java.lang.String featReplyMsg)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean contains​(java.lang.String label)  
      java.util.List<FeatureList.Feature> getFeature​(java.lang.String label)
      Get all features that have label equal to the argument Note that RFC 2389 does not require a feature with a given label to appear only once
      • Methods inherited from class java.lang.Object

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

      • FeatureList

        public FeatureList​(java.lang.String featReplyMsg)
    • Method Detail

      • contains

        public boolean contains​(java.lang.String label)
      • getFeature

        public java.util.List<FeatureList.Feature> getFeature​(java.lang.String label)
        Get all features that have label equal to the argument Note that RFC 2389 does not require a feature with a given label to appear only once
        Parameters:
        label -
        Returns:
        List of found features with given label in the same order as they were given to us by the server