public final class BindingLoader extends Object
| Constructor and Description |
|---|
BindingLoader()
No-arg constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static ExtendedBinding |
createBinding(InputSource source)
Factory method that returns a binding given an InputSource.
|
static ExtendedBinding |
createBinding(String fileName)
Factory method for unmarshalling an
ExtendedBinding instance from the binding file as
identified by the given file name. |
ExtendedBinding |
getBinding()
Returns the binding loaded by the BindingLoader.
|
void |
loadBinding(InputSource source)
Loads a Binding Document.
|
void |
loadBinding(String url)
Loads the binding file from the
URL given, and populates the ExtendedBinding
instance from the values given. |
void |
setBaseURL(String url)
Sets the base URL for the binding and related files.
|
public void loadBinding(String url) throws BindingException
URL given, and populates the ExtendedBinding
instance from the values given.url - The URL for the binding file to process.BindingException - If the binding file cannnot be processed properly.public void loadBinding(InputSource source) throws BindingException
source - The binding document to load.BindingException - thrown when an error occurred during the unmarshalling.public ExtendedBinding getBinding()
public void setBaseURL(String url)
url - The base URLpublic static ExtendedBinding createBinding(InputSource source) throws BindingException
source - the InputSource identifying the binding document to be loaded.BindingException - thrown when the given InputSource doesn't refer to a valid Binding
document.public static ExtendedBinding createBinding(String fileName) throws BindingException
ExtendedBinding instance from the binding file as
identified by the given file name.fileName - Binding file name.ExtendedBinding instance populated from the given binding file (name).BindingException - If the binding file cannot be processed properly.Copyright © 2016. All rights reserved.