Package com.esri.gpt.framework.collection

Examples of com.esri.gpt.framework.collection.StringAttributeMap


    return new WafQueryBuilder(context, this, url);
  }

  @Override
  public StringAttributeMap getAttributeMap() {
    StringAttributeMap properties = new StringAttributeMap();
    properties.set("waf.username", getUserName());
    properties.set("waf.password", getUserPassword());
    return properties;
  }
View Full Code Here


    setUserPassword(decryptString(chckAttr(attributeMap.get("password"))));
  }

  @Override
  public StringAttributeMap extractAttributeMap() {
    StringAttributeMap properties = new StringAttributeMap();
    properties.set("username", encryptString(getUserName()));
    properties.set("password", encryptString(getUserPassword()));
    return properties;
  }
View Full Code Here

   * Gets all the attributes.
   * @return attributes as attribute map
   */
  @Override
  public StringAttributeMap getAttributeMap() {
    StringAttributeMap properties = new StringAttributeMap();

    properties.set("set", getSet());
    properties.set("prefix", getPrefix());

    return properties;
  }
View Full Code Here

   * Gets all the attributes.
   * @return attributes as attribute map
   */
  @Override
  public StringAttributeMap getAttributeMap() {
    StringAttributeMap properties = new StringAttributeMap();
    properties.set("dcatFormat", Val.chkStr(getFormat(),FORMAT_PATTERN_DEFAULT_VALUE));
    return properties;
  }
View Full Code Here

    this.flags = flags;
  }

  @Override
  public StringAttributeMap getAttributeMap() {
    return new StringAttributeMap();
  }
View Full Code Here

   * Gets all the attributes.
   * @return attributes as attribute map
   */
  @Override
  public StringAttributeMap getAttributeMap() {
    StringAttributeMap properties = new StringAttributeMap();
    properties.set("profile", getProfile());
    return properties;
  }
View Full Code Here

   * Gets all the attributes.
   * @return attributes as attribute map
   */
  @Override
  public StringAttributeMap extractAttributeMap() {
    StringAttributeMap properties = new StringAttributeMap();

    properties.set("username", encryptString(getUserName()));
    properties.set("password", encryptString(getUserPassword()));
    properties.set("service", getServiceName());
    properties.set("port", Integer.toString(getPortNo()));
    properties.set("rootFolder", getRootFolder());

    return properties;
  }
View Full Code Here

   * Gets all the attributes.
   * @return attributes as attribute map
   */
  @Override
  public StringAttributeMap getAttributeMap() {
    StringAttributeMap properties = new StringAttributeMap();

    properties.set("arcims.username", getUserName());
    properties.set("arcims.password", getUserPassword());
    properties.set("service", getServiceName());
    properties.set("port", Integer.toString(getPortNo()));
    properties.set("rootFolder", getRootFolder());

    return properties;
  }
View Full Code Here

   * Constructs with a supplied request context.
   * @param requestContext the active request context
   */
  protected CswRemoteRepository(RequestContext requestContext) {
    this.requestContext = requestContext;
    StringAttributeMap params = requestContext.getCatalogConfiguration().getParameters();
    this.cswURL = Val.chkStr(params.getValue("cswRemoteRepository.url"));
    String sKeys = Val.chkStr(params.getValue("cswRemoteRepository.schemaKeys"));
    String[] aKeys = Val.tokenize(sKeys,",");
    for (String sKey: aKeys) schemaKeys.add(sKey);
    this.isActive = ((cswURL.length() > 0) && (schemaKeys.size() > 0));
    this.sendDelete = Val.chkBool(params.getValue("cswRemoteRepository.sendDelete"),true);
  }
View Full Code Here

* /gptConfig/catalog/parameter@key="reverseProxy.baseContextPath"
* @return the base context path
*/
public static String resolveBaseContextPath(HttpServletRequest request) {
  if (request == null) return "";
  StringAttributeMap params = null;
  RequestContext ctx = (RequestContext)request.getAttribute(REFERENCEKEY);
  if (ctx != null) {
    params = ctx.getCatalogConfiguration().getParameters()
  } else {
    params = ApplicationContext.getInstance().getConfiguration().getCatalogConfiguration().getParameters();
  }
  String basePath = Val.chkStr(params.getValue("reverseProxy.baseContextPath"));
  if (basePath.length() == 0) {
    StringBuffer requestURL = request.getRequestURL();
    String ctxPath = request.getContextPath();
    basePath = requestURL.substring(0,requestURL.indexOf(ctxPath)+ctxPath.length());
  }
View Full Code Here

TOP

Related Classes of com.esri.gpt.framework.collection.StringAttributeMap

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.