Package org.auraframework.util.json

Examples of org.auraframework.util.json.JsonSerializationContext


    }

    @Override
    public void write(Object value, Map<String, Object> attributes, Appendable out) throws IOException {
        AuraContext ctx = (AuraContext) value;
        JsonSerializationContext s = ctx.getJsonSerializationContext();
        Json.serialize(ctx, out, s);
    }
View Full Code Here


    }

    @Override
    public void write(Object value, Map<String, Object> attributes, Appendable out) throws IOException {
        ClientSideEventException e = (ClientSideEventException) value;
        JsonSerializationContext jsonCxt = Aura.getContextService().getCurrentContext().getJsonSerializationContext();
        Map<String, Object> serialized = Maps.newHashMap();
        serialized.put("exceptionEvent", Boolean.TRUE);
        serialized.put("event", e.getEvent());
        if (jsonCxt != null && jsonCxt.format()) {
            serialized.put("defaultHandler", e.getDefaultHandler());
        } else {
            serialized.put("defaultHandler", e.getDefaultHandler() == null ? null : e.getDefaultHandler().toString());
        }
        Json.serialize(serialized, out, jsonCxt);
View Full Code Here

        return AuraContext.class;
    }

    @Override
    public void write(Object value, Map<String, Object> attributes, Appendable out) throws IOException {
        JsonSerializationContext s = new SerializationContext();
        try {
            Json.serialize(value, out, s);
        } catch (AuraRuntimeException e) {
            AuraExceptionUtil.passQuickFix(e);
        }
View Full Code Here

TOP

Related Classes of org.auraframework.util.json.JsonSerializationContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.