public GraniteContext(Object graniteConfig, Object servicesConfig, String sessionId, String clientType) { this.servicesConfig = servicesConfig; this.graniteConfig = graniteConfig; this.amfContext = new AMFContextImpl(); this.sessionId = sessionId; this.clientType = clientType != null ? clientType : "as3"; }
AMF0Message amf0Request = deserializer.getAMFMessage(); amf.setAmf0Request(amf0Request); AMF0Message amf0Response = amf.getAmf0Response();
@Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { try { GraniteContext context = GraniteContext.getCurrentInstance(); if (context == null) throw new ServletException( "No GraniteContext (" + AMFMessageFilter.class.getName() + " not configured in web.xml ?)"); AMFContextImpl amf = (AMFContextImpl)context.getAMFContext(); AMF0Message amf0Request = amf.getAMF0Request(); log.debug(">> Processing AMF0 request: %s", amf0Request); AMF0Message amf0Response = AMF0MessageProcessor.process(amf0Request); log.debug("<< Returning AMF0 response: %s", amf0Response); amf.setAmf0Response(amf0Response); } catch (Exception e) { log.error(e, "AMF message error"); throw new ServletException(e); } } }
amf.setCurrentAmf3Message(amf3RequestMessage); amf.getCustomResponseHeaders().clear(); amf3ResponseMessage = AMF3MessageProcessor.process(amf3RequestMessage); ); amf3ResponseMessage.getHeaders().putAll(amf.getCustomResponseHeaders());
AMF0Message amf0Request = (AMF0Message)deserializer.readObject(); amf.setAmf0Request(amf0Request); AMF0Message amf0Response = amf.getAmf0Response();
public GraniteContext(Object graniteConfig, Object servicesConfig, String sessionId, String clientType) { this.servicesConfig = servicesConfig; this.graniteConfig = graniteConfig; this.amfContext = new AMFContextImpl(); this.sessionId = sessionId; this.clientType = clientType != null ? clientType : "as3"; }
public GraniteContext(Object graniteConfig, Object servicesConfig, String sessionId, String clientType) { this.servicesConfig = servicesConfig; this.graniteConfig = graniteConfig; this.amfContext = new AMFContextImpl(); this.sessionId = sessionId; this.clientType = clientType != null ? clientType : "as3"; }
public GraniteContext(GraniteConfig graniteConfig, ServicesConfig servicesConfig, String sessionId, String clientType) { this.servicesConfig = servicesConfig; this.graniteConfig = graniteConfig; this.amfContext = new AMFContextImpl(); this.sessionId = sessionId; this.clientType = clientType != null ? clientType : "as3"; }
private OSGiGraniteContext() { this.amfContext = new AMFContextImpl(); }