Class TLcdServletUtil

java.lang.Object
com.luciad.ogc.common.TLcdServletUtil

public class TLcdServletUtil extends Object
Utility functions for servlets.
  • Constructor Details

    • TLcdServletUtil

      public TLcdServletUtil()
  • Method Details

    • isXMLRequest

      public static boolean isXMLRequest(ILcdRequest aRequest)
      This methods tests whether a request is an XML based request.

      The method returns true when the content type starts with one of the following.

      • text/xml
      • application/xml
      • application/vnd.ogc.request+xml
      Parameters:
      aRequest - the request.
      Returns:
      true if the request is recognized as a XML request, false otherwise.
      Since:
      2017.0
    • isKVPRequest

      public static boolean isKVPRequest(ILcdRequest aRequest)
      This methods tests whether a request is a KVP based request.

      The method returns true when the content type has one of the following values.

      • application/x-www-form-urlencoded
      • NULL
      Parameters:
      aRequest - the request.
      Returns:
      true if the request is recognized as a KVP request, false otherwise.
      Since:
      2017.0
    • resolveServletURI

      public static String resolveServletURI(ILcdRequest aRequest)
      Extracts the full servlet URL from the given request.
      Parameters:
      aRequest - An ILcdRequest.
      Returns:
      the extracted servlet URL
    • resolveServerURI

      public static String resolveServerURI(ILcdRequest aRequest)
      Extracts the server URL from the given request, i.e. the servlet URL minus the application (servlet) path itself.
      Parameters:
      aRequest - An ILcdRequest.
      Returns:
      the extracted server URL