Examples of recycle()


Examples of org.apache.commons.httpclient.methods.PostMethod.recycle()

        }
        assertEquals(200,method.getStatusCode());
        assertTrue(method.getResponseBodyAsString().indexOf("<title>BasicAuth Servlet: POST</title>") >= 0);
        assertTrue(method.getResponseBodyAsString().indexOf("<p>You have authenticated as \"jakarta:commons\"</p>") >= 0);

        method.recycle();
        method.setPath("/" + context + "/auth/basic");
        method.addParameter("testing","one");
        try {
            client.executeMethod(method);
        } catch (Throwable t) {
View Full Code Here

Examples of org.apache.commons.httpclient.methods.PutMethod.recycle()

        }
        assertEquals(200,method.getStatusCode());
        assertTrue(method.getResponseBodyAsString().indexOf("<title>BasicAuth Servlet: PUT</title>") >= 0);
        assertTrue(method.getResponseBodyAsString().indexOf("<p>You have authenticated as \"jakarta:commons\"</p>") >= 0);

        method.recycle();
        method.setPath("/" + context + "/auth/basic");
        try {
            client.executeMethod(method);
        } catch (Throwable t) {
            t.printStackTrace();
View Full Code Here

Examples of org.apache.commons.httpclient.methods.TraceMethod.recycle()

        } catch (Throwable t) {
            t.printStackTrace();
            fail("Unable to execute method : " + t.toString());
        }

        method.recycle();
        method.setPath("/");

        try {
            client.executeMethod(method);
        } catch (Throwable t) {
View Full Code Here

Examples of org.apache.flex.forks.velocity.io.VelocityWriter.recycle()

                                                               encoding),
                                        4 * 1024, true);
            }
            else
            {
                vw.recycle(new OutputStreamWriter(output, encoding));
            }
          
            template.merge(context, vw);
        }
        finally
View Full Code Here

Examples of org.apache.mina.common.IoSessionRecycler.recycle()

        RegistrationRequest req = (RegistrationRequest) key.attachment();
        IoSession session;
        IoSessionRecycler sessionRecycler = getSessionRecycler(req);
        synchronized (sessionRecycler) {
            session = sessionRecycler.recycle(localAddress, remoteAddress);
            if (session != null) {
                return session;
            }

            // If a new session needs to be created.
View Full Code Here

Examples of org.apache.mina.core.session.IoSessionRecycler.recycle()

        IoSession session;
        IoSessionRecycler sessionRecycler = getSessionRecycler();
       
        synchronized (sessionRecycler) {
            session = sessionRecycler.recycle(localAddress, remoteAddress);
           
            if (session != null) {
                return session;
            }
View Full Code Here

Examples of org.apache.sis.xml.MarshallerPool.recycle()

        final MarshallerPool pool = getMarshallerPool();
        final Unmarshaller unmarshaller = pool.acquireUnmarshaller();
        unmarshaller.setProperty(XML.GML_VERSION, version);
        final DefaultVerticalDatum datum =
                (DefaultVerticalDatum) unmarshaller.unmarshal(getClass().getResource(GML31_FILE));
        pool.recycle(unmarshaller);
        /*
         * Following attribute exists in GML 3.1 only.
         */
        assertEquals("vertDatumType", VerticalDatumType.GEOIDAL, datum.getVerticalDatumType());
        /*
 
View Full Code Here

Examples of org.apache.tomcat.core.Response.recycle()

      req=(Ajp14Request)thData[0];
  }
  if( req != null ) {
      Response res=req.getResponse();
      req.recycle();
      res.recycle();
      // make the note available to other modules
      req.setNote( ajp14_note, req.ajp13);
      return req;
  }
  // either thData==null or broken ( req==null)
View Full Code Here

Examples of org.apache.tomcat.core.ServerSession.recycle()

      // This shouldn't happen ( maybe we can try again ? )
      ServerSession oldS=findSession( newId );
      if( oldS!=null) {
    // that's what the original code did
    oldS.setState( ServerSession.STATE_EXPIRED );
    oldS.recycle();
    oldS.setState( ServerSession.STATE_INVALID );
      }
      sessions.put( newId, session );
      return (session);
  }
View Full Code Here

Examples of org.apache.tomcat.lite.http.MappingData.recycle()

            mapper.addWrapper(hostN, "/foo/bar", "/fo/*", "wrapper0");
        }
        int N = 10000;
        for (int i = 0; i < N; i++) {
            mappingData.recycle();
            mapper.map(host, uri, mappingData);
        }

        long time = System.currentTimeMillis();
        for (int i = 0; i < N; i++) {
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.