Пример #1
0
  /**
   * Checks is a getMap mime type is allowed
   *
   * @param format
   * @return
   */
  public boolean isAllowedGetMapFormat(GetMapOutputFormat format) {

    if (getServiceInfo().isGetMapMimeTypeCheckingEnabled() == false) return true;
    Set<String> mimeTypes = getServiceInfo().getGetMapMimeTypes();
    return mimeTypes.contains(format.getMimeType());
  }