public class ViewHelper extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ViewHelper.ActionHook |
| Modifier and Type | Field and Description |
|---|---|
protected ViewHelper.ActionHook |
actionHook |
String |
cacheTemplateName |
boolean |
encodeUrlLink |
String[] |
highlightedFields |
String |
highlightTagPost |
String |
highlightTagPre |
String |
originalHighlightTagPost |
String |
originalHighlightTagPre |
protected PathMappingHelper |
pathMappingHelper |
int |
sitePathLength |
protected org.codelibs.core.misc.DynamicProperties |
systemProperties |
int |
titleLength |
String |
urlLinkEncoding |
protected UserAgentHelper |
userAgentHelper |
protected boolean |
useSession |
| Constructor and Description |
|---|
ViewHelper() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFacetQueryView(FacetQueryView facetQueryView) |
void |
addInitFacetParam(String key,
String value) |
void |
addInitGeoParam(String key,
String value) |
void |
addInlineMimeType(String mimeType) |
protected String |
appendPDFSearchWord(String url) |
protected String |
appendQueryParameter(Map<String,Object> document,
String url) |
org.lastaflute.web.response.StreamResponse |
asContentResponse(Map<String,Object> doc) |
String |
createCacheContent(Map<String,Object> doc,
String[] queries) |
protected String |
escapeHighlight(String text) |
ViewHelper.ActionHook |
getActionHook() |
String |
getClientIp(javax.servlet.http.HttpServletRequest request) |
String |
getContentDescription(Map<String,Object> document) |
String |
getContentTitle(Map<String,Object> document) |
List<FacetQueryView> |
getFacetQueryViewList() |
Map<String,String> |
getInitFacetParamMap() |
Map<String,String> |
getInitGeoParamMap() |
String |
getPagePath(String page) |
Object |
getSitePath(Map<String,Object> docMap) |
String |
getUrlLink(Map<String,Object> document) |
void |
init() |
boolean |
isUseSession() |
protected String |
removeHighlightTag(String str) |
protected String |
replaceHighlightQueries(String cache,
String[] queries) |
void |
setActionHook(ViewHelper.ActionHook actionHook) |
void |
setUseSession(boolean useSession) |
protected String |
updateFileProtocol(String url) |
protected org.lastaflute.web.response.StreamResponse |
writeContent(String configId,
String url,
org.codelibs.fess.crawler.client.CrawlerClient client) |
protected void |
writeContentType(org.lastaflute.web.response.StreamResponse response,
org.codelibs.fess.crawler.entity.ResponseData responseData) |
protected void |
writeFileName(org.lastaflute.web.response.StreamResponse response,
org.codelibs.fess.crawler.entity.ResponseData responseData) |
protected void |
writeNoCache(org.lastaflute.web.response.StreamResponse response,
org.codelibs.fess.crawler.entity.ResponseData responseData) |
protected org.codelibs.core.misc.DynamicProperties systemProperties
protected PathMappingHelper pathMappingHelper
protected UserAgentHelper userAgentHelper
public int titleLength
public int sitePathLength
public boolean encodeUrlLink
public String urlLinkEncoding
public String[] highlightedFields
public String originalHighlightTagPre
public String originalHighlightTagPost
public String highlightTagPre
public String highlightTagPost
protected boolean useSession
public String cacheTemplateName
protected ViewHelper.ActionHook actionHook
@PostConstruct public void init()
public org.lastaflute.web.response.StreamResponse asContentResponse(Map<String,Object> doc)
protected org.lastaflute.web.response.StreamResponse writeContent(String configId, String url, org.codelibs.fess.crawler.client.CrawlerClient client)
protected void writeNoCache(org.lastaflute.web.response.StreamResponse response,
org.codelibs.fess.crawler.entity.ResponseData responseData)
protected void writeFileName(org.lastaflute.web.response.StreamResponse response,
org.codelibs.fess.crawler.entity.ResponseData responseData)
protected void writeContentType(org.lastaflute.web.response.StreamResponse response,
org.codelibs.fess.crawler.entity.ResponseData responseData)
public String getClientIp(javax.servlet.http.HttpServletRequest request)
public boolean isUseSession()
public void setUseSession(boolean useSession)
public void addFacetQueryView(FacetQueryView facetQueryView)
public List<FacetQueryView> getFacetQueryViewList()
public void addInlineMimeType(String mimeType)
public ViewHelper.ActionHook getActionHook()
public void setActionHook(ViewHelper.ActionHook actionHook)
Copyright © 2009–2017 CodeLibs. All rights reserved.