org.ops4j.pax.url.wrap.internal
Class Parser

java.lang.Object
  extended by org.ops4j.pax.url.wrap.internal.Parser

public class Parser
extends java.lang.Object

Parser for wrap: protocol.

Since:
September 09, 2007
Author:
Alin Dreghiciu
See Also:
Connection

Constructor Summary
Parser(java.lang.String path)
          Creates a new protocol parser.
 
Method Summary
 org.ops4j.pax.swissbox.bnd.OverwriteMode getOverwriteMode()
          Returns the overwrite mode.
 java.net.URL getWrappedJarURL()
          Returns the wrapped URL if present, null otherwise
 java.util.Properties getWrappingProperties()
          Returns the wrapping instructions as Properties.
 
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 wrap:)
Throws:
java.net.MalformedURLException - if provided path does not comply to expected syntax or has malformed urls
Method Detail

getWrappedJarURL

public java.net.URL getWrappedJarURL()
Returns the wrapped URL if present, null otherwise

Returns:
wrapped jar URL

getWrappingProperties

public java.util.Properties getWrappingProperties()
Returns the wrapping instructions as Properties.

Returns:
wrapping instructions as Properties

getOverwriteMode

public org.ops4j.pax.swissbox.bnd.OverwriteMode getOverwriteMode()
Returns the overwrite mode.

Returns:
overwrite mode


Copyright © 2006-2011 OPS4J - Open Participation Software for Java. All Rights Reserved.