<
From version < 56.1 >
edited by Vincent Massol
on 2015/04/01
To version < 56.2 >
edited by Vincent Massol
on 2015/04/01
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Title
... ... @@ -1,1 +1,1 @@
1 -URLs Resolution
1 +URL Format
Parent
... ... @@ -1,1 +1,1 @@
1 -AdminGuide.WebHome
1 +DevGuide.WebHome
Content
... ... @@ -1,7 +1,51 @@
1 +{{error}}Work in Progress being done by Vincent Massol, please don't touch for now! :){{/error}}
2 +
1 1  {{box cssClass="floatinginfobox" title="**Contents**"}}
2 2  {{toc/}}
3 3  {{/box}}
4 4  
7 +The general format of XWiki URLs is {{code language="none"}}http://<servername>/<context path>/<type>/<path>{{/code}}, where:
8 +
9 +* ##<servername>##: the XWiki instance address and port, e.g. ##localhost:8080##, ##xwiki.org##
10 +* ##<context path>##: the name under which the XWiki web application is deployed in your Servlet Container, e.g. ##xwiki##
11 +* ##<type>##: the type of URL depending on the XWiki subsystem accessed. The following types are supported:
12 +** ##bin##: the URL is pointing to a dynamic resource. Examples: an Entity to display (wiki, page, space, attachment, object, property, etc), a dynamic skin resource (image, css, js), a dynamic template resource (image, js, css, icon, etc) and more. By dynamic we mean that some computation needs to happen to compute the resource (for example some Velocity needs to be evaluated).
13 +** ##rest##: the URL is pointing to a [[REST Resource>>Features.XWikiRESTfulAPI]]
14 +** ##skins##: the URL is pointing to a static skin resource (image, js, css, etc).
15 +** ##resources##: the URL is pointing to a static template resource (image, js, css, etc).
16 +* ##<path>##: the path completely depends on the ##<type>## used. See below for more details.
17 +
18 +== Type: ##bin## ==
19 +
20 +There are various ##bin## URLs:
21 +* ##bin/skin/skins##: Dynamic Skin resource, e.g. ##http://<server>/xwiki/bin/skin/skins/flamingo/style.css?skin=XWiki.DefaultSkin&colorTheme=playground%3AFlamingoThemes.Charcoal##
22 +* ##bin/skin/resources##: Dynamic Template Resource, e.g. ##http://<server>/xwiki/bin/skin/resources/css/xwiki-min.css?colorTheme=FlamingoThemes.Charcoal&language=en##
23 +
24 +ex: http://playground.xwiki.org/xwiki/bin/skin/resources/uicomponents/search/searchSuggest.css
25 +
26 +bin/jsx:
27 +ex: http://playground.xwiki.org/xwiki/bin/jsx/AnnotationCode/Settings?language=en
28 +
29 +bin/ssx:
30 +ex: http://playground.xwiki.org/xwiki/bin/ssx/AnnotationCode/Style?language=en
31 +
32 +bin/webjars:
33 +ex: http://playground.xwiki.org/xwiki/bin/webjars/resources/path?value=requirejs%2F2.1.15%2Frequire.min.js
34 +
35 +bin/download:
36 +ex: http://www.xwiki.org/xwiki/bin/download/XWiki/VincentMassol/vmassol2.png?width=30&height=30&keepAspectRatio=true
37 +
38 +bin/get:
39 +ex: http://playground.xwiki.org/xwiki/bin/get/Main/WebHome?xpage=xpart&vm=commentsinline.vm
40 +
41 +resources:
42 +ex: http://playground.xwiki.org/xwiki/resources/js/prototype/prototype.js
43 +
44 +skins:
45 +ex: http://playground.xwiki.org/xwiki/skins/flamingo/logo.png
46 +
47 +
48 +
5 5  In a single instance of XWiki you have many sections and the URLs need to reflect all that. This documentation details the way URLs are parsed by XWiki and what each part of it means.
6 6  
7 7  {{image reference="url.png"/}}

Get Connected