Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_DATE_PATTERN |
static int |
DEFAULT_PAGE |
static String |
DEFAULT_PAGE_PARAM |
static String |
DEFAULT_PAGE_SIZE_PARAM |
static int |
DEFAULT_PAGESIZE |
static String |
DEFAULT_QUERY_PARAM |
static String |
FORMAT_JSON |
static String |
FORMAT_XML |
Constructor and Description |
---|
SearchFormatter(DocumentBuilderFactory documentBuilderFactory,
TransformerFactory transformerFactory) |
public static final int DEFAULT_PAGE
public static final String DEFAULT_PAGE_PARAM
public static final int DEFAULT_PAGESIZE
public static final String DEFAULT_PAGE_SIZE_PARAM
public static final String DEFAULT_QUERY_PARAM
public static final String DEFAULT_DATE_PATTERN
public static final String FORMAT_JSON
public static final String FORMAT_XML
public SearchFormatter(DocumentBuilderFactory documentBuilderFactory, TransformerFactory transformerFactory)
public void write(OutputStream out) throws IOException
IOException
public void write(Writer writer) throws IOException
IOException
protected void processXML(Writer writer, List<Result> sortedDocs, DateFormat dateFormat) throws IOException
IOException
protected Search<SearchFilter> paginate(List<Result> sortedDocs)
public int getPage()
public void setPage(int page)
public String getPageParamName()
public void setPageParamName(String pageParamName)
public int getPageSize()
public void setPageSize(int pageSize)
public String getPageSizeParamName()
public void setPageSizeParamName(String pageSizeParamName)
public String getQueryParamName()
public void setQueryParamName(String queryParamName)
public boolean isPretty()
public void setPretty(boolean pretty)
public String getFormat()
public void setFormat(String format)
public boolean isUseParts()
public void setUseParts(boolean useParts)
public String getDateFormat()
public void setDateFormat(String dateFormat)
public String getQueryParam()
public void setQueryParam(String queryParam)
public File getXslStylesheet()
public void setXslStylesheet(File xslStylesheet)
public long getTime()
public void setTime(long time)
public boolean isDoXsl()
public void setDoXsl(boolean doXsl)
Copyright © 2011–2020 aiticon GmbH. All rights reserved.