Examples of Bind


Examples of org.jsmpp.bean.Bind

            fail("Should throw IllegalStateException");
        }
    }
   
    private static final Bind dummyBind() {
        Bind bind = new Bind();
        bind.setCommandId(BindType.BIND_RX.commandId());
        bind.setInterfaceVersion(InterfaceVersion.IF_34.value());
        return bind;
    }
View Full Code Here

Examples of org.jsmpp.bean.Bind

     * (non-Javadoc)
     *
     * @see org.jsmpp.util.PDUDecomposer#bind(byte[])
     */
    public Bind bind(byte[] b) throws PDUStringException {
        Bind req = new Bind();
        SequentialBytesReader reader = new SequentialBytesReader(b);
        assignHeader(req, reader);
        req.setSystemId(reader.readCString());
        StringValidator.validateString(req.getSystemId(),
                StringParameter.SYSTEM_ID);
        req.setPassword(reader.readCString());
        StringValidator.validateString(req.getPassword(),
                StringParameter.PASSWORD);
        req.setSystemType(reader.readCString());
        StringValidator.validateString(req.getSystemType(),
                StringParameter.SYSTEM_TYPE);
        req.setInterfaceVersion(reader.readByte());
        req.setAddrTon(reader.readByte());
        req.setAddrNpi(reader.readByte());
        req.setAddressRange(reader.readCString());
        StringValidator.validateString(req.getAddressRange(),
                StringParameter.ADDRESS_RANGE);
        return req;
    }
View Full Code Here

Examples of org.jsmpp.bean.Bind

   
    public void processBind(Command pduHeader, byte[] pdu,
            ServerResponseHandler responseHandler) throws IOException {
       
        try {
            Bind bind = pduDecomposer.bind(pdu);
            responseHandler.processBind(bind);
            //responseHandler.sendBindResp(BindType.valueOf(pduHeader.getCommandId()), pduHeader.getSequenceNumber());
        } catch (PDUStringException e) {
            responseHandler.sendNegativeResponse(pduHeader.getCommandId(), e.getErrorCode(), pduHeader.getSequenceNumber());
        } catch (IllegalArgumentException e) {
View Full Code Here

Examples of quickdb.date200912.model.Bind

        System.out.println("testReferenceNull");
        this.testReferenceNull();
    }

    public void testBinding(){
        Bind b = new Bind();
        Bind2 b2 = new Bind2();

        b.setDescription("description");
        b2.setName("name binding2");

        System.out.println(b.save());
        System.out.println(b2.save());

        Bind bind = new Bind();
        admin.obtain(bind, "description = 'description'");
        System.out.println("description".equalsIgnoreCase(bind.getDescription()));
        Bind2 bind2 = new Bind2();
        admin.obtain(bind2, "name = 'name binding2'");
        System.out.println("name binding2".equalsIgnoreCase(bind2.getName()));
    }
View Full Code Here

Examples of railo.runtime.interpreter.ref.var.Bind

            }
        }
        if(ref instanceof railo.runtime.interpreter.ref.var.Scope) {
            railo.runtime.interpreter.ref.var.Scope s=(railo.runtime.interpreter.ref.var.Scope)ref;
            if(s.getScope()==Scope.SCOPE_ARGUMENTS || s.getScope()==Scope.SCOPE_LOCAL || s.getScope()==ScopeSupport.SCOPE_VAR) {
                ref=new Bind(s);
            }
        }
        return ref;
    }
View Full Code Here

Examples of rocks.xmpp.core.bind.model.Bind

            } finally {
                lock.unlock();
            }
        }
        // Bind the resource
        IQ iq = new IQ(IQ.Type.SET, new Bind(this.resource));
        IQ result;
        try {
            result = query(iq);
        } catch (StanzaException e) {
            LoginException loginException = new LoginException("Error during resource binding: " + e.getStanza().toString());
            loginException.initCause(e);
            throw loginException;
        } catch (XmppException e) {
            LoginException loginException = new LoginException(e.getMessage());
            loginException.initCause(e);
            throw loginException;
        }

        Bind bindResult = result.getExtension(Bind.class);
        this.connectedResource = bindResult.getJid();

        // Deprecated method of session binding, according to the <a href="http://xmpp.org/rfcs/rfc3921.html#session">old specification</a>
        // This is no longer used, according to the <a href="http://xmpp.org/rfcs/rfc6120.html">updated specification</a>.
        // But some old server implementation still require it.
        if (streamFeaturesManager.getFeatures().containsKey(Session.class)) {
View Full Code Here

Examples of rogatkin.app.remote.bind

      Iterator<Map.Entry<String, Object>> i = narrowLocal(filter);
      ArrayList<bind> resBinds = new ArrayList<bind>(directory.size());
      while (i.hasNext()) {
        Map.Entry<String, Object> e = i.next();
        if (e.getValue() instanceof org.omg.CORBA.Object)
          resBinds.add(new bind(e.getKey(), (org.omg.CORBA.Object) e.getValue()));
      }
      binds.value = (bind[]) resBinds.toArray(new bind[resBinds.size()]);
    }
View Full Code Here

Examples of rogatkin.app.remote.bind

        if (i != null) {
          Map.Entry<String, Object> e = i.next();
          return createEntry(e.getKey(), e.getValue());
        }
        if (remoteBinds != null) {
          bind b = remoteBinds[bi];
          bi++;
          return createEntry(b.name, b.o);
        }
      }
      throw new NoSuchElementException();
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.