【问题标题】:JOSSO's <ignore-url-patterns> example needed需要 JOSSO 的 <ignore-url-patterns> 示例
【发布时间】:2011-04-29 21:22:56
【问题描述】:

只是想知道是否有人可以在 joss-agent-config.xml 中向我展示如何使用 JOSSO 的合作伙伴应用程序的示例?

【问题讨论】:

    标签: josso


    【解决方案1】:

    今天刚刚解决了这个问题。要为 JOSSO ignore-url-patterns 标签设置 URL 模式,您需要使用来自另一个命名空间的标签:



    *.css
    *.js
    *.gif
    *.jpg
    *.png


    这假设您有 xmlns:agent="urn:org:josso:agent:core" 和 xmlns:s="http://www.springframework.org/schema/beans"。

    ignore-url-patterns 的 XSD 使用“##other”范围,因此它必须是来自另一个命名空间的标记。我使用了 spring 的 标签,因为它是一个简单的字符串容器,可以很好地保存您想要使用的各种 url 模式。

    【讨论】:

      【解决方案2】:
       <configuration>
              <agent:agent-configuration>
                  <!-- ============================================================================= -->
                  <!--                                                                               -->
                  <!-- JOSSO Parnter application definicions :                                       -->
                  <!--                                                                               -->
                  <!-- Configure all web applications that should be a josso partner application     -->
                  <!-- within this server.                                                           -->
                  <!-- For each partner application you have to define the proper web-context.      -->
                  <!-- ============================================================================= -->
                  <agent:partner-apps>
                     <agent:partner-app id="AdminApp" context="/admin"/>
                     <agent:partner-app id="HOME" context="/home" >
                         <ignore-web-resource-collections>public-resources,img-resources</ignore-web-resource-collections>
                     </agent:partner-app>
                      <agent:partner-app id="EmployeeApp" context="/emp"/>
                      <agent:partner-app id="AuditApp" context="/audit"/>
                  </agent:partner-apps>
              </agent:agent-configuration>
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2013-01-06
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2013-07-04
        • 1970-01-01
        • 2017-02-15
        • 2017-03-18
        相关资源
        最近更新 更多