Package flex.messaging.io.amf

Examples of flex.messaging.io.amf.ActionContext


  protected void internalConnect() throws IOException
  {
    serializationContext.instantiateTypes = false;
    postMethod = new ExtendedPostMethod( url );
    setHttpRequestHeaders();
    actionContext = new ActionContext();
    connected = true;
  }
View Full Code Here


    {
        serializationContext.instantiateTypes = instantiateTypes;
        urlConnection = (HttpURLConnection)urlObject.openConnection();
        urlConnection.setDoOutput(true);
        setHttpRequestHeaders();
        actionContext = new ActionContext();
        connected = true;
    }
View Full Code Here

        {
            // Setup serialization and type marshalling contexts
            setThreadLocals();

            // Create a context for this request
            ActionContext context = new ActionContext();

            // Pass endpoint's mpi settings to the context so that it knows what level of
            // performance metrics should be gathered during serialization/deserialization
            context.setRecordMessageSizes(isRecordMessageSizes());
            context.setRecordMessageTimes(isRecordMessageTimes());

            // Send invocation through filter chain, which ends at the MessageBroker
            filterChain.invoke(context);

            // After serialization completes, increment endpoint byte counters,
            // if the endpoint is managed
            if (isManaged())
            {
                controller.addToBytesDeserialized(context.getDeserializedBytes());
                controller.addToBytesSerialized(context.getSerializedBytes());
            }

            if (context.getStatus() != MessageIOConstants.STATUS_NOTAMF)
            {
                if (addNoCacheHeaders)
                    addNoCacheHeaders(req, res);

                ByteArrayOutputStream outBuffer = context.getResponseOutput();
                res.setContentType(getResponseContentType());
                res.setContentLength(outBuffer.size());
                outBuffer.writeTo(res.getOutputStream());
                res.flushBuffer();
            }
View Full Code Here

     */
    protected void internalConnect() throws IOException {
        serializationContext.instantiateTypes = false;
        postMethod = new ExtendedPostMethod(url);
        setHttpRequestHeaders();
        actionContext = new ActionContext();
        connected = true;
    }
View Full Code Here

        {
            // Setup serialization and type marshalling contexts
            setThreadLocals();

            // Create a context for this request
            ActionContext context = new ActionContext();

            // Pass endpoint's mpi settings to the context so that it knows what level of
            // performance metrics should be gathered during serialization/deserialization
            context.setRecordMessageSizes(isRecordMessageSizes());
            context.setRecordMessageTimes(isRecordMessageTimes());

            // Send invocation through filter chain, which ends at the MessageBroker
            filterChain.invoke(context);

            // After serialization completes, increment endpoint byte counters,
            // if the endpoint is managed
            if (isManaged())
            {
                controller.addToBytesDeserialized(context.getDeserializedBytes());
                controller.addToBytesSerialized(context.getSerializedBytes());
            }

            if (context.getStatus() != MessageIOConstants.STATUS_NOTAMF)
            {
                if (addNoCacheHeaders)
                    addNoCacheHeaders(req, res);

                ByteArrayOutputStream outBuffer = context.getResponseOutput();
                res.setContentType(getResponseContentType());
                res.setContentLength(outBuffer.size());
                outBuffer.writeTo(res.getOutputStream());
                res.flushBuffer();
            }
View Full Code Here

      AmfMessageDeserializer amfder = new AmfMessageDeserializer();
      amfder.initialize(serialContext, new ByteArrayInputStream(messageBytes), trace);

      message = new ActionMessage();
      messageContext = new ActionContext();
      amfder.readMessage(message, messageContext);

      if (DEBUG)
    System.err.println(trace);
  } catch (Exception x) {
View Full Code Here

  trace = new AmfTrace();

  /**
   * CREATE A DESERIALIZER FOR SAMPLE AMF REQUEST
   */
  context = new ActionContext();
  message = new ActionMessage();
  content=new String();
  context.setRequestMessage(message);
  trace.startRequest("----------Deserializing AMF/HTTP request-----");
  dsContext = SerializationContext.getSerializationContext();
View Full Code Here

      AmfMessageDeserializer amfder = new AmfMessageDeserializer();
      amfder.initialize(serialContext, new ByteArrayInputStream(
          messageBytes), trace);

      message = new ActionMessage();
      messageContext = new ActionContext();
      amfder.readMessage(message, messageContext);

      if (DEBUG)
        System.err.println(trace);
    } catch (Exception x) {
View Full Code Here

TOP

Related Classes of flex.messaging.io.amf.ActionContext

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.