Examples of code()


Examples of org.fusesource.mqtt.codec.CONNACK.code()

                if (response.isException()) {
                    // If the connection attempt fails we close the socket.
                    Throwable exception = ((ExceptionResponse) response).getException();
                    //let the client know
                    CONNACK ack = new CONNACK();
                    ack.code(CONNACK.Code.CONNECTION_REFUSED_SERVER_UNAVAILABLE);
                    getMQTTTransport().sendToMQTT(ack.encode());
                    getMQTTTransport().onException(IOExceptionSupport.create(exception));
                    return;
                }
View Full Code Here

Examples of org.fusesource.mqtt.codec.CONNACK.code()

                        if (response.isException()) {
                            // If the connection attempt fails we close the socket.
                            Throwable exception = ((ExceptionResponse) response).getException();
                            CONNACK ack = new CONNACK();
                            ack.code(CONNACK.Code.CONNECTION_REFUSED_BAD_USERNAME_OR_PASSWORD);
                            getMQTTTransport().sendToMQTT(ack.encode());
                            getMQTTTransport().onException(IOExceptionSupport.create(exception));
                        }

                        CONNACK ack = new CONNACK();
View Full Code Here

Examples of org.fusesource.mqtt.codec.CONNACK.code()

                            getMQTTTransport().sendToMQTT(ack.encode());
                            getMQTTTransport().onException(IOExceptionSupport.create(exception));
                        }

                        CONNACK ack = new CONNACK();
                        ack.code(CONNACK.Code.CONNECTION_ACCEPTED);
                        connected.set(true);
                        getMQTTTransport().sendToMQTT(ack.encode());

                    }
                });
View Full Code Here

Examples of org.glassfish.grizzly.compression.lzma.impl.Encoder.code()

            // to achieve parity with the encoder's properties.
            encoder.writeCoderProperties(outputState.getDst());
            outputState.setHeaderWritten(true);
        }

        encoder.code(outputState, -1, -1);
        dst = outputState.getDst();
        int len = dst.position();
        if (len <= 0) {
            dst.dispose();
            return null;
View Full Code Here

Examples of org.jboss.managed.api.annotation.ManagementObjectClass.code()

         {
            Annotation ann = amd.getAnnotationInstance();
            if(ann instanceof ManagementObjectClass)
            {
               ManagementObjectClass moc = (ManagementObjectClass) ann;
               mocClass = moc.code();
               log.debug("Saw ManagementObjectClass, "+mocClass+" for bean: "+attachment);
               break;
            }
         }
      }
View Full Code Here

Examples of org.jeecgframework.core.annotation.config.AutoMenuOperation.code()

          for(Method method : methods){
            //判断当前方法是否设置了菜单操作按钮注解
            if (method.isAnnotationPresent(AutoMenuOperation.class)) {
              AutoMenuOperation autoMenuOperation = method.getAnnotation(AutoMenuOperation.class);
              //操作码必须填写,否则不进行菜单操作按钮的匹配
              if (StringUtil.isNotEmpty(autoMenuOperation.code())) {
                StringBuffer menuOperationKey = new StringBuffer();
                menuOperationKey.append(function == null ? "" : function.getId());
                menuOperationKey.append(KEY_SPLIT);
               
                String code = "";
View Full Code Here

Examples of org.jnetpcap.protocol.network.Icmp.code()

    assertTrue(packet.hasHeader(Udp.ID));
    assertTrue(packet.hasHeader(Payload.ID));

    // Check specific values
    assertEquals(3, icmp.type());
    assertEquals(3, icmp.code());
    assertEquals(0x2731, icmp.checksum());
    assertEquals(0, unreach.reserved());

    assertEquals(0x8724, ip.checksum());
    assertEquals(440, ip.length());
View Full Code Here

Examples of org.jnetpcap.protocol.network.Icmp.code()

    assertTrue(packet.hasHeader(Ip4.ID));
    assertTrue(packet.hasHeader(icmp));
    assertTrue(icmp.hasSubHeader(echo));

    assertEquals(8, icmp.type());
    assertEquals(0, icmp.code());
    assertEquals(0x10FD, icmp.checksum());

    assertEquals(0xd001, echo.id());
    assertEquals(0x811e, echo.sequence());
View Full Code Here

Examples of org.jnetpcap.protocol.network.Icmp.code()

    @SuppressWarnings("unused")
    TextFormatter out = new TextFormatter();
//    out.format(echo, Detail.MULTI_LINE_FULL_DETAIL);

    assertEquals(0, icmp.type());
    assertEquals(0, icmp.code());
    assertEquals(0x18FD, icmp.checksum());

    assertEquals(0xd001, echo.id());
    assertEquals(0x811e, echo.sequence());
View Full Code Here

Examples of org.jquantlib.currencies.Europe.CHFCurrency.code()

        //Sample Currency - CHF
        final CHFCurrency chf = new CHFCurrency();

        QL.info("testing correct initialization...");
        assertTrue(chf.name().equalsIgnoreCase("Swiss franc"));
        assertTrue(chf.code().equalsIgnoreCase("CHF"));
        assertEquals(chf.numericCode(),756);
        assertTrue(chf.symbol().equalsIgnoreCase("SwF"));
        assertTrue(chf.fractionSymbol().equalsIgnoreCase(""));
        assertEquals(chf.fractionsPerUnit(),100);
        assertEquals(chf.rounding().type(), Rounding.Type.None);
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.