@RequestScoped public class GsonJSONPSerialization extends Object implements JSONPSerialization
Modifier | Constructor and Description |
---|---|
protected |
GsonJSONPSerialization()
Deprecated.
CDI eyes only
|
|
GsonJSONPSerialization(javax.servlet.http.HttpServletResponse response,
TypeNameExtractor extractor,
GsonSerializerBuilder builder,
Environment environment) |
Modifier and Type | Method and Description |
---|---|
JSONSerialization |
withCallback(String callbackName)
sets the jsonp callback
|
protected GsonJSONPSerialization()
@Inject public GsonJSONPSerialization(javax.servlet.http.HttpServletResponse response, TypeNameExtractor extractor, GsonSerializerBuilder builder, Environment environment)
public JSONSerialization withCallback(String callbackName)
JSONPSerialization
withCallback
in interface JSONPSerialization
Copyright © 2014 Caelum. All rights reserved.