# Uses of Interface
org.springframework.web.servlet.view.FragmentsRendering.Builder

Packages that use FragmentsRendering.Builder
Package
Description
org.springframework.web.servlet.view
Provides standard View and ViewResolver implementations, including abstract base classes for custom implementations.

## Uses of FragmentsRendering.Builder in org.springframework.web.servlet.view

Methods in org.springframework.web.servlet.view that return FragmentsRendering.Builder
Modifier and Type
Method
Description
`FragmentsRendering.Builder`
FragmentsRendering.Builder.`fragment(String viewName)`
Add an HTML fragment.
`FragmentsRendering.Builder`
FragmentsRendering.Builder.`fragment(String viewName, Map<String,Object> model)`
Add an HTML fragment.
`FragmentsRendering.Builder`
FragmentsRendering.Builder.`fragment(ModelAndView fragment)`
Add an HTML fragment.
`static FragmentsRendering.Builder`
FragmentsRendering.`fragment(String viewName)`
Create a builder with one HTML fragment, also inheriting attributes from the shared model for the request.
`static FragmentsRendering.Builder`
FragmentsRendering.`fragment(String viewName, Map<String,Object> model)`
Create a builder with one HTML fragment.
`FragmentsRendering.Builder`
FragmentsRendering.Builder.`fragments(Collection<ModelAndView> fragments)`
Add multiple HTML fragments.
`static FragmentsRendering.Builder`
FragmentsRendering.`fragments(Collection<ModelAndView> fragments)`
Create a builder with multiple HTML fragments.
`FragmentsRendering.Builder`
FragmentsRendering.Builder.`header(String headerName, String... headerValues)`
Add one or more header values under the given name.
`FragmentsRendering.Builder`
FragmentsRendering.Builder.`headers(Consumer<org.springframework.http.HttpHeaders> headersConsumer)`
Provides access to every header declared so far with the possibility to add, replace, or remove values.
`FragmentsRendering.Builder`
FragmentsRendering.Builder.`status(org.springframework.http.HttpStatusCode status)`
Specify the status to use for the response.
`static FragmentsRendering.Builder`
FragmentsRendering.`with(String viewName)`
Deprecated, for removal: This API element is subject to removal in a future version.
in favor of `FragmentsRendering.fragment(String)`
`static FragmentsRendering.Builder`
FragmentsRendering.`with(String viewName, Map<String,Object> model)`
Deprecated, for removal: This API element is subject to removal in a future version.
in favor of `FragmentsRendering.fragment(String, Map)`
`static FragmentsRendering.Builder`
FragmentsRendering.`with(Collection<ModelAndView> fragments)`
Deprecated, for removal: This API element is subject to removal in a future version.
in favor of `FragmentsRendering.fragments(Collection)`