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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
doAuthenticate(java.lang.String target)
Checks if a request URL is a WebSocket request or an Application URI that should not use authentication.java.lang.Object
getFileOrResource(java.lang.String location, java.lang.String target)
Gets a File or Resource redirection from a web server target request, used for e.g.boolean
isTargetValid(java.lang.String target)
Checks for valid target to handle.void
print(java.io.PrintWriter pw, java.lang.String root, java.lang.String target, HttpServletRequest request, HttpServletResponse response)
Print the page output.
-
-
-
Method Detail
-
isTargetValid
boolean isTargetValid(java.lang.String target)
Checks for valid target to handle.
-
doAuthenticate
boolean doAuthenticate(java.lang.String target)
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(java.io.PrintWriter pw, java.lang.String root, java.lang.String target, HttpServletRequest request, HttpServletResponse response) throws java.io.IOException
Print the page output.- Parameters:
pw
- The print writer.root
- The web server root.target
- Target page.request
- The request.response
- The response.- Throws:
java.io.IOException
- For I/O errors.
-
getFileOrResource
java.lang.Object getFileOrResource(java.lang.String location, java.lang.String target)
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.- Parameters:
location
- The location string between '/$' and '$/'target
- The target string from the Web Server after last '$/' (i.e. after location), does NOT begin with '/'.- Returns:
- The
File
or instance ofResource
for the resource, null for none.
-
-