Package com.wowza.io

Class HTTPByteReader

  • Direct Known Subclasses:
    HTTPByteReaderS3

    public class HTTPByteReader
    extends Object
    • Field Detail

      • HEADINDEX_CONTENTLENGTH

        public static final int HEADINDEX_CONTENTLENGTH
        See Also:
        Constant Field Values
      • host

        protected String host
      • port

        protected int port
      • reqPath

        protected String reqPath
      • proxyHost

        protected String proxyHost
      • proxyPort

        protected int proxyPort
      • dateFormat

        protected org.apache.commons.lang.time.FastDateFormat dateFormat
      • socket

        protected java.net.Socket socket
      • msgBuf

        protected StringBuffer msgBuf
      • maxRetries

        protected int maxRetries
      • maxUsesBeforeReconnect

        protected int maxUsesBeforeReconnect
      • uses

        protected int uses
      • readTimeout

        protected int readTimeout
      • connectionTimeout

        protected int connectionTimeout
      • debugInfo

        protected java.util.List<String> debugInfo
      • debugPrefix

        protected String debugPrefix
      • requestFullURL

        protected boolean requestFullURL
      • parseDateFormats

        protected String[] parseDateFormats
      • sendBufferSize

        protected int sendBufferSize
      • receiveBufferSize

        protected int receiveBufferSize
      • userAgent

        protected String userAgent
    • Constructor Detail

      • HTTPByteReader

        public HTTPByteReader​(String host,
                              int port)
    • Method Detail

      • setProxyAddress

        public void setProxyAddress​(String host,
                                    int port)
      • close

        public void close()
      • connect

        public void connect()
      • reconnect

        protected void reconnect()
      • isOpen

        public boolean isOpen()
      • parseHeader

        protected void parseHeader​(HTTPByteReader.SendResult result,
                                   byte[] buffer,
                                   int offset,
                                   int len,
                                   boolean isHead)
      • getDeleteCommand

        protected void getDeleteCommand​(String path)
      • getPostCommand

        protected void getPostCommand​(String path,
                                      PacketFragmentList fragmentList)
      • getRequestPath

        protected String getRequestPath​(String path,
                                        String host,
                                        int port)
      • getConextPath

        protected String getConextPath()
      • getHeadCommand

        protected void getHeadCommand​(String path)
      • head

        public long[] head​(String path)
      • getGetCommand

        protected void getGetCommand​(String path,
                                     long pos,
                                     int flen)
      • dumpDebug

        protected void dumpDebug()
      • getMaxUsesBeforeReconnect

        public int getMaxUsesBeforeReconnect()
      • setMaxUsesBeforeReconnect

        public void setMaxUsesBeforeReconnect​(int maxUsesBeforeReconnect)
      • getMaxRetries

        public int getMaxRetries()
      • setMaxRetries

        public void setMaxRetries​(int maxRetries)
      • getReadTimeout

        public int getReadTimeout()
      • setReadTimeout

        public void setReadTimeout​(int readTimeout)
      • isRequestFullURL

        public boolean isRequestFullURL()
      • setRequestFullURL

        public void setRequestFullURL​(boolean requestFullURL)
      • getConnectionTimeout

        public int getConnectionTimeout()
      • setConnectionTimeout

        public void setConnectionTimeout​(int connectionTimeout)
      • getSendBufferSize

        public int getSendBufferSize()
      • setSendBufferSize

        public void setSendBufferSize​(int sendBufferSize)
      • getReceiveBufferSize

        public int getReceiveBufferSize()
      • setReceiveBufferSize

        public void setReceiveBufferSize​(int receiveBufferSize)
      • getUserAgent

        public String getUserAgent()
      • setUserAgent

        public void setUserAgent​(String userAgent)