Class URLWebMap

java.lang.Object
org.bzdev.ejws.WebMap
org.bzdev.ejws.maps.URLWebMap

public class URLWebMap extends WebMap
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).
  • Constructor Details

    • URLWebMap

      public URLWebMap(Object arg)
      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 class WebMap
      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 class WebMap
      Parameters:
      prepath - the initial portion of the request URI - the part before the path portion of the URI
      path - the relative path to the resource
      query - the query portion of the request URI
      fragment - the fragment portion of the request URI
      requestInfo - 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