| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
|
| 17 |
|
|
| 18 |
|
|
| 19 |
|
|
| 20 |
|
package org.xwiki.rest.internal.resources; |
| 21 |
|
|
| 22 |
|
import org.restlet.Context; |
| 23 |
|
import org.restlet.Request; |
| 24 |
|
import org.restlet.Response; |
| 25 |
|
import org.restlet.data.MediaType; |
| 26 |
|
import org.restlet.representation.Variant; |
| 27 |
|
import org.restlet.resource.ServerResource; |
| 28 |
|
|
| 29 |
|
|
| 30 |
|
@version |
| 31 |
|
|
| |
|
| 0% |
Uncovered Elements: 7 (7) |
Complexity: 2 |
Complexity Density: 0.4 |
|
| 32 |
|
public class BrowserAuthenticationResource extends ServerResource |
| 33 |
|
{ |
| 34 |
|
public static final String URI_PATTERN = "/browser_authentication"; |
| 35 |
|
|
| |
|
| 0% |
Uncovered Elements: 4 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
| 36 |
0 |
public BrowserAuthenticationResource(Context context, Request request, Response response)... |
| 37 |
|
{ |
| 38 |
0 |
super(); |
| 39 |
0 |
this.init(context, request, response); |
| 40 |
0 |
getVariants().clear(); |
| 41 |
0 |
getVariants().add(new Variant(MediaType.TEXT_PLAIN)); |
| 42 |
|
} |
| 43 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 44 |
0 |
public void handleGet()... |
| 45 |
|
{ |
| 46 |
0 |
getResponse().redirectSeeOther(String.format("%s/", getRequest().getRootRef())); |
| 47 |
|
} |
| 48 |
|
} |