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 int
protected int
static final String
protected org.apache.commons.lang3.time.FastDateFormat
protected String
static final int
static final int
static final int
static final int
protected String
static final int
protected int
protected int
protected StringBuffer
protected String[]
protected int
protected String
protected int
protected int
protected int
static final int
protected String
protected boolean
protected int
static final int
protected Socket
static final int
protected String
protected int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
connect()
deleteDirect
(String path) protected void
protected String
int
protected void
getDeleteCommand
(String path) protected void
getGetCommand
(String path, long pos, int flen) protected void
getHeadCommand
(String path) int
int
protected void
getPostCommand
(String path, PacketFragmentList fragmentList) int
int
protected String
getRequestPath
(String path, String host, int port) int
long[]
boolean
isOpen()
boolean
protected void
parseHeader
(HTTPByteReader.SendResult result, byte[] buffer, int offset, int len, boolean isHead) readDirect
(String path, long pos, int flen) protected void
sendRequest
(byte[] request, boolean isHead) sendRequest
(byte[] request, int len, boolean isHead) sendRequest
(byte[] request, PacketFragmentList fragmentList, int len, boolean isHead) void
setConnectionTimeout
(int connectionTimeout) void
setMaxRetries
(int maxRetries) void
setMaxUsesBeforeReconnect
(int maxUsesBeforeReconnect) void
setProxyAddress
(String host, int port) void
setReadTimeout
(int readTimeout) void
setReceiveBufferSize
(int receiveBufferSize) void
setRequestFullURL
(boolean requestFullURL) void
setSendBufferSize
(int sendBufferSize) void
setUserAgent
(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
-