public class WebViewsManager extends Object
| Constructor and Description |
|---|
WebViewsManager() |
| Modifier and Type | Method and Description |
|---|---|
WebView |
findUpdateView(HttpBridletContext context)
Finds the view to be updated by the Bridje-View header sended to the
server.
|
String |
findUpdateViewName(HttpBridletContext context)
Finds the name of the view to be updated by the Bridje-View header name sended
to the server.
|
WebView |
findView(HttpBridletContext context)
Finds the view by the requested path of the given HTTP bridlet context.
|
WebView |
findView(String path)
Finds the view by the given path.
|
String |
findViewName(HttpBridletContext context)
Finds the name of the view to be rendered by the path of the HTTP
request.
|
Path |
getBasePath()
Base path for all views.
|
void |
init()
IoC init method do not call this manually.
|
boolean |
isUpdateView(HttpBridletContext context)
Finds if there is a view to be updated by the Bridje-View header name sended to
the server.
|
void |
renderPartialView(WebView view,
HttpBridletContext context,
EventResult result,
Map<String,Object> params)
Renders the given web view partially, (as the result of an update) to the response output stream.
|
void |
renderView(WebView view,
HttpBridletContext context)
Renders the given web view to the response output stream.
|
void |
renderView(WebView view,
HttpBridletContext context,
Map<String,Object> params)
Renders the given web view to the response output stream.
|
void |
updateView(WebView view,
HttpBridletContext context)
Performs a view update and/or an event invocation by the data sended to
the server in the given request.
|
@PostConstruct public void init()
public WebView findView(String path)
path - The web view path to be found.public WebView findView(HttpBridletContext context)
context - The current HTTP bridlet context to extract the path of
the view.public WebView findUpdateView(HttpBridletContext context) throws HttpException
context - The current HTTP bridlet context to extract the path of
the view.HttpException - If the Bridje-View parameter was send
but the view referenced by it does
not exists.public boolean isUpdateView(HttpBridletContext context)
context - The current HTTP bridlet context to extract the path of
the view.public Path getBasePath()
public String findUpdateViewName(HttpBridletContext context)
context - The current HTTP bridlet context to extract the path of
the view.public void renderView(WebView view, HttpBridletContext context, Map<String,Object> params)
view - The view to render.context - The HTTP bridlet context for the current request.params - The parameters that can be accessed within the view.public void renderView(WebView view, HttpBridletContext context)
view - The view to render.context - The HTTP bridlet context for the current request.public void updateView(WebView view, HttpBridletContext context)
view - The view to be updated.context - The HTTP bridlet context for the current request.public void renderPartialView(WebView view, HttpBridletContext context, EventResult result, Map<String,Object> params)
view - The view to render.context - The HTTP bridlet context for the current request.result - The event result for this render operation.params - The parameters that can be accessed within the view.public String findViewName(HttpBridletContext context)
context - The HTTP bridlet context to get the path form.Copyright © 2015–2017 Bridje Framework. All rights reserved.