|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.gpt.catalog.search.RestUrlBuilder
public class RestUrlBuilder
Builds the query parameters for a rest query URL.
Constructor Summary | |
---|---|
RestUrlBuilder()
Default constructor. |
Method Summary | |
---|---|
protected void |
appendParam(StringBuffer parameters,
String name,
String value)
Appends a parameter to the query parameters buffer. |
protected void |
appendParam(StringBuffer parameters,
String name,
String delimiter,
List<String> values)
Appends parameter value list to the query parameters buffer. |
String |
buildParameters(SearchCriteria criteria,
String format,
String rid)
Builds the rest URL query parameters string. |
protected String |
encodeUrlParam(String value)
Encodes a URL parameter value. |
static RestUrlBuilder |
newBuilder(RequestContext context,
HttpServletRequest servletRequest,
MessageBroker messageBroker)
Instantiates a new rest url builder. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RestUrlBuilder()
Method Detail |
---|
protected void appendParam(StringBuffer parameters, String name, String value)
parameters
- the query parameters buffername
- the parameter namevalue
- the parameter valueprotected void appendParam(StringBuffer parameters, String name, String delimiter, List<String> values)
parameters
- the query parameters buffername
- the parameter namedelimiter
- the values delimitervalues
- the parameter valuespublic String buildParameters(SearchCriteria criteria, String format, String rid)
criteria
- the search criteria from which the query parameters will be built.format
- the response formatrid
- the repository id
protected String encodeUrlParam(String value)
value
- the URL parameter value to encode
public static RestUrlBuilder newBuilder(RequestContext context, HttpServletRequest servletRequest, MessageBroker messageBroker)
context
- the active request contextservletRequest
- the active HTTP servlet requestmessageBroker
- the message broker
|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |