org.apache.servicemix.jbi.deployer.handler
Class Parser

java.lang.Object
  extended by org.apache.servicemix.jbi.deployer.handler.Parser

public class Parser
extends Object

Parser for jbi: protocol URL.


Constructor Summary
Parser(String path)
          Creates a new protocol parser.
 
Method Summary
 URL getJbiJarURL()
          Returns the JBI URL if present, null otherwise
 Properties getJbiProperties()
          Returns the JBI instructions as Properties.
static Properties parseInstructions(String query)
          Parses bnd instructions out of an url query string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Parser

public Parser(String path)
       throws MalformedURLException
Creates a new protocol parser.

Parameters:
path - the path part of the url (without starting jbi:)
Throws:
MalformedURLException - if provided path does not comply to expected syntax or has malformed urls
Method Detail

getJbiJarURL

public URL getJbiJarURL()
Returns the JBI URL if present, null otherwise

Returns:
wraped jar URL

getJbiProperties

public Properties getJbiProperties()
Returns the JBI instructions as Properties.

Returns:
wrapping instructions as Properties

parseInstructions

public static Properties parseInstructions(String query)
                                    throws MalformedURLException
Parses bnd instructions out of an url query string.

Parameters:
query - query part of an url.
Returns:
parsed instructions as properties
Throws:
MalformedURLException - if provided path does not comply to syntax.


Copyright © 2005-2011 The Apache Software Foundation. All Rights Reserved.