Tabnine Logo
MuxPhysicalConnectionException.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.eclipse.jetty.websocket.common.extensions.mux.MuxPhysicalConnectionException
constructor

Best Java code snippets using org.eclipse.jetty.websocket.common.extensions.mux.MuxPhysicalConnectionException.<init> (Showing top 10 results out of 315)

origin: com.ovea.tajin.server/tajin-server-jetty9

public MuxChannel getChannel(long channelId, boolean create)
{
  if (channelId == CONTROL_CHANNEL_ID)
  {
    throw new MuxPhysicalConnectionException(MuxDropChannel.Reason.UNKNOWN_MUX_CONTROL_BLOCK,"Invalid Channel ID");
  }
  MuxChannel channel = channels.get(channelId);
  if (channel == null)
  {
    if (create)
    {
      channel = new MuxChannel(channelId,this);
      channels.put(channelId,channel);
    }
    else
    {
      throw new MuxPhysicalConnectionException(MuxDropChannel.Reason.UNKNOWN_MUX_CONTROL_BLOCK,"Unknown Channel ID");
    }
  }
  return channel;
}
origin: com.ovea.tajin.servers/tajin-server-jetty9

public MuxChannel getChannel(long channelId, boolean create)
{
  if (channelId == CONTROL_CHANNEL_ID)
  {
    throw new MuxPhysicalConnectionException(MuxDropChannel.Reason.UNKNOWN_MUX_CONTROL_BLOCK,"Invalid Channel ID");
  }
  MuxChannel channel = channels.get(channelId);
  if (channel == null)
  {
    if (create)
    {
      channel = new MuxChannel(channelId,this);
      channels.put(channelId,channel);
    }
    else
    {
      throw new MuxPhysicalConnectionException(MuxDropChannel.Reason.UNKNOWN_MUX_CONTROL_BLOCK,"Unknown Channel ID");
    }
  }
  return channel;
}
origin: com.ovea.tajin.server/tajin-server-jetty9

/**
 * Incoming parser errors
 */
@Override
public void incomingError(WebSocketException e)
{
  MuxDropChannel.Reason reason = MuxDropChannel.Reason.PHYSICAL_CONNECTION_FAILED;
  String phrase = String.format("%s: %s", e.getClass().getName(), e.getMessage());
  mustFailPhysicalConnection(new MuxPhysicalConnectionException(reason,phrase));
}
origin: com.ovea.tajin.servers/tajin-server-jetty9

/**
 * Incoming parser errors
 */
@Override
public void incomingError(WebSocketException e)
{
  MuxDropChannel.Reason reason = MuxDropChannel.Reason.PHYSICAL_CONNECTION_FAILED;
  String phrase = String.format("%s: %s", e.getClass().getName(), e.getMessage());
  mustFailPhysicalConnection(new MuxPhysicalConnectionException(reason,phrase));
}
origin: com.ovea.tajin.servers/tajin-server-jetty9

/**
 * Incoming mux control block, destined for the control channel (id 0)
 */
@Override
public void onMuxNewChannelSlot(MuxNewChannelSlot slot)
{
  if (policy.getBehavior() == WebSocketBehavior.SERVER)
  {
    throw new MuxPhysicalConnectionException(MuxDropChannel.Reason.UNKNOWN_MUX_CONTROL_BLOCK,"NewChannelSlot not allowed per spec");
  }
  if (slot.isFallback())
  {
    if (slot.getNumberOfSlots() == 0)
    {
      throw new MuxPhysicalConnectionException(MuxDropChannel.Reason.UNKNOWN_MUX_CONTROL_BLOCK,"Cannot have 0 number of slots during fallback");
    }
    if (slot.getInitialSendQuota() == 0)
    {
      throw new MuxPhysicalConnectionException(MuxDropChannel.Reason.UNKNOWN_MUX_CONTROL_BLOCK,"Cannot have 0 initial send quota during fallback");
    }
  }
  // TODO: handle channel slot
}
origin: com.ovea.tajin.server/tajin-server-jetty9

/**
 * Incoming mux control block, destined for the control channel (id 0)
 */
@Override
public void onMuxNewChannelSlot(MuxNewChannelSlot slot)
{
  if (policy.getBehavior() == WebSocketBehavior.SERVER)
  {
    throw new MuxPhysicalConnectionException(MuxDropChannel.Reason.UNKNOWN_MUX_CONTROL_BLOCK,"NewChannelSlot not allowed per spec");
  }
  if (slot.isFallback())
  {
    if (slot.getNumberOfSlots() == 0)
    {
      throw new MuxPhysicalConnectionException(MuxDropChannel.Reason.UNKNOWN_MUX_CONTROL_BLOCK,"Cannot have 0 number of slots during fallback");
    }
    if (slot.getInitialSendQuota() == 0)
    {
      throw new MuxPhysicalConnectionException(MuxDropChannel.Reason.UNKNOWN_MUX_CONTROL_BLOCK,"Cannot have 0 initial send quota during fallback");
    }
  }
  // TODO: handle channel slot
}
origin: com.ovea.tajin.server/tajin-server-jetty9

throw new MuxPhysicalConnectionException(MuxDropChannel.Reason.UNKNOWN_MUX_CONTROL_BLOCK,"AddChannelResponse not allowed per spec");
throw new MuxPhysicalConnectionException(MuxDropChannel.Reason.UNKNOWN_RESPONSE_ENCODING,"RSV Not allowed to be set");
throw new MuxPhysicalConnectionException(MuxDropChannel.Reason.BAD_RESPONSE,"Unable to parse response",t);
origin: com.ovea.tajin.servers/tajin-server-jetty9

throw new MuxPhysicalConnectionException(MuxDropChannel.Reason.UNKNOWN_MUX_CONTROL_BLOCK,"AddChannelResponse not allowed per spec");
throw new MuxPhysicalConnectionException(MuxDropChannel.Reason.UNKNOWN_RESPONSE_ENCODING,"RSV Not allowed to be set");
throw new MuxPhysicalConnectionException(MuxDropChannel.Reason.BAD_RESPONSE,"Unable to parse response",t);
origin: com.ovea.tajin.server/tajin-server-jetty9

throw new MuxPhysicalConnectionException(MuxDropChannel.Reason.UNKNOWN_MUX_CONTROL_BLOCK,"AddChannelRequest not allowed per spec");
throw new MuxPhysicalConnectionException(MuxDropChannel.Reason.UNKNOWN_REQUEST_ENCODING,"RSV Not allowed to be set");
    throw new MuxPhysicalConnectionException(MuxDropChannel.Reason.BAD_REQUEST,"Unrecognized request encoding");
throw new MuxPhysicalConnectionException(MuxDropChannel.Reason.BAD_REQUEST,"Unable to parse request",t);
origin: com.ovea.tajin.servers/tajin-server-jetty9

throw new MuxPhysicalConnectionException(MuxDropChannel.Reason.UNKNOWN_MUX_CONTROL_BLOCK,"AddChannelRequest not allowed per spec");
throw new MuxPhysicalConnectionException(MuxDropChannel.Reason.UNKNOWN_REQUEST_ENCODING,"RSV Not allowed to be set");
    throw new MuxPhysicalConnectionException(MuxDropChannel.Reason.BAD_REQUEST,"Unrecognized request encoding");
throw new MuxPhysicalConnectionException(MuxDropChannel.Reason.BAD_REQUEST,"Unable to parse request",t);
org.eclipse.jetty.websocket.common.extensions.muxMuxPhysicalConnectionException<init>

Popular methods of MuxPhysicalConnectionException

  • getMuxDropChannel

Popular in Java

  • Start an intent from android
  • getExternalFilesDir (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • ImageIO (javax.imageio)
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now