Web application framework for extracting content
First Claim
1. A computer-implemented method of dynamically extracting context associated with a web request, comprising:
- at a context analyzer layer, receiving a web request context, wherein the web request context comprises a coded expression;
at the context analyzer layer, determining if the coded expression contains a property name of multiple property names;
if the context analyzer layer determines the coded expression contains the property name of the multiple property names, updating the web request context at the context analyzer layer by replacing the coded expression with a value of the property name of the multiple property names;
if the context analyzer layer determines the coded expression does not contain any property name of the multiple property names, updating the web request context by replacing at least a part of the coded expression by at least one of;
at the context analyzer layer, determining that the coded expression starts with a request parameter attribute and replacing the at least the part of the coded expression with a value of a parameter name at the context analyzer layer;
at the context analyzer layer, determining that the coded expression starts with a request cookie attribute and replacing the at least the part of the coded expression with a value of a cookie name at the context analyzer layer;
at the context analyzer layer, determining that the coded expression starts with a request attribute and replacing the at least the part of the coded expression with a value of an attribute name at the context analyzer layer;
at the context analyzer layer, determining that the coded expression starts with a request header attribute and replacing the at least the part of the coded expression with a value of a header name at the context analyzer layer;
orat the context analyzer layer, determining that the coded expression starts with a context attribute and attempting to identify a context analyzer name class and replacing the at least the part of the coded expression with a value of a context key of the context analyzer name class at the context analyzer layer;
at the context analyzer layer, determining if a value of the at least the part of the coded expression is null after replacing the at least the part of the coded expression;
at the context analyzer layer, determining if the value of the at least the part of the coded expression is marked as required;
if the value of the at least the part of the coded expression is (1) determined to be null and (2) not marked as required, then ignoring the value of the at least the part of the coded expression;
if the value of the at least the part of the coded expression is (1) determined to be null and (2) marked as required, then, at the context analyzer layer, generating a warning in a log based at least in part on the determining that the value of the at least the part of the coded expression is null after replacing the at least the part of the coded expression;
at the context analyzer layer, invoking the context key of the context analyzer name class; and
at the context analyzer layer, determining that the context analyzer name class is not identified or that the value of the context key is not specified and then throwing an invalid configuration exception.
2 Assignments
0 Petitions
Accused Products
Abstract
The present disclosure extends to methods, systems, and computer program products for a web application framework for extracting content. In some embodiments, a computer-implemented method of dynamically extracting context associated with a web request comprises, at a context analyzer layer, receiving a web request context, wherein the web request context comprises a coded expression. Some embodiments further comprise, at the context analyzer layer, invoking the context key of the context analyzer name class, determining that the context analyzer name class is not identified or if the value of the context key is not specified, and throwing an invalid configuration exception. Other embodiments of related methods and systems are also provided.
-
Citations
23 Claims
-
1. A computer-implemented method of dynamically extracting context associated with a web request, comprising:
-
at a context analyzer layer, receiving a web request context, wherein the web request context comprises a coded expression; at the context analyzer layer, determining if the coded expression contains a property name of multiple property names; if the context analyzer layer determines the coded expression contains the property name of the multiple property names, updating the web request context at the context analyzer layer by replacing the coded expression with a value of the property name of the multiple property names; if the context analyzer layer determines the coded expression does not contain any property name of the multiple property names, updating the web request context by replacing at least a part of the coded expression by at least one of; at the context analyzer layer, determining that the coded expression starts with a request parameter attribute and replacing the at least the part of the coded expression with a value of a parameter name at the context analyzer layer; at the context analyzer layer, determining that the coded expression starts with a request cookie attribute and replacing the at least the part of the coded expression with a value of a cookie name at the context analyzer layer; at the context analyzer layer, determining that the coded expression starts with a request attribute and replacing the at least the part of the coded expression with a value of an attribute name at the context analyzer layer; at the context analyzer layer, determining that the coded expression starts with a request header attribute and replacing the at least the part of the coded expression with a value of a header name at the context analyzer layer;
orat the context analyzer layer, determining that the coded expression starts with a context attribute and attempting to identify a context analyzer name class and replacing the at least the part of the coded expression with a value of a context key of the context analyzer name class at the context analyzer layer; at the context analyzer layer, determining if a value of the at least the part of the coded expression is null after replacing the at least the part of the coded expression; at the context analyzer layer, determining if the value of the at least the part of the coded expression is marked as required; if the value of the at least the part of the coded expression is (1) determined to be null and (2) not marked as required, then ignoring the value of the at least the part of the coded expression; if the value of the at least the part of the coded expression is (1) determined to be null and (2) marked as required, then, at the context analyzer layer, generating a warning in a log based at least in part on the determining that the value of the at least the part of the coded expression is null after replacing the at least the part of the coded expression; at the context analyzer layer, invoking the context key of the context analyzer name class; and at the context analyzer layer, determining that the context analyzer name class is not identified or that the value of the context key is not specified and then throwing an invalid configuration exception. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A web application framework system, comprising:
a computer system comprising; non-transitory memory; and a context analyzer layer comprising; a request context module configured to be operable at the computer system and receive a web request context; and
a context parser module;wherein the context parser module is configured to; be operable at the computer system; receive the web request context, wherein the web request context comprises a coded expression; determine if the coded expression contains a property name of multiple property names; if the coded expression contains the property name of the multiple property names, update the web request context by replacing the coded expression with a value of the property name of the multiple property names; if the coded expression does not contain any property name of the multiple property names, update the web request context by replacing at least a part of the coded expression by at least one of; determining that the coded expression starts with a request parameter attribute, and replacing the at least the part of the coded expression with a value of a parameter name at the context analyzer layer; determining that the coded expression starts with a request cookie attribute and replacing the at least the part of the coded expression with a value of a cookie name at the context analyzer layer; determining that the coded expression starts with a request attribute and replacing the at least the part of the coded expression with a value of an attribute name at the context analyzer layer;
ordetermining that the coded expression starts with a request header attribute and replacing the at least the part of the coded expression with a value of a header name at the context analyzer layer; determine that if a value of the at least the part of the coded expression is null after replacing the at least the part of the coded expression; determine if the value of the at least the part of the coded expression is marked as required; if the value of the at least the part of the coded expression is (1) determined to be null and (2) not marked as required, then ignore the value of the at least the part of the coded expression; if the value of the at least the part of the coded expression is (1) determined to be null and (2) marked as required, then generate a warning in a log based at least in part on the value of the at least the part of the coded expression is null after replacing the at least the part of the coded expression; determine that the coded expression starts with a context attribute, and attempt to identify a context analyzer name class and replace the at least the part of the coded expression with a value of a context key of the context analyzer name class at the context analyzer layer; and determine that the context analyzer name class is not identified or that the value of the context key is not specified, and then throw an invalid configuration exception. - View Dependent Claims (10, 11, 12, 13, 14)
-
15. A computer-implemented method of dynamically extracting context associated with a web request, comprising:
-
at a context analyzer layer, receiving a web request context, wherein the web request context comprises a coded expression; at the context analyzer layer, determining if the coded expression contains a property name of multiple property names; if the context analyzer layer determines the coded expression contains the property name of the multiple property names, updating the web request context at the context analyzer layer by replacing the coded expression with a value of the property name of the multiple property names; if the context analyzer layer determines the coded expression does not contain any property name of the multiple property names, updating the web request context by replacing at least a part of the coded expression by at least one of; determining that the coded expression starts with a request parameter attribute, and replacing the at least the part of the coded expression with a value of a parameter name at the context analyzer layer; determining that the coded expression starts with a request cookie attribute, and replacing the at least the part of the coded expression with a value of a cookie name at the context analyzer layer; determining that the coded expression starts with a request attribute, and replacing the at least the part of the coded expression with a value of an attribute name at the context analyzer layer; determining that the coded expression starts with a request header attribute, and replacing the at least the part of the coded expression with a value of a header name at the context analyzer layer;
ordetermining that the coded expression starts with a context attribute, and attempting to identify a context analyzer name class and replacing the at least the part of the coded expression with a value of a context key of the context analyzer name class at the context analyzer layer; and at the context analyzer layer; determining if a value of the at least the part of the coded expression is null after replacing the at least the part of the coded expression; determining if the value of the at least the part of the coded expression is marked as required; if the value of the at least the part of the coded expression is (1) determined to be null and (2) marked as not required, then ignoring the value of the at least the part of the coded expression; if the value of the at least the part of the coded expression is (1) determined to be null and (2) marked as required, then generating a warning in a log based at least in part on the determining that the value of the at least the part of the coded expression is null after replacing the at least the part of the coded expression; invoking the context key of the context analyzer name class; and determining that the context analyzer name class is not identified or that the value of the context key is not specified, and then throwing an invalid configuration exception. - View Dependent Claims (16, 17, 18, 19, 20, 21, 22, 23)
-
Specification