Package com.iizix.jetty
Interface IExternalBrowserPages
- All Known Implementing Classes:
ExternalBrowserPagesImpl
,ExternalBrowserPagesImpl
public interface IExternalBrowserPages
Page interface for external browsers.
- Author:
- Christopher Mindus
Method Summary
Modifier and TypeMethodDescriptionboolean
doAuthenticate
(String target) Checks if a request URL is a WebSocket request or an Application URI that should not use authentication.getCustomizedAppHTML
(File file, String appID, String lang) Gets a customized "iiziApp.html" file for a specific application ID and optional language.getFileOrResource
(String location, String target) Gets a File or Resource redirection from a web server target request, used for e.g.boolean
isTargetValid
(String target) Checks for valid target to handle.void
print
(PrintWriter pw, String root, String target, int port, boolean isSecure, HttpServletRequest request, HttpServletResponse response) Print the page output.
Method Details
isTargetValid
Checks for valid target to handle.doAuthenticate
Checks if a request URL is a WebSocket request or an Application URI that should not use authentication.- Parameters:
target
- The target URI.- Returns:
- true if authentication should be performed, false otherwise.
print
void print(PrintWriter pw, String root, String target, int port, boolean isSecure, HttpServletRequest request, HttpServletResponse response) throws IOException Print the page output.- Parameters:
pw
- The print writer.root
- The web server root.target
- Target page.port
- The port number (external value could be different).isSecure
- Flag indicating the connection is secure due to external party.request
- The request.response
- The response.- Throws:
IOException
- For I/O errors.
getFileOrResource
Gets a File or Resource redirection from a web server target request, used for e.g. Asset resource files when used on the server and the file is inside a Jar.getCustomizedAppHTML
Gets a customized "iiziApp.html" file for a specific application ID and optional language.- Parameters:
file
- The compressed iiziApp.html file without customization.appID
- The application ID.lang
- The language requested, ornull
for default.- Returns:
- The customized (and probably cached) file to send instead of the un-customized one, or
null
for none, i.e. in case an application ID is not found.