Package org.w3c.tools.resources

Examples of org.w3c.tools.resources.FramedResource.perform()


      FramedResource wrapper =
          (FramedResource)r_wrapper.lock();
      Request req = (Request)request.getClone();
      req.setState(JigsawHttpServletResponse.INCLUDED,
             Boolean.TRUE);
      return (Reply) wrapper.perform(req);
        } catch (ProtocolException ex) {
      ex.printStackTrace();
      // return default reply
        } catch (ResourceException ex2) {
      ex2.printStackTrace();
View Full Code Here


      throw new HTTPException(error) ;
  }

  try {
      FramedResource resource = (FramedResource) selected.unsafeLock();
      Reply reply = (Reply)resource.perform(request) ;
      reply.setHeaderValue(reply.H_VARY, getVary());
      HTTPFrame itsframe =
    (HTTPFrame) resource.unsafeGetFrame(httpFrameClass);
      if (itsframe != null) {
    reply.setContentLocation(
View Full Code Here

      if ((error == null) && (target != null)) {
    request.setFilters(filters, infilter);
    request.setTargetResource(target);
    try {
        FramedResource res = (FramedResource)target.lock();
        reply = (Reply) res.perform(request);
        if (reply == null) {
      reply = request.makeReply(HTTP.NOT_FOUND);
      if (uri_error) {
          reply.setContent("<html><head><title>Not Found" +
               "</title></head>\n"+
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.