public List getAcceptableTransferCodings ( ) { if ( _dotVersion < 1 ) return null ; if ( _te != null ) return _te ; // Decode any TE field Enumeration tenum = getFieldValues ( HttpFields . __TE , HttpFields . __separators ) ; if ( tenum != null ) { // Sort the list List te = HttpFields . qualityList ( tenum ) ; int size = te . size ( ) ; // Process if something there if ( size > 0 ) { Object acceptable = null ; // remove trailer and chunked items. ListIterator iter = te . listIterator ( ) ; while ( iter . hasNext ( ) ) { String coding = StringUtil . asciiToLowerCase ( HttpFields . valueParameters ( iter . next ( ) . toString ( ) , null ) ) ; if ( ! HttpFields . __Chunked . equalsIgnoreCase ( coding ) ) { acceptable = LazyList . ensureSize ( acceptable , size ) ; acceptable = LazyList . add ( acceptable , coding ) ; } } _te = LazyList . getList ( acceptable ) ; } else _te = Collections . EMPTY_LIST ; } else _te = Collections . EMPTY_LIST ; return _te ; }
Get the acceptable transfer encodings . The TE field is used to construct a list of acceptable extension transfer codings in quality order . An empty list implies that only chunked is acceptable . A null list implies that no transfer coding can be applied .