|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ws.commons.tcpmon.core.filter.HeaderParser
public class HeaderParser
Utility class to parse a set of HTTP/MIME/RFC822 headers from a stream.
| Constructor Summary | |
|---|---|
HeaderParser(Stream stream)
|
|
| Method Summary | |
|---|---|
boolean |
available()
Check whether a header is currently available from the underlying stream. |
void |
change(String newValue)
Change the value of the current header. |
void |
discard()
Discard the current header. |
String |
getHeaderName()
Get the name of the current header. |
String |
getHeaderValue()
Get the value of the current header. |
void |
insert(String name,
String value)
Insert a new header in the stream. |
boolean |
noMoreHeaders()
|
void |
skip()
Skip the current header. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HeaderParser(Stream stream)
| Method Detail |
|---|
public boolean available()
true if a header is availablepublic String getHeaderName()
public String getHeaderValue()
public void skip()
public void discard()
public void insert(String name,
String value)
name - the name of the headervalue - the value of the headerpublic void change(String newValue)
newValue - public boolean noMoreHeaders()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||