- java.lang.Object
-
- net.sourceforge.urin.Query<ENCODES>
-
- Type Parameters:
ENCODES- The type of value represented by the query -Stringin the general case.
- Direct Known Subclasses:
HttpQuery
public class Query<ENCODES> extends java.lang.ObjectA query component of a URI. Immutable and thread safe.- See Also:
- RFC 3986 - Query
-
-
Field Summary
Fields Modifier and Type Field Description static MakingDecoder<Query<java.lang.String>,java.lang.String,java.lang.String>STRING_QUERY_MAKING_DECODERTheMakingDecoderused by standard queries.
-
Constructor Summary
Constructors Modifier Constructor Description protectedQuery(ENCODES value, PercentEncodingPartial<ENCODES,java.lang.String> percentEncodingPartial)Constructor for subclasses ofQuerywith scheme specific percent encoding of characters beyond that specified for generic URIQuerys.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(java.lang.Object object)inthashCode()static Query<java.lang.String>query(java.lang.String query)Factory method for creatingQuerys.static MakingDecoder<Query<java.lang.String>,java.lang.String,java.lang.String>stringQueryMaker()Deprecated.useSTRING_QUERY_MAKING_DECODERinstead.java.lang.StringtoString()ENCODESvalue()Gets the (non-encoded) value of this query.
-
-
-
Field Detail
-
STRING_QUERY_MAKING_DECODER
public static final MakingDecoder<Query<java.lang.String>,java.lang.String,java.lang.String> STRING_QUERY_MAKING_DECODER
TheMakingDecoderused by standard queries.
-
-
Constructor Detail
-
Query
protected Query(ENCODES value, PercentEncodingPartial<ENCODES,java.lang.String> percentEncodingPartial)
Constructor for subclasses ofQuerywith scheme specific percent encoding of characters beyond that specified for generic URIQuerys.- Parameters:
value- the (non encoded) value this object represents.percentEncodingPartial- thePercentEncodingPartialthis subclass will use.
-
-
Method Detail
-
query
public static Query<java.lang.String> query(java.lang.String query)
Factory method for creatingQuerys.- Parameters:
query- anyStringto represent as aQuery.- Returns:
- a
Queryrepresenting the givenString.
-
stringQueryMaker
@Deprecated public static MakingDecoder<Query<java.lang.String>,java.lang.String,java.lang.String> stringQueryMaker()
Deprecated.useSTRING_QUERY_MAKING_DECODERinstead.Factory method forMakingDecoders ofStringQuerys.- Returns:
- a
MakingDecoderofStringQuerys.
-
value
public final ENCODES value()
Gets the (non-encoded) value of this query.- Returns:
- the (non-encoded) value of this query.
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-