Class LinkedDataFragmentRequestBase
- java.lang.Object
-
- org.linkeddatafragments.fragments.LinkedDataFragmentRequestBase
-
- All Implemented Interfaces:
ILinkedDataFragmentRequest
- Direct Known Subclasses:
TriplePatternFragmentRequestImpl
public abstract class LinkedDataFragmentRequestBase extends Object implements ILinkedDataFragmentRequest
Base class for implementations ofILinkedDataFragmentRequest.- Author:
- Olaf Hartig
-
-
Field Summary
Fields Modifier and Type Field Description StringdatasetURLStringfragmentURLlongpageNumberbooleanpageNumberWasRequested-
Fields inherited from interface org.linkeddatafragments.fragments.ILinkedDataFragmentRequest
PARAMETERNAME_PAGE, TRIPLESPERPAGE
-
-
Constructor Summary
Constructors Constructor Description LinkedDataFragmentRequestBase(String fragmentURL, String datasetURL, boolean pageNumberWasRequested, long pageNumber)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDatasetURL()Returns the URL of the dataset to which the requested LDF belongs.StringgetFragmentURL()Returns the URL of the requested LDF.longgetPageNumber()Returns the number of the page requested for the LDF; if this is not a page-based request (that is, ifILinkedDataFragmentRequest.isPageRequest()returns true), then this method returns 1.booleanisPageRequest()Returns true if the request is for a specific page of the requested fragment.StringtoString()
-
-
-
Method Detail
-
getFragmentURL
public String getFragmentURL()
Description copied from interface:ILinkedDataFragmentRequestReturns the URL of the requested LDF.- Specified by:
getFragmentURLin interfaceILinkedDataFragmentRequest- Returns:
-
getDatasetURL
public String getDatasetURL()
Description copied from interface:ILinkedDataFragmentRequestReturns the URL of the dataset to which the requested LDF belongs.- Specified by:
getDatasetURLin interfaceILinkedDataFragmentRequest- Returns:
-
isPageRequest
public boolean isPageRequest()
Description copied from interface:ILinkedDataFragmentRequestReturns true if the request is for a specific page of the requested fragment. In this case,ILinkedDataFragmentRequest.getPageNumber()can be used to obtain the requested page number.- Specified by:
isPageRequestin interfaceILinkedDataFragmentRequest- Returns:
-
getPageNumber
public long getPageNumber()
Description copied from interface:ILinkedDataFragmentRequestReturns the number of the page requested for the LDF; if this is not a page-based request (that is, ifILinkedDataFragmentRequest.isPageRequest()returns true), then this method returns 1.- Specified by:
getPageNumberin interfaceILinkedDataFragmentRequest- Returns:
-
-