Package org.w3c.jigsaw.admin

Examples of org.w3c.jigsaw.admin.RemoteResource


     */
    public void initialize(RemoteResourceWrapper w, Attribute a,  Object o,
         Properties p)
  throws RemoteAccessException
    {
  RemoteResource r = w.getResource();
  name = (String) r.getValue("identifier");
  if(o == null) {
      String v = null;
      v = (String) r.getValue(a.getName());
      if(v == null)
    if(a.getDefault() != null)
        v = a.getDefault().toString();
      if ( v != null ) {
    origs = v;
View Full Code Here


     * @exception RemoteAccessException if a remote error occurs.
     */
    protected void build()
  throws RemoteAccessException
    {
  RemoteResource rr = root.getResource();
  boolean        ic = false;

  try {
      ic = rr.isContainer();
  } catch(Exception ex) {
      ex.printStackTrace();
  }
  String names[] = rr.enumerateResourceIdentifiers();
  Sorter.sortStringArray(names, true);
  //remove control and realms nodes
  servers = new String[names.length-1];
  serversrrw = new Hashtable(servers.length);
  int j = 0;
View Full Code Here

    public void initialize(RemoteResourceWrapper w, Attribute a,  Object o,
         Properties p)
  throws RemoteAccessException
    {
  RemoteResource r = w.getResource();
  if(o == null) {
      String v = null;
      // FIXME
      v = (String) r.getValue(a.getName());
    
      if(v == null)
    if(a.getDefault() != null)
        v = a.getDefault().toString();
      if ( v != null ) {
View Full Code Here

    public void initialize(RemoteResourceWrapper w, Attribute a,  Object o,
         Properties p)
  throws RemoteAccessException
    {
  RemoteResource r = w.getResource();
  if(o == null) {
      String v = null;
      // FIXME
      v = (String) r.getValue(a.getName());
    
      if(v == null)
    if(a.getDefault() != null)
        v = a.getDefault().toString();
      if ( v != null ) {
View Full Code Here

     * Initialize SErverBrowser.
     */
    protected void initialize() {
  //check authorization
  boolean        authorized = false;
  RemoteResource rr         = null;
  while (!authorized) {
      try {
    authorized = true;
    admin.initialize();
      } catch (RemoteAccessException ex) {
View Full Code Here

      for (int i = 0 ; i < extensions.length ; i++) {
    extensions[i] = st.nextToken();
      }
  }
  try {
      RemoteResource rm = getResource(rrw, p);
      if (rm.isContainer()) {
    return filter(rm.enumerateResourceIdentifiers(),
            extensions);
      } else if (rm.isFrame()) {
    //are we a frame?
    rm = rrw.getFatherResource();
    if ((rm != null) && (rm.isContainer()))
        return filter(rm.enumerateResourceIdentifiers(),
          extensions);
      }
  } catch (RemoteAccessException ex) {
      //nothing to do
  }
View Full Code Here

   public void initialize(RemoteResourceWrapper w, Attribute a,  Object o,
        Properties p)
       throws RemoteAccessException
    {
  RemoteResource r = w.getResource();
  if(o == null) {
      Date d = null;
      try {
    d = new Date(((Long)r.getValue(a.getName())).longValue());
   
    if(d == null)
        if(a.getDefault() != null)
      d = new Date(((Long) a.getDefault()).longValue());
      } catch (Exception ex) {
View Full Code Here

    public void initialize(RemoteResourceWrapper w, Attribute a,  Object o,
         Properties p)
  throws RemoteAccessException
    {
  RemoteResource r = w.getResource();
  if(o == null) {
      String v = (String) r.getValue(a.getName());
      if(v == null)
    if(a.getDefault() != null)
        v = a.getDefault().toString();
      if ( v != null ) {
    origs = v;
View Full Code Here

  protected String [] getStringArray(RemoteResourceWrapper rrw, Properties p) {
    String name = (String)p.get(RESOURCE_P);
    if (name == null)
      return new String[0];
    RemoteResourceWrapper w = rrw;
    RemoteResource rm = w.getResource();
    RemoteResource target = null;

    do {
      w = w.getFatherWrapper();
      if (w != null) {
  rm = w.getResource();
  try {
    if ((rm.getClassHierarchy())[0].equals
        ("org.w3c.jigsaw.http.ConfigResource"))
      target = rm.loadResource(name);
  } catch (RemoteAccessException ex) {
    ex.printStackTrace();
  }
      }
      else
  return new String[0];
    } while (target == null);
    try {
      return target.enumerateResourceIdentifiers();
    } catch (RemoteAccessException ex) {
      ex.printStackTrace();
      return new String[0];
    }
  }
View Full Code Here

    public void initialize(RemoteResourceWrapper w, Attribute a,  Object o,
         Properties p)
  throws RemoteAccessException
    {
  RemoteResource r = w.getResource();
  if(o == null) {
      String v = (String) r.getValue(a.getName());
      if(v == null)
    if(a.getDefault() != null)
        v = a.getDefault().toString();
      if ( v != null ) {
    origs = v;
View Full Code Here

TOP

Related Classes of org.w3c.jigsaw.admin.RemoteResource

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.