|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Header
This is an interface that should be implemented to allow Protocol specific setting of the headers of a request.
| Method Summary | |
|---|---|
java.lang.String |
get(java.lang.String name)
Returns the value of a single header variable as a String. |
java.util.Iterator |
getHeaders()
Returns an Itterator of all of the header values so that they user can get the list and then get the values. |
java.lang.String |
id()
Returns an id for this protocol. |
void |
set(java.lang.String name,
java.lang.String value)
Sets a parameter value pair as something that should be set in the header of this protocol. |
void |
set(java.lang.String name,
java.lang.String value,
boolean encode)
Sets a parameter value pair as something that should be set in the header of this protocol. |
java.lang.String |
toString()
Returns the content of the header to be used by the Protocol. |
| Method Detail |
|---|
java.lang.String id()
.:// would be appropriate (without the "://")
void set(java.lang.String name,
java.lang.String value)
name - The name of the header variable.value - The value to set for this header variable.
void set(java.lang.String name,
java.lang.String value,
boolean encode)
name - The name of the header variable.value - The value to set for this header variable.encode - Whether or not to encode the value with the right encoder
for this type.java.lang.String get(java.lang.String name)
name - The name of the header variable to look for.java.util.Iterator getHeaders()
java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||