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

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

public class Parser
extends java.lang.Object

Parser for jbi: protocol URL.


Constructor Summary
Parser(java.lang.String path)
          Creates a new protocol parser.
 
Method Summary
 java.net.URL getJbiJarURL()
          Returns the JBI URL if present, null otherwise
 java.util.Properties getJbiProperties()
          Returns the JBI instructions as Properties.
static java.util.Properties parseInstructions(java.lang.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(java.lang.String path)
       throws java.net.MalformedURLException
Creates a new protocol parser.

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

getJbiJarURL

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

Returns:
wraped jar URL

getJbiProperties

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

Returns:
wrapping instructions as Properties

parseInstructions

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

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


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