Skip to content

Commit

Permalink
Allow fulfillment to be checked.
Browse files Browse the repository at this point in the history
  • Loading branch information
mnlipp committed May 11, 2024
1 parent 6c55c88 commit e589a83
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions org.jgrapes.http/src/org/jgrapes/http/events/Request.java
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,16 @@ public boolean isEligibleFor(Object value) {
return mval.resource.equals(matchValue.resource);
}

/**
* Checks if the request has been processed, i.e. a response has
* been sent.
*
* @return true, if fulfilled
*/
public boolean fulfilled() {
return currentResults().size() > 0 && currentResults().get(0);
}

/*
* (non-Javadoc)
*
Expand Down

0 comments on commit e589a83

Please sign in to comment.