Examples of reset()


Examples of javax.jms.BytesMessage.reset()

            chunk.writeBytes(buf, 0, length);
            if (length < bufSize)
               chunk.setBooleanProperty(XBConnectionMetaData.JMSX_GROUP_EOF, true);
            chunk.setLongProperty(XBConnectionMetaData.JMSX_GROUP_SEQ, count);
            chunk.reset();
            producer.send(dest, chunk);
            count++;
            if (length < bufSize)
               return;
         }           
View Full Code Here

Examples of javax.jms.StreamMessage.reset()

   {
      super.assertEquivalent(m, mode, redelivery);

      StreamMessage sm = (StreamMessage)m;

      sm.reset();

      ProxyAssertSupport.assertEquals(true, sm.readBoolean());
      ProxyAssertSupport.assertEquals((byte)3, sm.readByte());
      byte[] bytes = new byte[3];
      sm.readBytes(bytes);
View Full Code Here

Examples of javax.portlet.MimeResponse.reset()

  }

  public void responseReset() {
    MimeResponse mimeResponse = getMimeResponse(false);
    if (mimeResponse != null) {
      mimeResponse.reset();
    }
  }

  public void responseSendError(int statusCode, String message) throws IOException {
    throw new IOException(statusCode + ": " + message);
View Full Code Here

Examples of javax.portlet.PortletPreferences.reset()

    {
      if ( name == null ) name = "";
      PortletPreferences prefs = request.getPreferences();
      try
    {
        prefs.reset( name );
        prefs.store();
    }
    catch ( ReadOnlyException e ) { }
    catch ( IOException e ) { }
    catch ( ValidatorException e ) { }
View Full Code Here

Examples of javax.portlet.RenderResponse.reset()

    public void testReset()
    {
        RenderResponse response = newResponse();

        response.reset();

        replayControls();

        RenderWebResponse rwr = new RenderWebResponse(response);
View Full Code Here

Examples of javax.portlet.ResourceResponse.reset()

  private void sendAjaxViewExpired(FacesContext facesContext, Exception e) {
      ResourceResponse response = (ResourceResponse) facesContext
              .getExternalContext().getResponse();
      try {
        response.reset();
        String message;
        try {
          ResourceBundle resourceBundle = ResourceBundle
                  .getBundle("org.ajax4jsf.messages",
                          facesContext.getApplication()
View Full Code Here

Examples of javax.servlet.ServletInputStream.reset()

    if( is.markSupported() && request.getContentLength() > 0 )
    {
      try
      {
        is.reset();
      }
      catch( IOException e )
      {
        SoapUI.logError( e );
      }
View Full Code Here

Examples of javax.servlet.ServletResponse.reset()

            // The response is an error
            response.setError();

            // Reset the response (if possible)
            try {
                sresp.reset();
            } catch (IllegalStateException e) {
                ;
            }

            response.sendError
View Full Code Here

Examples of javax.servlet.http.HttpServletResponse.reset()

            final HttpServletResponse response = this.getResponse(context);
            final OutputStream stream = response.getOutputStream();

            // - reset the reponse to clear out any any headers (i.e. so
            //   the user doesn't get "unable to open..." when using IE.)
            response.reset();
            final String fileName = fileComponent.getFileName();
            if (fileComponent.isPrompt() && fileName != null && fileName.trim().length() > 0)
            {
                response.addHeader(
                    "Content-disposition",
View Full Code Here

Examples of javax.servlet.jsp.el.VariableResolver.reset()

      AssertVariableResolver resolver =
        new AssertVariableResolver(request, params, result);
      Iterator asserts = this.asserts.iterator();
      while (asserts.hasNext()) {
        Assert azzert = (Assert)asserts.next();
        resolver.reset();
        boolean asserted = azzert.eval(resolver);
        if (!asserted && !resolver.isInvalidPropertyReferenced()) {
          result.assertionFailed(resolver, azzert.getMessage());
        }
      }
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.