public class HelpSerializer extends StdSerializer<HelpLink> implements Component, Serviceable, LogEnabled, Contextualizable
HelpLink
objects.
Returns the help url for the right language, for JSON value.JsonSerializer.None
Modifier and Type | Field and Description |
---|---|
private Context |
_context |
private HelpManager |
_helpManager |
private Logger |
_logger |
static String |
ROLE
The Avalon Role
|
_handledType
Constructor and Description |
---|
HelpSerializer()
Constructor
|
Modifier and Type | Method and Description |
---|---|
private List<String> |
_getLanguages(Request request) |
void |
contextualize(Context context) |
void |
serialize(HelpLink value,
JsonGenerator gen,
SerializerProvider provider) |
void |
service(ServiceManager manager) |
void |
setLogger(Logger logger)
Called at creation time to provide a
Logger . |
acceptJsonFormatVisitor, createObjectNode, createSchemaNode, createSchemaNode, findAnnotatedContentSerializer, findConvertingContentSerializer, findFormatFeature, findFormatOverrides, findIncludeOverrides, findPropertyFilter, getSchema, getSchema, handledType, isDefaultSerializer, visitArrayFormat, visitArrayFormat, visitFloatFormat, visitIntFormat, visitIntFormat, visitStringFormat, visitStringFormat, wrapAndThrow, wrapAndThrow
getDelegatee, isEmpty, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, serializeWithType, unwrappingSerializer, usesObjectId, withFilterId
private HelpManager _helpManager
public HelpSerializer()
public void serialize(HelpLink value, JsonGenerator gen, SerializerProvider provider) throws IOException
serialize
in class StdSerializer<HelpLink>
IOException
public void setLogger(Logger logger)
LogEnabled
Logger
.setLogger
in interface LogEnabled
logger
- a Logger
for messages.public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException
private List<String> _getLanguages(Request request)