Skip to content

Commit c2f7047

Browse files
committed
Polish Javadoc for DefaultRequestToViewNameTranslator
1 parent 25be5e0 commit c2f7047

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

spring-webmvc/src/main/java/org/springframework/web/servlet/view/DefaultRequestToViewNameTranslator.java

+13-13
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2012 the original author or authors.
2+
* Copyright 2002-2016 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -24,28 +24,28 @@
2424
import org.springframework.web.util.UrlPathHelper;
2525

2626
/**
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.
2929
*
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
3131
* {@link org.springframework.web.servlet.DispatcherServlet} context.
3232
* Otherwise, a plain default instance will be used.
3333
*
3434
* <p>The default transformation simply strips leading and trailing slashes
3535
* 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.
3838
*
3939
* <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.
4242
*
4343
* <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} &raquo; {@code display}</li>
46+
* <li>{@code http://localhost:8080/gamecast/displayShoppingCart.html} &raquo; {@code displayShoppingCart}</li>
47+
* <li>{@code http://localhost:8080/gamecast/admin/index.html} &raquo; {@code admin/index}</li>
48+
* </ul>
4949
*
5050
* @author Rob Harrop
5151
* @author Juergen Hoeller

0 commit comments

Comments
 (0)