java.lang.Object
org.bzdev.ejws.WebMap
org.bzdev.ejws.maps.URLWebMap
WebMap for resources whose location is determined by a URL.
The sole argument to the constructor is a URL or URI to which
a request URI's path, excluding the prefix, will be appended.
The URL's protocol must be one that can determine a resources
content encoding and media type (true for HTTP and HTTPS).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Type of the argument for the URLWebMap constructor.Nested classes/interfaces inherited from class org.bzdev.ejws.WebMap
WebMap.ColorSpec, WebMap.Info, WebMap.RequestInfo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicate if a URI from an HTTP request can contain a query.protected WebMap.Info
getInfoFromPath
(String prepath, String path, String query, String fragment, WebMap.RequestInfo requestInfo) Get an Info object for a resource.boolean
Check if certificates are verified.Methods inherited from class org.bzdev.ejws.WebMap
acceptsMethod, addErrorEntry, addGzipSuffix, addMapping, addPageEncoding, addPageEncoding, addWelcome, asHeaderOps, configure, deconfigure, getContentTypeFromURL, getDisplayDir, getEmap, getEncodingFromURL, getErrorBackgroundColor, getErrorForegroundColor, getErrorInfo, getErrorInfo, getErrorInfo, getFromHeader, getInfo, getInfo, getInfo, getInfo, getInfo, getInfoFromPath, getMimeType, getSuffixToMimeTypeMap, getWebInfHidden, getWebxml, getWelcomeInfo, getWelcomeInfo, getWelcomeList, gzipPaths, newInstance, newInstance, setAllowsQuery, setDisplayDir, setErrorColors, setMethods, setWebInfHidden, stripGZipSuffix, welcomeInfoAvailable
-
Constructor Details
-
URLWebMap
Constructor. the argument can be a URL or an instance of URLWebMap.Parms. When the argument is not an instance of URLWebMap.Parms, HTTPS connections will be verified: URLWebMap.Parms allows one turn verification off while the constructor is running.- Parameters:
arg
- the argument
-
-
Method Details
-
allowsQuery
public boolean allowsQuery()Description copied from class:WebMap
Indicate if a URI from an HTTP request can contain a query.- Overrides:
allowsQuery
in classWebMap
- Returns:
- true if queries are allowed; false otherwise
-
getNoVerify
public boolean getNoVerify()Check if certificates are verified.- Returns:
- true if verified; false otherwise
-
getInfoFromPath
protected WebMap.Info getInfoFromPath(String prepath, String path, String query, String fragment, WebMap.RequestInfo requestInfo) Get an Info object for a resource. Only the path component is used.- Specified by:
getInfoFromPath
in classWebMap
- Parameters:
prepath
- the initial portion of the request URI - the part before the path portion of the URIpath
- the relative path to the resourcequery
- the query portion of the request URIfragment
- the fragment portion of the request URIrequestInfo
- an object encapsulating request data (headers, input streams, etc.)- Returns:
- an Info object describing properties of a resource and providing an input stream to the resource
-