A URL configuration file defines a BasicQueryBuilder and a top-level SeoUrlFormatter.

To create a URL configuration file, follow these steps:

  1. Create a basic query builder that invokes the com.endeca.soleng.urlformatter.basic.BasicQueryBuilder class:

    For example:

      <bean id="queryBuilder" class="com.endeca.soleng.urlformatter.basic.BasicQueryBuilder">
      </bean>
  2. Add the following properties:

    For example:

      <bean id="queryBuilder" class="com.endeca.soleng.urlformatter.basic.BasicQueryBuilder">
    
        <property name="queryEncoding">
          <value>UTF-8</value>
        </property>
    
        <property name="baseUrlENEQuery">
          <value><![CDATA[N=0&Ns=P_Price|1&Nr=8020]]></value>
        </property>
    
        <property name="baseNavigationUrlENEQuery">
          <value><![CDATA[N=0&Ns=P_Price|1&Nr=8020]]></value>
        </property>
    
        <property name="baseERecUrlENEQuery">
          <null/>
        </property>
    
        <property name="baseAggrERecUrlENEQuery">
          <value>An=0</value>
          <null/>
        </property>
    
        <property name="defaultUrlENEQuery">
          <value>N=0</value>
        </property>
    
      </bean>
    
  3. Create a top-level seoUrlFormatter bean to invoke the com.endeca.soleng.urlformatter.seo.SeoUrlFormatter class:

    For example:

      <bean id="seoUrlFormatter" class="com.endeca.soleng.urlformatter.seo.SeoUrlFormatter">
      </bean>
  4. Add the following properties:

    For example:

      <bean id="seoUrlFormatter" class="com.endeca.soleng.urlformatter.seo.SeoUrlFormatter">
    
        <property name="defaultEncoding">
          <value>UTF-8</value>
        </property>
    
        <property name="pathSeparatorToken">
          <value>_</value>
        </property>
    
        <property name="pathKeyValueSeparator">
          <value>-</value>
        </property>
    
    <!-- additional elements deleted from this example --!>
    
      </bean>
  5. Set any required properties to specify configuration beans.

    For example:

      <bean id="seoUrlFormatter" class="com.endeca.soleng.urlformatter.seo.SeoUrlFormatter">
    
        <property name="pathParamKeys">
          <list>
            <value>R</value>
            <value>A</value>
            <value>An</value>
            <value>Au</value>
            <value>N</value>
            <value>No</value>
            <value>Np</value>
            <value>Nu</value>
            <value>D</value>
            <value>Ntt</value>
            <value>Ne</value>
          </list>
        </property>
    
        <property name="navStateFormatter">
          <ref bean="navStateFormatter"/>
        </property>
    
        <property name="ERecFormatter">
          <ref bean="erecFormatter"/>
        </property>
    
        <property name="aggrERecFormatter">
          <ref bean="aggrERecFormatter"/>
        </property>
    
        <property name="navStateCanonicalizer">
          <ref bean="navStateCanonicalizer"/>
        </property>
    
        <property name="urlParamEncoders">
          <list>
            <ref bean="N-paramEncoder"/>
            <ref bean="Ne-paramEncoder"/>
            <ref bean="An-paramEncoder"/>
          </list>
        </property>
    
      </bean>

After you have created the basic URL configuration file, you create additional beans to specify further configuration for the misc-path and path-params. Follow the procedures in the sections below to complete your URL configuration.


Copyright © Legal Notices