|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object tcpcatcher.TcpCatcherPacket
public class TcpCatcherPacket
Field Summary | |
---|---|
boolean |
bounceBack
bounceBack : Set it to true, if you want to send back to the host this packet (usually after a modification) |
java.lang.String |
client
|
long |
duration
duration : Time in millisec between request and response. |
static java.lang.String |
endofheader
|
static java.lang.String |
endofline
an HTTP Header endofline |
boolean |
fromClient
|
java.lang.String |
host
|
java.lang.String |
httpContent
httpContent : In case of an HTTP packet, this field provides the HTTP content. |
java.lang.String |
httpHeader
httpHeader : In case of an HTTP packet, header is provided in this field. |
java.lang.String |
httpResourceName
httpResourceName : In case of an HTTP packet, this field provides the name of the requested or served HTTP resource. |
byte[] |
packetbytes
tcpPacket : An array of bytes of the TCP packet going through (and that you are invited to modify) |
int |
packetIndex
|
int |
threadId
threadId : The id of the thread that caught that packet |
java.lang.String |
unzippedContent
unzippedContent : In case of an HTTP packet carrying a zipped content, this field provides the deflated content. |
Constructor Summary | |
---|---|
TcpCatcherPacket()
|
Method Summary | |
---|---|
java.lang.String |
Description()
Returns a complete String description of the packet |
java.lang.String |
getContentType()
Get the Http Content Type in UPPER CASE (HTML, IMAGE, etc..) |
java.lang.String |
getHttpContent()
Return the Http Content of the Http packet. |
java.lang.String |
getHttpHeader(java.lang.String headerName)
Get some Http header value |
java.lang.String |
getHttpHeaderBloc()
Get the whole header bloc of the HTTP request |
void |
insert(int index,
byte[] insert)
Insert a byte array into our packet bytes |
void |
insertHttpHeader(java.lang.String headerName,
java.lang.String headerValue)
Insert an HTTP header (at the end of the header) |
void |
remove(int beginindex,
int endindex)
Remove bytes from packet |
void |
removeHttpHeader(java.lang.String headerName)
Remove the HTTP header headerName |
void |
setHttpContent(java.lang.String newHttpContent)
Set new Http Content to this Http packet. |
void |
setHttpContent(java.lang.String newHttpContent,
boolean rezip)
Set new Http Content to this Http packet. |
void |
setHttpHeaderBloc(java.lang.String newheaderbloc)
Set the whole header bloc of the HTTP request |
java.lang.String |
summaryDescription()
Returns a summary of the packet |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int threadId
public int packetIndex
public byte[] packetbytes
public boolean fromClient
public java.lang.String client
public java.lang.String host
public boolean bounceBack
public java.lang.String httpHeader
public java.lang.String unzippedContent
public java.lang.String httpContent
public java.lang.String httpResourceName
public long duration
public static final java.lang.String endofline
public static final java.lang.String endofheader
Constructor Detail |
---|
public TcpCatcherPacket()
Method Detail |
---|
public java.lang.String getHttpContent()
public java.lang.String summaryDescription()
public java.lang.String Description()
public void removeHttpHeader(java.lang.String headerName)
public void insertHttpHeader(java.lang.String headerName, java.lang.String headerValue)
headerName
- headerValue
- public void remove(int beginindex, int endindex)
beginindex
- (remove from beginindex included)endindex
- (remove to endindex included)public void insert(int index, byte[] insert)
index
- insert
- public void setHttpContent(java.lang.String newHttpContent)
newHttpContent
- : A string carriying the new http contentpublic void setHttpContent(java.lang.String newHttpContent, boolean rezip)
newHttpContent
- : A string carriying the new http contentrezip
- : In case of a zipped http packet, indicates if Tcpcatcher
should rezip the packet after content modificationpublic java.lang.String getHttpHeaderBloc()
public void setHttpHeaderBloc(java.lang.String newheaderbloc)
newheaderbloc
- : the new headerpublic java.lang.String getHttpHeader(java.lang.String headerName)
headerName
-
public java.lang.String getContentType()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |