@IbisInitializer public class FileViewerServlet extends HttpServletBase
Parameters:
When the resultType
is HTML, the
FileViewerServlet.signal
properties are looked
up from the AppConstants
and additional styling is
done.
The last item specifies which stylesheet to use.
FileViewerServlet.signal=ERROR WARN
FileViewerServlet.signal.ERROR.pre=<font color=red>
FileViewerServlet.signal.ERROR.post=</font>
FileViewerServlet.signal.WARN.pre=<font color=blue>
FileViewerServlet.signal.WARN.post=</font>
etc.
FileViewerServlet.signal.css=IE4.css
DynamicRegistration.Servlet, DynamicRegistration.ServletWithParameters
Modifier and Type | Field and Description |
---|---|
protected static org.apache.logging.log4j.Logger |
log |
static String |
permissionRules |
ALL_IBIS_ROLES, ALL_IBIS_USER_ROLES, IBIS_FULL_SERVICE_ACCESS_ROLES
Constructor and Description |
---|
FileViewerServlet() |
Modifier and Type | Method and Description |
---|---|
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
String[] |
getAccessGrantingRoles()
The default authorization roles giving access to the
Servlet , or null to disable. |
String |
getUrlMapping()
The URL the
Servlet should be mapped to. |
static String |
makeConfiguredReplacements(String input) |
static void |
showInputStreamContents(InputStream inputStream,
String filename,
String type,
javax.servlet.http.HttpServletResponse response) |
static void |
showReaderContents(Reader reader,
String filename,
String type,
javax.servlet.http.HttpServletResponse response,
String title) |
static void |
transformReader(Reader reader,
String filename,
Map<String,Object> parameters,
javax.servlet.http.HttpServletResponse response,
String input_prefix,
String input_postfix,
String stylesheetUrl,
String title) |
static void |
transformSource(Source source,
Map<String,Object> parameters,
javax.servlet.http.HttpServletResponse response,
String stylesheetUrl,
String title) |
getName
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isEnabled
loadOnStartUp
protected static org.apache.logging.log4j.Logger log
public static final String permissionRules
public static void transformReader(Reader reader, String filename, Map<String,Object> parameters, javax.servlet.http.HttpServletResponse response, String input_prefix, String input_postfix, String stylesheetUrl, String title) throws DomBuilderException, TransformerException, IOException
public static void transformSource(Source source, Map<String,Object> parameters, javax.servlet.http.HttpServletResponse response, String stylesheetUrl, String title) throws TransformerException, IOException
TransformerException
IOException
public static void showReaderContents(Reader reader, String filename, String type, javax.servlet.http.HttpServletResponse response, String title) throws DomBuilderException, TransformerException, IOException
public static void showInputStreamContents(InputStream inputStream, String filename, String type, javax.servlet.http.HttpServletResponse response) throws DomBuilderException, TransformerException, IOException
public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
doGet
in class javax.servlet.http.HttpServlet
IOException
javax.servlet.ServletException
public void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
doPost
in class javax.servlet.http.HttpServlet
IOException
javax.servlet.ServletException
public String[] getAccessGrantingRoles()
DynamicRegistration.Servlet
Servlet
, or null
to disable.
This value may be overridden by setting property servlet.servlet-name.securityRoles
to the roles that should be granted access.
see ServletManager for more information.getAccessGrantingRoles
in interface DynamicRegistration.Servlet
getAccessGrantingRoles
in class HttpServletBase
public String getUrlMapping()
DynamicRegistration.Servlet
Servlet
should be mapped to.
This value may be overridden by setting property servlet.servlet-name.urlMapping
to change path the servlet listens toCopyright © 2023 Frank!Framework. All rights reserved.