@Authors("Nikolche Mihajlovski") @Since("2.0.0") public interface Measure { String get(); void reset(); }
@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("Nikolche Mihajlovski") @Since("2.0.0") public class ShortWrap extends RapidoidThing { public short value; }
@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("2.0.0") public interface SerializableBean<T> { T serializeBean(); void deserializeBean(T serialized); }
@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 class MandatoryVar<T> extends DecoratorVar<T> { public MandatoryVar(Var<T> var) { super(var); } @Override protected void doSet(T value) { var.set(value); U.must(!U.isEmpty(value), "Non-empty value is required!"); } }
@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("2.0.0") public interface CtxListener { void onDone(Channel ctx, Object tag); }
@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("2.0.0") public interface OAuthStateCheck { String generateState(Value<String> clientSecret, String sessionId); boolean isValidState(String state, String clientSecret, String sessionId); }