Package org.araneaframework.servlet

Examples of org.araneaframework.servlet.ServletAtomicResponseOutputExtension


public class MockAtomicRequestService extends MockEventfulStandardService {
  private boolean doRollback = false;
 
  public void action(Path path, InputData input, OutputData output) throws Exception {
    super.action(path, input, output);
    ServletAtomicResponseOutputExtension are =
      (ServletAtomicResponseOutputExtension)output.narrow(ServletAtomicResponseOutputExtension.class);
    ServletOutputData out = (ServletOutputData)output;
   
    out.getResponse().getOutputStream().write(new byte[] {1});
   
    out.getResponse().getWriter().write("Hello, Word!");
   
    if (doRollback) {
      are.rollback();
    }
  }
View Full Code Here

TOP

Related Classes of org.araneaframework.servlet.ServletAtomicResponseOutputExtension

Copyright © 2018 www.massapicom. 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.