| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
|
| 17 |
|
|
| 18 |
|
|
| 19 |
|
|
| 20 |
|
package com.xpn.xwiki.web; |
| 21 |
|
|
| 22 |
|
import java.net.URL; |
| 23 |
|
|
| 24 |
|
import com.xpn.xwiki.XWikiContext; |
| 25 |
|
|
| |
|
| 70% |
Uncovered Elements: 6 (20) |
Complexity: 10 |
Complexity Density: 1 |
|
| 26 |
|
public abstract class XWikiDefaultURLFactory implements XWikiURLFactory |
| 27 |
|
{ |
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 28 |
1 |
@Override... |
| 29 |
|
public URL createURL(String spaces, String name, XWikiContext context) |
| 30 |
|
{ |
| 31 |
1 |
return createURL(spaces, name, "view", null, null, context); |
| 32 |
|
} |
| 33 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 34 |
27 |
@Override... |
| 35 |
|
public URL createExternalURL(String spaces, String name, String action, String querystring, String anchor, |
| 36 |
|
XWikiContext context) |
| 37 |
|
{ |
| 38 |
27 |
return createExternalURL(spaces, name, action, querystring, anchor, context.getWikiId(), context); |
| 39 |
|
} |
| 40 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 41 |
110 |
@Override... |
| 42 |
|
public URL createURL(String spaces, String name, String action, XWikiContext context) |
| 43 |
|
{ |
| 44 |
110 |
return createURL(spaces, name, action, null, null, context); |
| 45 |
|
} |
| 46 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 47 |
112 |
@Override... |
| 48 |
|
public URL createURL(String spaces, String name, String action, String querystring, String anchor, XWikiContext context) |
| 49 |
|
{ |
| 50 |
112 |
return createURL(spaces, name, action, querystring, anchor, context.getWikiId(), context); |
| 51 |
|
} |
| 52 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 53 |
4331 |
@Override... |
| 54 |
|
public URL createSkinURL(String filename, String spaces, String name, XWikiContext context) |
| 55 |
|
{ |
| 56 |
4330 |
return createSkinURL(filename, spaces, name, context.getWikiId(), context); |
| 57 |
|
} |
| 58 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 59 |
2 |
@Override... |
| 60 |
|
public URL createAttachmentURL(String filename, String spaces, String name, String action, String querystring, |
| 61 |
|
XWikiContext context) |
| 62 |
|
{ |
| 63 |
2 |
return createAttachmentURL(filename, spaces, name, action, querystring, context.getWikiId(), context); |
| 64 |
|
} |
| 65 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 66 |
0 |
@Override... |
| 67 |
|
public URL createAttachmentRevisionURL(String filename, String spaces, String name, String revision, |
| 68 |
|
String querystring, XWikiContext context) |
| 69 |
|
{ |
| 70 |
0 |
return createAttachmentRevisionURL(filename, spaces, name, revision, querystring, context.getWikiId(), context); |
| 71 |
|
} |
| 72 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 73 |
0 |
public URL createAttachmentRevisionURL(String filename, String spaces, String name, String revision,... |
| 74 |
|
XWikiContext context) |
| 75 |
|
{ |
| 76 |
0 |
return createAttachmentRevisionURL(filename, spaces, name, revision, null, context.getWikiId(), context); |
| 77 |
|
} |
| 78 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 79 |
8606 |
@Override... |
| 80 |
|
public URL getRequestURL(XWikiContext context) |
| 81 |
|
{ |
| 82 |
8605 |
return context.getURL(); |
| 83 |
|
} |
| 84 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 85 |
0 |
@Override... |
| 86 |
|
public String getURL(URL url, XWikiContext context) |
| 87 |
|
{ |
| 88 |
0 |
return url.toString(); |
| 89 |
|
} |
| 90 |
|
} |