|
1 | 1 | /*
|
2 |
| - * Copyright 2002-2012 the original author or authors. |
| 2 | + * Copyright 2002-2016 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
|
24 | 24 | import org.springframework.web.util.UrlPathHelper;
|
25 | 25 |
|
26 | 26 | /**
|
27 |
| - * {@link org.springframework.web.servlet.RequestToViewNameTranslator} |
28 |
| - * that simply transforms the URI of the incoming request into a view name. |
| 27 | + * {@link RequestToViewNameTranslator} that simply transforms the URI of |
| 28 | + * the incoming request into a view name. |
29 | 29 | *
|
30 |
| - * <p>Can be explicitly defined as the "viewNameTranslator" bean in a |
| 30 | + * <p>Can be explicitly defined as the {@code viewNameTranslator} bean in a |
31 | 31 | * {@link org.springframework.web.servlet.DispatcherServlet} context.
|
32 | 32 | * Otherwise, a plain default instance will be used.
|
33 | 33 | *
|
34 | 34 | * <p>The default transformation simply strips leading and trailing slashes
|
35 | 35 | * as well as the file extension of the URI, and returns the result as the
|
36 |
| - * view name with the configured {@link #setPrefix "prefix"} and a |
37 |
| - * {@link #setSuffix "suffix"} added as appropriate. |
| 36 | + * view name with the configured {@link #setPrefix prefix} and a |
| 37 | + * {@link #setSuffix suffix} added as appropriate. |
38 | 38 | *
|
39 | 39 | * <p>The stripping of the leading slash and file extension can be disabled
|
40 |
| - * using the {@link #setStripLeadingSlash "stripLeadingSlash"} and |
41 |
| - * {@link #setStripExtension "stripExtension"} properties, respectively. |
| 40 | + * using the {@link #setStripLeadingSlash stripLeadingSlash} and |
| 41 | + * {@link #setStripExtension stripExtension} properties, respectively. |
42 | 42 | *
|
43 | 43 | * <p>Find below some examples of request to view name translation.
|
44 |
| - * |
45 |
| - * <pre class="code">http://localhost:8080/gamecast/display.html -> display |
46 |
| - * http://localhost:8080/gamecast/displayShoppingCart.html -> displayShoppingCart |
47 |
| - * http://localhost:8080/gamecast/admin/index.html -> admin/index |
48 |
| - * </pre> |
| 44 | + * <ul> |
| 45 | + * <li>{@code http://localhost:8080/gamecast/display.html} » {@code display}</li> |
| 46 | + * <li>{@code http://localhost:8080/gamecast/displayShoppingCart.html} » {@code displayShoppingCart}</li> |
| 47 | + * <li>{@code http://localhost:8080/gamecast/admin/index.html} » {@code admin/index}</li> |
| 48 | + * </ul> |
49 | 49 | *
|
50 | 50 | * @author Rob Harrop
|
51 | 51 | * @author Juergen Hoeller
|
|
0 commit comments