Examples of sendStatus()


Examples of com.sun.grizzly.http.SocketChannelOutputBuffer.sendStatus()

        headers.setValue(LoadBalancerProxyConstants.CONTENT_LENGTH_HEADER)
                .setInt(
                LoadBalancerProxyConstants.SERVICE_UNAVAILABLE_LENGTH);
        headers.setValue(LoadBalancerProxyConstants.CONTENT_TYPE_HEADER)
                .setString("text/html");
        outputBuffer.sendStatus();
        int size = headers.size();
        for (int i = 0; i < size; i++) {
            outputBuffer.sendHeader(headers.getName(i), headers.getValue(i));
        }
        outputBuffer.endHeaders();
View Full Code Here

Examples of com.sun.grizzly.http.SocketChannelOutputBuffer.sendStatus()

            headers.setValue(LoadBalancerProxyConstants.SERVER_HEADER)
                    .setString(SelectorThread.SERVER_NAME);
        }

        // Build the response header
        outputBuffer.sendStatus();

        int size = headers.size();

        for (int i = 0; i < size; i++) {
            outputBuffer.sendHeader(headers.getName(i), headers.getValue(i));
View Full Code Here

Examples of org.red5.server.net.rtmp.Channel.sendStatus()

      s.setDesciption(description);
      s.setDetails(name);
      s.setLevel(status);
      // get the channel
      Channel channel = ((RTMPConnection) conn).getChannel((byte) (4 + ((streamId - 1) * 5)));
      channel.sendStatus(s);
    } else {
      throw new RuntimeException("Connection is not RTMPConnection: " + conn);
    }
  }

View Full Code Here

Examples of org.red5.server.net.rtmp.Channel.sendStatus()

      badName.setDetails(name);
      badName.setLevel("error");

      // FIXME: there should be a direct way to send the status
      Channel channel = ((RTMPConnection) streamConn).getChannel((byte) (4 + ((streamId-1) * 5)));
      channel.sendStatus(badName);
      return;
    }

    IClientStream stream = streamConn.getStreamById(streamId);
    if (stream != null && !(stream instanceof IClientBroadcastStream)) {
View Full Code Here

Examples of org.red5.server.net.rtmp.Channel.sendStatus()

      accessDenied.setDetails(name);
      accessDenied.setLevel("error");

      // FIXME: there should be a direct way to send the status
      Channel channel = ((RTMPConnection) streamConn).getChannel((byte) (4 + ((streamId-1) * 5)));
      channel.sendStatus(accessDenied);
      bs.close();
      if (created)
        streamConn.deleteStreamById(streamId);
      return;
    } catch (Exception e) {
View Full Code Here

Examples of org.red5.server.net.rtmp.Channel.sendStatus()

      seekFailed.setDesciption("The stream doesn't support seeking.");
      seekFailed.setLevel("error");

      // FIXME: there should be a direct way to send the status
      Channel channel = ((RTMPConnection) streamConn).getChannel((byte) (4 + ((streamId-1) * 5)));
      channel.sendStatus(seekFailed);
    }
  }

  /** {@inheritDoc} */
    public void receiveVideo(boolean receive) {
View Full Code Here

Examples of org.red5.server.net.rtmp.Channel.sendStatus()

    failed.setDetails(name);
    failed.setLevel("error");

    // FIXME: there should be a direct way to send the status
    Channel channel = conn.getChannel((byte) (4 + ((streamId-1) * 5)));
    channel.sendStatus(failed);
    }
   
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.