Examples of Wrapper


Examples of org.apache.tomcat.Wrapper

     * @param name Name of the servlet for which a dispatcher is requested
     */
    public RequestDispatcher getNamedDispatcher(String name) {

  // Identify the Wrapper for the specified servlet, if any
  Wrapper wrapper = (Wrapper) context.findChild(name);
  if (wrapper == null)
      return (null);

  // Create and return a corresponding request dispatcher
  return (null)// FIXME - getNamedDispatcher()
View Full Code Here

Examples of org.bouncycastle.crypto.Wrapper

        byte[]  kek,
        byte[]  iv,
        byte[]  in,
        byte[]  out)
    {
        Wrapper wrapper = new DESedeWrapEngine();

        wrapper.init(true, new ParametersWithIV(new KeyParameter(kek), iv));

        try
        {
            byte[]  cText = wrapper.wrap(in, 0, in.length);
            if (!Arrays.areEqual(cText, out))
            {
                return new SimpleTestResult(false, getName() + ": failed wrap test " + id  + " expected " + new String(Hex.encode(out)) + " got " + new String(Hex.encode(cText)));
            }
        }
        catch (Exception e)
        {
            return new SimpleTestResult(false, getName() + ": failed wrap test exception " + e.toString());
        }

        wrapper.init(false, new KeyParameter(kek));

        try
        {
            byte[]  pText = wrapper.unwrap(out, 0, out.length);
            if (!Arrays.areEqual(pText, in))
            {
                return new SimpleTestResult(false, getName() + ": failed unwrap test " + id  + " expected " + new String(Hex.encode(in)) + " got " + new String(Hex.encode(pText)));
            }
        }
View Full Code Here

Examples of org.codehaus.groovy.runtime.wrappers.Wrapper

     * Unwraps a {@link Wrapper}.
     * This method is called by the handle to unwrap a Wrapper, which
     * we use to force method selection.
     */
    public static Object unwrap(Object o) {
        Wrapper w = (Wrapper) o;
        return w.unwrap();
    }
View Full Code Here

Examples of org.foray.fotree.fo.obj.Wrapper

        }
        case TITLE: {
            return new Title(parent, propertyList);
        }
        case WRAPPER: {
            return new Wrapper(parent, propertyList);
        }
        default: {
            return null;
        }
        }
View Full Code Here

Examples of org.jboss.seam.remoting.wrapper.Wrapper

         }
         else
         {
            Element value = (Element) element.elements().get(0);

            Wrapper w = WrapperFactory.getInstance().createWrapper(
                  value.getQualifiedName(), beanManager);
            w.setElement(value);
            w.setCallContext(this);
            inRefs.put(element.attributeValue("id"), w);
            return w;
         }
      }
      else
      {
         Wrapper w = WrapperFactory.getInstance().createWrapper(
               element.getQualifiedName(), beanManager);
         w.setElement(element);
         w.setCallContext(this);
         return w;
      }
   }
View Full Code Here

Examples of org.jemmy.control.Wrapper

        fillAll(descr, rootNode, null);
    }

    private void fillAll(HierarchyDescriptor subDescr, DefaultMutableTreeNode parent, Wrap wrap) {
        ControlList hierarchy = subDescr.getHierarchy();
        Wrapper wrapper = subDescr.getWrapper();
        List controls = null;
        if (wrap == null) {
            controls = hierarchy.getControls();
        } else {
            if (hierarchy instanceof ControlHierarchy) {
                controls = ((ControlHierarchy) hierarchy).getChildren(wrap.getControl());
            }
        }
        MyTreeNode node;
        if (controls != null) {
            for (Object c : controls) {
                node = new MyTreeNode(c, wrapper.wrap(Object.class, c));
                parent.add(node);
                fillAll(subDescr, node, node.getWrap());
            }
        }
        if (wrap != null) {
View Full Code Here

Examples of org.mozilla.javascript.Wrapper

     *  interface, the getPrototype method will be used to retrieve the name of the prototype
     * to use. Otherwise, a Java-Class-to-Script-Prototype mapping is consulted.
     */
    public Scriptable getElementWrapper(Object e) {
        WeakReference ref = (WeakReference) wrappercache.get(e);
        Wrapper wrapper = ref == null ? null : (Wrapper) ref.get();

        if (wrapper == null || wrapper.unwrap() != e) {
            // Gotta find out the prototype name to use for this object...
            String prototypeName = app.getPrototypeName(e);
            Scriptable op = getPrototype(prototypeName);

            if (op == null) {
View Full Code Here

Examples of org.mozilla.javascript.Wrapper

                // if wrong type
                Scriptable s = (Scriptable)jsResp;
                Object out = ScriptableObject.callMethod(s,
                                                         "getXmlObject",
                                                         Context.emptyArgs);
                Wrapper wrapped = (Wrapper)out;
                XmlObject xml = (XmlObject)wrapped.unwrap();
                node = xml.getDomNode();
                response.setNode(node.getOwnerDocument());
            } else {
                if (jsResp instanceof Wrapper) {
                    jsResp = ((Wrapper)jsResp).unwrap();
View Full Code Here

Examples of org.openoffice.gdocs.util.Wrapper

            syncTimer = new Timer();
            TimerTask task = new TimerTask() {
                @Override
                public void run() {
                    Set<FileInfo> setToWork = Collections.synchronizedSet(setOfFiles);
                    Wrapper wrapper = WrapperFactory.getWrapperForCredentials(WrapperFactory.GOOGLE_DOCS);
                    boolean needToUpdateList = false;
                    for (FileInfo fi:setToWork) {
                        File file = new File(fi.getfName());
                        boolean update = false;
                        if (fi.getLastModified()!=file.lastModified()) update = true;
                        if (fi.getLength()!=file.length()) update = true;
                        if (update) {
                            log.add("need to update file "+fi.getfName()+" with docID="+fi.getDocumentLink()+" with mimeType="+fi.getFormat().getMimeType());
                            needToUpdateList=true;
                            try {
                                wrapper.update(fi.getfName(),fi.getDocumentLink(),fi.getFormat().getMimeType());
                                fi.setLastModified(file.lastModified());
                                fi.setLength(file.length());
                                log.add("updated!");
                            } catch (Exception e) {
                                log(e);
                            }

                        }
                    }
                    if (needToUpdateList) {
                        try {
                            wrapper.getListOfDocs(false);
                        } catch (Exception ex) {
                            log(ex);
                        }
                    }
                }
View Full Code Here

Examples of org.springframework.data.gemfire.repository.Wrapper

  @Test
  public void testSaveWrapper() {
    Animal dog = createAnimal(1l, "dog");

    Wrapper dogWrapper = new Wrapper(dog, dog.getId());

    Region<Long, Animal> mockRegion = mock(Region.class, "testSaveWrapper");

    SimpleGemfireRepository<Animal, Long> repository = new SimpleGemfireRepository<Animal, Long>(
      createGemfireTemplate(mockRegion), mockEntityInformation());
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.