alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Play Framework/Scala example source code file (multi-service.xml)

This example Play Framework source code file (multi-service.xml) is included in my "Source Code Warehouse" project. The intent of this project is to help you more easily find Play Framework (and Scala) source code examples by using tags.

All credit for the original source code belongs to Play Framework; I'm just trying to make examples easier to find. (For my Scala work, see my Scala examples and tutorials.)

Play Framework tags/keywords

equivid, jpeg, mediatype, openid, providerid, service, type, typesafe, uri, xrd

The multi-service.xml Play Framework example source code

<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ Copyright (C) 2009-2013 Typesafe Inc. <http://www.typesafe.com>
  -->
<xrds:XRDS xmlns:xrds="xri://$xrds" xmlns="xri://$xrd*($v*2.0)"
           xmlns:openid="http://openid.net/xmlns/1.0">
    <XRD ref="xri://=example">
        <Query>*example</Query>
        <Status ceid="off" cid="verified" code="100"/>
        <Expires>2008-05-05T00:15:00.000Z</Expires>
        <ProviderID>xri://=</ProviderID>
        <!-- synonym section -->
        <LocalID priority="10">!4C72.6C81.D78F.90B2</LocalID>
        <EquivID priority="10">http://example.com/example-user</EquivID>
        <EquivID priority="15">http://example.net/blog</EquivID>
        <CanonicalID>xri://=!4C72.6C81.D78F.90B2</CanonicalID>
        <!-- service section -->
        <Service>
            <!-- XRI resolution service -->
            <ProviderID>xri://=!F83.62B1.44F.2813</ProviderID>
            <Type>xri://$res*auth*($v*2.0)</Type>
            <MediaType>application/xrds+xml</MediaType>
            <URI priority="10">http://resolve.example.com</URI>
            <URI priority="15">http://resolve2.example.com</URI>
            <URI>https://resolve.example.com</URI>
        </Service>
        <!-- OpenID 2.0 login service -->
        <Service priority="10">
            <Type>http://specs.openid.net/auth/2.0/signon</Type>
            <URI>http://www.myopenid.com/server</URI>
            <LocalID>http://example.myopenid.com/</LocalID>
        </Service>
        <!-- OpenID 1.0 login service -->
        <Service priority="20">
            <Type>http://openid.net/server/1.0</Type>
            <URI>http://www.livejournal.com/openid/server.bml</URI>
            <openid:Delegate>http://www.livejournal.com/users/example/</openid:Delegate>
        </Service>
        <!-- untyped service for access to files of media type JPEG -->
        <Service priority="10">
            <Type match="null"/>
            <Path select="true">/media/pictures</Path>
            <MediaType select="true">image/jpeg</MediaType>
            <URI append="path">http://pictures.example.com</URI>
        </Service>
    </XRD>
</xrds:XRDS>

Other Play Framework source code examples

Here is a short list of links related to this Play Framework multi-service.xml source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.