Class MetaDataBuilder


  • public class MetaDataBuilder
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected MetaDataBuilder​(int maxHeadersSize)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.eclipse.jetty.http.MetaData build()  
      protected boolean checkPseudoHeader​(org.eclipse.jetty.http.HttpHeader header, java.lang.Object value)  
      void checkSize​(int length, boolean huffman)
      Check that the max size will not be exceeded.
      void emit​(org.eclipse.jetty.http.HttpField field)  
      int getMaxSize()
      Get the maxSize.
      int getSize()
      Get the size.
      protected void streamException​(java.lang.String messageFormat, java.lang.Object... args)  
      • Methods inherited from class java.lang.Object

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

      • MetaDataBuilder

        protected MetaDataBuilder​(int maxHeadersSize)
        Parameters:
        maxHeadersSize - The maximum size of the headers, expressed as total name and value characters.
    • Method Detail

      • getMaxSize

        public int getMaxSize()
        Get the maxSize.
        Returns:
        the maxSize
      • getSize

        public int getSize()
        Get the size.
        Returns:
        the current size in bytes
      • streamException

        protected void streamException​(java.lang.String messageFormat,
                                       java.lang.Object... args)
      • checkPseudoHeader

        protected boolean checkPseudoHeader​(org.eclipse.jetty.http.HttpHeader header,
                                            java.lang.Object value)