Class ViewHelper


  • public class ViewHelper
    extends Object
    • Field Detail

      • LOCAL_PATH_PATTERN

        protected static final Pattern LOCAL_PATH_PATTERN
      • SHARED_FOLDER_PATTERN

        protected static final Pattern SHARED_FOLDER_PATTERN
      • encodeUrlLink

        protected boolean encodeUrlLink
      • urlLinkEncoding

        protected String urlLinkEncoding
      • highlightedFields

        protected String[] highlightedFields
      • originalHighlightTagPre

        protected String originalHighlightTagPre
      • originalHighlightTagPost

        protected String originalHighlightTagPost
      • highlightTagPre

        protected String highlightTagPre
      • highlightTagPost

        protected String highlightTagPost
      • useSession

        protected boolean useSession
      • initFacetParamMap

        protected final Map<String,​String> initFacetParamMap
      • cacheTemplateName

        protected String cacheTemplateName
      • escapedHighlightPre

        protected String escapedHighlightPre
      • escapedHighlightPost

        protected String escapedHighlightPost
      • highlightTerminalCharSet

        protected Set<Integer> highlightTerminalCharSet
      • inlineMimeTypeSet

        protected final Set<String> inlineMimeTypeSet
      • facetCacheDuration

        protected long facetCacheDuration
    • Constructor Detail

      • ViewHelper

        public ViewHelper()
    • Method Detail

      • init

        @PostConstruct
        public void init()
      • getQuerySet

        protected org.dbflute.optional.OptionalThing<Set<String>> getQuerySet()
      • escapeHighlight

        protected String escapeHighlight​(String text)
      • removeHighlightTag

        protected String removeHighlightTag​(String str)
      • createHighlightInfo

        public HighlightInfo createHighlightInfo()
      • updateHighlisthInfo

        protected void updateHighlisthInfo​(HighlightInfo highlightInfo,
                                           int width)
      • updateFileProtocol

        protected String updateFileProtocol​(String url)
      • appendPDFSearchWord

        protected String appendPDFSearchWord​(String url)
      • replaceHighlightQueries

        protected String replaceHighlightQueries​(String cache,
                                                 String[] queries)
      • asContentResponse

        public org.lastaflute.web.response.StreamResponse asContentResponse​(Map<String,​Object> doc)
      • writeContent

        protected org.lastaflute.web.response.StreamResponse writeContent​(String configId,
                                                                          String url,
                                                                          org.codelibs.fess.crawler.client.CrawlerClient client)
      • writeNoCache

        protected void writeNoCache​(org.lastaflute.web.response.StreamResponse response,
                                    org.codelibs.fess.crawler.entity.ResponseData responseData)
      • writeFileName

        protected void writeFileName​(org.lastaflute.web.response.StreamResponse response,
                                     org.codelibs.fess.crawler.entity.ResponseData responseData)
      • writeContentType

        protected void writeContentType​(org.lastaflute.web.response.StreamResponse response,
                                        org.codelibs.fess.crawler.entity.ResponseData responseData)
      • getClientIp

        public String getClientIp​(javax.servlet.http.HttpServletRequest request)
      • isUseSession

        public boolean isUseSession()
      • setUseSession

        public void setUseSession​(boolean useSession)
      • addInitFacetParam

        public void addInitFacetParam​(String key,
                                      String value)
      • getInitFacetParamMap

        public Map<String,​String> getInitFacetParamMap()
      • addInitGeoParam

        public void addInitGeoParam​(String key,
                                    String value)
      • addFacetQueryView

        public void addFacetQueryView​(FacetQueryView facetQueryView)
      • addInlineMimeType

        public void addInlineMimeType​(String mimeType)
      • setEncodeUrlLink

        public void setEncodeUrlLink​(boolean encodeUrlLink)
      • setUrlLinkEncoding

        public void setUrlLinkEncoding​(String urlLinkEncoding)
      • setOriginalHighlightTagPre

        public void setOriginalHighlightTagPre​(String originalHighlightTagPre)
      • setOriginalHighlightTagPost

        public void setOriginalHighlightTagPost​(String originalHighlightTagPost)
      • setCacheTemplateName

        public void setCacheTemplateName​(String cacheTemplateName)
      • setFacetCacheDuration

        public void setFacetCacheDuration​(long facetCacheDuration)