Parse the resulting Action Payload.
181739
protected function parseResult()
	{
		if(is_null($this->result))
		{
			$this->setCode(self::HTTP_INTERNAL_SERVER_ERROR);
		}
		else
		{
			$this->setCode($this->parseStatusCode());

			$this->setBody();
		}
	}
215706
protected function parseAction(string $action, string $method): string
    {
        if ('post' === $method) {
            return $this->getSlug().'_'.$action;
        }

        return $action;
    }
853097
def readACTIONRECORD(self):
        
        action = None
        actionCode = self.readUI8()
        if actionCode != 0:
            actionLength = self.readUI16() if actionCode >= 0x80 else 0
            #print "0x%x"%actionCode, actionLength
            action = SWFActionFactory.create(actionCode, actionLength)
            action.parse(self)
        return action
569465
public Parse getParse(String params) throws Exception {
    String action = "parse";
    Api api = getActionResult(action, params);
    super.handleError(api);
    return api.getParse();
  }
184403
def payload_parser
      @payload_parser ||= if @receive_raw_payload
                            ->(payload) { payload }
                          else
                            ->(payload) {
                              ActiveSupport::HashWithIndifferentAccess.new(JSON.parse(payload))
                            }
                          end
    end
984214
public String getActionResultText(String action, String params,
      TokenResult token, Object pFormData, String format) throws Exception {
    String queryUrl = siteurl + scriptPath + apiPath + "action=" + action
        + "&format=" + format;
    ClientResponse response;
    // decide for the method to use for api access
    response = this.getPostResponse(queryUrl, params, token, pFormData);
    String text = this.getResponseString(response);
    return text;
  }
919631
private boolean parsePayload(ByteBuffer buffer) {
        if (payloadLength == 0) {
            return true;
        }

        if (buffer.hasRemaining()) {
            // Create a small window of the incoming buffer to work with.
            // this should only show the payload itself, and not any more
            // bytes that could belong to the start of the next frame.
            int bytesSoFar = payload == null ? 0 : payload.position();
            int bytesExpected = payloadLength - bytesSoFar;
            int bytesAvailable = buffer.remaining();
            int windowBytes = Math.min(bytesAvailable, bytesExpected);
            int limit = buffer.limit();
            buffer.limit(buffer.position() + windowBytes);
            ByteBuffer window = buffer.slice();
            buffer.limit(limit);
            buffer.position(buffer.position() + window.remaining());

            if (LOG.isDebugEnabled()) {
                LOG.debug("{} Window: {}", policy.getBehavior(), BufferUtils.toDetailString(window));
            }

            maskProcessor.process(window);

            if (window.remaining() == payloadLength) {
                // We have the whole content, no need to copy.
                frame.setPayload(window);
                return true;
            } else {
                if (payload == null) {
                    payload = BufferUtils.allocate(payloadLength);
                    BufferUtils.clearToFill(payload);
                }
                // Copy the payload.
                payload.put(window);

                if (payload.position() == payloadLength) {
                    BufferUtils.flipToFlush(payload, 0);
                    frame.setPayload(payload);
                    return true;
                }
            }
        }
        return false;
    }
891374
def from_payload(self, payload):
        """"""
        self.session_id = payload[0]*256 + payload[1]
        self.index_id = payload[2]
        self.node_parameter = payload[3]
        self.seconds = payload[4]*256 + payload[5]
1297551
def return_payload
      @value = @raw.map do |e|
        { name: e['Name'],
          payload: (Base64.decode64(e['Payload']) unless e['Payload'].nil?) }
      end
    end
264869
private void parseValue() {
        ChannelBuffer content = this.request.getContent();
        this.parsedValue = new byte[content.capacity()];
        content.readBytes(parsedValue);
    }
1017413
protected function _payload()
    {
        $results = array();
        foreach( $this->Parameters as $key => $val )
        {
            if ( is_array( $val ) )
            {
                foreach ( $val as $vkey => $vval )
                {
                    $results[] = urlencode( $key ) . '[' . urlencode( $vkey ) . ']=' . urlencode( $vval );
                }
            }
            else
            {
                $results[] = urlencode( $key ) . '=' . urlencode( $val );
            }
        }
        return implode( '&', $results );
    }
1107657
def decode(self, byteStream):
        """"""
        self.header = bytearray(byteStream[:HEADER_SIZE])
        self.payload = byteStream[HEADER_SIZE:]
797397
def from_payload(self, payload):
        """"""
        self.session_id = payload[0]*256 + payload[1]
        self.originator = Originator(payload[2])
        self.priority = Priority(payload[3])
        self.scene_id = payload[4]
        self.velocity = Velocity(payload[5])
910028
def post_parse(self, uri, params={}, data={}):
        '''
        '''
        return self._request_parse(self.post, uri, params, data)
676681
def get_action_meanings(self):
        """"""
        actions = sorted(self._action_meanings.keys())
        return [self._action_meanings[action] for action in actions]
255776
def process_action(ctx, param, value):
    """"""
    actions = current_app.extensions['invenio-access'].actions
    if value not in actions:
        raise click.BadParameter('Action "%s" is not registered.', value)
    return actions[value]
102771
def action(self, target, message, formatted=True, tags=None):
        """"""
        if formatted:
            message = unescape(message)

        self.ctcp(target, 'ACTION', message)