Examples of duplicate()


Examples of com.sun.grizzly.util.buf.MessageBytes.duplicate()

        }

        // URI decoding
        MessageBytes decodedURI = req.decodedURI();
        if (compatWithTomcat || !v3Enabled) {          
            decodedURI.duplicate(req.requestURI());
            try {
              req.getURLDecoder().convert(decodedURI, false);
            } catch (IOException ioe) {
              res.setStatus(400);
              res.setMessage("Invalid URI: " + ioe.getMessage());
View Full Code Here

Examples of de.willuhn.jameica.hbci.rmi.Duplicatable.duplicate()

      throw new ApplicationException(i18n.tr("Keine zu duplizierenden Daten angegeben"));

    try {
      Duplicatable o = (Duplicatable) context;
      Application.getMessagingFactory().sendMessage(new StatusBarMessage(i18n.tr("Dupliziert"),StatusBarMessage.TYPE_SUCCESS));
      new Open().handleAction(o.duplicate());
    }
    catch (RemoteException e)
    {
      Logger.error("error while duplicating object",e);
      GUI.getStatusBar().setErrorText(i18n.tr("Fehler beim Duplizieren"));
View Full Code Here

Examples of evolaris.framework.um.business.UserSetManager.duplicate()

      String reallyDuplicate2 = getResources(req).getMessage(locale,"um.reallyDuplicate2");
      req.setAttribute("generalError",reallyDuplicate1 + " " + originalUserSet.getUsers().size() + " " + reallyDuplicate2);
      return mapping.findForward("confirm");
    }
    userSetEnterOrEditForm.setConfirmationPending(false);
    UserSet newUserSet = userSetManager.duplicate(originalUserSet,group,userSetEnterOrEditForm.getUserSetName(),includeUserAssignments);
    checkAccessRights(req, newUserSet.getGroup());
    newUserSet.setDescription(userSetEnterOrEditForm.getDescription());
    newUserSet.setHidden(userSetEnterOrEditForm.getHidden()==true?1:0);
    userSetManager.modifyUserSet(newUserSet);
    setCurrentGroup(req, resp, group); // switch group in global group selection
View Full Code Here

Examples of io.netty.buffer.ByteBuf.duplicate()

        DiskFileUpload upload = new DiskFileUpload(getName(),
                getFilename(), getContentType(), getContentTransferEncoding(), getCharset(), size);
        ByteBuf buf = content();
        if (buf != null) {
            try {
                upload.setContent(buf.duplicate());
            } catch (IOException e) {
                throw new ChannelException(e);
            }
        }
        return upload;
View Full Code Here

Examples of io.netty.buffer.ChannelBuffer.duplicate()

        Map<Integer, ChannelFuture> futures =
            new LinkedHashMap<Integer, ChannelFuture>(size());
        if (message instanceof ChannelBuffer) {
            ChannelBuffer buf = (ChannelBuffer) message;
            for (Channel c: nonServerChannels.values()) {
                futures.put(c.getId(), c.write(buf.duplicate()));
            }
        } else {
            for (Channel c: nonServerChannels.values()) {
                futures.put(c.getId(), c.write(message));
            }
View Full Code Here

Examples of java.nio.ByteBuffer.duplicate()

                    ByteBuffer tmp = (ByteBuffer) this._receiverInfo.getAttachment();
                    if ( tmp.position() > 0 )
                    {
                        tmp.flip();
                    }
                    dataBuf = tmp.duplicate();
                    ByteBufferAllocator.collect( tmp );
                }

                if ( dataBuf.position() > 0 )
                {
View Full Code Here

Examples of java.nio.ByteBuffer.duplicate()

          ByteBuffer cachedBuf = cache.getBlock(name + block);
          if (cachedBuf != null) {
            // Return a distinct 'copy' of the block, so pos doesnt get messed by
            // the scanner
            cacheHits++;
            return cachedBuf.duplicate();
          }
          // Carry on, please load.
        }

        // Load block from filesystem.
View Full Code Here

Examples of java.nio.ByteBuffer.duplicate()

        readTime += System.currentTimeMillis() - now;
        readOps++;

        // Cache the block
        if(cacheBlock && cache != null) {
          cache.cacheBlock(name + block, buf.duplicate(), inMemory);
        }

        return buf;
      }
    }
View Full Code Here

Examples of java.nio.ByteBuffer.duplicate()

            payload.flip();
        }

        if(queueEntry.getDeliveryCount() != 0)
        {
            payload = payload.duplicate();
            ValueHandler valueHandler = new ValueHandler(_typeRegistry);

            Header oldHeader = null;
            try
            {
View Full Code Here

Examples of java.nio.ByteBuffer.duplicate()

        {
            buf = encodeAsBuffer();
            _encoded = buf;
        }

        buf = buf.duplicate();

        buf.position(offsetInMetaData);

        if(dest.remaining() < buf.limit())
        {
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.