Package com.wowza.io
Class HTTPByteReader
Object
com.wowza.io.HTTPByteReader
- Direct Known Subclasses:
HTTPByteReaderS3
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intprotected intstatic final Stringprotected org.apache.commons.lang3.time.FastDateFormatprotected Stringstatic final intstatic final intstatic final intstatic final intprotected Stringstatic final intprotected intprotected intprotected StringBufferprotected String[]protected intprotected Stringprotected intprotected intprotected intstatic final intprotected Stringprotected booleanprotected intstatic final intprotected Socketstatic final intprotected Stringprotected int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidconnect()deleteDirect(String path) protected voidprotected Stringintprotected voidgetDeleteCommand(String path) protected voidgetGetCommand(String path, long pos, int flen) protected voidgetHeadCommand(String path) intintprotected voidgetPostCommand(String path, PacketFragmentList fragmentList) intintprotected StringgetRequestPath(String path, String host, int port) intlong[]booleanisOpen()booleanprotected voidparseHeader(HTTPByteReader.SendResult result, byte[] buffer, int offset, int len, boolean isHead) readDirect(String path, long pos, int flen) protected voidsendRequest(byte[] request, boolean isHead) sendRequest(byte[] request, int len, boolean isHead) sendRequest(byte[] request, PacketFragmentList fragmentList, int len, boolean isHead) voidsetConnectionTimeout(int connectionTimeout) voidsetMaxRetries(int maxRetries) voidsetMaxUsesBeforeReconnect(int maxUsesBeforeReconnect) voidsetProxyAddress(String host, int port) voidsetReadTimeout(int readTimeout) voidsetReceiveBufferSize(int receiveBufferSize) voidsetRequestFullURL(boolean requestFullURL) voidsetSendBufferSize(int sendBufferSize) voidsetUserAgent(String userAgent) write(String path, PacketFragmentList fragmentList) writeDirect(String path, PacketFragmentList fragmentList)
-
Field Details
-
MAXHEADERSIZE
public static final int MAXHEADERSIZE- See Also:
-
BUFFERINCSIZE
public static final int BUFFERINCSIZE- See Also:
-
TIMEOUT
public static final int TIMEOUT- See Also:
-
SENDBUFFERSIZE
public static final int SENDBUFFERSIZE- See Also:
-
RECEIVEBUFFERSIZE
public static final int RECEIVEBUFFERSIZE- See Also:
-
CRLF
- See Also:
-
HEADINDEX_STATUS
public static final int HEADINDEX_STATUS- See Also:
-
HEADINDEX_CONTENTLENGTH
public static final int HEADINDEX_CONTENTLENGTH- See Also:
-
HEADINDEX_LASTMODIFIED
public static final int HEADINDEX_LASTMODIFIED- See Also:
-
HEADINDEX_SIZE
public static final int HEADINDEX_SIZE- See Also:
-
host
-
port
protected int port -
reqPath
-
proxyHost
-
proxyPort
protected int proxyPort -
dateFormat
protected org.apache.commons.lang3.time.FastDateFormat dateFormat -
socket
-
msgBuf
-
maxRetries
protected int maxRetries -
maxUsesBeforeReconnect
protected int maxUsesBeforeReconnect -
uses
protected int uses -
readTimeout
protected int readTimeout -
connectionTimeout
protected int connectionTimeout -
debugInfo
-
debugPrefix
-
requestFullURL
protected boolean requestFullURL -
parseDateFormats
-
sendBufferSize
protected int sendBufferSize -
receiveBufferSize
protected int receiveBufferSize -
userAgent
-
-
Constructor Details
-
HTTPByteReader
-
-
Method Details
-
setProxyAddress
-
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) -
read
-
delete
-
getDeleteCommand
-
deleteDirect
-
write
-
write
-
write
-
getPostCommand
-
writeDirect
-
getRequestPath
-
getConextPath
-
getHeadCommand
-
head
-
getGetCommand
-
readDirect
-
dumpDebug
protected void dumpDebug() -
sendRequest
-
sendRequest
-
sendRequest
public HTTPByteReader.SendResult sendRequest(byte[] request, PacketFragmentList fragmentList, int len, boolean isHead) -
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
-
setUserAgent
-