public class JsonHttpTemplateSectionExtension extends Object implements HttpTemplateSectionExtension
HttpTemplateSectionExtension
for JSON.Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_JSON_AJAX_METHOD_NAMES
Comma separate list of
Method names having an
JsonResponseWriter parameter. |
Constructor and Description |
---|
JsonHttpTemplateSectionExtension() |
Modifier and Type | Method and Description |
---|---|
static void |
extendTemplate(HttpTemplateAutoWireSection template,
WebAutoWireApplication application)
Extends the
HttpTemplateAutoWireSection by:
providing the necessary JsonRequestReaderManagedObjectSource
instances
adding this as a HttpTemplateSectionExtension . |
void |
extendTemplate(HttpTemplateSectionExtensionContext context)
Extends the template.
|
public static final String PROPERTY_JSON_AJAX_METHOD_NAMES
Method
names having an
JsonResponseWriter
parameter.public static void extendTemplate(HttpTemplateAutoWireSection template, WebAutoWireApplication application)
HttpTemplateAutoWireSection
by:
JsonRequestReaderManagedObjectSource
instancesHttpTemplateSectionExtension
.
template
- HttpTemplateAutoWireSection
.application
- WebAutoWireApplication
.public void extendTemplate(HttpTemplateSectionExtensionContext context) throws Exception
HttpTemplateSectionExtension
extendTemplate
in interface HttpTemplateSectionExtension
context
- HttpTemplateSectionExtensionContext
.Exception
- If fails to extend the template.Copyright © 2005–2016. All rights reserved.