@Authors("Nikolche Mihajlovski") @Since("2.0.0") public interface Item extends IModel { String id(); Object value(); <T> T get(String property); void set(String property, Object value); List<Property> properties(String... propertyNames); List<Property> editableProperties(String... propertyNames); List<Property> readableProperties(String... propertyNames); }
@Authors("Dan Cytermann") @Since("5.5.0") public class DefaultXmlRequestBodyParser extends RapidoidThing implements HttpRequestBodyParser { @SuppressWarnings("unchecked") @Override public Map<String, ?> parseRequestBody(Req req, byte[] body) throws Exception { return Customization.of(req).xmlMapper().readValue(body, Map.class); } }
@Authors("Nikolche Mihajlovski") @Since("5.1.0") public interface LoginProvider { boolean login(Req req, String username, String password) throws Exception; }
@Authors("Nikolche Mihajlovski") @Since("2.0.0") public interface TagInternals { TagImpl base(); }
@Authors("Nikolche Mihajlovski") @Since("5.1.0") public class ReqParamRetriever extends RapidoidThing implements ParamRetriever { @Override public Object getParamValue(Req req) { return req; } }
@Authors("Nikolche Mihajlovski") @Since("2.0.0") public interface TextareaTag extends SpecificTag<TextareaTag> { String name(); TextareaTag name(String name); String placeholder(); TextareaTag placeholder(String placeholder); String rows(); TextareaTag rows(String rows); String cols(); TextareaTag cols(String cols); }
@Authors("Nikolche Mihajlovski") @Since("5.5.0") public interface HttpResponseRenderer { void render(Req req, Object value, OutputStream out) throws Exception; }
@Authors("Nikolche Mihajlovski") @Since("5.1.0") public interface ThreeParamLambda<R, P1, P2, P3> extends NParamLambda { R execute(P1 param1, P2 param2, P3 param3) throws Exception; }
@Authors("Nikolche Mihajlovski") @Since("2.0.0") public interface BufScanner extends Constants { int STOP = Integer.MIN_VALUE / 2; int MORE = Integer.MIN_VALUE; int scan(byte b, byte prev); }
@Authors("Nikolche Mihajlovski") @Since("5.2.0") public class DefaultEntityManagerFactoryProvider extends RapidoidThing implements EntityManagerFactoryProvider { @Override public EntityManagerFactory getEntityManagerFactory(Req req) { return JPA.provideEmf(); } }
@Authors("Nikolche Mihajlovski") @Since("5.1.0") public class OptionalJPAUtil extends RapidoidThing { public static Object getSharedEntityManagerFactoryProxy() { return SharedEntityManagerFactoryProxy.INSTANCE; } public static Object getSharedContextAwareEntityManagerProxy() { return SharedContextAwareEntityManagerProxy.INSTANCE; } }
@Authors("Nikolche Mihajlovski") @Since("2.0.0") public interface ButtonTag extends SpecificTag<ButtonTag> { String type(); ButtonTag type(String type); }
@Authors("Nikolche Mihajlovski") @Since("2.0.0") public interface LinkTag extends SpecificTag<LinkTag> { String href(); LinkTag href(String href); String rel(); LinkTag rel(String rel); }
@Authors("Nikolche Mihajlovski") @Since("5.1.0") public class GUIUtil extends RapidoidThing { public static Screen newPage() { return GUI.page(); } }
@Authors("Nikolche Mihajlovski") @Since("4.1.0") public class PageSubMenuItem extends AbstractPageMenuItem { public PageSubMenuItem(String caption, Object target, Map<String, Object> extra) { super(caption, target, extra); } @Override public String toString() { return "AppSubMenuItem [caption=" + caption + ", target=" + target + ", javascript=" + javascript + ", icon=" + icon + ", extra=" + extra + "]"; } }
@Authors("Nikolche Mihajlovski") @Since("5.1.0") public class EmailInput extends AbstractTextInput<EmailInput> { @Override protected Object render() { return renderInput("email"); } }
@Authors("Nikolche Mihajlovski") @Since("2.0.0") public interface CustomTag { Object content(); }
@Authors("Nikolche Mihajlovski") @Since("4.0.2") public abstract class WidgetVar<T> extends AbstractVar<T> { private static final long serialVersionUID = 2761159925375675659L; public WidgetVar(String name) { super(name); } protected boolean getBool() { Object value = ReqInfo.get().data().get(name()); return Boolean.TRUE.equals(value) || "true".equals(value); } }
@Authors("Nikolche Mihajlovski") @Since("2.0.0") public interface TdTag extends SpecificTag<TdTag> { String colspan(); TdTag colspan(String colspan); String rowspan(); TdTag rowspan(String rowspan); String headers(); TdTag headers(String headers); }
@Authors("Nikolche Mihajlovski") @Since("5.3.0") @RapidoidModuleDesc(name = "Commons", order = 100) public class CommonsModule extends AbstractRapidoidModule { @Override public void cleanUp() { Msc.reset(); } }