Tabnine Logo
ServletUnitClient.getExceptionsThrownOnErrorStatus
Code IndexAdd Tabnine to your IDE (free)

How to use
getExceptionsThrownOnErrorStatus
method
in
com.meterware.servletunit.ServletUnitClient

Best Java code snippets using com.meterware.servletunit.ServletUnitClient.getExceptionsThrownOnErrorStatus (Showing top 4 results out of 315)

origin: webx/citrus

  @Override
  public WebResponse getServletResponse() throws IOException {
    try {
      Field _webResponse = getAccessibleField(getClass(), "_webResponse");
      boolean newWebResponse = _webResponse.get(this) == null;

      super.getServletResponse();

      if (newWebResponse) {
        _webResponse.set(this, new PatchedServletUnitWebResponse( //
                                     getFieldValue(this, "_client", ServletUnitClient.class), //
                                     getFieldValue(this, "_frame", FrameSelector.class), //
                                     getFieldValue(this, "_effectiveURL", URL.class), //
                                     getResponse(), getFieldValue(this, "_client", ServletUnitClient.class)
            .getExceptionsThrownOnErrorStatus()));
      }

      return (WebResponse) _webResponse.get(this);
    } catch (RuntimeException e) {
      throw e;
    } catch (Exception e) {
      throw new RuntimeException(e);
    }
  }
}
origin: webx/citrus

  @Override
  public WebResponse getServletResponse() throws IOException {
    try {
      Field _webResponse = getAccessibleField(getClass(), "_webResponse");
      boolean newWebResponse = _webResponse.get(this) == null;

      super.getServletResponse();

      if (newWebResponse) {
        _webResponse.set(this, new PatchedServletUnitWebResponse( //
                                     getFieldValue(this, "_client", ServletUnitClient.class), //
                                     getFieldValue(this, "_frame", FrameSelector.class), //
                                     getFieldValue(this, "_effectiveURL", URL.class), //
                                     getResponse(), getFieldValue(this, "_client", ServletUnitClient.class)
            .getExceptionsThrownOnErrorStatus()));
      }

      return (WebResponse) _webResponse.get(this);
    } catch (RuntimeException e) {
      throw e;
    } catch (Exception e) {
      throw new RuntimeException(e);
    }
  }
}
origin: httpunit/httpunit

/**
 * Returns the final response from the servlet. Note that this method should
 * only be invoked after all processing has been done to the servlet response.
 **/
public WebResponse getServletResponse() throws IOException {
  if (_contextStack.size() != 1) throw new IllegalStateException( "Have not returned from all request dispatchers" );
  if (_webResponse == null) {
    HttpSession session = getRequest().getSession( /* create */ false );
    if (session != null && session.isNew()) {
      Cookie cookie = new Cookie( ServletUnitHttpSession.SESSION_COOKIE_NAME, session.getId() );
      cookie.setPath( _application.getContextPath() );
      getResponse().addCookie( cookie );
    }
    _webResponse = new ServletUnitWebResponse( _client, _frame, _effectiveURL, getResponse(), _client.getExceptionsThrownOnErrorStatus() );
  }
  return _webResponse;
}
origin: javanettasks/httpunit

/**
 * Returns the final response from the servlet. Note that this method should
 * only be invoked after all processing has been done to the servlet response.
 **/
public WebResponse getServletResponse() throws IOException {
  if (_contextStack.size() != 1) throw new IllegalStateException( "Have not returned from all request dispatchers" );
  if (_webResponse == null) {
    HttpSession session = getRequest().getSession( /* create */ false );
    if (session != null && session.isNew()) {
      Cookie cookie = new Cookie( ServletUnitHttpSession.SESSION_COOKIE_NAME, session.getId() );
      cookie.setPath( _application.getContextPath() );
      getResponse().addCookie( cookie );
    }
    _webResponse = new ServletUnitWebResponse( _client, _frame, _effectiveURL, getResponse(), _client.getExceptionsThrownOnErrorStatus() );
  }
  return _webResponse;
}
com.meterware.servletunitServletUnitClientgetExceptionsThrownOnErrorStatus

Popular methods of ServletUnitClient

  • getResponse
  • newInvocation
    Creates and returns a new invocation context from a GET request.
  • getSession
    Returns the session that would be used by the next request (if it asks for one).
  • <init>
  • getMessageBody
  • newClient
    Creates and returns a new servlet unit client instance.
  • getCookieValue
  • getFrameContents
  • getHeaderFields
  • putCookie
  • updateMainWindow
  • writeMessageBody
  • updateMainWindow,
  • writeMessageBody,
  • setExceptionsThrownOnErrorStatus

Popular in Java

  • Reactive rest calls using spring rest template
  • getSupportFragmentManager (FragmentActivity)
  • compareTo (BigDecimal)
  • setScale (BigDecimal)
  • Kernel (java.awt.image)
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now