congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
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

  • Reading from database using SQL prepared statement
  • setContentView (Activity)
  • compareTo (BigDecimal)
  • requestLocationUpdates (LocationManager)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Runner (org.openjdk.jmh.runner)
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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