![JAR search and dependency download from the Maven repository](/logo.png)
com.kasisoft.mgnl.fragments.servlets.FragmentDefinition Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.kasisoft.mgnl.fragments Show documentation
Show all versions of com.kasisoft.mgnl.fragments Show documentation
Generation of fragments allowing to be embedded into the web application (f.e. menus)
The newest version!
package com.kasisoft.mgnl.fragments.servlets;
import org.apache.http.*;
import javax.jcr.*;
import java.util.function.*;
import java.util.*;
import lombok.experimental.*;
import lombok.*;
/**
* Each fragment consists of the following parameters:
*
*
* name
: The segment below the fragment path.
* template
: The template URI.
* setup
: A method filling the model map.
*
*
* The model map will definitely include the attributes segmentName
and subPath
.
* The segmentName
is the name associated with this fragment. The subPath
is the
* path below the segmentName
(might be null
).
*
* For instance:
*
* /fragments/menu -> segmentName = 'menu', subPath = ''
* /fragments/menu/341 -> segmentName = 'menu', subPath = '342'
* /fragments/menu/main/abc -> segmentName = 'menu', subPath = 'main/abc'
*
* @author [email protected]
*/
@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
public class FragmentDefinition {
Function
© 2015 - 2025 Weber Informatics LLC | Privacy Policy