Class IntrospectableSettings.Builder
java.lang.Object
org.apache.juneau.rest.server.converter.IntrospectableSettings.Builder
- Enclosing class:
- IntrospectableSettings
Builder for
IntrospectableSettings.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allow
Allow-lists methods matching the specified filter.Can be called multiple times; the filters are OR'ed together, so a method is allowed if it matches any filter that was added.
- Parameters:
filter- Filter that returnstrue for methods that may be invoked.- Returns:
- This object.
-
allow
Allow-lists specific method signatures declared on (or inherited by) the specified class.Example:
IntrospectableSettings.
create ().allow(MyBean.class ,"getName" ,"getAge" );- Parameters:
declaringClass- The class the allow-listed methods must be declared on (or a subtype thereof).signatures- One or more method signatures as returned byMethodInfo.getSignature()(e.g."getName" ,"substring(int,int)" ).- Returns:
- This object.
-
allowAll
Allow-lists any public, non-deprecated method — the pre-10.0 behavior.Use only for trusted resources whose response objects' full public API surface is one you're comfortable exposing to any caller who can reach this endpoint, since the method name and arguments for
Introspectablealways come from untrusted request query parameters.- Returns:
- This object.
-
build
Builds the settings.- Returns:
- A new
IntrospectableSettings.
-