org.apache.openejb.core.webservices
Class UriResolver

java.lang.Object
  extended by org.apache.openejb.core.webservices.UriResolver

public class UriResolver
extends Object

Resolves a File, classpath resource, or URL according to the follow rules:


Constructor Summary
UriResolver()
           
UriResolver(String path)
           
UriResolver(String baseUriStr, String uriStr)
           
UriResolver(String baseUriStr, String uriStr, Class calling)
           
 
Method Summary
 File getFile()
           
 InputStream getInputStream()
           
static URL getResource(String resourceName, Class callingClass)
          Load a given resource.
 URI getURI()
           
 URL getURL()
           
 boolean isFile()
           
 boolean isResolved()
           
 void resolve(String baseUriStr, String uriStr, Class callingCls)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UriResolver

public UriResolver()

UriResolver

public UriResolver(String path)
            throws IOException
Throws:
IOException

UriResolver

public UriResolver(String baseUriStr,
                   String uriStr)
            throws IOException
Throws:
IOException

UriResolver

public UriResolver(String baseUriStr,
                   String uriStr,
                   Class calling)
            throws IOException
Throws:
IOException
Method Detail

resolve

public void resolve(String baseUriStr,
                    String uriStr,
                    Class callingCls)
             throws IOException
Throws:
IOException

getURI

public URI getURI()

getURL

public URL getURL()

getInputStream

public InputStream getInputStream()

isFile

public boolean isFile()

getFile

public File getFile()

isResolved

public boolean isResolved()

getResource

public static URL getResource(String resourceName,
                              Class callingClass)
Load a given resource.

This method will try to load the resource using the following methods (in order):

Parameters:
resourceName - The name of the resource to load
callingClass - The Class object of the calling object


Copyright © 1999-2013 The Apache OpenEJB development community. All Rights Reserved.