Interface URIInfoUtility
These methods automatically take into account EBX® server's configuration and current context such as REST proxy configuration and REST Forward modes.
- Since:
- 5.9.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescription<T extends URIBuilderForBuiltin<T>>
TcreateBuilderForBuiltin(CategoryURIBuilder<T> aCategoryURIBuilder) Creates aURIbuilder useful for generating URIs for the EBX® built-in REST services.<T extends URIBuilderForBuiltin<T>>
TcreateBuilderForBuiltin(CategoryURIBuilder<T> aCategoryURIBuilder, boolean isRequestQueryParamsPropagated) Creates aURIbuilder useful for generating URIs for the EBX® built-in REST services.Creates aURIbuilder for generating URIs or URLs for resources packaged with the current module.createBuilderForResource(String aModuleName) Creates aURIbuilder for generating URIs or URLs for resources packaged with a specified module.Creates aURIbuilder for generating URIs or URLs for REST services associated to the current REST application.Creates a URI builder for generating URIs or URLs for resources hosted by the current server.Returns the EBX® built-in REST services baseURI.Returns the REST application baseURIfor the current application.Returns the server baseURI.
-
Method Details
-
createBuilderForBuiltin
<T extends URIBuilderForBuiltin<T>> T createBuilderForBuiltin(CategoryURIBuilder<T> aCategoryURIBuilder) throws IllegalArgumentException Creates aURIbuilder useful for generating URIs for the EBX® built-in REST services.The
URIbuilder will not be initialized with the current HTTP request's query parameters.- Throws:
IllegalArgumentException- See Also:
-
createBuilderForBuiltin
<T extends URIBuilderForBuiltin<T>> T createBuilderForBuiltin(CategoryURIBuilder<T> aCategoryURIBuilder, boolean isRequestQueryParamsPropagated) throws IllegalArgumentException Creates aURIbuilder useful for generating URIs for the EBX® built-in REST services.The builder is initialized with the built-in data services base
URI. The data services baseURIis automatically initialized by the REST Toolkit depending on the current request.- Parameters:
aCategoryURIBuilder- the service categoryURIbuilder which is declared as a constant inCategoryURIBuilder. It specifies for which REST category theURIbuilder will be used.isRequestQueryParamsPropagated-trueif theURIbuilder must be initialized with the current HTTP request's query parameters,falseotherwise.- Returns:
- the appropriate
URIbuilder for the providedaCategoryURIBuilder. - Throws:
IllegalArgumentException- ifaCategoryURIBuilderisnull- Since:
- 6.0.0
- See Also:
-
createBuilderForResource
Creates aURIbuilder for generating URIs or URLs for resources packaged with the current module.- Throws:
ModuleNotFoundException- See Also:
-
createBuilderForResource
Creates aURIbuilder for generating URIs or URLs for resources packaged with a specified module.- Parameters:
aModuleName- the specified module name, ifnullor empty, the current module is used- Throws:
ModuleNotFoundException- the module is not registered
-
createBuilderForRESTApplication
UriBuilder createBuilderForRESTApplication()Creates aURIbuilder for generating URIs or URLs for REST services associated to the current REST application.The base path is the one specified by the annotation
ApplicationPathdefined on the class extendingRESTApplicationAbstract.Overriding already provided values is not supported and must be avoided.
- See Also:
-
createBuilderForServer
UriBuilder createBuilderForServer()Creates a URI builder for generating URIs or URLs for resources hosted by the current server.The builder is initialized using the
getBaseURIForServer()method.Overriding already provided values is not supported and must be avoided.
-
getBaseURIForBuiltin
URI getBaseURIForBuiltin()Returns the EBX® built-in REST services baseURI.- Since:
- 6.0.0
- See Also:
-
getBaseURIForRESTApplication
URI getBaseURIForRESTApplication()Returns the REST application baseURIfor the current application.- See Also:
-
getBaseURIForServer
URI getBaseURIForServer()Returns the server baseURI.- See Also:
-