Class: Jnlp::VersionedJnlpUrl

Inherits:
Object
  • Object
show all
Defined in:
lib/jnlp/maven_jnlp.rb

Overview

VersionedJnlpUrl

Encapsulates a versioned jnlp in a Maven Jnlp Web Start server.

Jnlp::VersionedJnlpUrl.new(family_name, path, base_url)

Example:

require 'jnlp'
vju = Jnlp::VersionedJnlpUrl("concord", "/dev/org/concord/maven-jnlp/", "http://jnlp.concord.org")

Example:

vju = Jnlp::VersionedJnlpUrl("concord", "/dev/org/concord/maven-jnlp/", "http://jnlp.concord.org")

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (VersionedJnlpUrl) initialize(family_name, path, base_url)

Pass in:

family_name, path, base_url


49
50
51
52
53
# File 'lib/jnlp/maven_jnlp.rb', line 49

def initialize(family_name, path, base_url)
  @path = path
  @url = base_url + @path
  @version = @url[/#{family_name}\/#{family_name}-(.*)\.jnlp/, 1]
end

Instance Attribute Details

- (Object) path (readonly)

Contains the the full path to the jnlp

"/dev/org/concord/maven-jnlp/all-otrunk-snapshot/all-otrunk-snapshot-0.1.0-20070420.131610.jnlp"


30
31
32
# File 'lib/jnlp/maven_jnlp.rb', line 30

def path
  @path
end

- (Object) url (readonly)

Contains the the full url to the jnlp

"http://jnlp.concord.org/dev/org/concord/maven-jnlp/all-otrunk-snapshot/all-otrunk-snapshot-0.1.0-20090327.222627.jnlp"


36
37
38
# File 'lib/jnlp/maven_jnlp.rb', line 36

def url
  @url
end

- (Object) version (readonly)

Contains the maven-jnlp version string for the jnlp

"0.1.0-20090327.222627"


43
44
45
# File 'lib/jnlp/maven_jnlp.rb', line 43

def version
  @version
end