public class SchemaObjectCustomizerContext extends Object
SchemaObject
is in when customizing the schema in a SchemaObjectCustomizer
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.MediaType |
mediaType() |
Optional<Method> |
methodHandle() |
Optional<Type> |
parameterizedType() |
Optional<String> |
parameterName() |
Object |
resource()
For normal resources, this is the instance passed to the
RestHandlerBuilder . |
SchemaObjectCustomizerTarget |
target() |
String |
toString() |
Class<?> |
type() |
public SchemaObjectCustomizerTarget target()
public Object resource()
RestHandlerBuilder
. Note that for sub-resources
returned by a sub-resource-locator, this will be null.public Optional<Method> methodHandle()
public Optional<String> parameterName()
target()
is SchemaObjectCustomizerTarget.FORM_PARAM
, this returns the form
parameter name.public Class<?> type()
public Optional<Type> parameterizedType()
public javax.ws.rs.core.MediaType mediaType()
Copyright © 2017–2021. All rights reserved.