Interface PathConverter
-
- All Known Implementing Classes:
BlogPathConverter
,PagePathConverter
,SpacePathConverter
,UserPathConverter
public interface PathConverter
Path converters are used by theSimpleDisplayServlet
to convert friendly URL's to action URLs.
-
-
Method Summary
All Methods Instance Methods Default Methods Deprecated Methods Modifier and Type Method Description default ConvertedPath
getPath(String path)
Deprecated.since 6.0.default ConvertedPath
getPath(String path, String queryString)
Returns aConvertedPath
based on the passed in path and query string.default boolean
handles(String path)
Deprecated.since 6.0.default boolean
handles(String path, String queryString)
Return true from this method if your path converter can convert the specified path and query string.
-
-
-
Method Detail
-
handles
@Deprecated default boolean handles(String path)
Deprecated.since 6.0. Usehandles(String, String)
instead.
-
getPath
@Deprecated default ConvertedPath getPath(String path)
Deprecated.since 6.0. UsegetPath(String, String)
instead.
-
handles
default boolean handles(String path, String queryString)
Return true from this method if your path converter can convert the specified path and query string. By default, the SimpleDisplayServlet will be mapped to '/display' which will be stripped off the path before being passed to this method. The first converter that returns true for a path will be used to perform the conversion.- Parameters:
path
- the path relative to the servlet mappingqueryString
- the query string- Returns:
- true if your path converter can handle this path
-
getPath
default ConvertedPath getPath(String path, String queryString)
Returns aConvertedPath
based on the passed in path and query string.- Parameters:
path
- the path relative to the servlet mappingqueryString
- the query string- Returns:
- a
ConvertedPath
representing the path conversion
-
-