|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.opensearch.opensearchlibrary.urlelements.BasicURLElement
public class BasicURLElement
URL element class implementing the URLElement interface, which provides standard OpenSearch URL element functionality
| Field Summary | |
|---|---|
protected String |
rel
|
| Constructor Summary | |
|---|---|
BasicURLElement(Element url,
Map<String,String> nsPrefixes)
Creates a new BasicURLElement |
|
| Method Summary | |
|---|---|
int |
getIndexOffset()
Returns the value of the indexOffset OpenSearch parameter contained in this URL element. |
String |
getMimeType()
Retrieves the MIME type associated with the results obtained after issuing a query using the template contained in this URL element |
int |
getPageOffset()
Returns the value of the pageOffset OpenSearch parameter contained in this URL element. |
QueryBuilder |
getQueryBuilder()
Constructs and returns a QueryBuilder object that can be used to construct queries based on the template contained in this query element. |
String |
getRel()
Returns the role of the resource being described in relation to the description document |
boolean |
isRelSupported()
Answers whether the rel value of the URL element can be interpreted by this URL element type |
void |
parse()
Processes a URL element |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String rel
| Constructor Detail |
|---|
public BasicURLElement(Element url,
Map<String,String> nsPrefixes)
url - An Element instance containing the URL element to be processednsPrefixes - The mapping from namespace URIs to namespace prefixes for all namespaces contained in a description document| Method Detail |
|---|
public void parse()
throws Exception
parse in interface URLElementException - If the URL element is not valid according to the OpenSearch specification or in case of other errorURLElement.parse()
public String getMimeType()
throws Exception
getMimeType in interface URLElementException - If the URL element is not initialized or in case of other errorURLElement.getMimeType()
public int getIndexOffset()
throws Exception
getIndexOffset in interface URLElementException - If the URL element is not initialized or in case of other errorURLElement.getIndexOffset()
public int getPageOffset()
throws Exception
getPageOffset in interface URLElementException - If the URL element is not initialized or in case of other errorURLElement.getPageOffset()
public String getRel()
throws Exception
getRel in interface URLElementException - If the URL element is not initialized or in case of other errorURLElement.getRel()
public boolean isRelSupported()
throws Exception
isRelSupported in interface URLElementException - If the URL element is not initialized or in case of other errorURLElement.isRelSupported()
public QueryBuilder getQueryBuilder()
throws Exception
getQueryBuilder in interface URLElementException - In case of other error during QueryBuilder constructionURLElement.getQueryBuilder()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||