Code example for Dictionary

Methods: get

0
    xmlInputFactory.setProperty(XMLInputFactory.IS_NAMESPACE_AWARE, true);
 
    // process properties into http methods 
    Dictionary<?, ?> props = context.getProperties();
 
    hmacHeader = OsgiUtil.toString(props.get(HMAC_HEADER), DEFAULT_HMAC_HEADER);
    searchUrl = OsgiUtil.toString(props.get(SEARCH_URL), DEFAULT_SEARCH_URL);
    documentUrl = OsgiUtil.toString(props.get(DOCUMENT_URL), DEFAULT_DOCUMENT_URL);
    updateUrl = OsgiUtil.toString(props.get(UPDATE_URL), DEFAULT_UPDATE_URL);
    metadataUrl = OsgiUtil.toString(props.get(METADATA_URL), DEFAULT_METADATA_URL);
    removeUrl = OsgiUtil.toString(props.get(REMOVE_URL), DEFAULT_REMOVE_URL);
 
    hmacHeader = OsgiUtil.toString(props.get(HMAC_HEADER), DEFAULT_HMAC_HEADER);
    sharedKey = OsgiUtil.toString(props.get(SHARED_KEY), null);
  } 
 
  /* 
   * (non-Javadoc) 
   *  
   * @see org.sakaiproject.nakamura.api.docproxy.ExternalRepositoryProcessor#getType() 
   */