Package org.w3c.tools.resources

Examples of org.w3c.tools.resources.ResourceFrame


      the_rrf.unlock();
        }
        the_rrf = null;
        frameName = lfs.getNextComponent();
        ResourceReference rrf   = null;
        ResourceFrame     frame = null;

        for (int i = 0 ; i < rra.length ; i++) {
      rrf = rra[i];
      try {
          frame = (ResourceFrame) rrf.lock();
          if (frame.getIdentifier().equals(frameName)) {
        the_rrf = rrf;
        break;
          }
      } catch (InvalidResourceException ex) {
          error(request, ex.getMessage());
View Full Code Here


    ResourceDescription rd =
        AdminReader.readResourceDescription(in);
    String cls = rd.getClassName();
    String id  = rd.getIdentifier();
    // Create the frame:
    ResourceFrame frame = null;
     try {
         frame = (ResourceFrame) Class.forName(cls).newInstance();
     } catch (Exception ex) {
         error(request, "invalid frame class "+cls);
     }
View Full Code Here

    InputStream in = getInputStream(request);
    ResourceDescription rd =
        AdminReader.readResourceDescription(in);
    String identifier  = rd.getIdentifier();   
     // find the indentifier
     ResourceFrame f[] = ((FramedResource) r).getFrames();
     for (int i = 0 ; i < f.length ; i++)
         if (f[i].getIdentifier().equals(identifier)) {
       ((FramedResource) r).unregisterFrame(f[i]);
       return okReply(request);
         }
View Full Code Here

    public boolean isLenient() {
  return getBoolean(ATTR_LENIENT, false);
    }

    protected JAcl[] getAcls() {
  ResourceFrame frames[] = collectFrames(JAcl_class);
  JAcl acls[] = new  JAcl[frames.length];
  for (int i = 0 ; i < frames.length ; i++)
      acls[i] = (JAcl) frames[i];
  return acls;
    }
View Full Code Here

    protected void registerNewGeneratedFrame(Request request)
      throws ResourceException, ProtocolException
    {
  //remove the old one if any
  ResourceFrame frames[] = collectFrames(generatedClass);
  if (frames != null) {
      for (int i=0; i < frames.length; i++)
    unregisterFrame(frames[i]);
  }
  //add the new one
View Full Code Here

      if (locstate == null) {
    lr.setTarget(null);
    return true;
      }
  }
  ResourceFrame frames[] = getFrames();
  if (frames != null) {
      for (int i = 0 ; i < frames.length ; i++) {
    if (frames[i] == null) {
        continue;
    }
View Full Code Here

    ResourceReference rrp = null;
    FramedResource    res = null;
    try {
        res = (FramedResource)ref.lock();
        if (res instanceof ResourceFrame) {
      ResourceFrame fr = (ResourceFrame)res;
      rr = fr.getResource().getResourceReference();
        } else {
      rr = ref;
        }
    } catch (InvalidResourceException ex) {
        return rr_root;
View Full Code Here

  throws IOException
    {
  int cnt = in.readInt();
  if ( cnt == 0 )
      return null;
  ResourceFrame frames[] = new ResourceFrame[cnt];
   for (int i = 0 ; i < cnt ; i++) {
      try {
    frames[i] = (ResourceFrame) Upgrader.readResource(in);
      } catch (UpgradeException ex) {
    frames[i] = new UnknownFrame();
View Full Code Here

  url = getServer().getURL();
  // If we do handle ftp, initialize:
//  if ( checkHandleFTP() )
//      ftphandler = new FtpTunnel();
  // Initialize the stats:
  ResourceFrame frame = null;
  try {
      frame = getFrame(Class.forName("org.w3c.jigsaw.proxy.Stats"));
  } catch (Exception ex) {
      // don't give a damn
  }
View Full Code Here

  Attribute attrs  [] = resource.getAttributes();
  Vector vattrs = new Vector(10);
  for (int j = 0 ; j < attrs.length ; j++) {
      Object value = resource.getValue(j, null);
      if (value instanceof ResourceFrame[]) {
    ResourceFrame frames[] = (ResourceFrame[])value;
    int len = frames.length;
    ResourceDescription descr[] = new ResourceDescription[len];
    for (int i = 0 ; i < len ; i++)
        descr[i] = new ResourceDescription(frames[i]);
    vattrs.addElement(new AttributeDescription(attrs[j],
View Full Code Here

TOP

Related Classes of org.w3c.tools.resources.ResourceFrame

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.