Package com.jsql.model
Class AbstractModelObservable
- All Implemented Interfaces:
AutoCloseable
,Flow.Publisher<Request>
- Direct Known Subclasses:
InjectionModel
Define the features of the injection model :
- stop the preparation of injection,
- Callable for parallelize HTTP tasks,
- communication with view, via Observable.
- stop the preparation of injection,
- Callable for parallelize HTTP tasks,
- communication with view, via Observable.
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
True if user wants to stop preparation.
During the preparation, several methods will check if the execution must be stopped. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetReportWithIndexes
(String dataInjection, String metadataInjectionProcess) getReportWithoutIndex
(String dataInjection, String metadataInjectionProcess) getReportWithoutIndex
(String dataInjection, String metadataInjectionProcess, AbstractCallableBoolean<?> callableBoolean) abstract String
inject
(String dataInjection, boolean isUsingIndex, String metadataInjectionProcess, AbstractCallableBoolean<?> callableBoolean, boolean isReport) Function header for the inject() methods, definition needed by call(), dataInjection: SQL query, responseHeader unused, useVisibleIndex false if injection indexes aren't needed, return source page after the HTTP call.injectWithIndexes
(String dataInjection, String metadataInjectionProcess) injectWithoutIndex
(String dataInjection, String metadataInjectionProcess) Inject without the need of index like in "select 1,2,...".
Used for example by: first index test (getVisibleIndex), Error test, and Error, Blind, Time strategies.injectWithoutIndex
(String dataInjection, String metadataInjectionProcess, AbstractCallableBoolean<?> callableBoolean) boolean
void
sendToViews
(Request request) Send an interaction message to registered views.void
setIsStoppedByUser
(boolean processStopped) Methods inherited from class java.util.concurrent.SubmissionPublisher
close, closeExceptionally, consume, estimateMaximumLag, estimateMinimumDemand, getClosedException, getExecutor, getMaxBufferCapacity, getNumberOfSubscribers, getSubscribers, hasSubscribers, isClosed, isSubscribed, offer, offer, submit, subscribe
-
Field Details
-
isStoppedByUser
protected boolean isStoppedByUserTrue if user wants to stop preparation.
During the preparation, several methods will check if the execution must be stopped.
-
-
Constructor Details
-
AbstractModelObservable
public AbstractModelObservable()
-
-
Method Details
-
inject
public abstract String inject(String dataInjection, boolean isUsingIndex, String metadataInjectionProcess, AbstractCallableBoolean<?> callableBoolean, boolean isReport) Function header for the inject() methods, definition needed by call(), dataInjection: SQL query, responseHeader unused, useVisibleIndex false if injection indexes aren't needed, return source page after the HTTP call. -
injectWithoutIndex
Inject without the need of index like in "select 1,2,...".
Used for example by: first index test (getVisibleIndex), Error test, and Error, Blind, Time strategies.- Returns:
- source code of current page
-
injectWithoutIndex
public String injectWithoutIndex(String dataInjection, String metadataInjectionProcess, AbstractCallableBoolean<?> callableBoolean) -
injectWithIndexes
-
getReportWithoutIndex
-
getReportWithoutIndex
public String getReportWithoutIndex(String dataInjection, String metadataInjectionProcess, AbstractCallableBoolean<?> callableBoolean) -
getReportWithIndexes
-
sendToViews
Send an interaction message to registered views.- Parameters:
request
- The event bean corresponding to the interaction
-
isStoppedByUser
public boolean isStoppedByUser() -
setIsStoppedByUser
public void setIsStoppedByUser(boolean processStopped)
-