Package org.codelibs.fess.helper
Class OsddHelper
java.lang.Object
org.codelibs.fess.helper.OsddHelper
Helper class for Open Search Description Document.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.lastaflute.web.response.StreamResponseasStream()Returns the OSDD as a stream response.protected FileGets the OSDD file.booleanChecks if the OpenSearch file exists.voidinit()Initializes the OSDD helper.protected booleanChecks if OSDD link is enabled.voidsetContentType(String contentType) Sets the content type.voidsetEncoding(String encoding) Sets the encoding.voidsetOsddPath(String osddPath) Sets the OSDD path.
-
Field Details
-
osddPath
The OSDD file path. -
encoding
The encoding for OSDD file. -
contentType
The content type for OSDD response. -
osddFile
The OSDD file.
-
-
Constructor Details
-
OsddHelper
public OsddHelper()Default constructor.
-
-
Method Details
-
init
@PostConstruct public void init()Initializes the OSDD helper. -
getOsddFile
Gets the OSDD file.- Returns:
- the OSDD file
-
isOsddLinkEnabled
protected boolean isOsddLinkEnabled()Checks if OSDD link is enabled.- Returns:
- true if OSDD link is enabled
-
hasOpenSearchFile
public boolean hasOpenSearchFile()Checks if the OpenSearch file exists.- Returns:
- true if the OpenSearch file exists
-
asStream
public org.lastaflute.web.response.StreamResponse asStream()Returns the OSDD as a stream response.- Returns:
- the stream response
-
setOsddPath
Sets the OSDD path.- Parameters:
osddPath- the OSDD path
-
setEncoding
Sets the encoding.- Parameters:
encoding- the encoding
-
setContentType
Sets the content type.- Parameters:
contentType- the content type
-