Rio Project 4.2 API Documentation



org.rioproject.opstring
Class OpStringUtil

java.lang.Object
  extended by org.rioproject.opstring.OpStringUtil

public class OpStringUtil
extends Object

Utilities for working with OpStrings.

Author:
Dennis Reedy

Constructor Summary
OpStringUtil()
           
 
Method Summary
static void checkCodebase(OperationalString opstring, String codebase, Resolver resolver)
          Check if the codebase is null or the codebase needs to be resolved
static void checkCodebase(OperationalString opstring, String codebase, Resolver resolver, File resolveFile)
          Check if the codebase is null or the codebase needs to be resolved
static void checkCodebase(ServiceElement elem, String codebase, Resolver resolver, File resolveFile)
          Check if the codebase is null or the codebase needs to be resolved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpStringUtil

public OpStringUtil()
Method Detail

checkCodebase

public static void checkCodebase(OperationalString opstring,
                                 String codebase,
                                 Resolver resolver)
                          throws IOException
Check if the codebase is null or the codebase needs to be resolved

Parameters:
opstring - The OperationalString to check
codebase - If the codebase is not set, set it to this value
resolver - The Resolver to use if artifacts need to be downloaded
Throws:
IOException - If the jars cannot be served

checkCodebase

public static void checkCodebase(OperationalString opstring,
                                 String codebase,
                                 Resolver resolver,
                                 File resolveFile)
                          throws IOException
Check if the codebase is null or the codebase needs to be resolved

Parameters:
opstring - The OperationalString to check
codebase - If the codebase is not set, set it to this value
resolver - The Resolver to use if artifacts need to be downloaded
resolveFile - The file to pass to the Resolver
Throws:
IOException - If the jars cannot be served

checkCodebase

public static void checkCodebase(ServiceElement elem,
                                 String codebase,
                                 Resolver resolver,
                                 File resolveFile)
                          throws IOException
Check if the codebase is null or the codebase needs to be resolved

Parameters:
elem - The ServiceElement to check
codebase - If the codebase is not set, set it to this value
resolver - The Resolver to use if artifacts need to be downloaded
resolveFile - The file to pass to the Resolver
Throws:
IOException - If the jars cannot be served

Copyright © Rio Project.

Copyright © 2006-2011 Rio Project. All Rights Reserved.