Interface PathConverter
-
- All Known Implementing Classes:
BlogPathConverter,PagePathConverter,SpacePathConverter,UserPathConverter
public interface PathConverterPath converters are used by theSimpleDisplayServletto convert friendly URL's to action URLs.
-
-
Method Summary
All Methods Instance Methods Default Methods Deprecated Methods Modifier and Type Method Description default ConvertedPathgetPath(String path)Deprecated.since 6.0.default ConvertedPathgetPath(String path, String queryString)Returns aConvertedPathbased on the passed in path and query string.default booleanhandles(String path)Deprecated.since 6.0.default booleanhandles(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 aConvertedPathbased on the passed in path and query string.- Parameters:
path- the path relative to the servlet mappingqueryString- the query string- Returns:
- a
ConvertedPathrepresenting the path conversion
-
-