|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.github.kristofa.test.http.QueryParameter
public class QueryParameter
Defines a query parameter key/value.
In following url: http://localhost:8081/persons?name=Smith&gender=female there are 2 query parameters: name=Smith and gender=female.
| Constructor Summary | |
|---|---|
QueryParameter(String key,
String value)
Creates a new instance. |
|
| Method Summary | |
|---|---|
int |
compareTo(QueryParameter o)
|
boolean |
equals(Object obj)
|
String |
getKey()
Gets key. |
String |
getValue()
Gets value for key. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public QueryParameter(String key,
String value)
key - Key, should not be empty.value - Value, should not be empty.| Method Detail |
|---|
public String getKey()
public String getValue()
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Objectpublic int compareTo(QueryParameter o)
compareTo in interface Comparable<QueryParameter>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||