diff --git a/.gitignore b/.gitignore
index 586adb73..7610d1e3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,4 +4,8 @@
target
bin
.metadata
-**/integrationTest.properties
\ No newline at end of file
+**/integrationTest.properties
+_site
+_tmp
+.sass-cache
+.awestruct
diff --git a/Gemfile b/Gemfile
new file mode 100644
index 00000000..f38cff2e
--- /dev/null
+++ b/Gemfile
@@ -0,0 +1,25 @@
+source 'https://rubygems.org'
+
+# older ruby versions have problems! Lets be specific. use 'rvm use 1.9.3@sites --create' to use specific ruby version
+ruby '1.9.3'
+gem 'awestruct', '0.5.4.rc3' # Framework for creating static HTML sites
+gem 'uglifier', '~> 2.0.1' # Ruby wrapper for UglifyJS JavaScript compressor
+gem 'cssminify', '~> 1.0.2' # CSS compression using YUI compressor
+gem 'rb-fsevent', '~> 0.9.3' # FSEvents API with Signals catching (without RubyCocoa)
+gem 'kramdown', '~> 1.0.1' # Kramdown works on all platforms, rdiscount only on mri
+gem 'htmlcompressor', '~> 0.0.3' # Adds in HTML minification, helps remove the warning on awestruct startup
+gem 'RedCloth'
+gem 'listen', '~> 1.0'
+gem 'asciidoctor', '0.1.4'
+gem 'slim'
+gem 'less'
+#gem 'therubyracer'
+gem 'tilt', '~> 1.4.0'
+gem 'coderay'
+gem 'html_press', '~> 0.8.1'
+gem 'git' # required to run the '-deploy' option
+
+# To enable guard and livereload (is C native thus not available on windows. Commented out for now)
+#gem 'guard'
+#gem 'guard-livereload'
+#gem 'yajl-ruby'
diff --git a/Gemfile.lock b/Gemfile.lock
new file mode 100644
index 00000000..a76a07e2
--- /dev/null
+++ b/Gemfile.lock
@@ -0,0 +1,109 @@
+GEM
+ remote: https://rubygems.org/
+ specs:
+ POpen4 (0.1.4)
+ Platform (>= 0.4.0)
+ open4
+ Platform (0.4.0)
+ RedCloth (4.2.9)
+ asciidoctor (0.1.4)
+ awestruct (0.5.4.rc3)
+ bootstrap-sass (>= 2.3.1.0)
+ compass (>= 0.12.1)
+ compass-960-plugin (~> 0.10.4)
+ haml (~> 4.0.1)
+ listen (~> 1.0)
+ mime-types (= 1.25)
+ nokogiri (= 1.5.10)
+ rack (~> 1.5.2)
+ rest-client (>= 1.6.7)
+ ruby-s3cmd (~> 0.1.5)
+ tilt (>= 1.3.5, < 2.0)
+ zurb-foundation (>= 4.0.9, < 5.0)
+ bootstrap-sass (3.1.1.0)
+ sass (~> 3.2)
+ chunky_png (1.3.0)
+ coderay (1.1.0)
+ commonjs (0.2.7)
+ compass (0.12.3)
+ chunky_png (~> 1.2)
+ fssm (>= 0.2.7)
+ sass (= 3.2.14)
+ compass-960-plugin (0.10.4)
+ compass (>= 0.10.0)
+ css_press (0.3.2)
+ csspool-st (= 3.1.2)
+ json
+ cssminify (1.0.2)
+ csspool-st (3.1.2)
+ execjs (2.0.2)
+ ffi (1.9.3)
+ fssm (0.2.10)
+ git (1.2.6)
+ haml (4.0.5)
+ tilt
+ html_press (0.8.2)
+ htmlentities
+ multi_css (>= 0.1.0)
+ multi_js (>= 0.1.0)
+ htmlcompressor (0.0.7)
+ yui-compressor (~> 0.9.6)
+ htmlentities (4.3.1)
+ json (1.8.1)
+ kramdown (1.0.2)
+ less (2.5.0)
+ commonjs (~> 0.2.7)
+ listen (1.3.1)
+ rb-fsevent (>= 0.9.3)
+ rb-inotify (>= 0.9)
+ rb-kqueue (>= 0.2)
+ mime-types (1.25)
+ multi_css (0.1.0)
+ css_press
+ multi_js (0.1.0)
+ uglifier (~> 2)
+ multi_json (1.9.2)
+ nokogiri (1.5.10)
+ open4 (1.3.3)
+ rack (1.5.2)
+ rb-fsevent (0.9.4)
+ rb-inotify (0.9.3)
+ ffi (>= 0.5.0)
+ rb-kqueue (0.2.2)
+ ffi (>= 0.5.0)
+ rest-client (1.6.7)
+ mime-types (>= 1.16)
+ ruby-s3cmd (0.1.5)
+ sass (3.2.14)
+ slim (2.0.2)
+ temple (~> 0.6.6)
+ tilt (>= 1.3.3, < 2.1)
+ temple (0.6.7)
+ tilt (1.4.1)
+ uglifier (2.0.1)
+ execjs (>= 0.3.0)
+ multi_json (~> 1.0, >= 1.0.2)
+ yui-compressor (0.9.6)
+ POpen4 (>= 0.1.4)
+ zurb-foundation (4.3.2)
+ sass (>= 3.2.0)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ RedCloth
+ asciidoctor (= 0.1.4)
+ awestruct (= 0.5.4.rc3)
+ coderay
+ cssminify (~> 1.0.2)
+ git
+ html_press (~> 0.8.1)
+ htmlcompressor (~> 0.0.3)
+ kramdown (~> 1.0.1)
+ less
+ listen (~> 1.0)
+ rb-fsevent (~> 0.9.3)
+ slim
+ tilt (~> 1.4.0)
+ uglifier (~> 2.0.1)
diff --git a/README.md b/README.md
old mode 100755
new mode 100644
index f416162f..10f2f7d0
--- a/README.md
+++ b/README.md
@@ -1,35 +1,10 @@
-OpenShift Java Client
-===========================
+OpenShift Java Client Website
+=====================
-Java client for the OpenShift REST API. It pretty much offers all features that are currently available in the rhc-* command line tools
-(create/rename a domain, create/destroy applications, list applications, list available cartridges, add cartridges, etc.).
-This client is used by JBoss Tools for OpenShift.
+Visit this site at http://openshift.github.io/openshift-java-client
-Usage
------
-An exemplary usage of the client may look like the following:
- IOpenShiftConnection connection =
- new OpenShiftConnectionFactory().getConnection("myApplicationId", "user", "password");
- IUser user = connection.getUser();
- IDomain domain = user.createDomain("myDomain");
- IApplication as7Application = domain.createApplication("myApplication", LatestVersionOf.jbossAs().get(user));
- IEmbeddedCartridge mySqlCartridge = as7Application.addEmbeddableCartridge(LatestVersionOf.mySQL().get(user));
- String unstructuredCredentials = mySqlCartridge.getCreationLog();
- String mySqlConnectionUrl = mySqlCartridge.getUrl();
-There are also 2 blog posts on jboss.org which discuss the API in more details:
+To run this site locally, checkout this gh-pages-awestruct branch, run "bundle install", and then run "awestruct -d"
-* [show-domain-info: openshift-java-client in a nutshell](http://planet.jboss.org/post/show_domain_info_openshift_java_client_in_a_nutshell)
-* [enable-openshift-ci: full example using openshift-java-client](https://community.jboss.org/wiki/Enable-openshift-ciFullExampleUsingOpenshift-java-client)
-
-Most insightful are the integration tests within the library which pretty much use the API in all details:
-
-* ApplicationResourceIntegrationTest
-* DomainResourceIntegrationTest
-* EmbeddedCartridgeResourceIntegrationTest
-* etc.
-
-Download
---------
-You may either build from source using maven (mvn clean package) or get the prebuilt artifact from the maven central.
+To deploy this site, checkout the gh-pages-awestruct branch, run "awestruct", then then run "awestruct -P production --deploy".
diff --git a/Rakefile b/Rakefile
new file mode 100644
index 00000000..2a7d0b91
--- /dev/null
+++ b/Rakefile
@@ -0,0 +1,200 @@
+# This file is a rake build file. The purpose of this file is to simplify
+# setting up and using Awestruct. It's not required to use Awestruct, though it
+# does save you time (hopefully). If you don't want to use rake, just ignore or
+# delete this file.
+#
+# If you're just getting started, execute this command to install Awestruct and
+# the libraries on which it depends:
+#
+# rake setup
+#
+# The setup task installs the necessary libraries according to which Ruby
+# environment you are using. If you want the libraries kept inside the project,
+# execute this command instead:
+#
+# rake setup[local]
+#
+# IMPORTANT: To install gems, you'll need development tools on your machine,
+# which include a C compiler, the Ruby development libraries and some other
+# development libraries as well.
+#
+# There are also tasks for running Awestruct. The build will auto-detect
+# whether you are using Bundler and, if you are, wrap calls to awestruct in
+# `bundle exec`.
+#
+# To run in Awestruct in development mode, execute:
+#
+# rake
+#
+# To clean the generated site before you build, execute:
+#
+# rake clean preview
+#
+# To deploy using the production profile, execute:
+#
+# rake deploy
+#
+# To get a list of all tasks, execute:
+#
+# rake -T
+#
+# Now you're Awestruct with rake!
+
+$use_bundle_exec = true
+$install_gems = ['awestruct -v "~> 0.5.0"', 'rb-inotify -v "~> 0.9.0"']
+$awestruct_cmd = nil
+task :default => :preview
+
+desc 'Setup the environment to run Awestruct'
+task :setup, [:env] => :init do |task, args|
+ next if !which('awestruct').nil?
+
+ if File.exist? 'Gemfile'
+ if args[:env] == 'local'
+ require 'fileutils'
+ FileUtils.remove_file 'Gemfile.lock', true
+ FileUtils.remove_dir '.bundle', true
+ system 'bundle install --binstubs=_bin --path=.bundle'
+ else
+ system 'bundle install'
+ end
+ else
+ if args[:env] == 'local'
+ $install_gems.each do |gem|
+ msg "Installing #{gem}..."
+ system "gem install --bindir=_bin --install-dir=.bundle #{gem}"
+ end
+ else
+ $install_gems.each do |gem|
+ msg "Installing #{gem}..."
+ system "gem install #{gem}"
+ end
+ end
+ end
+ msg 'Run awestruct using `awestruct` or `rake`'
+ # Don't execute any more tasks, need to reset env
+ exit 0
+end
+
+desc 'Update the environment to run Awestruct'
+task :update => :init do
+ if File.exist? 'Gemfile'
+ system 'bundle update'
+ else
+ system 'gem update awestruct'
+ end
+ # Don't execute any more tasks, need to reset env
+ exit 0
+end
+
+desc 'Build and preview the site locally in development mode'
+task :preview => :check do
+ run_awestruct '-d'
+end
+
+# provide a serve task for those used to Jekyll commands
+desc 'An alias to the preview task'
+task :serve => :preview
+
+desc 'Generate the site using the specified profile (default: development)'
+task :gen, [:profile] => :check do |task, args|
+ profile = args[:profile] || 'development'
+ profile = 'production' if profile == 'prod'
+ run_awestruct "-P #{profile} -g --force"
+end
+
+desc 'Generate the site and deploy to production'
+task :deploy => :check do
+ run_awestruct '-P production -g --force --deploy'
+end
+
+desc 'Clean out generated site and temporary files'
+task :clean, :spec do |task, args|
+ require 'fileutils'
+ dirs = ['.awestruct', '.sass-cache', '_site']
+ if args[:spec] == 'all'
+ dirs << '_tmp'
+ end
+ dirs.each do |dir|
+ FileUtils.remove_dir dir unless !File.directory? dir
+ end
+end
+
+# Perform initialization steps, such as setting up the PATH
+task :init do
+ # Detect using gems local to project
+ if File.exist? '_bin'
+ ENV['PATH'] = "_bin#{File::PATH_SEPARATOR}#{ENV['PATH']}"
+ ENV['GEM_HOME'] = '.bundle'
+ end
+end
+
+desc 'Check to ensure the environment is properly configured'
+task :check => :init do
+ if !File.exist? 'Gemfile'
+ if which('awestruct').nil?
+ msg 'Could not find awestruct.', :warn
+ msg 'Run `rake setup` or `rake setup[local]` to install from RubyGems.'
+ # Enable once the rubygem-awestruct RPM is available
+ #msg 'Run `sudo yum install rubygem-awestruct` to install via RPM. (Fedora >= 18)'
+ exit 1
+ else
+ $use_bundle_exec = false
+ next
+ end
+ end
+
+ begin
+ require 'bundler'
+ Bundler.setup
+ rescue LoadError
+ $use_bundle_exec = false
+ rescue StandardError => e
+ msg e.message, :warn
+ if which('awestruct').nil?
+ msg 'Run `rake setup` or `rake setup[local]` to install required gems from RubyGems.'
+ else
+ msg 'Run `rake update` to install additional required gems from RubyGems.'
+ end
+ exit e.status_code
+ end
+end
+
+# Execute Awestruct
+def run_awestruct(args)
+ system "#{$use_bundle_exec ? 'bundle exec ' : ''}awestruct #{args}"
+end
+
+# A cross-platform means of finding an executable in the $PATH.
+# Respects $PATHEXT, which lists valid file extensions for executables on Windows
+#
+# which 'awestruct'
+# => /usr/bin/awestruct
+def which(cmd, opts = {})
+ unless $awestruct_cmd.nil? || opts[:clear_cache]
+ return $awestruct_cmd
+ end
+
+ $awestruct_cmd = nil
+ exts = ENV['PATHEXT'] ? ENV['PATHEXT'].split(';') : ['']
+ ENV['PATH'].split(File::PATH_SEPARATOR).each do |path|
+ exts.each do |ext|
+ candidate = File.join path, "#{cmd}#{ext}"
+ if File.executable? candidate
+ $awestruct_cmd = candidate
+ return $awestruct_cmd
+ end
+ end
+ end
+ return $awestruct_cmd
+end
+
+# Print a message to STDOUT
+def msg(text, level = :info)
+ case level
+ when :warn
+ puts "\e[31m#{text}\e[0m"
+ else
+ puts "\e[33m#{text}\e[0m"
+ end
+end
diff --git a/_config/site.yml b/_config/site.yml
new file mode 100644
index 00000000..feff7689
--- /dev/null
+++ b/_config/site.yml
@@ -0,0 +1,18 @@
+name: OpenShift Java Client
+
+profiles:
+ development:
+ base_url: http://localhost:4242
+ production:
+ base_url: http://openshift.github.io/openshift-java-client
+ deploy:
+ repository: git@github.com:openshift/openshift-java-client.git
+ host: github_pages
+ branch: gh-pages
+ google_analytics: UA-40375612-1
+ developercorey:
+ base_url: http://developercorey.github.io/openshift-java-client
+ deploy:
+ repository: git@github.com:developercorey/openshift-java-client.git
+ host: github_pages
+ branch: gh-pages
diff --git a/_ext/pipeline.rb b/_ext/pipeline.rb
new file mode 100644
index 00000000..7f09abf0
--- /dev/null
+++ b/_ext/pipeline.rb
@@ -0,0 +1,10 @@
+require 'bootstrap-sass'
+
+Awestruct::Extensions::Pipeline.new do
+ helper Awestruct::Extensions::GoogleAnalytics
+ helper Awestruct::Extensions::Partial
+ # extension Awestruct::Extensions::Posts.new '/news'
+ # extension Awestruct::Extensions::Indexifier.new
+ # Indexifier *must* come before Atomizer
+ # extension Awestruct::Extensions::Atomizer.new :posts, '/feed.atom'
+end
diff --git a/_layouts/default.html.haml b/_layouts/default.html.haml
new file mode 100644
index 00000000..f40c800c
--- /dev/null
+++ b/_layouts/default.html.haml
@@ -0,0 +1,73 @@
+!!! 5
+%html(lang="en")
+ %head
+ %title #{page.title} | OpenShift Java Client
+ %meta(charset="utf-8")
+ %meta(name="viewport" content="width=device-width, initial-scale=1.0")
+ %meta(name="description" content="#{page.description}")
+
+ %link(href="#{site.base_url}/images/favicon.png" rel="shortcut icon")
+
+ %link(href="#{site.base_url}/css/bootstrap.min.css" rel="stylesheet")
+ %link(href="#{site.base_url}/css/prism.css" rel="stylesheet")
+ %link(href="#{site.base_url}/css/main.css" rel="stylesheet")
+ %link(href="#{site.base_url}/css/topnav.css" rel="stylesheet")
+ %link(href="#{site.base_url}/css/SyntaxHighlighter.css" rel="stylesheet")
+ / IE 6-8 support of HTML 5 elements
+ /[if lt IE 9]
+ %script(src="#{site.base_url}/js/html5shiv.js")
+ %script(src="#{site.base_url}/js/respond.min.js")
+ %script(src="#{site.base_url}/js/prism.js")
+ %body
+ .navbar.navbar-inverse.navbar-fixed-top{:role=>"navigation"}
+ .container
+ .navbar-header
+ %a.navbar-brand{:href=>"#{site.base_url}/"} OpenShift Java Client
+ .collapse.navbar-collapse
+ %ul.nav.navbar-nav
+ %li
+ %a.getstarted{:href=>"#{site.base_url}/getstarted" } Get Started
+ %li
+ %a{:href=>"../documentation", :target=>"_blank"} Documentation
+ %li
+ %a.samplecode{:href=>"#{site.base_url}/samplecode"} Sample Code
+ %li
+ %a.gethelp{:href=>"#{site.base_url}/gethelp" } Get Help
+ %li
+ %a{:href=>"https://github.com/openshift/openshift-java-client", :target=>"_blank"} Source Code
+ %li
+ %a.joinus{:href=>"#{site.base_url}/joinus"} Join Us
+ .container
+ ~ content
+ .container
+ %hr
+ %footer
+ %a{:href=>"#{site.base_url}/getstarted"} Get Started
+ |
+ %a{:href=>"#{site.base_url}/documentation", :target=>"_blank" }Documentation
+ |
+ %a{:href=>"#{site.base_url}/samplecode"} Sample Code
+ |
+ %a{:href=>"#{site.base_url}/gethelp"} Get Help
+ |
+ %a{:href=>"https://github.com/openshift/openshift-java-client", :target=>"_blank"} Source Code
+ |
+ %a{ :href=>"#{site.base_url}/joinus"} Join Us
+ %p.copyright<
+ Copyright © 2011 Red Hat, Inc.
+ Distributed under license by Red Hat, Inc. All rights reserved.
+ This program is made available under the terms of the
+ Eclipse Public License v1.0 which accompanies this distribution,
+ and is available here to view online.
+ %script(src="#{site.base_url}/js/jquery-1.10.2.min.js")
+ %script(src="#{site.base_url}/js/bootstrap.min.js")
+ %script(src="#{site.base_url}/js/alignbuttons.js")
+ = google_analytics_async
+ %script(src="#{site.base_url}/js/shCore.js")
+ %script(src="#{site.base_url}/js/shBrushJava.js")
+ %script(src="#{site.base_url}/js/shBrushXml.js")
+ :javascript
+ dp.SyntaxHighlighter.HighlightAll('code');
+ $(function(){
+ $(".#{page.page_name}").addClass("current");
+ });
\ No newline at end of file
diff --git a/_layouts/landing.html.haml b/_layouts/landing.html.haml
new file mode 100644
index 00000000..63a0460b
--- /dev/null
+++ b/_layouts/landing.html.haml
@@ -0,0 +1,46 @@
+!!! 5
+%html(lang="en")
+ %head
+ %title OpenShift Java Client
+ %meta(charset="utf-8")
+ %meta(name="viewport" content="width=device-width, initial-scale=1.0")
+ %meta(name="description" content="#{page.description}")
+
+ %link(href="#{site.base_url}/images/favicon.png" rel="shortcut icon")
+
+ %link(href="#{site.base_url}/css/bootstrap.min.css" rel="stylesheet")
+ %link(href="#{site.base_url}/css/prism.css" rel="stylesheet")
+ %link(href="#{site.base_url}/css/main.css" rel="stylesheet")
+ / IE 6-8 support of HTML 5 elements
+ /[if lt IE 9]
+ %script(src="#{site.base_url}/js/html5shiv.js")
+ %script(src="#{site.base_url}/js/respond.min.js")
+ %script(src="#{site.base_url}/js/prism.js")
+ %body
+
+ ~ content
+ .container
+ %hr
+ %footer
+
+ %a{:href=>"#{site.base_url}/getstarted",}Get Started
+ |
+ %a{:href=>"#{site.base_url}/documentation", :target=>"_blank" }Documentation
+ |
+ %a{:href=>"#{site.base_url}/samplecode",} Sample Code
+ |
+ %a{:href=>"#{site.base_url}/gethelp"} Get Help
+ |
+ %a{:href=>"https://github.com/openshift/openshift-java-client", :target=>"_blank"} Source Code
+ |
+ %a{ :href=>"#{site.base_url}/joinus"} Join Us
+ %p.copyright<
+ Copyright © 2011 Red Hat, Inc.
+ Distributed under license by Red Hat, Inc. All rights reserved.
+ This program is made available under the terms of the
+ Eclipse Public License v1.0 which accompanies this distribution,
+ and is available here to view online.
+ %script(src="#{site.base_url}/js/jquery-1.10.2.min.js")
+ %script(src="#{site.base_url}/js/bootstrap.min.js")
+ %script(src="#{site.base_url}/js/alignbuttons.js")
+ = google_analytics_async
\ No newline at end of file
diff --git a/css/SyntaxHighlighter.css b/css/SyntaxHighlighter.css
new file mode 100644
index 00000000..85a82619
--- /dev/null
+++ b/css/SyntaxHighlighter.css
@@ -0,0 +1,185 @@
+.dp-highlighter
+{
+ font-family: "Consolas", "Courier New", Courier, mono, serif;
+ font-size: 12px;
+ background-color: #E7E5DC;
+ width: 99%;
+ overflow: auto;
+ margin: 18px 0 18px 0 !important;
+ padding-top: 1px; /* adds a little border on top when controls are hidden */
+}
+
+/* clear styles */
+.dp-highlighter ol,
+.dp-highlighter ol li,
+.dp-highlighter ol li span
+{
+ margin: 0;
+ padding: 0;
+ border: none;
+}
+
+.dp-highlighter a,
+.dp-highlighter a:hover
+{
+ background: none;
+ border: none;
+ padding: 0;
+ margin: 0;
+}
+
+.dp-highlighter .bar
+{
+ padding-left: 45px;
+}
+
+.dp-highlighter.collapsed .bar,
+.dp-highlighter.nogutter .bar
+{
+ padding-left: 0px;
+}
+
+.dp-highlighter ol
+{
+ list-style: decimal; /* for ie */
+ background-color: #fff;
+ margin: 0px 0px 1px 45px !important; /* 1px bottom margin seems to fix occasional Firefox scrolling */
+ padding: 0px;
+ color: #5C5C5C;
+}
+
+.dp-highlighter.nogutter ol,
+.dp-highlighter.nogutter ol li
+{
+ list-style: none !important;
+ margin-left: 0px !important;
+}
+
+.dp-highlighter ol li,
+.dp-highlighter .columns div
+{
+ list-style: decimal-leading-zero; /* better look for others, override cascade from OL */
+ list-style-position: outside !important;
+ border-left: 3px solid #6CE26C;
+ background-color: #F8F8F8;
+ color: #5C5C5C;
+ padding: 0 3px 0 10px !important;
+ margin: 0 !important;
+ line-height: 14px;
+}
+
+.dp-highlighter.nogutter ol li,
+.dp-highlighter.nogutter .columns div
+{
+ border: 0;
+}
+
+.dp-highlighter .columns
+{
+ background-color: #F8F8F8;
+ color: gray;
+ overflow: hidden;
+ width: 100%;
+}
+
+.dp-highlighter .columns div
+{
+ padding-bottom: 5px;
+}
+
+.dp-highlighter ol li.alt
+{
+ background-color: #FFF;
+ color: inherit;
+}
+
+.dp-highlighter ol li span
+{
+ color: black;
+ background-color: inherit;
+}
+
+/* Adjust some properties when collapsed */
+
+.dp-highlighter.collapsed ol
+{
+ margin: 0px;
+}
+
+.dp-highlighter.collapsed ol li
+{
+ display: none;
+}
+
+/* Additional modifications when in print-view */
+
+.dp-highlighter.printing
+{
+ border: none;
+}
+
+.dp-highlighter.printing .tools
+{
+ display: none !important;
+}
+
+.dp-highlighter.printing li
+{
+ display: list-item !important;
+}
+
+/* Styles for the tools */
+
+.dp-highlighter .tools
+{
+ padding: 3px 8px 3px 10px;
+ font: 9px Verdana, Geneva, Arial, Helvetica, sans-serif;
+ color: silver;
+ background-color: #f8f8f8;
+ padding-bottom: 10px;
+ border-left: 3px solid #6CE26C;
+}
+
+.dp-highlighter.nogutter .tools
+{
+ border-left: 0;
+}
+
+.dp-highlighter.collapsed .tools
+{
+ border-bottom: 0;
+}
+
+.dp-highlighter .tools a
+{
+ font-size: 9px;
+ color: #a0a0a0;
+ background-color: inherit;
+ text-decoration: none;
+ margin-right: 10px;
+}
+
+.dp-highlighter .tools a:hover
+{
+ color: red;
+ background-color: inherit;
+ text-decoration: underline;
+}
+
+/* About dialog styles */
+
+.dp-about { background-color: #fff; color: #333; margin: 0px; padding: 0px; }
+.dp-about table { width: 100%; height: 100%; font-size: 11px; font-family: Tahoma, Verdana, Arial, sans-serif !important; }
+.dp-about td { padding: 10px; vertical-align: top; }
+.dp-about .copy { border-bottom: 1px solid #ACA899; height: 95%; }
+.dp-about .title { color: red; background-color: inherit; font-weight: bold; }
+.dp-about .para { margin: 0 0 4px 0; }
+.dp-about .footer { background-color: #ECEADB; color: #333; border-top: 1px solid #fff; text-align: right; }
+.dp-about .close { font-size: 11px; font-family: Tahoma, Verdana, Arial, sans-serif !important; background-color: #ECEADB; color: #333; width: 60px; height: 22px; }
+
+/* Language specific styles */
+
+.dp-highlighter .comment, .dp-highlighter .comments { color: #008200; background-color: inherit; }
+.dp-highlighter .string { color: blue; background-color: inherit; }
+.dp-highlighter .keyword { color: #069; font-weight: bold; background-color: inherit; }
+.dp-highlighter .preprocessor { color: gray; background-color: inherit; }
diff --git a/css/bootstrap.min.css b/css/bootstrap.min.css
new file mode 100644
index 00000000..c547283b
--- /dev/null
+++ b/css/bootstrap.min.css
@@ -0,0 +1,7 @@
+/*!
+ * Bootstrap v3.0.3 (http://getbootstrap.com)
+ * Copyright 2013 Twitter, Inc.
+ * Licensed under http://www.apache.org/licenses/LICENSE-2.0
+ */
+
+/*! normalize.css v2.1.3 | MIT License | git.io/normalize */article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,video{display:inline-block}audio:not([controls]){display:none;height:0}[hidden],template{display:none}html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}a{background:transparent}a:focus{outline:thin dotted}a:active,a:hover{outline:0}h1{margin:.67em 0;font-size:2em}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}hr{height:0;-moz-box-sizing:content-box;box-sizing:content-box}mark{color:#000;background:#ff0}code,kbd,pre,samp{font-family:monospace,serif;font-size:1em}pre{white-space:pre-wrap}q{quotes:"\201C" "\201D" "\2018" "\2019"}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:0}fieldset{padding:.35em .625em .75em;margin:0 2px;border:1px solid #c0c0c0}legend{padding:0;border:0}button,input,select,textarea{margin:0;font-family:inherit;font-size:100%}button,input{line-height:normal}button,select{text-transform:none}button,html input[type="button"],input[type="reset"],input[type="submit"]{cursor:pointer;-webkit-appearance:button}button[disabled],html input[disabled]{cursor:default}input[type="checkbox"],input[type="radio"]{padding:0;box-sizing:border-box}input[type="search"]{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;-webkit-appearance:textfield}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}textarea{overflow:auto;vertical-align:top}table{border-collapse:collapse;border-spacing:0}@media print{*{color:#000!important;text-shadow:none!important;background:transparent!important;box-shadow:none!important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}a[href^="javascript:"]:after,a[href^="#"]:after{content:""}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100%!important}@page{margin:2cm .5cm}p,h2,h3{orphans:3;widows:3}h2,h3{page-break-after:avoid}select{background:#fff!important}.navbar{display:none}.table td,.table th{background-color:#fff!important}.btn>.caret,.dropup>.btn>.caret{border-top-color:#000!important}.label{border:1px solid #000}.table{border-collapse:collapse!important}.table-bordered th,.table-bordered td{border:1px solid #ddd!important}}*,*:before,*:after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html{font-size:62.5%;-webkit-tap-highlight-color:rgba(0,0,0,0)}body{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:1.428571429;color:#333;background-color:#fff}input,button,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}a{color:#428bca;text-decoration:none}a:hover,a:focus{color:#2a6496;text-decoration:underline}a:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}img{vertical-align:middle}.img-responsive{display:block;height:auto;max-width:100%}.img-rounded{border-radius:6px}.img-thumbnail{display:inline-block;height:auto;max-width:100%;padding:4px;line-height:1.428571429;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.img-circle{border-radius:50%}hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:500;line-height:1.1;color:inherit}h1 small,h2 small,h3 small,h4 small,h5 small,h6 small,.h1 small,.h2 small,.h3 small,.h4 small,.h5 small,.h6 small,h1 .small,h2 .small,h3 .small,h4 .small,h5 .small,h6 .small,.h1 .small,.h2 .small,.h3 .small,.h4 .small,.h5 .small,.h6 .small{font-weight:normal;line-height:1;color:#999}h1,h2,h3{margin-top:20px;margin-bottom:10px}h1 small,h2 small,h3 small,h1 .small,h2 .small,h3 .small{font-size:65%}h4,h5,h6{margin-top:10px;margin-bottom:10px}h4 small,h5 small,h6 small,h4 .small,h5 .small,h6 .small{font-size:75%}h1,.h1{font-size:36px}h2,.h2{font-size:30px}h3,.h3{font-size:24px}h4,.h4{font-size:18px}h5,.h5{font-size:14px}h6,.h6{font-size:12px}p{margin:0 0 10px}.lead{margin-bottom:20px;font-size:16px;font-weight:200;line-height:1.4}@media(min-width:768px){.lead{font-size:21px}}small,.small{font-size:85%}cite{font-style:normal}.text-muted{color:#999}.text-primary{color:#428bca}.text-primary:hover{color:#3071a9}.text-warning{color:#8a6d3b}.text-warning:hover{color:#66512c}.text-danger{color:#a94442}.text-danger:hover{color:#843534}.text-success{color:#3c763d}.text-success:hover{color:#2b542c}.text-info{color:#31708f}.text-info:hover{color:#245269}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}.page-header{padding-bottom:9px;margin:40px 0 20px;border-bottom:1px solid #eee}ul,ol{margin-top:0;margin-bottom:10px}ul ul,ol ul,ul ol,ol ol{margin-bottom:0}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;list-style:none}.list-inline>li{display:inline-block;padding-right:5px;padding-left:5px}.list-inline>li:first-child{padding-left:0}dl{margin-top:0;margin-bottom:20px}dt,dd{line-height:1.428571429}dt{font-weight:bold}dd{margin-left:0}@media(min-width:768px){.dl-horizontal dt{float:left;width:160px;overflow:hidden;clear:left;text-align:right;text-overflow:ellipsis;white-space:nowrap}.dl-horizontal dd{margin-left:180px}.dl-horizontal dd:before,.dl-horizontal dd:after{display:table;content:" "}.dl-horizontal dd:after{clear:both}.dl-horizontal dd:before,.dl-horizontal dd:after{display:table;content:" "}.dl-horizontal dd:after{clear:both}}abbr[title],abbr[data-original-title]{cursor:help;border-bottom:1px dotted #999}.initialism{font-size:90%;text-transform:uppercase}blockquote{padding:10px 20px;margin:0 0 20px;border-left:5px solid #eee}blockquote p{font-size:17.5px;font-weight:300;line-height:1.25}blockquote p:last-child{margin-bottom:0}blockquote small,blockquote .small{display:block;line-height:1.428571429;color:#999}blockquote small:before,blockquote .small:before{content:'\2014 \00A0'}blockquote.pull-right{padding-right:15px;padding-left:0;border-right:5px solid #eee;border-left:0}blockquote.pull-right p,blockquote.pull-right small,blockquote.pull-right .small{text-align:right}blockquote.pull-right small:before,blockquote.pull-right .small:before{content:''}blockquote.pull-right small:after,blockquote.pull-right .small:after{content:'\00A0 \2014'}blockquote:before,blockquote:after{content:""}address{margin-bottom:20px;font-style:normal;line-height:1.428571429}code,kbd,pre,samp{font-family:Menlo,Monaco,Consolas,"Courier New",monospace}code{padding:2px 4px;font-size:90%;color:#c7254e;white-space:nowrap;background-color:#f9f2f4;border-radius:4px}pre{display:block;padding:9.5px;margin:0 0 10px;font-size:13px;line-height:1.428571429;color:#333;word-break:break-all;word-wrap:break-word;background-color:#f5f5f5;border:1px solid #ccc;border-radius:4px}pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;background-color:transparent;border-radius:0}.pre-scrollable{max-height:340px;overflow-y:scroll}.container{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}.container:before,.container:after{display:table;content:" "}.container:after{clear:both}.container:before,.container:after{display:table;content:" "}.container:after{clear:both}@media(min-width:768px){.container{width:750px}}@media(min-width:992px){.container{width:970px}}@media(min-width:1200px){.container{width:1170px}}.row{margin-right:-15px;margin-left:-15px}.row:before,.row:after{display:table;content:" "}.row:after{clear:both}.row:before,.row:after{display:table;content:" "}.row:after{clear:both}.col-xs-1,.col-sm-1,.col-md-1,.col-lg-1,.col-xs-2,.col-sm-2,.col-md-2,.col-lg-2,.col-xs-3,.col-sm-3,.col-md-3,.col-lg-3,.col-xs-4,.col-sm-4,.col-md-4,.col-lg-4,.col-xs-5,.col-sm-5,.col-md-5,.col-lg-5,.col-xs-6,.col-sm-6,.col-md-6,.col-lg-6,.col-xs-7,.col-sm-7,.col-md-7,.col-lg-7,.col-xs-8,.col-sm-8,.col-md-8,.col-lg-8,.col-xs-9,.col-sm-9,.col-md-9,.col-lg-9,.col-xs-10,.col-sm-10,.col-md-10,.col-lg-10,.col-xs-11,.col-sm-11,.col-md-11,.col-lg-11,.col-xs-12,.col-sm-12,.col-md-12,.col-lg-12{position:relative;min-height:1px;padding-right:15px;padding-left:15px}.col-xs-1,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9,.col-xs-10,.col-xs-11,.col-xs-12{float:left}.col-xs-12{width:100%}.col-xs-11{width:91.66666666666666%}.col-xs-10{width:83.33333333333334%}.col-xs-9{width:75%}.col-xs-8{width:66.66666666666666%}.col-xs-7{width:58.333333333333336%}.col-xs-6{width:50%}.col-xs-5{width:41.66666666666667%}.col-xs-4{width:33.33333333333333%}.col-xs-3{width:25%}.col-xs-2{width:16.666666666666664%}.col-xs-1{width:8.333333333333332%}.col-xs-pull-12{right:100%}.col-xs-pull-11{right:91.66666666666666%}.col-xs-pull-10{right:83.33333333333334%}.col-xs-pull-9{right:75%}.col-xs-pull-8{right:66.66666666666666%}.col-xs-pull-7{right:58.333333333333336%}.col-xs-pull-6{right:50%}.col-xs-pull-5{right:41.66666666666667%}.col-xs-pull-4{right:33.33333333333333%}.col-xs-pull-3{right:25%}.col-xs-pull-2{right:16.666666666666664%}.col-xs-pull-1{right:8.333333333333332%}.col-xs-pull-0{right:0}.col-xs-push-12{left:100%}.col-xs-push-11{left:91.66666666666666%}.col-xs-push-10{left:83.33333333333334%}.col-xs-push-9{left:75%}.col-xs-push-8{left:66.66666666666666%}.col-xs-push-7{left:58.333333333333336%}.col-xs-push-6{left:50%}.col-xs-push-5{left:41.66666666666667%}.col-xs-push-4{left:33.33333333333333%}.col-xs-push-3{left:25%}.col-xs-push-2{left:16.666666666666664%}.col-xs-push-1{left:8.333333333333332%}.col-xs-push-0{left:0}.col-xs-offset-12{margin-left:100%}.col-xs-offset-11{margin-left:91.66666666666666%}.col-xs-offset-10{margin-left:83.33333333333334%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-8{margin-left:66.66666666666666%}.col-xs-offset-7{margin-left:58.333333333333336%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-5{margin-left:41.66666666666667%}.col-xs-offset-4{margin-left:33.33333333333333%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-2{margin-left:16.666666666666664%}.col-xs-offset-1{margin-left:8.333333333333332%}.col-xs-offset-0{margin-left:0}@media(min-width:768px){.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12{float:left}.col-sm-12{width:100%}.col-sm-11{width:91.66666666666666%}.col-sm-10{width:83.33333333333334%}.col-sm-9{width:75%}.col-sm-8{width:66.66666666666666%}.col-sm-7{width:58.333333333333336%}.col-sm-6{width:50%}.col-sm-5{width:41.66666666666667%}.col-sm-4{width:33.33333333333333%}.col-sm-3{width:25%}.col-sm-2{width:16.666666666666664%}.col-sm-1{width:8.333333333333332%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666666666666%}.col-sm-pull-10{right:83.33333333333334%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666666666666%}.col-sm-pull-7{right:58.333333333333336%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666666666667%}.col-sm-pull-4{right:33.33333333333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.666666666666664%}.col-sm-pull-1{right:8.333333333333332%}.col-sm-pull-0{right:0}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666666666666%}.col-sm-push-10{left:83.33333333333334%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666666666666%}.col-sm-push-7{left:58.333333333333336%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666666666667%}.col-sm-push-4{left:33.33333333333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.666666666666664%}.col-sm-push-1{left:8.333333333333332%}.col-sm-push-0{left:0}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666666666666%}.col-sm-offset-10{margin-left:83.33333333333334%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666666666666%}.col-sm-offset-7{margin-left:58.333333333333336%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666666666667%}.col-sm-offset-4{margin-left:33.33333333333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.666666666666664%}.col-sm-offset-1{margin-left:8.333333333333332%}.col-sm-offset-0{margin-left:0}}@media(min-width:992px){.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12{float:left}.col-md-12{width:100%}.col-md-11{width:91.66666666666666%}.col-md-10{width:83.33333333333334%}.col-md-9{width:75%}.col-md-8{width:66.66666666666666%}.col-md-7{width:58.333333333333336%}.col-md-6{width:50%}.col-md-5{width:41.66666666666667%}.col-md-4{width:33.33333333333333%}.col-md-3{width:25%}.col-md-2{width:16.666666666666664%}.col-md-1{width:8.333333333333332%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666666666666%}.col-md-pull-10{right:83.33333333333334%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666666666666%}.col-md-pull-7{right:58.333333333333336%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666666666667%}.col-md-pull-4{right:33.33333333333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.666666666666664%}.col-md-pull-1{right:8.333333333333332%}.col-md-pull-0{right:0}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666666666666%}.col-md-push-10{left:83.33333333333334%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666666666666%}.col-md-push-7{left:58.333333333333336%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666666666667%}.col-md-push-4{left:33.33333333333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.666666666666664%}.col-md-push-1{left:8.333333333333332%}.col-md-push-0{left:0}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666666666666%}.col-md-offset-10{margin-left:83.33333333333334%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666666666666%}.col-md-offset-7{margin-left:58.333333333333336%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666666666667%}.col-md-offset-4{margin-left:33.33333333333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.666666666666664%}.col-md-offset-1{margin-left:8.333333333333332%}.col-md-offset-0{margin-left:0}}@media(min-width:1200px){.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12{float:left}.col-lg-12{width:100%}.col-lg-11{width:91.66666666666666%}.col-lg-10{width:83.33333333333334%}.col-lg-9{width:75%}.col-lg-8{width:66.66666666666666%}.col-lg-7{width:58.333333333333336%}.col-lg-6{width:50%}.col-lg-5{width:41.66666666666667%}.col-lg-4{width:33.33333333333333%}.col-lg-3{width:25%}.col-lg-2{width:16.666666666666664%}.col-lg-1{width:8.333333333333332%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666666666666%}.col-lg-pull-10{right:83.33333333333334%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666666666666%}.col-lg-pull-7{right:58.333333333333336%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666666666667%}.col-lg-pull-4{right:33.33333333333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.666666666666664%}.col-lg-pull-1{right:8.333333333333332%}.col-lg-pull-0{right:0}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666666666666%}.col-lg-push-10{left:83.33333333333334%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666666666666%}.col-lg-push-7{left:58.333333333333336%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666666666667%}.col-lg-push-4{left:33.33333333333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.666666666666664%}.col-lg-push-1{left:8.333333333333332%}.col-lg-push-0{left:0}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666666666666%}.col-lg-offset-10{margin-left:83.33333333333334%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666666666666%}.col-lg-offset-7{margin-left:58.333333333333336%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666666666667%}.col-lg-offset-4{margin-left:33.33333333333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.666666666666664%}.col-lg-offset-1{margin-left:8.333333333333332%}.col-lg-offset-0{margin-left:0}}table{max-width:100%;background-color:transparent}th{text-align:left}.table{width:100%;margin-bottom:20px}.table>thead>tr>th,.table>tbody>tr>th,.table>tfoot>tr>th,.table>thead>tr>td,.table>tbody>tr>td,.table>tfoot>tr>td{padding:8px;line-height:1.428571429;vertical-align:top;border-top:1px solid #ddd}.table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}.table>caption+thead>tr:first-child>th,.table>colgroup+thead>tr:first-child>th,.table>thead:first-child>tr:first-child>th,.table>caption+thead>tr:first-child>td,.table>colgroup+thead>tr:first-child>td,.table>thead:first-child>tr:first-child>td{border-top:0}.table>tbody+tbody{border-top:2px solid #ddd}.table .table{background-color:#fff}.table-condensed>thead>tr>th,.table-condensed>tbody>tr>th,.table-condensed>tfoot>tr>th,.table-condensed>thead>tr>td,.table-condensed>tbody>tr>td,.table-condensed>tfoot>tr>td{padding:5px}.table-bordered{border:1px solid #ddd}.table-bordered>thead>tr>th,.table-bordered>tbody>tr>th,.table-bordered>tfoot>tr>th,.table-bordered>thead>tr>td,.table-bordered>tbody>tr>td,.table-bordered>tfoot>tr>td{border:1px solid #ddd}.table-bordered>thead>tr>th,.table-bordered>thead>tr>td{border-bottom-width:2px}.table-striped>tbody>tr:nth-child(odd)>td,.table-striped>tbody>tr:nth-child(odd)>th{background-color:#f9f9f9}.table-hover>tbody>tr:hover>td,.table-hover>tbody>tr:hover>th{background-color:#f5f5f5}table col[class*="col-"]{position:static;display:table-column;float:none}table td[class*="col-"],table th[class*="col-"]{display:table-cell;float:none}.table>thead>tr>.active,.table>tbody>tr>.active,.table>tfoot>tr>.active,.table>thead>.active>td,.table>tbody>.active>td,.table>tfoot>.active>td,.table>thead>.active>th,.table>tbody>.active>th,.table>tfoot>.active>th{background-color:#f5f5f5}.table-hover>tbody>tr>.active:hover,.table-hover>tbody>.active:hover>td,.table-hover>tbody>.active:hover>th{background-color:#e8e8e8}.table>thead>tr>.success,.table>tbody>tr>.success,.table>tfoot>tr>.success,.table>thead>.success>td,.table>tbody>.success>td,.table>tfoot>.success>td,.table>thead>.success>th,.table>tbody>.success>th,.table>tfoot>.success>th{background-color:#dff0d8}.table-hover>tbody>tr>.success:hover,.table-hover>tbody>.success:hover>td,.table-hover>tbody>.success:hover>th{background-color:#d0e9c6}.table>thead>tr>.danger,.table>tbody>tr>.danger,.table>tfoot>tr>.danger,.table>thead>.danger>td,.table>tbody>.danger>td,.table>tfoot>.danger>td,.table>thead>.danger>th,.table>tbody>.danger>th,.table>tfoot>.danger>th{background-color:#f2dede}.table-hover>tbody>tr>.danger:hover,.table-hover>tbody>.danger:hover>td,.table-hover>tbody>.danger:hover>th{background-color:#ebcccc}.table>thead>tr>.warning,.table>tbody>tr>.warning,.table>tfoot>tr>.warning,.table>thead>.warning>td,.table>tbody>.warning>td,.table>tfoot>.warning>td,.table>thead>.warning>th,.table>tbody>.warning>th,.table>tfoot>.warning>th{background-color:#fcf8e3}.table-hover>tbody>tr>.warning:hover,.table-hover>tbody>.warning:hover>td,.table-hover>tbody>.warning:hover>th{background-color:#faf2cc}@media(max-width:767px){.table-responsive{width:100%;margin-bottom:15px;overflow-x:scroll;overflow-y:hidden;border:1px solid #ddd;-ms-overflow-style:-ms-autohiding-scrollbar;-webkit-overflow-scrolling:touch}.table-responsive>.table{margin-bottom:0}.table-responsive>.table>thead>tr>th,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>tbody>tr>td,.table-responsive>.table>tfoot>tr>td{white-space:nowrap}.table-responsive>.table-bordered{border:0}.table-responsive>.table-bordered>thead>tr>th:first-child,.table-responsive>.table-bordered>tbody>tr>th:first-child,.table-responsive>.table-bordered>tfoot>tr>th:first-child,.table-responsive>.table-bordered>thead>tr>td:first-child,.table-responsive>.table-bordered>tbody>tr>td:first-child,.table-responsive>.table-bordered>tfoot>tr>td:first-child{border-left:0}.table-responsive>.table-bordered>thead>tr>th:last-child,.table-responsive>.table-bordered>tbody>tr>th:last-child,.table-responsive>.table-bordered>tfoot>tr>th:last-child,.table-responsive>.table-bordered>thead>tr>td:last-child,.table-responsive>.table-bordered>tbody>tr>td:last-child,.table-responsive>.table-bordered>tfoot>tr>td:last-child{border-right:0}.table-responsive>.table-bordered>tbody>tr:last-child>th,.table-responsive>.table-bordered>tfoot>tr:last-child>th,.table-responsive>.table-bordered>tbody>tr:last-child>td,.table-responsive>.table-bordered>tfoot>tr:last-child>td{border-bottom:0}}fieldset{padding:0;margin:0;border:0}legend{display:block;width:100%;padding:0;margin-bottom:20px;font-size:21px;line-height:inherit;color:#333;border:0;border-bottom:1px solid #e5e5e5}label{display:inline-block;margin-bottom:5px;font-weight:bold}input[type="search"]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}input[type="radio"],input[type="checkbox"]{margin:4px 0 0;margin-top:1px \9;line-height:normal}input[type="file"]{display:block}select[multiple],select[size]{height:auto}select optgroup{font-family:inherit;font-size:inherit;font-style:inherit}input[type="file"]:focus,input[type="radio"]:focus,input[type="checkbox"]:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}input[type="number"]::-webkit-outer-spin-button,input[type="number"]::-webkit-inner-spin-button{height:auto}output{display:block;padding-top:7px;font-size:14px;line-height:1.428571429;color:#555;vertical-align:middle}.form-control{display:block;width:100%;height:34px;padding:6px 12px;font-size:14px;line-height:1.428571429;color:#555;vertical-align:middle;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-webkit-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.form-control:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(102,175,233,0.6);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(102,175,233,0.6)}.form-control:-moz-placeholder{color:#999}.form-control::-moz-placeholder{color:#999;opacity:1}.form-control:-ms-input-placeholder{color:#999}.form-control::-webkit-input-placeholder{color:#999}.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{cursor:not-allowed;background-color:#eee}textarea.form-control{height:auto}.form-group{margin-bottom:15px}.radio,.checkbox{display:block;min-height:20px;padding-left:20px;margin-top:10px;margin-bottom:10px;vertical-align:middle}.radio label,.checkbox label{display:inline;margin-bottom:0;font-weight:normal;cursor:pointer}.radio input[type="radio"],.radio-inline input[type="radio"],.checkbox input[type="checkbox"],.checkbox-inline input[type="checkbox"]{float:left;margin-left:-20px}.radio+.radio,.checkbox+.checkbox{margin-top:-5px}.radio-inline,.checkbox-inline{display:inline-block;padding-left:20px;margin-bottom:0;font-weight:normal;vertical-align:middle;cursor:pointer}.radio-inline+.radio-inline,.checkbox-inline+.checkbox-inline{margin-top:0;margin-left:10px}input[type="radio"][disabled],input[type="checkbox"][disabled],.radio[disabled],.radio-inline[disabled],.checkbox[disabled],.checkbox-inline[disabled],fieldset[disabled] input[type="radio"],fieldset[disabled] input[type="checkbox"],fieldset[disabled] .radio,fieldset[disabled] .radio-inline,fieldset[disabled] .checkbox,fieldset[disabled] .checkbox-inline{cursor:not-allowed}.input-sm{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-sm{height:30px;line-height:30px}textarea.input-sm{height:auto}.input-lg{height:46px;padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}select.input-lg{height:46px;line-height:46px}textarea.input-lg{height:auto}.has-warning .help-block,.has-warning .control-label,.has-warning .radio,.has-warning .checkbox,.has-warning .radio-inline,.has-warning .checkbox-inline{color:#8a6d3b}.has-warning .form-control{border-color:#8a6d3b;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)}.has-warning .form-control:focus{border-color:#66512c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #c0a16b;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #c0a16b}.has-warning .input-group-addon{color:#8a6d3b;background-color:#fcf8e3;border-color:#8a6d3b}.has-error .help-block,.has-error .control-label,.has-error .radio,.has-error .checkbox,.has-error .radio-inline,.has-error .checkbox-inline{color:#a94442}.has-error .form-control{border-color:#a94442;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)}.has-error .form-control:focus{border-color:#843534;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #ce8483;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #ce8483}.has-error .input-group-addon{color:#a94442;background-color:#f2dede;border-color:#a94442}.has-success .help-block,.has-success .control-label,.has-success .radio,.has-success .checkbox,.has-success .radio-inline,.has-success .checkbox-inline{color:#3c763d}.has-success .form-control{border-color:#3c763d;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)}.has-success .form-control:focus{border-color:#2b542c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #67b168;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #67b168}.has-success .input-group-addon{color:#3c763d;background-color:#dff0d8;border-color:#3c763d}.form-control-static{margin-bottom:0}.help-block{display:block;margin-top:5px;margin-bottom:10px;color:#737373}@media(min-width:768px){.form-inline .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.form-inline .form-control{display:inline-block}.form-inline select.form-control{width:auto}.form-inline .radio,.form-inline .checkbox{display:inline-block;padding-left:0;margin-top:0;margin-bottom:0}.form-inline .radio input[type="radio"],.form-inline .checkbox input[type="checkbox"]{float:none;margin-left:0}}.form-horizontal .control-label,.form-horizontal .radio,.form-horizontal .checkbox,.form-horizontal .radio-inline,.form-horizontal .checkbox-inline{padding-top:7px;margin-top:0;margin-bottom:0}.form-horizontal .radio,.form-horizontal .checkbox{min-height:27px}.form-horizontal .form-group{margin-right:-15px;margin-left:-15px}.form-horizontal .form-group:before,.form-horizontal .form-group:after{display:table;content:" "}.form-horizontal .form-group:after{clear:both}.form-horizontal .form-group:before,.form-horizontal .form-group:after{display:table;content:" "}.form-horizontal .form-group:after{clear:both}.form-horizontal .form-control-static{padding-top:7px}@media(min-width:768px){.form-horizontal .control-label{text-align:right}}.btn{display:inline-block;padding:6px 12px;margin-bottom:0;font-size:14px;font-weight:normal;line-height:1.428571429;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;background-image:none;border:1px solid transparent;border-radius:4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.btn:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.btn:hover,.btn:focus{color:#333;text-decoration:none}.btn:active,.btn.active{background-image:none;outline:0;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,0.125);box-shadow:inset 0 3px 5px rgba(0,0,0,0.125)}.btn.disabled,.btn[disabled],fieldset[disabled] .btn{pointer-events:none;cursor:not-allowed;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none}.btn-default{color:#333;background-color:#fff;border-color:#ccc}.btn-default:hover,.btn-default:focus,.btn-default:active,.btn-default.active,.open .dropdown-toggle.btn-default{color:#333;background-color:#ebebeb;border-color:#adadad}.btn-default:active,.btn-default.active,.open .dropdown-toggle.btn-default{background-image:none}.btn-default.disabled,.btn-default[disabled],fieldset[disabled] .btn-default,.btn-default.disabled:hover,.btn-default[disabled]:hover,fieldset[disabled] .btn-default:hover,.btn-default.disabled:focus,.btn-default[disabled]:focus,fieldset[disabled] .btn-default:focus,.btn-default.disabled:active,.btn-default[disabled]:active,fieldset[disabled] .btn-default:active,.btn-default.disabled.active,.btn-default[disabled].active,fieldset[disabled] .btn-default.active{background-color:#fff;border-color:#ccc}.btn-default .badge{color:#fff;background-color:#fff}.btn-primary{color:#fff;background-color:#428bca;border-color:#357ebd}.btn-primary:hover,.btn-primary:focus,.btn-primary:active,.btn-primary.active,.open .dropdown-toggle.btn-primary{color:#fff;background-color:#3276b1;border-color:#285e8e}.btn-primary:active,.btn-primary.active,.open .dropdown-toggle.btn-primary{background-image:none}.btn-primary.disabled,.btn-primary[disabled],fieldset[disabled] .btn-primary,.btn-primary.disabled:hover,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary:hover,.btn-primary.disabled:focus,.btn-primary[disabled]:focus,fieldset[disabled] .btn-primary:focus,.btn-primary.disabled:active,.btn-primary[disabled]:active,fieldset[disabled] .btn-primary:active,.btn-primary.disabled.active,.btn-primary[disabled].active,fieldset[disabled] .btn-primary.active{background-color:#428bca;border-color:#357ebd}.btn-primary .badge{color:#428bca;background-color:#fff}.btn-warning{color:#fff;background-color:#f0ad4e;border-color:#eea236}.btn-warning:hover,.btn-warning:focus,.btn-warning:active,.btn-warning.active,.open .dropdown-toggle.btn-warning{color:#fff;background-color:#ed9c28;border-color:#d58512}.btn-warning:active,.btn-warning.active,.open .dropdown-toggle.btn-warning{background-image:none}.btn-warning.disabled,.btn-warning[disabled],fieldset[disabled] .btn-warning,.btn-warning.disabled:hover,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning:hover,.btn-warning.disabled:focus,.btn-warning[disabled]:focus,fieldset[disabled] .btn-warning:focus,.btn-warning.disabled:active,.btn-warning[disabled]:active,fieldset[disabled] .btn-warning:active,.btn-warning.disabled.active,.btn-warning[disabled].active,fieldset[disabled] .btn-warning.active{background-color:#f0ad4e;border-color:#eea236}.btn-warning .badge{color:#f0ad4e;background-color:#fff}.btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a}.btn-danger:hover,.btn-danger:focus,.btn-danger:active,.btn-danger.active,.open .dropdown-toggle.btn-danger{color:#fff;background-color:#d2322d;border-color:#ac2925}.btn-danger:active,.btn-danger.active,.open .dropdown-toggle.btn-danger{background-image:none}.btn-danger.disabled,.btn-danger[disabled],fieldset[disabled] .btn-danger,.btn-danger.disabled:hover,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger:hover,.btn-danger.disabled:focus,.btn-danger[disabled]:focus,fieldset[disabled] .btn-danger:focus,.btn-danger.disabled:active,.btn-danger[disabled]:active,fieldset[disabled] .btn-danger:active,.btn-danger.disabled.active,.btn-danger[disabled].active,fieldset[disabled] .btn-danger.active{background-color:#d9534f;border-color:#d43f3a}.btn-danger .badge{color:#d9534f;background-color:#fff}.btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c}.btn-success:hover,.btn-success:focus,.btn-success:active,.btn-success.active,.open .dropdown-toggle.btn-success{color:#fff;background-color:#47a447;border-color:#398439}.btn-success:active,.btn-success.active,.open .dropdown-toggle.btn-success{background-image:none}.btn-success.disabled,.btn-success[disabled],fieldset[disabled] .btn-success,.btn-success.disabled:hover,.btn-success[disabled]:hover,fieldset[disabled] .btn-success:hover,.btn-success.disabled:focus,.btn-success[disabled]:focus,fieldset[disabled] .btn-success:focus,.btn-success.disabled:active,.btn-success[disabled]:active,fieldset[disabled] .btn-success:active,.btn-success.disabled.active,.btn-success[disabled].active,fieldset[disabled] .btn-success.active{background-color:#5cb85c;border-color:#4cae4c}.btn-success .badge{color:#5cb85c;background-color:#fff}.btn-info{color:#fff;background-color:#5bc0de;border-color:#46b8da}.btn-info:hover,.btn-info:focus,.btn-info:active,.btn-info.active,.open .dropdown-toggle.btn-info{color:#fff;background-color:#39b3d7;border-color:#269abc}.btn-info:active,.btn-info.active,.open .dropdown-toggle.btn-info{background-image:none}.btn-info.disabled,.btn-info[disabled],fieldset[disabled] .btn-info,.btn-info.disabled:hover,.btn-info[disabled]:hover,fieldset[disabled] .btn-info:hover,.btn-info.disabled:focus,.btn-info[disabled]:focus,fieldset[disabled] .btn-info:focus,.btn-info.disabled:active,.btn-info[disabled]:active,fieldset[disabled] .btn-info:active,.btn-info.disabled.active,.btn-info[disabled].active,fieldset[disabled] .btn-info.active{background-color:#5bc0de;border-color:#46b8da}.btn-info .badge{color:#5bc0de;background-color:#fff}.btn-link{font-weight:normal;color:#428bca;cursor:pointer;border-radius:0}.btn-link,.btn-link:active,.btn-link[disabled],fieldset[disabled] .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.btn-link,.btn-link:hover,.btn-link:focus,.btn-link:active{border-color:transparent}.btn-link:hover,.btn-link:focus{color:#2a6496;text-decoration:underline;background-color:transparent}.btn-link[disabled]:hover,fieldset[disabled] .btn-link:hover,.btn-link[disabled]:focus,fieldset[disabled] .btn-link:focus{color:#999;text-decoration:none}.btn-lg{padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}.btn-sm{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.btn-xs{padding:1px 5px;font-size:12px;line-height:1.5;border-radius:3px}.btn-block{display:block;width:100%;padding-right:0;padding-left:0}.btn-block+.btn-block{margin-top:5px}input[type="submit"].btn-block,input[type="reset"].btn-block,input[type="button"].btn-block{width:100%}.fade{opacity:0;-webkit-transition:opacity .15s linear;transition:opacity .15s linear}.fade.in{opacity:1}.collapse{display:none}.collapse.in{display:block}.collapsing{position:relative;height:0;overflow:hidden;-webkit-transition:height .35s ease;transition:height .35s ease}@font-face{font-family:'Glyphicons Halflings';src:url('../fonts/glyphicons-halflings-regular.eot');src:url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'),url('../fonts/glyphicons-halflings-regular.woff') format('woff'),url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'),url('../fonts/glyphicons-halflings-regular.svg#glyphicons-halflingsregular') format('svg')}.glyphicon{position:relative;top:1px;display:inline-block;font-family:'Glyphicons Halflings';-webkit-font-smoothing:antialiased;font-style:normal;font-weight:normal;line-height:1;-moz-osx-font-smoothing:grayscale}.glyphicon:empty{width:1em}.glyphicon-asterisk:before{content:"\2a"}.glyphicon-plus:before{content:"\2b"}.glyphicon-euro:before{content:"\20ac"}.glyphicon-minus:before{content:"\2212"}.glyphicon-cloud:before{content:"\2601"}.glyphicon-envelope:before{content:"\2709"}.glyphicon-pencil:before{content:"\270f"}.glyphicon-glass:before{content:"\e001"}.glyphicon-music:before{content:"\e002"}.glyphicon-search:before{content:"\e003"}.glyphicon-heart:before{content:"\e005"}.glyphicon-star:before{content:"\e006"}.glyphicon-star-empty:before{content:"\e007"}.glyphicon-user:before{content:"\e008"}.glyphicon-film:before{content:"\e009"}.glyphicon-th-large:before{content:"\e010"}.glyphicon-th:before{content:"\e011"}.glyphicon-th-list:before{content:"\e012"}.glyphicon-ok:before{content:"\e013"}.glyphicon-remove:before{content:"\e014"}.glyphicon-zoom-in:before{content:"\e015"}.glyphicon-zoom-out:before{content:"\e016"}.glyphicon-off:before{content:"\e017"}.glyphicon-signal:before{content:"\e018"}.glyphicon-cog:before{content:"\e019"}.glyphicon-trash:before{content:"\e020"}.glyphicon-home:before{content:"\e021"}.glyphicon-file:before{content:"\e022"}.glyphicon-time:before{content:"\e023"}.glyphicon-road:before{content:"\e024"}.glyphicon-download-alt:before{content:"\e025"}.glyphicon-download:before{content:"\e026"}.glyphicon-upload:before{content:"\e027"}.glyphicon-inbox:before{content:"\e028"}.glyphicon-play-circle:before{content:"\e029"}.glyphicon-repeat:before{content:"\e030"}.glyphicon-refresh:before{content:"\e031"}.glyphicon-list-alt:before{content:"\e032"}.glyphicon-lock:before{content:"\e033"}.glyphicon-flag:before{content:"\e034"}.glyphicon-headphones:before{content:"\e035"}.glyphicon-volume-off:before{content:"\e036"}.glyphicon-volume-down:before{content:"\e037"}.glyphicon-volume-up:before{content:"\e038"}.glyphicon-qrcode:before{content:"\e039"}.glyphicon-barcode:before{content:"\e040"}.glyphicon-tag:before{content:"\e041"}.glyphicon-tags:before{content:"\e042"}.glyphicon-book:before{content:"\e043"}.glyphicon-bookmark:before{content:"\e044"}.glyphicon-print:before{content:"\e045"}.glyphicon-camera:before{content:"\e046"}.glyphicon-font:before{content:"\e047"}.glyphicon-bold:before{content:"\e048"}.glyphicon-italic:before{content:"\e049"}.glyphicon-text-height:before{content:"\e050"}.glyphicon-text-width:before{content:"\e051"}.glyphicon-align-left:before{content:"\e052"}.glyphicon-align-center:before{content:"\e053"}.glyphicon-align-right:before{content:"\e054"}.glyphicon-align-justify:before{content:"\e055"}.glyphicon-list:before{content:"\e056"}.glyphicon-indent-left:before{content:"\e057"}.glyphicon-indent-right:before{content:"\e058"}.glyphicon-facetime-video:before{content:"\e059"}.glyphicon-picture:before{content:"\e060"}.glyphicon-map-marker:before{content:"\e062"}.glyphicon-adjust:before{content:"\e063"}.glyphicon-tint:before{content:"\e064"}.glyphicon-edit:before{content:"\e065"}.glyphicon-share:before{content:"\e066"}.glyphicon-check:before{content:"\e067"}.glyphicon-move:before{content:"\e068"}.glyphicon-step-backward:before{content:"\e069"}.glyphicon-fast-backward:before{content:"\e070"}.glyphicon-backward:before{content:"\e071"}.glyphicon-play:before{content:"\e072"}.glyphicon-pause:before{content:"\e073"}.glyphicon-stop:before{content:"\e074"}.glyphicon-forward:before{content:"\e075"}.glyphicon-fast-forward:before{content:"\e076"}.glyphicon-step-forward:before{content:"\e077"}.glyphicon-eject:before{content:"\e078"}.glyphicon-chevron-left:before{content:"\e079"}.glyphicon-chevron-right:before{content:"\e080"}.glyphicon-plus-sign:before{content:"\e081"}.glyphicon-minus-sign:before{content:"\e082"}.glyphicon-remove-sign:before{content:"\e083"}.glyphicon-ok-sign:before{content:"\e084"}.glyphicon-question-sign:before{content:"\e085"}.glyphicon-info-sign:before{content:"\e086"}.glyphicon-screenshot:before{content:"\e087"}.glyphicon-remove-circle:before{content:"\e088"}.glyphicon-ok-circle:before{content:"\e089"}.glyphicon-ban-circle:before{content:"\e090"}.glyphicon-arrow-left:before{content:"\e091"}.glyphicon-arrow-right:before{content:"\e092"}.glyphicon-arrow-up:before{content:"\e093"}.glyphicon-arrow-down:before{content:"\e094"}.glyphicon-share-alt:before{content:"\e095"}.glyphicon-resize-full:before{content:"\e096"}.glyphicon-resize-small:before{content:"\e097"}.glyphicon-exclamation-sign:before{content:"\e101"}.glyphicon-gift:before{content:"\e102"}.glyphicon-leaf:before{content:"\e103"}.glyphicon-fire:before{content:"\e104"}.glyphicon-eye-open:before{content:"\e105"}.glyphicon-eye-close:before{content:"\e106"}.glyphicon-warning-sign:before{content:"\e107"}.glyphicon-plane:before{content:"\e108"}.glyphicon-calendar:before{content:"\e109"}.glyphicon-random:before{content:"\e110"}.glyphicon-comment:before{content:"\e111"}.glyphicon-magnet:before{content:"\e112"}.glyphicon-chevron-up:before{content:"\e113"}.glyphicon-chevron-down:before{content:"\e114"}.glyphicon-retweet:before{content:"\e115"}.glyphicon-shopping-cart:before{content:"\e116"}.glyphicon-folder-close:before{content:"\e117"}.glyphicon-folder-open:before{content:"\e118"}.glyphicon-resize-vertical:before{content:"\e119"}.glyphicon-resize-horizontal:before{content:"\e120"}.glyphicon-hdd:before{content:"\e121"}.glyphicon-bullhorn:before{content:"\e122"}.glyphicon-bell:before{content:"\e123"}.glyphicon-certificate:before{content:"\e124"}.glyphicon-thumbs-up:before{content:"\e125"}.glyphicon-thumbs-down:before{content:"\e126"}.glyphicon-hand-right:before{content:"\e127"}.glyphicon-hand-left:before{content:"\e128"}.glyphicon-hand-up:before{content:"\e129"}.glyphicon-hand-down:before{content:"\e130"}.glyphicon-circle-arrow-right:before{content:"\e131"}.glyphicon-circle-arrow-left:before{content:"\e132"}.glyphicon-circle-arrow-up:before{content:"\e133"}.glyphicon-circle-arrow-down:before{content:"\e134"}.glyphicon-globe:before{content:"\e135"}.glyphicon-wrench:before{content:"\e136"}.glyphicon-tasks:before{content:"\e137"}.glyphicon-filter:before{content:"\e138"}.glyphicon-briefcase:before{content:"\e139"}.glyphicon-fullscreen:before{content:"\e140"}.glyphicon-dashboard:before{content:"\e141"}.glyphicon-paperclip:before{content:"\e142"}.glyphicon-heart-empty:before{content:"\e143"}.glyphicon-link:before{content:"\e144"}.glyphicon-phone:before{content:"\e145"}.glyphicon-pushpin:before{content:"\e146"}.glyphicon-usd:before{content:"\e148"}.glyphicon-gbp:before{content:"\e149"}.glyphicon-sort:before{content:"\e150"}.glyphicon-sort-by-alphabet:before{content:"\e151"}.glyphicon-sort-by-alphabet-alt:before{content:"\e152"}.glyphicon-sort-by-order:before{content:"\e153"}.glyphicon-sort-by-order-alt:before{content:"\e154"}.glyphicon-sort-by-attributes:before{content:"\e155"}.glyphicon-sort-by-attributes-alt:before{content:"\e156"}.glyphicon-unchecked:before{content:"\e157"}.glyphicon-expand:before{content:"\e158"}.glyphicon-collapse-down:before{content:"\e159"}.glyphicon-collapse-up:before{content:"\e160"}.glyphicon-log-in:before{content:"\e161"}.glyphicon-flash:before{content:"\e162"}.glyphicon-log-out:before{content:"\e163"}.glyphicon-new-window:before{content:"\e164"}.glyphicon-record:before{content:"\e165"}.glyphicon-save:before{content:"\e166"}.glyphicon-open:before{content:"\e167"}.glyphicon-saved:before{content:"\e168"}.glyphicon-import:before{content:"\e169"}.glyphicon-export:before{content:"\e170"}.glyphicon-send:before{content:"\e171"}.glyphicon-floppy-disk:before{content:"\e172"}.glyphicon-floppy-saved:before{content:"\e173"}.glyphicon-floppy-remove:before{content:"\e174"}.glyphicon-floppy-save:before{content:"\e175"}.glyphicon-floppy-open:before{content:"\e176"}.glyphicon-credit-card:before{content:"\e177"}.glyphicon-transfer:before{content:"\e178"}.glyphicon-cutlery:before{content:"\e179"}.glyphicon-header:before{content:"\e180"}.glyphicon-compressed:before{content:"\e181"}.glyphicon-earphone:before{content:"\e182"}.glyphicon-phone-alt:before{content:"\e183"}.glyphicon-tower:before{content:"\e184"}.glyphicon-stats:before{content:"\e185"}.glyphicon-sd-video:before{content:"\e186"}.glyphicon-hd-video:before{content:"\e187"}.glyphicon-subtitles:before{content:"\e188"}.glyphicon-sound-stereo:before{content:"\e189"}.glyphicon-sound-dolby:before{content:"\e190"}.glyphicon-sound-5-1:before{content:"\e191"}.glyphicon-sound-6-1:before{content:"\e192"}.glyphicon-sound-7-1:before{content:"\e193"}.glyphicon-copyright-mark:before{content:"\e194"}.glyphicon-registration-mark:before{content:"\e195"}.glyphicon-cloud-download:before{content:"\e197"}.glyphicon-cloud-upload:before{content:"\e198"}.glyphicon-tree-conifer:before{content:"\e199"}.glyphicon-tree-deciduous:before{content:"\e200"}.caret{display:inline-block;width:0;height:0;margin-left:2px;vertical-align:middle;border-top:4px solid;border-right:4px solid transparent;border-left:4px solid transparent}.dropdown{position:relative}.dropdown-toggle:focus{outline:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;font-size:14px;list-style:none;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,0.15);border-radius:4px;-webkit-box-shadow:0 6px 12px rgba(0,0,0,0.175);box-shadow:0 6px 12px rgba(0,0,0,0.175);background-clip:padding-box}.dropdown-menu.pull-right{right:0;left:auto}.dropdown-menu .divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.dropdown-menu>li>a{display:block;padding:3px 20px;clear:both;font-weight:normal;line-height:1.428571429;color:#333;white-space:nowrap}.dropdown-menu>li>a:hover,.dropdown-menu>li>a:focus{color:#262626;text-decoration:none;background-color:#f5f5f5}.dropdown-menu>.active>a,.dropdown-menu>.active>a:hover,.dropdown-menu>.active>a:focus{color:#fff;text-decoration:none;background-color:#428bca;outline:0}.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:hover,.dropdown-menu>.disabled>a:focus{color:#999}.dropdown-menu>.disabled>a:hover,.dropdown-menu>.disabled>a:focus{text-decoration:none;cursor:not-allowed;background-color:transparent;background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.open>.dropdown-menu{display:block}.open>a{outline:0}.dropdown-header{display:block;padding:3px 20px;font-size:12px;line-height:1.428571429;color:#999}.dropdown-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:990}.pull-right>.dropdown-menu{right:0;left:auto}.dropup .caret,.navbar-fixed-bottom .dropdown .caret{border-top:0;border-bottom:4px solid;content:""}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:1px}@media(min-width:768px){.navbar-right .dropdown-menu{right:0;left:auto}}.btn-group,.btn-group-vertical{position:relative;display:inline-block;vertical-align:middle}.btn-group>.btn,.btn-group-vertical>.btn{position:relative;float:left}.btn-group>.btn:hover,.btn-group-vertical>.btn:hover,.btn-group>.btn:focus,.btn-group-vertical>.btn:focus,.btn-group>.btn:active,.btn-group-vertical>.btn:active,.btn-group>.btn.active,.btn-group-vertical>.btn.active{z-index:2}.btn-group>.btn:focus,.btn-group-vertical>.btn:focus{outline:0}.btn-group .btn+.btn,.btn-group .btn+.btn-group,.btn-group .btn-group+.btn,.btn-group .btn-group+.btn-group{margin-left:-1px}.btn-toolbar:before,.btn-toolbar:after{display:table;content:" "}.btn-toolbar:after{clear:both}.btn-toolbar:before,.btn-toolbar:after{display:table;content:" "}.btn-toolbar:after{clear:both}.btn-toolbar .btn-group{float:left}.btn-toolbar>.btn+.btn,.btn-toolbar>.btn-group+.btn,.btn-toolbar>.btn+.btn-group,.btn-toolbar>.btn-group+.btn-group{margin-left:5px}.btn-group>.btn:not(:first-child):not(:last-child):not(.dropdown-toggle){border-radius:0}.btn-group>.btn:first-child{margin-left:0}.btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn:last-child:not(:first-child),.btn-group>.dropdown-toggle:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.btn-group>.btn-group{float:left}.btn-group>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group>.btn-group:first-child>.btn:last-child,.btn-group>.btn-group:first-child>.dropdown-toggle{border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:last-child>.btn:first-child{border-bottom-left-radius:0;border-top-left-radius:0}.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle{outline:0}.btn-group-xs>.btn{padding:1px 5px;font-size:12px;line-height:1.5;border-radius:3px}.btn-group-sm>.btn{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.btn-group-lg>.btn{padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}.btn-group>.btn+.dropdown-toggle{padding-right:8px;padding-left:8px}.btn-group>.btn-lg+.dropdown-toggle{padding-right:12px;padding-left:12px}.btn-group.open .dropdown-toggle{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,0.125);box-shadow:inset 0 3px 5px rgba(0,0,0,0.125)}.btn-group.open .dropdown-toggle.btn-link{-webkit-box-shadow:none;box-shadow:none}.btn .caret{margin-left:0}.btn-lg .caret{border-width:5px 5px 0;border-bottom-width:0}.dropup .btn-lg .caret{border-width:0 5px 5px}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group,.btn-group-vertical>.btn-group>.btn{display:block;float:none;width:100%;max-width:100%}.btn-group-vertical>.btn-group:before,.btn-group-vertical>.btn-group:after{display:table;content:" "}.btn-group-vertical>.btn-group:after{clear:both}.btn-group-vertical>.btn-group:before,.btn-group-vertical>.btn-group:after{display:table;content:" "}.btn-group-vertical>.btn-group:after{clear:both}.btn-group-vertical>.btn-group>.btn{float:none}.btn-group-vertical>.btn+.btn,.btn-group-vertical>.btn+.btn-group,.btn-group-vertical>.btn-group+.btn,.btn-group-vertical>.btn-group+.btn-group{margin-top:-1px;margin-left:0}.btn-group-vertical>.btn:not(:first-child):not(:last-child){border-radius:0}.btn-group-vertical>.btn:first-child:not(:last-child){border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn:last-child:not(:first-child){border-top-right-radius:0;border-bottom-left-radius:4px;border-top-left-radius:0}.btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group-vertical>.btn-group:first-child>.btn:last-child,.btn-group-vertical>.btn-group:first-child>.dropdown-toggle{border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:last-child>.btn:first-child{border-top-right-radius:0;border-top-left-radius:0}.btn-group-justified{display:table;width:100%;border-collapse:separate;table-layout:fixed}.btn-group-justified>.btn,.btn-group-justified>.btn-group{display:table-cell;float:none;width:1%}.btn-group-justified>.btn-group .btn{width:100%}[data-toggle="buttons"]>.btn>input[type="radio"],[data-toggle="buttons"]>.btn>input[type="checkbox"]{display:none}.input-group{position:relative;display:table;border-collapse:separate}.input-group[class*="col-"]{float:none;padding-right:0;padding-left:0}.input-group .form-control{width:100%;margin-bottom:0}.input-group-lg>.form-control,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.btn{height:46px;padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}select.input-group-lg>.form-control,select.input-group-lg>.input-group-addon,select.input-group-lg>.input-group-btn>.btn{height:46px;line-height:46px}textarea.input-group-lg>.form-control,textarea.input-group-lg>.input-group-addon,textarea.input-group-lg>.input-group-btn>.btn{height:auto}.input-group-sm>.form-control,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.btn{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-group-sm>.form-control,select.input-group-sm>.input-group-addon,select.input-group-sm>.input-group-btn>.btn{height:30px;line-height:30px}textarea.input-group-sm>.form-control,textarea.input-group-sm>.input-group-addon,textarea.input-group-sm>.input-group-btn>.btn{height:auto}.input-group-addon,.input-group-btn,.input-group .form-control{display:table-cell}.input-group-addon:not(:first-child):not(:last-child),.input-group-btn:not(:first-child):not(:last-child),.input-group .form-control:not(:first-child):not(:last-child){border-radius:0}.input-group-addon,.input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.input-group-addon{padding:6px 12px;font-size:14px;font-weight:normal;line-height:1;color:#555;text-align:center;background-color:#eee;border:1px solid #ccc;border-radius:4px}.input-group-addon.input-sm{padding:5px 10px;font-size:12px;border-radius:3px}.input-group-addon.input-lg{padding:10px 16px;font-size:18px;border-radius:6px}.input-group-addon input[type="radio"],.input-group-addon input[type="checkbox"]{margin-top:0}.input-group .form-control:first-child,.input-group-addon:first-child,.input-group-btn:first-child>.btn,.input-group-btn:first-child>.dropdown-toggle,.input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.input-group-addon:first-child{border-right:0}.input-group .form-control:last-child,.input-group-addon:last-child,.input-group-btn:last-child>.btn,.input-group-btn:last-child>.dropdown-toggle,.input-group-btn:first-child>.btn:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.input-group-addon:last-child{border-left:0}.input-group-btn{position:relative;white-space:nowrap}.input-group-btn:first-child>.btn{margin-right:-1px}.input-group-btn:last-child>.btn{margin-left:-1px}.input-group-btn>.btn{position:relative}.input-group-btn>.btn+.btn{margin-left:-4px}.input-group-btn>.btn:hover,.input-group-btn>.btn:active{z-index:2}.nav{padding-left:0;margin-bottom:0;list-style:none}.nav:before,.nav:after{display:table;content:" "}.nav:after{clear:both}.nav:before,.nav:after{display:table;content:" "}.nav:after{clear:both}.nav>li{position:relative;display:block}.nav>li>a{position:relative;display:block;padding:10px 15px}.nav>li>a:hover,.nav>li>a:focus{text-decoration:none;background-color:#eee}.nav>li.disabled>a{color:#999}.nav>li.disabled>a:hover,.nav>li.disabled>a:focus{color:#999;text-decoration:none;cursor:not-allowed;background-color:transparent}.nav .open>a,.nav .open>a:hover,.nav .open>a:focus{background-color:#eee;border-color:#428bca}.nav .nav-divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.nav>li>a>img{max-width:none}.nav-tabs{border-bottom:1px solid #ddd}.nav-tabs>li{float:left;margin-bottom:-1px}.nav-tabs>li>a{margin-right:2px;line-height:1.428571429;border:1px solid transparent;border-radius:4px 4px 0 0}.nav-tabs>li>a:hover{border-color:#eee #eee #ddd}.nav-tabs>li.active>a,.nav-tabs>li.active>a:hover,.nav-tabs>li.active>a:focus{color:#555;cursor:default;background-color:#fff;border:1px solid #ddd;border-bottom-color:transparent}.nav-tabs.nav-justified{width:100%;border-bottom:0}.nav-tabs.nav-justified>li{float:none}.nav-tabs.nav-justified>li>a{margin-bottom:5px;text-align:center}.nav-tabs.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media(min-width:768px){.nav-tabs.nav-justified>li{display:table-cell;width:1%}.nav-tabs.nav-justified>li>a{margin-bottom:0}}.nav-tabs.nav-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:hover,.nav-tabs.nav-justified>.active>a:focus{border:1px solid #ddd}@media(min-width:768px){.nav-tabs.nav-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:hover,.nav-tabs.nav-justified>.active>a:focus{border-bottom-color:#fff}}.nav-pills>li{float:left}.nav-pills>li>a{border-radius:4px}.nav-pills>li+li{margin-left:2px}.nav-pills>li.active>a,.nav-pills>li.active>a:hover,.nav-pills>li.active>a:focus{color:#fff;background-color:#428bca}.nav-stacked>li{float:none}.nav-stacked>li+li{margin-top:2px;margin-left:0}.nav-justified{width:100%}.nav-justified>li{float:none}.nav-justified>li>a{margin-bottom:5px;text-align:center}.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media(min-width:768px){.nav-justified>li{display:table-cell;width:1%}.nav-justified>li>a{margin-bottom:0}}.nav-tabs-justified{border-bottom:0}.nav-tabs-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:hover,.nav-tabs-justified>.active>a:focus{border:1px solid #ddd}@media(min-width:768px){.nav-tabs-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:hover,.nav-tabs-justified>.active>a:focus{border-bottom-color:#fff}}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-right-radius:0;border-top-left-radius:0}.navbar{position:relative;min-height:50px;margin-bottom:20px;border:1px solid transparent}.navbar:before,.navbar:after{display:table;content:" "}.navbar:after{clear:both}.navbar:before,.navbar:after{display:table;content:" "}.navbar:after{clear:both}@media(min-width:768px){.navbar{border-radius:4px}}.navbar-header:before,.navbar-header:after{display:table;content:" "}.navbar-header:after{clear:both}.navbar-header:before,.navbar-header:after{display:table;content:" "}.navbar-header:after{clear:both}@media(min-width:768px){.navbar-header{float:left}}.navbar-collapse{max-height:340px;padding-right:15px;padding-left:15px;overflow-x:visible;border-top:1px solid transparent;box-shadow:inset 0 1px 0 rgba(255,255,255,0.1);-webkit-overflow-scrolling:touch}.navbar-collapse:before,.navbar-collapse:after{display:table;content:" "}.navbar-collapse:after{clear:both}.navbar-collapse:before,.navbar-collapse:after{display:table;content:" "}.navbar-collapse:after{clear:both}.navbar-collapse.in{overflow-y:auto}@media(min-width:768px){.navbar-collapse{width:auto;border-top:0;box-shadow:none}.navbar-collapse.collapse{display:block!important;height:auto!important;padding-bottom:0;overflow:visible!important}.navbar-collapse.in{overflow-y:visible}.navbar-fixed-top .navbar-collapse,.navbar-static-top .navbar-collapse,.navbar-fixed-bottom .navbar-collapse{padding-right:0;padding-left:0}}.container>.navbar-header,.container>.navbar-collapse{margin-right:-15px;margin-left:-15px}@media(min-width:768px){.container>.navbar-header,.container>.navbar-collapse{margin-right:0;margin-left:0}}.navbar-static-top{z-index:1000;border-width:0 0 1px}@media(min-width:768px){.navbar-static-top{border-radius:0}}.navbar-fixed-top,.navbar-fixed-bottom{position:fixed;right:0;left:0;z-index:1030}@media(min-width:768px){.navbar-fixed-top,.navbar-fixed-bottom{border-radius:0}}.navbar-fixed-top{top:0;border-width:0 0 1px}.navbar-fixed-bottom{bottom:0;margin-bottom:0;border-width:1px 0 0}.navbar-brand{float:left;padding:15px 15px;font-size:18px;line-height:20px}.navbar-brand:hover,.navbar-brand:focus{text-decoration:none}@media(min-width:768px){.navbar>.container .navbar-brand{margin-left:-15px}}.navbar-toggle{position:relative;float:right;padding:9px 10px;margin-top:8px;margin-right:15px;margin-bottom:8px;background-color:transparent;background-image:none;border:1px solid transparent;border-radius:4px}.navbar-toggle .icon-bar{display:block;width:22px;height:2px;border-radius:1px}.navbar-toggle .icon-bar+.icon-bar{margin-top:4px}@media(min-width:768px){.navbar-toggle{display:none}}.navbar-nav{margin:7.5px -15px}.navbar-nav>li>a{padding-top:10px;padding-bottom:10px;line-height:20px}@media(max-width:767px){.navbar-nav .open .dropdown-menu{position:static;float:none;width:auto;margin-top:0;background-color:transparent;border:0;box-shadow:none}.navbar-nav .open .dropdown-menu>li>a,.navbar-nav .open .dropdown-menu .dropdown-header{padding:5px 15px 5px 25px}.navbar-nav .open .dropdown-menu>li>a{line-height:20px}.navbar-nav .open .dropdown-menu>li>a:hover,.navbar-nav .open .dropdown-menu>li>a:focus{background-image:none}}@media(min-width:768px){.navbar-nav{float:left;margin:0}.navbar-nav>li{float:left}.navbar-nav>li>a{padding-top:15px;padding-bottom:15px}.navbar-nav.navbar-right:last-child{margin-right:-15px}}@media(min-width:768px){.navbar-left{float:left!important}.navbar-right{float:right!important}}.navbar-form{padding:10px 15px;margin-top:8px;margin-right:-15px;margin-bottom:8px;margin-left:-15px;border-top:1px solid transparent;border-bottom:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,0.1),0 1px 0 rgba(255,255,255,0.1);box-shadow:inset 0 1px 0 rgba(255,255,255,0.1),0 1px 0 rgba(255,255,255,0.1)}@media(min-width:768px){.navbar-form .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.navbar-form .form-control{display:inline-block}.navbar-form select.form-control{width:auto}.navbar-form .radio,.navbar-form .checkbox{display:inline-block;padding-left:0;margin-top:0;margin-bottom:0}.navbar-form .radio input[type="radio"],.navbar-form .checkbox input[type="checkbox"]{float:none;margin-left:0}}@media(max-width:767px){.navbar-form .form-group{margin-bottom:5px}}@media(min-width:768px){.navbar-form{width:auto;padding-top:0;padding-bottom:0;margin-right:0;margin-left:0;border:0;-webkit-box-shadow:none;box-shadow:none}.navbar-form.navbar-right:last-child{margin-right:-15px}}.navbar-nav>li>.dropdown-menu{margin-top:0;border-top-right-radius:0;border-top-left-radius:0}.navbar-fixed-bottom .navbar-nav>li>.dropdown-menu{border-bottom-right-radius:0;border-bottom-left-radius:0}.navbar-nav.pull-right>li>.dropdown-menu,.navbar-nav>li>.dropdown-menu.pull-right{right:0;left:auto}.navbar-btn{margin-top:8px;margin-bottom:8px}.navbar-btn.btn-sm{margin-top:10px;margin-bottom:10px}.navbar-btn.btn-xs{margin-top:14px;margin-bottom:14px}.navbar-text{margin-top:15px;margin-bottom:15px}@media(min-width:768px){.navbar-text{float:left;margin-right:15px;margin-left:15px}.navbar-text.navbar-right:last-child{margin-right:0}}.navbar-default{background-color:#f8f8f8;border-color:#e7e7e7}.navbar-default .navbar-brand{color:#777}.navbar-default .navbar-brand:hover,.navbar-default .navbar-brand:focus{color:#5e5e5e;background-color:transparent}.navbar-default .navbar-text{color:#777}.navbar-default .navbar-nav>li>a{color:#777}.navbar-default .navbar-nav>li>a:hover,.navbar-default .navbar-nav>li>a:focus{color:#333;background-color:transparent}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.active>a:hover,.navbar-default .navbar-nav>.active>a:focus{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav>.disabled>a,.navbar-default .navbar-nav>.disabled>a:hover,.navbar-default .navbar-nav>.disabled>a:focus{color:#ccc;background-color:transparent}.navbar-default .navbar-toggle{border-color:#ddd}.navbar-default .navbar-toggle:hover,.navbar-default .navbar-toggle:focus{background-color:#ddd}.navbar-default .navbar-toggle .icon-bar{background-color:#ccc}.navbar-default .navbar-collapse,.navbar-default .navbar-form{border-color:#e7e7e7}.navbar-default .navbar-nav>.open>a,.navbar-default .navbar-nav>.open>a:hover,.navbar-default .navbar-nav>.open>a:focus{color:#555;background-color:#e7e7e7}@media(max-width:767px){.navbar-default .navbar-nav .open .dropdown-menu>li>a{color:#777}.navbar-default .navbar-nav .open .dropdown-menu>li>a:hover,.navbar-default .navbar-nav .open .dropdown-menu>li>a:focus{color:#333;background-color:transparent}.navbar-default .navbar-nav .open .dropdown-menu>.active>a,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:focus{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:hover,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:focus{color:#ccc;background-color:transparent}}.navbar-default .navbar-link{color:#777}.navbar-default .navbar-link:hover{color:#333}.navbar-inverse{background-color:#222;border-color:#080808}.navbar-inverse .navbar-brand{color:#999}.navbar-inverse .navbar-brand:hover,.navbar-inverse .navbar-brand:focus{color:#fff;background-color:transparent}.navbar-inverse .navbar-text{color:#999}.navbar-inverse .navbar-nav>li>a{color:#999}.navbar-inverse .navbar-nav>li>a:hover,.navbar-inverse .navbar-nav>li>a:focus{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.active>a:hover,.navbar-inverse .navbar-nav>.active>a:focus{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav>.disabled>a,.navbar-inverse .navbar-nav>.disabled>a:hover,.navbar-inverse .navbar-nav>.disabled>a:focus{color:#444;background-color:transparent}.navbar-inverse .navbar-toggle{border-color:#333}.navbar-inverse .navbar-toggle:hover,.navbar-inverse .navbar-toggle:focus{background-color:#333}.navbar-inverse .navbar-toggle .icon-bar{background-color:#fff}.navbar-inverse .navbar-collapse,.navbar-inverse .navbar-form{border-color:#101010}.navbar-inverse .navbar-nav>.open>a,.navbar-inverse .navbar-nav>.open>a:hover,.navbar-inverse .navbar-nav>.open>a:focus{color:#fff;background-color:#080808}@media(max-width:767px){.navbar-inverse .navbar-nav .open .dropdown-menu>.dropdown-header{border-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu .divider{background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a{color:#999}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:hover,.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:focus{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:hover,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:focus{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:hover,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:focus{color:#444;background-color:transparent}}.navbar-inverse .navbar-link{color:#999}.navbar-inverse .navbar-link:hover{color:#fff}.breadcrumb{padding:8px 15px;margin-bottom:20px;list-style:none;background-color:#f5f5f5;border-radius:4px}.breadcrumb>li{display:inline-block}.breadcrumb>li+li:before{padding:0 5px;color:#ccc;content:"/\00a0"}.breadcrumb>.active{color:#999}.pagination{display:inline-block;padding-left:0;margin:20px 0;border-radius:4px}.pagination>li{display:inline}.pagination>li>a,.pagination>li>span{position:relative;float:left;padding:6px 12px;margin-left:-1px;line-height:1.428571429;text-decoration:none;background-color:#fff;border:1px solid #ddd}.pagination>li:first-child>a,.pagination>li:first-child>span{margin-left:0;border-bottom-left-radius:4px;border-top-left-radius:4px}.pagination>li:last-child>a,.pagination>li:last-child>span{border-top-right-radius:4px;border-bottom-right-radius:4px}.pagination>li>a:hover,.pagination>li>span:hover,.pagination>li>a:focus,.pagination>li>span:focus{background-color:#eee}.pagination>.active>a,.pagination>.active>span,.pagination>.active>a:hover,.pagination>.active>span:hover,.pagination>.active>a:focus,.pagination>.active>span:focus{z-index:2;color:#fff;cursor:default;background-color:#428bca;border-color:#428bca}.pagination>.disabled>span,.pagination>.disabled>span:hover,.pagination>.disabled>span:focus,.pagination>.disabled>a,.pagination>.disabled>a:hover,.pagination>.disabled>a:focus{color:#999;cursor:not-allowed;background-color:#fff;border-color:#ddd}.pagination-lg>li>a,.pagination-lg>li>span{padding:10px 16px;font-size:18px}.pagination-lg>li:first-child>a,.pagination-lg>li:first-child>span{border-bottom-left-radius:6px;border-top-left-radius:6px}.pagination-lg>li:last-child>a,.pagination-lg>li:last-child>span{border-top-right-radius:6px;border-bottom-right-radius:6px}.pagination-sm>li>a,.pagination-sm>li>span{padding:5px 10px;font-size:12px}.pagination-sm>li:first-child>a,.pagination-sm>li:first-child>span{border-bottom-left-radius:3px;border-top-left-radius:3px}.pagination-sm>li:last-child>a,.pagination-sm>li:last-child>span{border-top-right-radius:3px;border-bottom-right-radius:3px}.pager{padding-left:0;margin:20px 0;text-align:center;list-style:none}.pager:before,.pager:after{display:table;content:" "}.pager:after{clear:both}.pager:before,.pager:after{display:table;content:" "}.pager:after{clear:both}.pager li{display:inline}.pager li>a,.pager li>span{display:inline-block;padding:5px 14px;background-color:#fff;border:1px solid #ddd;border-radius:15px}.pager li>a:hover,.pager li>a:focus{text-decoration:none;background-color:#eee}.pager .next>a,.pager .next>span{float:right}.pager .previous>a,.pager .previous>span{float:left}.pager .disabled>a,.pager .disabled>a:hover,.pager .disabled>a:focus,.pager .disabled>span{color:#999;cursor:not-allowed;background-color:#fff}.label{display:inline;padding:.2em .6em .3em;font-size:75%;font-weight:bold;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em}.label[href]:hover,.label[href]:focus{color:#fff;text-decoration:none;cursor:pointer}.label:empty{display:none}.btn .label{position:relative;top:-1px}.label-default{background-color:#999}.label-default[href]:hover,.label-default[href]:focus{background-color:#808080}.label-primary{background-color:#428bca}.label-primary[href]:hover,.label-primary[href]:focus{background-color:#3071a9}.label-success{background-color:#5cb85c}.label-success[href]:hover,.label-success[href]:focus{background-color:#449d44}.label-info{background-color:#5bc0de}.label-info[href]:hover,.label-info[href]:focus{background-color:#31b0d5}.label-warning{background-color:#f0ad4e}.label-warning[href]:hover,.label-warning[href]:focus{background-color:#ec971f}.label-danger{background-color:#d9534f}.label-danger[href]:hover,.label-danger[href]:focus{background-color:#c9302c}.badge{display:inline-block;min-width:10px;padding:3px 7px;font-size:12px;font-weight:bold;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;background-color:#999;border-radius:10px}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}a.badge:hover,a.badge:focus{color:#fff;text-decoration:none;cursor:pointer}a.list-group-item.active>.badge,.nav-pills>.active>a>.badge{color:#428bca;background-color:#fff}.nav-pills>li>a>.badge{margin-left:3px}.jumbotron{padding:30px;margin-bottom:30px;font-size:21px;font-weight:200;line-height:2.1428571435;color:inherit;background-color:#eee}.jumbotron h1,.jumbotron .h1{line-height:1;color:inherit}.jumbotron p{line-height:1.4}.container .jumbotron{border-radius:6px}.jumbotron .container{max-width:100%}@media screen and (min-width:768px){.jumbotron{padding-top:48px;padding-bottom:48px}.container .jumbotron{padding-right:60px;padding-left:60px}.jumbotron h1,.jumbotron .h1{font-size:63px}}.thumbnail{display:block;padding:4px;margin-bottom:20px;line-height:1.428571429;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.thumbnail>img,.thumbnail a>img{display:block;height:auto;max-width:100%;margin-right:auto;margin-left:auto}a.thumbnail:hover,a.thumbnail:focus,a.thumbnail.active{border-color:#428bca}.thumbnail .caption{padding:9px;color:#333}.alert{padding:15px;margin-bottom:20px;border:1px solid transparent;border-radius:4px}.alert h4{margin-top:0;color:inherit}.alert .alert-link{font-weight:bold}.alert>p,.alert>ul{margin-bottom:0}.alert>p+p{margin-top:5px}.alert-dismissable{padding-right:35px}.alert-dismissable .close{position:relative;top:-2px;right:-21px;color:inherit}.alert-success{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.alert-success hr{border-top-color:#c9e2b3}.alert-success .alert-link{color:#2b542c}.alert-info{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.alert-info hr{border-top-color:#a6e1ec}.alert-info .alert-link{color:#245269}.alert-warning{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.alert-warning hr{border-top-color:#f7e1b5}.alert-warning .alert-link{color:#66512c}.alert-danger{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.alert-danger hr{border-top-color:#e4b9c0}.alert-danger .alert-link{color:#843534}@-webkit-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}.progress{height:20px;margin-bottom:20px;overflow:hidden;background-color:#f5f5f5;border-radius:4px;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.1);box-shadow:inset 0 1px 2px rgba(0,0,0,0.1)}.progress-bar{float:left;width:0;height:100%;font-size:12px;line-height:20px;color:#fff;text-align:center;background-color:#428bca;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,0.15);box-shadow:inset 0 -1px 0 rgba(0,0,0,0.15);-webkit-transition:width .6s ease;transition:width .6s ease}.progress-striped .progress-bar{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-size:40px 40px}.progress.active .progress-bar{-webkit-animation:progress-bar-stripes 2s linear infinite;animation:progress-bar-stripes 2s linear infinite}.progress-bar-success{background-color:#5cb85c}.progress-striped .progress-bar-success{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent)}.progress-bar-info{background-color:#5bc0de}.progress-striped .progress-bar-info{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent)}.progress-bar-warning{background-color:#f0ad4e}.progress-striped .progress-bar-warning{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent)}.progress-bar-danger{background-color:#d9534f}.progress-striped .progress-bar-danger{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,0.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,0.15) 50%,rgba(255,255,255,0.15) 75%,transparent 75%,transparent)}.media,.media-body{overflow:hidden;zoom:1}.media,.media .media{margin-top:15px}.media:first-child{margin-top:0}.media-object{display:block}.media-heading{margin:0 0 5px}.media>.pull-left{margin-right:10px}.media>.pull-right{margin-left:10px}.media-list{padding-left:0;list-style:none}.list-group{padding-left:0;margin-bottom:20px}.list-group-item{position:relative;display:block;padding:10px 15px;margin-bottom:-1px;background-color:#fff;border:1px solid #ddd}.list-group-item:first-child{border-top-right-radius:4px;border-top-left-radius:4px}.list-group-item:last-child{margin-bottom:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}.list-group-item>.badge{float:right}.list-group-item>.badge+.badge{margin-right:5px}a.list-group-item{color:#555}a.list-group-item .list-group-item-heading{color:#333}a.list-group-item:hover,a.list-group-item:focus{text-decoration:none;background-color:#f5f5f5}a.list-group-item.active,a.list-group-item.active:hover,a.list-group-item.active:focus{z-index:2;color:#fff;background-color:#428bca;border-color:#428bca}a.list-group-item.active .list-group-item-heading,a.list-group-item.active:hover .list-group-item-heading,a.list-group-item.active:focus .list-group-item-heading{color:inherit}a.list-group-item.active .list-group-item-text,a.list-group-item.active:hover .list-group-item-text,a.list-group-item.active:focus .list-group-item-text{color:#e1edf7}.list-group-item-heading{margin-top:0;margin-bottom:5px}.list-group-item-text{margin-bottom:0;line-height:1.3}.panel{margin-bottom:20px;background-color:#fff;border:1px solid transparent;border-radius:4px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,0.05);box-shadow:0 1px 1px rgba(0,0,0,0.05)}.panel-body{padding:15px}.panel-body:before,.panel-body:after{display:table;content:" "}.panel-body:after{clear:both}.panel-body:before,.panel-body:after{display:table;content:" "}.panel-body:after{clear:both}.panel>.list-group{margin-bottom:0}.panel>.list-group .list-group-item{border-width:1px 0}.panel>.list-group .list-group-item:first-child{border-top-right-radius:0;border-top-left-radius:0}.panel>.list-group .list-group-item:last-child{border-bottom:0}.panel-heading+.list-group .list-group-item:first-child{border-top-width:0}.panel>.table,.panel>.table-responsive>.table{margin-bottom:0}.panel>.panel-body+.table,.panel>.panel-body+.table-responsive{border-top:1px solid #ddd}.panel>.table>tbody:first-child th,.panel>.table>tbody:first-child td{border-top:0}.panel>.table-bordered,.panel>.table-responsive>.table-bordered{border:0}.panel>.table-bordered>thead>tr>th:first-child,.panel>.table-responsive>.table-bordered>thead>tr>th:first-child,.panel>.table-bordered>tbody>tr>th:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:first-child,.panel>.table-bordered>tfoot>tr>th:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:first-child,.panel>.table-bordered>thead>tr>td:first-child,.panel>.table-responsive>.table-bordered>thead>tr>td:first-child,.panel>.table-bordered>tbody>tr>td:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:first-child,.panel>.table-bordered>tfoot>tr>td:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:first-child{border-left:0}.panel>.table-bordered>thead>tr>th:last-child,.panel>.table-responsive>.table-bordered>thead>tr>th:last-child,.panel>.table-bordered>tbody>tr>th:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:last-child,.panel>.table-bordered>tfoot>tr>th:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:last-child,.panel>.table-bordered>thead>tr>td:last-child,.panel>.table-responsive>.table-bordered>thead>tr>td:last-child,.panel>.table-bordered>tbody>tr>td:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:last-child,.panel>.table-bordered>tfoot>tr>td:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:last-child{border-right:0}.panel>.table-bordered>thead>tr:last-child>th,.panel>.table-responsive>.table-bordered>thead>tr:last-child>th,.panel>.table-bordered>tbody>tr:last-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>th,.panel>.table-bordered>tfoot>tr:last-child>th,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>th,.panel>.table-bordered>thead>tr:last-child>td,.panel>.table-responsive>.table-bordered>thead>tr:last-child>td,.panel>.table-bordered>tbody>tr:last-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>td,.panel>.table-bordered>tfoot>tr:last-child>td,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>td{border-bottom:0}.panel>.table-responsive{margin-bottom:0;border:0}.panel-heading{padding:10px 15px;border-bottom:1px solid transparent;border-top-right-radius:3px;border-top-left-radius:3px}.panel-heading>.dropdown .dropdown-toggle{color:inherit}.panel-title{margin-top:0;margin-bottom:0;font-size:16px;color:inherit}.panel-title>a{color:inherit}.panel-footer{padding:10px 15px;background-color:#f5f5f5;border-top:1px solid #ddd;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel-group .panel{margin-bottom:0;overflow:hidden;border-radius:4px}.panel-group .panel+.panel{margin-top:5px}.panel-group .panel-heading{border-bottom:0}.panel-group .panel-heading+.panel-collapse .panel-body{border-top:1px solid #ddd}.panel-group .panel-footer{border-top:0}.panel-group .panel-footer+.panel-collapse .panel-body{border-bottom:1px solid #ddd}.panel-default{border-color:#ddd}.panel-default>.panel-heading{color:#333;background-color:#f5f5f5;border-color:#ddd}.panel-default>.panel-heading+.panel-collapse .panel-body{border-top-color:#ddd}.panel-default>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#ddd}.panel-primary{border-color:#428bca}.panel-primary>.panel-heading{color:#fff;background-color:#428bca;border-color:#428bca}.panel-primary>.panel-heading+.panel-collapse .panel-body{border-top-color:#428bca}.panel-primary>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#428bca}.panel-success{border-color:#d6e9c6}.panel-success>.panel-heading{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.panel-success>.panel-heading+.panel-collapse .panel-body{border-top-color:#d6e9c6}.panel-success>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#d6e9c6}.panel-warning{border-color:#faebcc}.panel-warning>.panel-heading{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.panel-warning>.panel-heading+.panel-collapse .panel-body{border-top-color:#faebcc}.panel-warning>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#faebcc}.panel-danger{border-color:#ebccd1}.panel-danger>.panel-heading{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.panel-danger>.panel-heading+.panel-collapse .panel-body{border-top-color:#ebccd1}.panel-danger>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#ebccd1}.panel-info{border-color:#bce8f1}.panel-info>.panel-heading{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.panel-info>.panel-heading+.panel-collapse .panel-body{border-top-color:#bce8f1}.panel-info>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#bce8f1}.well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px solid #e3e3e3;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.05);box-shadow:inset 0 1px 1px rgba(0,0,0,0.05)}.well blockquote{border-color:#ddd;border-color:rgba(0,0,0,0.15)}.well-lg{padding:24px;border-radius:6px}.well-sm{padding:9px;border-radius:3px}.close{float:right;font-size:21px;font-weight:bold;line-height:1;color:#000;text-shadow:0 1px 0 #fff;opacity:.2;filter:alpha(opacity=20)}.close:hover,.close:focus{color:#000;text-decoration:none;cursor:pointer;opacity:.5;filter:alpha(opacity=50)}button.close{padding:0;cursor:pointer;background:transparent;border:0;-webkit-appearance:none}.modal-open{overflow:hidden}.modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;display:none;overflow:auto;overflow-y:scroll}.modal.fade .modal-dialog{-webkit-transform:translate(0,-25%);-ms-transform:translate(0,-25%);transform:translate(0,-25%);-webkit-transition:-webkit-transform .3s ease-out;-moz-transition:-moz-transform .3s ease-out;-o-transition:-o-transform .3s ease-out;transition:transform .3s ease-out}.modal.in .modal-dialog{-webkit-transform:translate(0,0);-ms-transform:translate(0,0);transform:translate(0,0)}.modal-dialog{position:relative;z-index:1050;width:auto;margin:10px}.modal-content{position:relative;background-color:#fff;border:1px solid #999;border:1px solid rgba(0,0,0,0.2);border-radius:6px;outline:0;-webkit-box-shadow:0 3px 9px rgba(0,0,0,0.5);box-shadow:0 3px 9px rgba(0,0,0,0.5);background-clip:padding-box}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1030;background-color:#000}.modal-backdrop.fade{opacity:0;filter:alpha(opacity=0)}.modal-backdrop.in{opacity:.5;filter:alpha(opacity=50)}.modal-header{min-height:16.428571429px;padding:15px;border-bottom:1px solid #e5e5e5}.modal-header .close{margin-top:-2px}.modal-title{margin:0;line-height:1.428571429}.modal-body{position:relative;padding:20px}.modal-footer{padding:19px 20px 20px;margin-top:15px;text-align:right;border-top:1px solid #e5e5e5}.modal-footer:before,.modal-footer:after{display:table;content:" "}.modal-footer:after{clear:both}.modal-footer:before,.modal-footer:after{display:table;content:" "}.modal-footer:after{clear:both}.modal-footer .btn+.btn{margin-bottom:0;margin-left:5px}.modal-footer .btn-group .btn+.btn{margin-left:-1px}.modal-footer .btn-block+.btn-block{margin-left:0}@media screen and (min-width:768px){.modal-dialog{width:600px;margin:30px auto}.modal-content{-webkit-box-shadow:0 5px 15px rgba(0,0,0,0.5);box-shadow:0 5px 15px rgba(0,0,0,0.5)}}.tooltip{position:absolute;z-index:1030;display:block;font-size:12px;line-height:1.4;opacity:0;filter:alpha(opacity=0);visibility:visible}.tooltip.in{opacity:.9;filter:alpha(opacity=90)}.tooltip.top{padding:5px 0;margin-top:-3px}.tooltip.right{padding:0 5px;margin-left:3px}.tooltip.bottom{padding:5px 0;margin-top:3px}.tooltip.left{padding:0 5px;margin-left:-3px}.tooltip-inner{max-width:200px;padding:3px 8px;color:#fff;text-align:center;text-decoration:none;background-color:#000;border-radius:4px}.tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-top-color:#000;border-width:5px 5px 0}.tooltip.top-left .tooltip-arrow{bottom:0;left:5px;border-top-color:#000;border-width:5px 5px 0}.tooltip.top-right .tooltip-arrow{right:5px;bottom:0;border-top-color:#000;border-width:5px 5px 0}.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-right-color:#000;border-width:5px 5px 5px 0}.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-left-color:#000;border-width:5px 0 5px 5px}.tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-bottom-color:#000;border-width:0 5px 5px}.tooltip.bottom-left .tooltip-arrow{top:0;left:5px;border-bottom-color:#000;border-width:0 5px 5px}.tooltip.bottom-right .tooltip-arrow{top:0;right:5px;border-bottom-color:#000;border-width:0 5px 5px}.popover{position:absolute;top:0;left:0;z-index:1010;display:none;max-width:276px;padding:1px;text-align:left;white-space:normal;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,0.2);border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,0.2);box-shadow:0 5px 10px rgba(0,0,0,0.2);background-clip:padding-box}.popover.top{margin-top:-10px}.popover.right{margin-left:10px}.popover.bottom{margin-top:10px}.popover.left{margin-left:-10px}.popover-title{padding:8px 14px;margin:0;font-size:14px;font-weight:normal;line-height:18px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-radius:5px 5px 0 0}.popover-content{padding:9px 14px}.popover .arrow,.popover .arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.popover .arrow{border-width:11px}.popover .arrow:after{border-width:10px;content:""}.popover.top .arrow{bottom:-11px;left:50%;margin-left:-11px;border-top-color:#999;border-top-color:rgba(0,0,0,0.25);border-bottom-width:0}.popover.top .arrow:after{bottom:1px;margin-left:-10px;border-top-color:#fff;border-bottom-width:0;content:" "}.popover.right .arrow{top:50%;left:-11px;margin-top:-11px;border-right-color:#999;border-right-color:rgba(0,0,0,0.25);border-left-width:0}.popover.right .arrow:after{bottom:-10px;left:1px;border-right-color:#fff;border-left-width:0;content:" "}.popover.bottom .arrow{top:-11px;left:50%;margin-left:-11px;border-bottom-color:#999;border-bottom-color:rgba(0,0,0,0.25);border-top-width:0}.popover.bottom .arrow:after{top:1px;margin-left:-10px;border-bottom-color:#fff;border-top-width:0;content:" "}.popover.left .arrow{top:50%;right:-11px;margin-top:-11px;border-left-color:#999;border-left-color:rgba(0,0,0,0.25);border-right-width:0}.popover.left .arrow:after{right:1px;bottom:-10px;border-left-color:#fff;border-right-width:0;content:" "}.carousel{position:relative}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner>.item{position:relative;display:none;-webkit-transition:.6s ease-in-out left;transition:.6s ease-in-out left}.carousel-inner>.item>img,.carousel-inner>.item>a>img{display:block;height:auto;max-width:100%;line-height:1}.carousel-inner>.active,.carousel-inner>.next,.carousel-inner>.prev{display:block}.carousel-inner>.active{left:0}.carousel-inner>.next,.carousel-inner>.prev{position:absolute;top:0;width:100%}.carousel-inner>.next{left:100%}.carousel-inner>.prev{left:-100%}.carousel-inner>.next.left,.carousel-inner>.prev.right{left:0}.carousel-inner>.active.left{left:-100%}.carousel-inner>.active.right{left:100%}.carousel-control{position:absolute;top:0;bottom:0;left:0;width:15%;font-size:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,0.6);opacity:.5;filter:alpha(opacity=50)}.carousel-control.left{background-image:-webkit-linear-gradient(left,color-stop(rgba(0,0,0,0.5) 0),color-stop(rgba(0,0,0,0.0001) 100%));background-image:linear-gradient(to right,rgba(0,0,0,0.5) 0,rgba(0,0,0,0.0001) 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000',endColorstr='#00000000',GradientType=1)}.carousel-control.right{right:0;left:auto;background-image:-webkit-linear-gradient(left,color-stop(rgba(0,0,0,0.0001) 0),color-stop(rgba(0,0,0,0.5) 100%));background-image:linear-gradient(to right,rgba(0,0,0,0.0001) 0,rgba(0,0,0,0.5) 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000',endColorstr='#80000000',GradientType=1)}.carousel-control:hover,.carousel-control:focus{color:#fff;text-decoration:none;outline:0;opacity:.9;filter:alpha(opacity=90)}.carousel-control .icon-prev,.carousel-control .icon-next,.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right{position:absolute;top:50%;z-index:5;display:inline-block}.carousel-control .icon-prev,.carousel-control .glyphicon-chevron-left{left:50%}.carousel-control .icon-next,.carousel-control .glyphicon-chevron-right{right:50%}.carousel-control .icon-prev,.carousel-control .icon-next{width:20px;height:20px;margin-top:-10px;margin-left:-10px;font-family:serif}.carousel-control .icon-prev:before{content:'\2039'}.carousel-control .icon-next:before{content:'\203a'}.carousel-indicators{position:absolute;bottom:10px;left:50%;z-index:15;width:60%;padding-left:0;margin-left:-30%;text-align:center;list-style:none}.carousel-indicators li{display:inline-block;width:10px;height:10px;margin:1px;text-indent:-999px;cursor:pointer;background-color:#000 \9;background-color:rgba(0,0,0,0);border:1px solid #fff;border-radius:10px}.carousel-indicators .active{width:12px;height:12px;margin:0;background-color:#fff}.carousel-caption{position:absolute;right:15%;bottom:20px;left:15%;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,0.6)}.carousel-caption .btn{text-shadow:none}@media screen and (min-width:768px){.carousel-control .glyphicons-chevron-left,.carousel-control .glyphicons-chevron-right,.carousel-control .icon-prev,.carousel-control .icon-next{width:30px;height:30px;margin-top:-15px;margin-left:-15px;font-size:30px}.carousel-caption{right:20%;left:20%;padding-bottom:30px}.carousel-indicators{bottom:20px}}.clearfix:before,.clearfix:after{display:table;content:" "}.clearfix:after{clear:both}.center-block{display:block;margin-right:auto;margin-left:auto}.pull-right{float:right!important}.pull-left{float:left!important}.hide{display:none!important}.show{display:block!important}.invisible{visibility:hidden}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.hidden{display:none!important;visibility:hidden!important}.affix{position:fixed}@-ms-viewport{width:device-width}.visible-xs,tr.visible-xs,th.visible-xs,td.visible-xs{display:none!important}@media(max-width:767px){.visible-xs{display:block!important}table.visible-xs{display:table}tr.visible-xs{display:table-row!important}th.visible-xs,td.visible-xs{display:table-cell!important}}@media(min-width:768px) and (max-width:991px){.visible-xs.visible-sm{display:block!important}table.visible-xs.visible-sm{display:table}tr.visible-xs.visible-sm{display:table-row!important}th.visible-xs.visible-sm,td.visible-xs.visible-sm{display:table-cell!important}}@media(min-width:992px) and (max-width:1199px){.visible-xs.visible-md{display:block!important}table.visible-xs.visible-md{display:table}tr.visible-xs.visible-md{display:table-row!important}th.visible-xs.visible-md,td.visible-xs.visible-md{display:table-cell!important}}@media(min-width:1200px){.visible-xs.visible-lg{display:block!important}table.visible-xs.visible-lg{display:table}tr.visible-xs.visible-lg{display:table-row!important}th.visible-xs.visible-lg,td.visible-xs.visible-lg{display:table-cell!important}}.visible-sm,tr.visible-sm,th.visible-sm,td.visible-sm{display:none!important}@media(max-width:767px){.visible-sm.visible-xs{display:block!important}table.visible-sm.visible-xs{display:table}tr.visible-sm.visible-xs{display:table-row!important}th.visible-sm.visible-xs,td.visible-sm.visible-xs{display:table-cell!important}}@media(min-width:768px) and (max-width:991px){.visible-sm{display:block!important}table.visible-sm{display:table}tr.visible-sm{display:table-row!important}th.visible-sm,td.visible-sm{display:table-cell!important}}@media(min-width:992px) and (max-width:1199px){.visible-sm.visible-md{display:block!important}table.visible-sm.visible-md{display:table}tr.visible-sm.visible-md{display:table-row!important}th.visible-sm.visible-md,td.visible-sm.visible-md{display:table-cell!important}}@media(min-width:1200px){.visible-sm.visible-lg{display:block!important}table.visible-sm.visible-lg{display:table}tr.visible-sm.visible-lg{display:table-row!important}th.visible-sm.visible-lg,td.visible-sm.visible-lg{display:table-cell!important}}.visible-md,tr.visible-md,th.visible-md,td.visible-md{display:none!important}@media(max-width:767px){.visible-md.visible-xs{display:block!important}table.visible-md.visible-xs{display:table}tr.visible-md.visible-xs{display:table-row!important}th.visible-md.visible-xs,td.visible-md.visible-xs{display:table-cell!important}}@media(min-width:768px) and (max-width:991px){.visible-md.visible-sm{display:block!important}table.visible-md.visible-sm{display:table}tr.visible-md.visible-sm{display:table-row!important}th.visible-md.visible-sm,td.visible-md.visible-sm{display:table-cell!important}}@media(min-width:992px) and (max-width:1199px){.visible-md{display:block!important}table.visible-md{display:table}tr.visible-md{display:table-row!important}th.visible-md,td.visible-md{display:table-cell!important}}@media(min-width:1200px){.visible-md.visible-lg{display:block!important}table.visible-md.visible-lg{display:table}tr.visible-md.visible-lg{display:table-row!important}th.visible-md.visible-lg,td.visible-md.visible-lg{display:table-cell!important}}.visible-lg,tr.visible-lg,th.visible-lg,td.visible-lg{display:none!important}@media(max-width:767px){.visible-lg.visible-xs{display:block!important}table.visible-lg.visible-xs{display:table}tr.visible-lg.visible-xs{display:table-row!important}th.visible-lg.visible-xs,td.visible-lg.visible-xs{display:table-cell!important}}@media(min-width:768px) and (max-width:991px){.visible-lg.visible-sm{display:block!important}table.visible-lg.visible-sm{display:table}tr.visible-lg.visible-sm{display:table-row!important}th.visible-lg.visible-sm,td.visible-lg.visible-sm{display:table-cell!important}}@media(min-width:992px) and (max-width:1199px){.visible-lg.visible-md{display:block!important}table.visible-lg.visible-md{display:table}tr.visible-lg.visible-md{display:table-row!important}th.visible-lg.visible-md,td.visible-lg.visible-md{display:table-cell!important}}@media(min-width:1200px){.visible-lg{display:block!important}table.visible-lg{display:table}tr.visible-lg{display:table-row!important}th.visible-lg,td.visible-lg{display:table-cell!important}}.hidden-xs{display:block!important}table.hidden-xs{display:table}tr.hidden-xs{display:table-row!important}th.hidden-xs,td.hidden-xs{display:table-cell!important}@media(max-width:767px){.hidden-xs,tr.hidden-xs,th.hidden-xs,td.hidden-xs{display:none!important}}@media(min-width:768px) and (max-width:991px){.hidden-xs.hidden-sm,tr.hidden-xs.hidden-sm,th.hidden-xs.hidden-sm,td.hidden-xs.hidden-sm{display:none!important}}@media(min-width:992px) and (max-width:1199px){.hidden-xs.hidden-md,tr.hidden-xs.hidden-md,th.hidden-xs.hidden-md,td.hidden-xs.hidden-md{display:none!important}}@media(min-width:1200px){.hidden-xs.hidden-lg,tr.hidden-xs.hidden-lg,th.hidden-xs.hidden-lg,td.hidden-xs.hidden-lg{display:none!important}}.hidden-sm{display:block!important}table.hidden-sm{display:table}tr.hidden-sm{display:table-row!important}th.hidden-sm,td.hidden-sm{display:table-cell!important}@media(max-width:767px){.hidden-sm.hidden-xs,tr.hidden-sm.hidden-xs,th.hidden-sm.hidden-xs,td.hidden-sm.hidden-xs{display:none!important}}@media(min-width:768px) and (max-width:991px){.hidden-sm,tr.hidden-sm,th.hidden-sm,td.hidden-sm{display:none!important}}@media(min-width:992px) and (max-width:1199px){.hidden-sm.hidden-md,tr.hidden-sm.hidden-md,th.hidden-sm.hidden-md,td.hidden-sm.hidden-md{display:none!important}}@media(min-width:1200px){.hidden-sm.hidden-lg,tr.hidden-sm.hidden-lg,th.hidden-sm.hidden-lg,td.hidden-sm.hidden-lg{display:none!important}}.hidden-md{display:block!important}table.hidden-md{display:table}tr.hidden-md{display:table-row!important}th.hidden-md,td.hidden-md{display:table-cell!important}@media(max-width:767px){.hidden-md.hidden-xs,tr.hidden-md.hidden-xs,th.hidden-md.hidden-xs,td.hidden-md.hidden-xs{display:none!important}}@media(min-width:768px) and (max-width:991px){.hidden-md.hidden-sm,tr.hidden-md.hidden-sm,th.hidden-md.hidden-sm,td.hidden-md.hidden-sm{display:none!important}}@media(min-width:992px) and (max-width:1199px){.hidden-md,tr.hidden-md,th.hidden-md,td.hidden-md{display:none!important}}@media(min-width:1200px){.hidden-md.hidden-lg,tr.hidden-md.hidden-lg,th.hidden-md.hidden-lg,td.hidden-md.hidden-lg{display:none!important}}.hidden-lg{display:block!important}table.hidden-lg{display:table}tr.hidden-lg{display:table-row!important}th.hidden-lg,td.hidden-lg{display:table-cell!important}@media(max-width:767px){.hidden-lg.hidden-xs,tr.hidden-lg.hidden-xs,th.hidden-lg.hidden-xs,td.hidden-lg.hidden-xs{display:none!important}}@media(min-width:768px) and (max-width:991px){.hidden-lg.hidden-sm,tr.hidden-lg.hidden-sm,th.hidden-lg.hidden-sm,td.hidden-lg.hidden-sm{display:none!important}}@media(min-width:992px) and (max-width:1199px){.hidden-lg.hidden-md,tr.hidden-lg.hidden-md,th.hidden-lg.hidden-md,td.hidden-lg.hidden-md{display:none!important}}@media(min-width:1200px){.hidden-lg,tr.hidden-lg,th.hidden-lg,td.hidden-lg{display:none!important}}.visible-print,tr.visible-print,th.visible-print,td.visible-print{display:none!important}@media print{.visible-print{display:block!important}table.visible-print{display:table}tr.visible-print{display:table-row!important}th.visible-print,td.visible-print{display:table-cell!important}.hidden-print,tr.hidden-print,th.hidden-print,td.hidden-print{display:none!important}}
\ No newline at end of file
diff --git a/css/main.css b/css/main.css
new file mode 100755
index 00000000..16ca36cb
--- /dev/null
+++ b/css/main.css
@@ -0,0 +1,72 @@
+body {
+ background-color:#e6e6e6;
+}
+a {
+ color:#ef2e32;
+}
+a:hover {
+ color:#ef2e32;
+}
+.navbar>.container .navbar-brand {
+ margin-left: -15px;
+ color:#fff;
+}
+.navbar>.container .navbar-brand:hover {
+ margin-left: -15px;
+ color:#ef2e32;
+}
+.navbar-inverse .navbar-nav li a {
+ font-size:15px;
+ color: #fff;
+}
+.navbar-inverse .navbar-nav li a:hover {
+ background-color: #ef2e32;
+ color: #000;
+}
+.navbar-inverse .navbar-nav li a.current {
+ color: #ef2e32;
+}
+.navbar-inverse .navbar-nav li a.current:hover {
+ color: #000;
+}
+.jumbotron {
+ background-color:#333;
+ color:#fff;
+}
+
+.row h2 {
+ color:#383838;
+}
+.btn-primary {
+ color: #fff;
+ background-color: #ef2e32;
+ border-color: #af2e30;
+}
+.btn-primary:hover {
+ color: #fff;
+ background-color: #ef2e32;
+ border-color: #af2e30;
+}
+.btn-default {
+ color: #fff;
+ background-color: #c5272b;
+ border-color: #e59092;
+}
+hr {
+ border-top:1px none #000;
+}
+footer {
+ text-align:center;
+ margin-top: 60px;
+}
+footer a {
+ color:#ef2e32;
+}
+footer p.copyright {
+ font-size:10px;
+ margin-top:5px;
+}
+.fixedheight {
+
+
+}
diff --git a/css/prism.css b/css/prism.css
new file mode 100644
index 00000000..ee7d6b8d
--- /dev/null
+++ b/css/prism.css
@@ -0,0 +1,213 @@
+/**
+ * prism.js default theme for JavaScript, CSS and HTML
+ * Based on dabblet (http://dabblet.com)
+ * @author Lea Verou
+ */
+
+code[class*="language-"],
+pre[class*="language-"] {
+ color: black;
+ text-shadow: 0 1px white;
+ font-family: Consolas, Monaco, 'Andale Mono', monospace;
+ direction: ltr;
+ text-align: left;
+ white-space: pre;
+ word-spacing: normal;
+ word-break: normal;
+
+
+ -moz-tab-size: 4;
+ -o-tab-size: 4;
+ tab-size: 4;
+
+ -webkit-hyphens: none;
+ -moz-hyphens: none;
+ -ms-hyphens: none;
+ hyphens: none;
+}
+
+pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,
+code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {
+ text-shadow: none;
+ background: #b3d4fc;
+}
+
+pre[class*="language-"]::selection, pre[class*="language-"] ::selection,
+code[class*="language-"]::selection, code[class*="language-"] ::selection {
+ text-shadow: none;
+ background: #b3d4fc;
+}
+
+@media print {
+ code[class*="language-"],
+ pre[class*="language-"] {
+ text-shadow: none;
+ }
+}
+
+/* Code blocks */
+pre[class*="language-"] {
+ padding: 1em;
+ margin: .5em 0;
+ overflow: auto;
+}
+
+:not(pre) > code[class*="language-"],
+pre[class*="language-"] {
+ background: #f5f2f0;
+}
+
+/* Inline code */
+:not(pre) > code[class*="language-"] {
+ padding: .1em;
+ border-radius: .3em;
+}
+
+.token.comment,
+.token.prolog,
+.token.doctype,
+.token.cdata {
+ color: slategray;
+}
+
+.token.punctuation {
+ color: #999;
+}
+
+.namespace {
+ opacity: .7;
+}
+
+.token.property,
+.token.tag,
+.token.boolean,
+.token.number,
+.token.constant,
+.token.symbol {
+ color: #905;
+}
+
+.token.selector,
+.token.attr-name,
+.token.string,
+.token.builtin {
+ color: #690;
+}
+
+.token.operator,
+.token.entity,
+.token.url,
+.language-css .token.string,
+.style .token.string,
+.token.variable {
+ color: #a67f59;
+ background: hsla(0,0%,100%,.5);
+}
+
+.token.atrule,
+.token.attr-value,
+.token.keyword {
+ color: #07a;
+}
+
+
+.token.regex,
+.token.important {
+ color: #e90;
+}
+
+.token.important {
+ font-weight: bold;
+}
+
+.token.entity {
+ cursor: help;
+}
+
+pre[data-line] {
+ position: relative;
+ padding: 1em 0 1em 3em;
+}
+
+.line-highlight {
+ position: absolute;
+ left: 0;
+ right: 0;
+ padding: inherit 0;
+ margin-top: 1em; /* Same as .prism’s padding-top */
+
+ background: hsla(24, 20%, 50%,.08);
+ background: -moz-linear-gradient(left, hsla(24, 20%, 50%,.1) 70%, hsla(24, 20%, 50%,0));
+ background: -webkit-linear-gradient(left, hsla(24, 20%, 50%,.1) 70%, hsla(24, 20%, 50%,0));
+ background: -o-linear-gradient(left, hsla(24, 20%, 50%,.1) 70%, hsla(24, 20%, 50%,0));
+ background: linear-gradient(left, hsla(24, 20%, 50%,.1) 70%, hsla(24, 20%, 50%,0));
+
+ pointer-events: none;
+
+ line-height: inherit;
+ white-space: pre;
+}
+
+ .line-highlight:before,
+ .line-highlight[data-end]:after {
+ content: attr(data-start);
+ position: absolute;
+ top: .4em;
+ left: .6em;
+ min-width: 1em;
+ padding: 0 .5em;
+ background-color: hsla(24, 20%, 50%,.4);
+ color: hsl(24, 20%, 95%);
+ font: bold 65%/1.5 sans-serif;
+ text-align: center;
+ vertical-align: .3em;
+ border-radius: 999px;
+ text-shadow: none;
+ box-shadow: 0 1px white;
+ }
+
+ .line-highlight[data-end]:after {
+ content: attr(data-end);
+ top: auto;
+ bottom: .4em;
+ }
+pre.line-numbers {
+ position: relative;
+ padding-left: 3.8em;
+ counter-reset: linenumber;
+}
+
+pre.line-numbers > code {
+ position: relative;
+}
+
+.line-numbers .line-numbers-rows {
+ position: absolute;
+ pointer-events: none;
+ top: 0;
+ font-size: 100%;
+ left: -3.8em;
+ width: 3em; /* works for line-numbers below 1000 lines */
+ letter-spacing: -1px;
+ border-right: 1px solid #999;
+
+ -webkit-user-select: none;
+ -moz-user-select: none;
+ -ms-user-select: none;
+ user-select: none;
+
+}
+
+ .line-numbers-rows > span {
+ pointer-events: none;
+ display: block;
+ counter-increment: linenumber;
+ }
+
+ .line-numbers-rows > span:before {
+ content: counter(linenumber);
+ color: #999;
+ display: block;
+ padding-right: 0.8em;
+ text-align: right;
+ }
diff --git a/css/syntax.css b/css/syntax.css
new file mode 100644
index 00000000..2774b764
--- /dev/null
+++ b/css/syntax.css
@@ -0,0 +1,60 @@
+.highlight { background: #ffffff; }
+.highlight .c { color: #999988; font-style: italic } /* Comment */
+.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
+.highlight .k { font-weight: bold } /* Keyword */
+.highlight .o { font-weight: bold } /* Operator */
+.highlight .cm { color: #999988; font-style: italic } /* Comment.Multiline */
+.highlight .cp { color: #999999; font-weight: bold } /* Comment.Preproc */
+.highlight .c1 { color: #999988; font-style: italic } /* Comment.Single */
+.highlight .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */
+.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
+.highlight .gd .x { color: #000000; background-color: #ffaaaa } /* Generic.Deleted.Specific */
+.highlight .ge { font-style: italic } /* Generic.Emph */
+.highlight .gr { color: #aa0000 } /* Generic.Error */
+.highlight .gh { color: #999999 } /* Generic.Heading */
+.highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
+.highlight .gi .x { color: #000000; background-color: #aaffaa } /* Generic.Inserted.Specific */
+.highlight .go { color: #888888 } /* Generic.Output */
+.highlight .gp { color: #555555 } /* Generic.Prompt */
+.highlight .gs { font-weight: bold } /* Generic.Strong */
+.highlight .gu { color: #aaaaaa } /* Generic.Subheading */
+.highlight .gt { color: #aa0000 } /* Generic.Traceback */
+.highlight .kc { font-weight: bold } /* Keyword.Constant */
+.highlight .kd { font-weight: bold } /* Keyword.Declaration */
+.highlight .kp { font-weight: bold } /* Keyword.Pseudo */
+.highlight .kr { font-weight: bold } /* Keyword.Reserved */
+.highlight .kt { color: #445588; font-weight: bold } /* Keyword.Type */
+.highlight .m { color: #009999 } /* Literal.Number */
+.highlight .s { color: #d14 } /* Literal.String */
+.highlight .na { color: #008080 } /* Name.Attribute */
+.highlight .nb { color: #0086B3 } /* Name.Builtin */
+.highlight .nc { color: #445588; font-weight: bold } /* Name.Class */
+.highlight .no { color: #008080 } /* Name.Constant */
+.highlight .ni { color: #800080 } /* Name.Entity */
+.highlight .ne { color: #990000; font-weight: bold } /* Name.Exception */
+.highlight .nf { color: #990000; font-weight: bold } /* Name.Function */
+.highlight .nn { color: #555555 } /* Name.Namespace */
+.highlight .nt { color: #000080 } /* Name.Tag */
+.highlight .nv { color: #008080 } /* Name.Variable */
+.highlight .ow { font-weight: bold } /* Operator.Word */
+.highlight .w { color: #bbbbbb } /* Text.Whitespace */
+.highlight .mf { color: #009999 } /* Literal.Number.Float */
+.highlight .mh { color: #009999 } /* Literal.Number.Hex */
+.highlight .mi { color: #009999 } /* Literal.Number.Integer */
+.highlight .mo { color: #009999 } /* Literal.Number.Oct */
+.highlight .sb { color: #d14 } /* Literal.String.Backtick */
+.highlight .sc { color: #d14 } /* Literal.String.Char */
+.highlight .sd { color: #d14 } /* Literal.String.Doc */
+.highlight .s2 { color: #d14 } /* Literal.String.Double */
+.highlight .se { color: #d14 } /* Literal.String.Escape */
+.highlight .sh { color: #d14 } /* Literal.String.Heredoc */
+.highlight .si { color: #d14 } /* Literal.String.Interpol */
+.highlight .sx { color: #d14 } /* Literal.String.Other */
+.highlight .sr { color: #009926 } /* Literal.String.Regex */
+.highlight .s1 { color: #d14 } /* Literal.String.Single */
+.highlight .ss { color: #990073 } /* Literal.String.Symbol */
+.highlight .bp { color: #999999 } /* Name.Builtin.Pseudo */
+.highlight .vc { color: #008080 } /* Name.Variable.Class */
+.highlight .vg { color: #008080 } /* Name.Variable.Global */
+.highlight .vi { color: #008080 } /* Name.Variable.Instance */
+.highlight .il { color: #009999 } /* Literal.Number.Integer.Long */
diff --git a/css/topnav.css b/css/topnav.css
new file mode 100644
index 00000000..c4d62217
--- /dev/null
+++ b/css/topnav.css
@@ -0,0 +1,5 @@
+body {
+ padding-top: 60px;
+ padding-bottom: 20px;
+ background-color:#efefef;
+}
diff --git a/documentation/allclasses-frame.html b/documentation/allclasses-frame.html
new file mode 100644
index 00000000..9511408d
--- /dev/null
+++ b/documentation/allclasses-frame.html
@@ -0,0 +1,284 @@
+
+
+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.client.ApplicationBuilder.CartridgeHolder +
public class ApplicationBuilder.CartridgeHolder
+
| +Constructor Summary | +|
|---|---|
ApplicationBuilder.CartridgeHolder()
+
++ |
+|
| +Method Summary | +|
|---|---|
+ ApplicationBuilder.NamedCartridgeHolder |
+setName(String name)
+
++ |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public ApplicationBuilder.CartridgeHolder()+
| +Method Detail | +
|---|
+public ApplicationBuilder.NamedCartridgeHolder setName(String name)+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.client.ApplicationBuilder.NamedCartridgeHolder +
public class ApplicationBuilder.NamedCartridgeHolder
+
| +Constructor Summary | +|
|---|---|
ApplicationBuilder.NamedCartridgeHolder()
+
++ |
+|
| +Method Summary | +|
|---|---|
+ IApplication |
+build()
+
++ |
+
+ ApplicationBuilder.NamedCartridgeHolder |
+setApplicationScale(ApplicationScale applicationScale)
+
++ |
+
+ ApplicationBuilder.NamedCartridgeHolder |
+setGearProfile(IGearProfile gearProfile)
+
++ |
+
+ ApplicationBuilder.NamedCartridgeHolder |
+setInitialGitUrl(String initialGitUrl)
+
++ |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public ApplicationBuilder.NamedCartridgeHolder()+
| +Method Detail | +
|---|
+public ApplicationBuilder.NamedCartridgeHolder setGearProfile(IGearProfile gearProfile)+
+public ApplicationBuilder.NamedCartridgeHolder setApplicationScale(ApplicationScale applicationScale)+
+public ApplicationBuilder.NamedCartridgeHolder setInitialGitUrl(String initialGitUrl)+
+public IApplication build()+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.client.ApplicationBuilder +
public class ApplicationBuilder
+
| +Nested Class Summary | +|
|---|---|
+ class |
+ApplicationBuilder.CartridgeHolder
+
++ |
+
+ class |
+ApplicationBuilder.NamedCartridgeHolder
+
++ |
+
| +Constructor Summary | +|
|---|---|
ApplicationBuilder(IDomain domain)
+
++ |
+|
| +Method Summary | +|
|---|---|
+ ApplicationBuilder.CartridgeHolder |
+setCartridge(IStandaloneCartridge cartridge)
+
++ |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public ApplicationBuilder(IDomain domain)+
| +Method Detail | +
|---|
+public ApplicationBuilder.CartridgeHolder setCartridge(IStandaloneCartridge cartridge)+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | ++DETAIL: ENUM CONSTANTS | FIELD | METHOD | +|||||||||
+java.lang.Object ++java.lang.Enum<ApplicationScale> +
com.openshift.client.ApplicationScale +
public enum ApplicationScale
+Enum to indicate the support for scalability when creating a new application +
+ +
+
| +Enum Constant Summary | +|
|---|---|
NO_SCALE
+
++ |
+|
SCALE
+
++ |
+|
| +Method Summary | +|
|---|---|
+ String |
+getValue()
+
++ |
+
+static ApplicationScale |
+safeValueOf(String value)
+
++ |
+
+static ApplicationScale |
+valueOf(String name)
+
++ Returns the enum constant of this type with the specified name. |
+
+static ApplicationScale[] |
+values()
+
++ Returns an array containing the constants of this enum type, in +the order they are declared. |
+
| Methods inherited from class java.lang.Enum | +
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
+
| Methods inherited from class java.lang.Object | +
|---|
getClass, notify, notifyAll, wait, wait, wait |
+
| +Enum Constant Detail | +
|---|
+public static final ApplicationScale SCALE+
+public static final ApplicationScale NO_SCALE+
| +Method Detail | +
|---|
+public static ApplicationScale[] values()+
+for (ApplicationScale c : ApplicationScale.values()) + System.out.println(c); ++
+
+public static ApplicationScale valueOf(String name)+
+
name - the name of the enum constant to be returned.
+IllegalArgumentException - if this enum type has no constant
+with the specified name
+NullPointerException - if the argument is null+public static ApplicationScale safeValueOf(String value)+
+public String getValue()+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | ++DETAIL: ENUM CONSTANTS | FIELD | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | ++DETAIL: ENUM CONSTANTS | FIELD | METHOD | +|||||||||
+java.lang.Object ++java.lang.Enum<GearState> +
com.openshift.client.GearState +
public enum GearState
+
| +Enum Constant Summary | +|
|---|---|
BUILDING
+
++ |
+|
DEPLOYING
+
++ |
+|
IDLE
+
++ |
+|
NEW
+
++ |
+|
STARTED
+
++ |
+|
STOPPED
+
++ |
+|
UNKNOWN
+
++ |
+|
| +Method Summary | +|
|---|---|
+static GearState |
+safeValueOf(String gearStateString)
+
++ |
+
+static GearState |
+valueOf(String name)
+
++ Returns the enum constant of this type with the specified name. |
+
+static GearState[] |
+values()
+
++ Returns an array containing the constants of this enum type, in +the order they are declared. |
+
| Methods inherited from class java.lang.Enum | +
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
+
| Methods inherited from class java.lang.Object | +
|---|
getClass, notify, notifyAll, wait, wait, wait |
+
| +Enum Constant Detail | +
|---|
+public static final GearState BUILDING+
+public static final GearState DEPLOYING+
+public static final GearState IDLE+
+public static final GearState NEW+
+public static final GearState STARTED+
+public static final GearState STOPPED+
+public static final GearState UNKNOWN+
| +Method Detail | +
|---|
+public static GearState[] values()+
+for (GearState c : GearState.values()) + System.out.println(c); ++
+
+public static GearState valueOf(String name)+
+
name - the name of the enum constant to be returned.
+IllegalArgumentException - if this enum type has no constant
+with the specified name
+NullPointerException - if the argument is null+public static GearState safeValueOf(String gearStateString)+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | ++DETAIL: ENUM CONSTANTS | FIELD | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | ++DETAIL: ENUM CONSTANTS | FIELD | METHOD | +|||||||||
+java.lang.Object ++java.lang.Enum<HttpMethod> +
com.openshift.client.HttpMethod +
public enum HttpMethod
+
| +Enum Constant Summary | +|
|---|---|
DELETE
+
++ |
+|
GET
+
++ |
+|
HEAD
+
++ |
+|
OPTIONS
+
++ |
+|
PATCH
+
++ |
+|
POST
+
++ |
+|
PUT
+
++ |
+|
| +Method Summary | +|
|---|---|
+static HttpMethod |
+valueOf(String name)
+
++ Returns the enum constant of this type with the specified name. |
+
+static HttpMethod[] |
+values()
+
++ Returns an array containing the constants of this enum type, in +the order they are declared. |
+
| Methods inherited from class java.lang.Enum | +
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
+
| Methods inherited from class java.lang.Object | +
|---|
getClass, notify, notifyAll, wait, wait, wait |
+
| +Enum Constant Detail | +
|---|
+public static final HttpMethod GET+
+public static final HttpMethod POST+
+public static final HttpMethod PUT+
+public static final HttpMethod DELETE+
+public static final HttpMethod PATCH+
+public static final HttpMethod HEAD+
+public static final HttpMethod OPTIONS+
| +Method Detail | +
|---|
+public static HttpMethod[] values()+
+for (HttpMethod c : HttpMethod.values()) + System.out.println(c); ++
+
+public static HttpMethod valueOf(String name)+
+
name - the name of the enum constant to be returned.
+IllegalArgumentException - if this enum type has no constant
+with the specified name
+NullPointerException - if the argument is null
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | ++DETAIL: ENUM CONSTANTS | FIELD | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
public interface IApplication
+
| +Method Summary | +|
|---|---|
+ void |
+addAlias(String string)
+
++ Add application alias |
+
+ IEmbeddedCartridge |
+addEmbeddableCartridge(IEmbeddableCartridge cartridge)
+
++ Adds the given embeddable cartridge to this application. |
+
+ List<IEmbeddedCartridge> |
+addEmbeddableCartridges(Collection<IEmbeddableCartridge> cartridge)
+
++ Adds all given embedded cartridges from this app, given their names. |
+
+ IEnvironmentVariable |
+addEnvironmentVariable(String name,
+ String value)
+
++ Adds an environment variable to this application. |
+
+ Map<String,IEnvironmentVariable> |
+addEnvironmentVariables(Map<String,String> environmentVariables)
+
++ Adds a map of environment variables to the application |
+
+ boolean |
+canGetEnvironmentVariables()
+
++ Used to determine if environment variables exist and are available to be retrieved |
+
+ boolean |
+canUpdateEnvironmentVariables()
+
++ Used to determine if the current instance is able to update environment variables. |
+
+ void |
+destroy()
+
++ Destroys this application (and removes it from the list of available + applications) |
+
+ List<String> |
+getAliases()
+
++ Retrieve all application aliases |
+
+ ApplicationScale |
+getApplicationScale()
+
++ Returns true if scaling is enabled on this application (only set at + creation time). |
+
+ String |
+getApplicationUrl()
+
++ Returns the url at which this application may be reached at. |
+
+ IStandaloneCartridge |
+getCartridge()
+
++ Returns the cartridge (application type) that this app is running on. |
+
+ Date |
+getCreationTime()
+
++ Returns the timestamp at which this app was created. |
+
+ IDomain |
+getDomain()
+
++ Get the domain of the application. |
+
+ IEmbeddedCartridge |
+getEmbeddedCartridge(IEmbeddableCartridge cartridge)
+
++ Returns the embedded cartridge in this application. |
+
+ IEmbeddedCartridge |
+getEmbeddedCartridge(String cartridgeName)
+
++ Returns the embedded cartridge given its name. |
+
+ List<IEmbeddedCartridge> |
+getEmbeddedCartridges()
+
++ Returns all embedded cartridges. |
+
+ List<String> |
+getEnvironmentProperties()
+
++ Retrieves the list of environment properties. |
+
+ IEnvironmentVariable |
+getEnvironmentVariable(String name)
+
++ Return the environment variable for the specified name |
+
+ Map<String,IEnvironmentVariable> |
+getEnvironmentVariables()
+
++ Retrieves the map of environment variables |
+
+ List<IApplicationPortForwarding> |
+getForwardablePorts()
+
++ Returns the list of forwardable ports on OpenShift for this application. |
+
+ Collection<IGearGroup> |
+getGearGroups()
+
++ Returns the gear groups for this application. |
+
+ IGearProfile |
+getGearProfile()
+
++ Returns true if scaling is enabled on this application (only set at + creation time). |
+
+ String |
+getGitUrl()
+
++ Returns the uri at which the git repository of this application may be + reached at. |
+
+ String |
+getInitialGitUrl()
+
++ Returns the git url that the application will get its initial code and configuration from. |
+
+ String |
+getName()
+
++ Returns the name of this application. |
+
+ com.jcraft.jsch.Session |
+getSSHSession()
+
++ Returns the SSH session that this application uses to connect to + OpenShift. |
+
+ String |
+getSshUrl()
+
++ Returns the url to use to connect with ssh. |
+
+ String |
+getUUID()
+
++ Returns the uuid of this application. |
+
+ boolean |
+hasAlias(String name)
+
++ |
+
+ boolean |
+hasEmbeddedCartridge(IEmbeddableCartridge cartridge)
+
++ Returns true if this application has an embedded cartridge. |
+
+ boolean |
+hasEmbeddedCartridge(String cartridgeName)
+
++ Returns true if this application has an embedded cartridge. |
+
+ boolean |
+hasEnvironmentVariable(String name)
+
++ Checks if the environment variable is present in the application. |
+
+ boolean |
+hasSSHSession()
+
++ Returns true if the application was already provided with an SSH session, + and this session is still valid (connected). |
+
+ boolean |
+isPortFowardingStarted()
+
++ Returns true if the port-forwarding has been started, false otherwise. |
+
+ void |
+refresh()
+
++ Refresh the application but reloading its content from OpenShift. |
+
+ List<IApplicationPortForwarding> |
+refreshForwardablePorts()
+
++ Refreshes the list of port-forwarding. |
+
+ void |
+removeAlias(String alias)
+
++ Remove application alias |
+
+ void |
+removeEmbeddedCartridge(IEmbeddableCartridge cartridge)
+
++ Removes the given embedded cartridge that is equal to the given + embeddable cartridge. |
+
+ void |
+removeEmbeddedCartridges(Collection<IEmbeddableCartridge> cartridges)
+
++ Removes the given embedded cartridges in this application that are equal to the + given IEmbeddableCartridge. |
+
+ void |
+removeEnvironmentVariable(IEnvironmentVariable environmentVariable)
+
++ Removes the environment variables with the given name from this application. |
+
+ void |
+removeEnvironmentVariable(String name)
+
++ Removes the environment variables with the given name from this application. |
+
+ void |
+restart()
+
++ Restarts this application. |
+
+ void |
+scaleDown()
+
++ Scale down application |
+
+ void |
+scaleUp()
+
++ Scale up application |
+
+ void |
+setSSHSession(com.jcraft.jsch.Session session)
+
++ Sets the SSH session that this application will use to connect to + OpenShift to perform some operations. |
+
+ void |
+start()
+
++ Starts this application. |
+
+ List<IApplicationPortForwarding> |
+startPortForwarding()
+
++ |
+
+ void |
+stop()
+
++ Stops this application. |
+
+ void |
+stop(boolean force)
+
++ Stops this application |
+
+ List<IApplicationPortForwarding> |
+stopPortForwarding()
+
++ Stop the port-forwarding for all ports. |
+
+ boolean |
+waitForAccessible(long timeout)
+
++ Waits for this application to become accessible on its public url. |
+
+ Future<Boolean> |
+waitForAccessibleAsync(long timeout)
+
++ Returns a Future that the caller can use to wait for the application to + become accessible on its public url. |
+
| Methods inherited from interface com.openshift.client.IOpenShiftResource | +
|---|
getCreationLog, getMessages, hasCreationLog |
+
| +Method Detail | +
|---|
+String getName()+
+
+String getUUID()+
+
+String getGitUrl()+
+
+String getSshUrl()+
+
+String getInitialGitUrl()+
+
+String getApplicationUrl()+
+
+ApplicationScale getApplicationScale()+
+
+IGearProfile getGearProfile()+
+
+IStandaloneCartridge getCartridge()+
+
+IEmbeddedCartridge addEmbeddableCartridge(IEmbeddableCartridge cartridge) + throws OpenShiftException+
+
cartridge -
+OpenShiftException+List<IEmbeddedCartridge> addEmbeddableCartridges(Collection<IEmbeddableCartridge> cartridge) + throws OpenShiftException+
+
embeddedCartridges -
+OpenShiftException#addEmbeddableCartridge(IEmbeddedCartridge),
+#removeEmbeddedCartridge(IEmbeddedCartridge)+List<IEmbeddedCartridge> getEmbeddedCartridges() + throws OpenShiftException+
+
OpenShiftExceptionIEmbeddedCartridge,
+#addEmbeddableCartridge(IEmbeddedCartridge),
+#removeEmbeddedCartridge(IEmbeddedCartridge)+boolean hasEmbeddedCartridge(IEmbeddableCartridge cartridge) + throws OpenShiftException+
true if this application has an embedded cartridge.
+ Returns false otherwise.
++
the - name of the cartridge to look for
+OpenShiftExceptionIEmbeddedCartridge,
+#addEmbeddableCartridge(IEmbeddedCartridge),
+#removeEmbeddedCartridge(IEmbeddedCartridge)+boolean hasEmbeddedCartridge(String cartridgeName) + throws OpenShiftException+
true if this application has an embedded cartridge.
+ Returns false otherwise.
++
the - name of the cartridge to look for
+OpenShiftExceptionIEmbeddedCartridge,
+#addEmbeddableCartridge(IEmbeddedCartridge),
+#removeEmbeddedCartridge(IEmbeddedCartridge)+IEmbeddedCartridge getEmbeddedCartridge(String cartridgeName) + throws OpenShiftException+
null
+ if none was found.
++
cartridgeName -
+OpenShiftException+IEmbeddedCartridge getEmbeddedCartridge(IEmbeddableCartridge cartridge) + throws OpenShiftException+
null if none was
+ found.
++
cartridge -
+OpenShiftException+void removeEmbeddedCartridge(IEmbeddableCartridge cartridge) + throws OpenShiftException+
+
cartridge - the cartridge that shall be removed
+OpenShiftException+void removeEmbeddedCartridges(Collection<IEmbeddableCartridge> cartridges) + throws OpenShiftException+
+
cartridges - the cartridges that shall get removed
+OpenShiftException+Collection<IGearGroup> getGearGroups() + throws OpenShiftException+
+
IGearGroup for this application.
+OpenShiftException+Date getCreationTime()+
+
OpenShiftException+void destroy() + throws OpenShiftException+
+
OpenShiftExceptionIUser#getApplications()+void start() + throws OpenShiftException+
+
OpenShiftException+void restart() + throws OpenShiftException+
+
OpenShiftException+void stop() + throws OpenShiftException+
+
OpenShiftException+void stop(boolean force) + throws OpenShiftException+
+
force - : true to force stop, false otherwise
+OpenShiftException+boolean waitForAccessible(long timeout) + throws OpenShiftException+
+
timeout -
+OpenShiftExceptiongetApplicationUrl()+Future<Boolean> waitForAccessibleAsync(long timeout) + throws OpenShiftException+
+
timeout -
+OpenShiftExceptiongetApplicationUrl(),
+waitForAccessible(long),
+IOpenShiftConnection.getExecutorService(),
+Future+IDomain getDomain()+
+
+void scaleDown() + throws OpenShiftException+
+
OpenShiftException+void scaleUp() + throws OpenShiftException+
+
OpenShiftException+void addAlias(String string) + throws OpenShiftException+
+
OpenShiftException+List<String> getAliases()+
+
+boolean hasAlias(String name)+
+void removeAlias(String alias) + throws OpenShiftException+
+
OpenShiftException+void refresh() + throws OpenShiftException+
+
refresh in interface IOpenShiftResourceOpenShiftException+void setSSHSession(com.jcraft.jsch.Session session)+
+
session - the SSH session+com.jcraft.jsch.Session getSSHSession()+
+
+boolean hasSSHSession()+
+
+boolean isPortFowardingStarted() + throws OpenShiftSSHOperationException+
+
OpenShiftSSHOperationException+List<IApplicationPortForwarding> getForwardablePorts() + throws OpenShiftSSHOperationException+
+
OpenShiftSSHOperationException+List<IApplicationPortForwarding> startPortForwarding() + throws OpenShiftSSHOperationException+
com.jcraft.jsch.JSchException
+OpenShiftSSHOperationException+List<IApplicationPortForwarding> stopPortForwarding() + throws OpenShiftSSHOperationException+
+
OpenShiftSSHOperationException+List<IApplicationPortForwarding> refreshForwardablePorts() + throws OpenShiftSSHOperationException+
+
OpenShiftSSHOperationException+List<String> getEnvironmentProperties() + throws OpenShiftSSHOperationException+
+
OpenShiftSSHOperationException+Map<String,IEnvironmentVariable> getEnvironmentVariables() + throws OpenShiftSSHOperationException+
+
OpenShiftSSHOperationException+boolean hasEnvironmentVariable(String name) + throws OpenShiftException+
+
name - Name of the environment variable
+true if the current instance has IEnvironmentVariables to return false if the current instance has no IEnvironmentVariables to return
+OpenShiftSSHOperationException
+OpenShiftException+IEnvironmentVariable addEnvironmentVariable(String name, + String value) + throws OpenShiftException+
+
name - key associated with the variable to addvalue - value of the new variable
+OpenShiftSSHOperationException - - if the variable already exists
+OpenShiftException+Map<String,IEnvironmentVariable> addEnvironmentVariables(Map<String,String> environmentVariables) + throws OpenShiftException+
+
environmentVariables - MapOpenShiftSSHOperationException
+OpenShiftException+IEnvironmentVariable getEnvironmentVariable(String name) + throws OpenShiftException+
+
name - key to be used to locate the environment variable
+OpenShiftSSHOperationException - - thrown if the key does not exist
+OpenShiftException+void removeEnvironmentVariable(String name) + throws OpenShiftException+
+
name - key associated with the IEnvironmentVariable to be removed
+OpenShiftException - - thrown if there is no IEnvironmentVariable associated with the explicit parameter.+void removeEnvironmentVariable(IEnvironmentVariable environmentVariable)+
+
environmentVariable - IEnvironmentVariable instance which should be removed
+OpenShiftException - - thrown if there is no instance of IEnvironmentVariable available to be removed+boolean canGetEnvironmentVariables()+
+
true if this application can list its environment variables. false if it cannot. Internally this translates to the presence of the link to list environment variables.#getEnvironmentVariablesMap(),
+getEnvironmentVariable(String),
+ApplicationResource.LINK_LIST_ENVIRONMENT_VARIABLES+boolean canUpdateEnvironmentVariables()+
+
true if this application can augment its environment variables.false if it cannot. addEnvironmentVariable(String, String),
+addEnvironmentVariables(Map),
+ApplicationResource.LINK_SET_UNSET_ENVIRONMENT_VARIABLES
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
public interface IApplicationPortForwarding
+
| +Method Summary | +|
|---|---|
+ String |
+getLocalAddress()
+
++ |
+
+ int |
+getLocalPort()
+
++ |
+
+ String |
+getName()
+
++ |
+
+ String |
+getRemoteAddress()
+
++ |
+
+ int |
+getRemotePort()
+
++ |
+
+ boolean |
+isStarted(com.jcraft.jsch.Session session)
+
++ |
+
+ void |
+setLocalAddress(String localAddress)
+
++ |
+
+ void |
+setLocalPort(int localPort)
+
++ |
+
+ void |
+start(com.jcraft.jsch.Session session)
+
++ Start the binding, ie, open a SSH tunnel between local address:port and remote address:port. |
+
+ void |
+stop(com.jcraft.jsch.Session session)
+
++ Stop the SSH tunnel. |
+
| +Method Detail | +
|---|
+void start(com.jcraft.jsch.Session session) + throws OpenShiftSSHOperationException+
+
OpenShiftSSHOperationException+void stop(com.jcraft.jsch.Session session) + throws OpenShiftSSHOperationException+
+
OpenShiftSSHOperationException+boolean isStarted(com.jcraft.jsch.Session session) + throws OpenShiftSSHOperationException+
OpenShiftSSHOperationException+String getName()+
+String getLocalAddress()+
+void setLocalAddress(String localAddress)+
localAddress - the localAddress to set+int getLocalPort()+
+void setLocalPort(int localPort)+
localPort - the localPort to set+String getRemoteAddress()+
+int getRemotePort()+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
public interface IDomain
+
| +Method Summary | +|
|---|---|
+ boolean |
+canCreateApplicationWithEnvironmentVariables()
+
++ Returns true if this domain can create application with environment variables. |
+
+ IApplication |
+createApplication(String name,
+ IStandaloneCartridge cartridge)
+
++ |
+
+ IApplication |
+createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale)
+
++ |
+
+ IApplication |
+createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale,
+ IGearProfile gearProfile)
+
++ |
+
+ IApplication |
+createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale,
+ IGearProfile gearProfile,
+ String initialGitUrl)
+
++ Creates a new application with the given name and the given + cartridge/framework. |
+
+ IApplication |
+createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale,
+ IGearProfile gearProfile,
+ String initialGitUrl,
+ int timeout,
+ IEmbeddableCartridge... cartridges)
+
++ Creates a new application with the given name and the given + cartridge/framework. |
+
+ IApplication |
+createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale,
+ IGearProfile gearProfile,
+ String initialGitUrl,
+ int timeout,
+ Map<String,String> environmentVariable,
+ IEmbeddableCartridge... cartridges)
+
++ Creates a new application with the given name and the given + cartridge/framework. |
+
+ IApplication |
+createApplication(String name,
+ IStandaloneCartridge cartridge,
+ IGearProfile gearProfile)
+
++ |
+
+ IApplication |
+createApplication(String name,
+ IStandaloneCartridge cartridge,
+ String initialGitUrl)
+
++ |
+
+ void |
+destroy()
+
++ Destroys the current domain. |
+
+ void |
+destroy(boolean force)
+
++ Destroys the current domain, using the 'force' parameter to also destroy the domain applications. |
+
+ IApplication |
+getApplicationByName(String name)
+
++ Returns the application identified by the given name. |
+
+ List<IApplication> |
+getApplications()
+
++ |
+
+ List<IApplication> |
+getApplicationsByCartridge(IStandaloneCartridge cartridge)
+
++ |
+
+ List<String> |
+getAvailableCartridgeNames()
+
++ Returns the list of cartridges that can be used to create a new application. |
+
+ List<IGearProfile> |
+getAvailableGearProfiles()
+
++ Returns the list of available gear size that the user can choose when creating a new application (application's gear size can't be changed after creation). |
+
+ String |
+getId()
+
++ |
+
+ String |
+getSuffix()
+
++ The domain suffix is the host part eg: 'rhcloud.com') |
+
+ IUser |
+getUser()
+
++ Returns the currently connected user that manages this domain. |
+
+ boolean |
+hasApplicationByCartridge(IStandaloneCartridge cartridge)
+
++ |
+
+ boolean |
+hasApplicationByName(String name)
+
++ Returns true if the application identified by the given name exists in the domain. |
+
+ void |
+rename(String id)
+
++ Rename the current domain with the given id.... |
+
| Methods inherited from interface com.openshift.client.IOpenShiftResource | +
|---|
getCreationLog, getMessages, hasCreationLog, refresh |
+
| +Method Detail | +
|---|
+String getId()+
+String getSuffix()+
+
+void rename(String id) + throws OpenShiftException+
+
id -
+OpenShiftException+IUser getUser() + throws OpenShiftException+
+
OpenShiftException+void destroy() + throws OpenShiftException+
+
OpenShiftException+void destroy(boolean force) + throws OpenShiftException+
+
force -
+OpenShiftException+boolean canCreateApplicationWithEnvironmentVariables()+
true if this domain can create application with environment variables. Returns false otherwise.
++
IApplication.getEnvironmentVariables()+IApplication createApplication(String name, + IStandaloneCartridge cartridge) + throws OpenShiftException+
OpenShiftException+IApplication createApplication(String name, + IStandaloneCartridge cartridge, + String initialGitUrl) + throws OpenShiftException+
OpenShiftException+IApplication createApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale) + throws OpenShiftException+
OpenShiftException+IApplication createApplication(String name, + IStandaloneCartridge cartridge, + IGearProfile gearProfile) + throws OpenShiftException+
OpenShiftException+IApplication createApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale, + IGearProfile gearProfile) + throws OpenShiftException+
OpenShiftException+IApplication createApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale, + IGearProfile gearProfile, + String initialGitUrl) + throws OpenShiftException+
+
name - the name of the applicationcartridge - the cartridge (the application type, ex. jbossas-7,
+ jbossews-2, php.5.2, etc.scale - or null (will use default on openshift, ie, false)gearProfile - ("small", "micro", "medium", "large", "exlarge", "jumbo") or
+ null (will use default on openshift, ie, 'small')initialGitUrl - the git url for the initial template app to be used
+OpenShiftException+IApplication createApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale, + IGearProfile gearProfile, + String initialGitUrl, + int timeout, + IEmbeddableCartridge... cartridges) + throws OpenShiftException+
+
name - the name of the applicationcartridge - the cartridge (the application type, ex. jbossas-7,
+ jbossews-2, php.5.2, etc.scale - or null (will use default on openshift, ie, false)gearProfile - ("small", "micro", "medium", "large", "exlarge", "jumbo") or
+ null (will use default on openshift, ie, 'small')initialGitUrl - the git url for the initial template app to be usedtimeout - the timeout value in millisecondscartridges - the embeddable cartridges that shall get added to the new
+ application (the add-on cartridges mysql, mongodb, postgresql,
+ etc.)
+OpenShiftException+IApplication createApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale, + IGearProfile gearProfile, + String initialGitUrl, + int timeout, + Map<String,String> environmentVariable, + IEmbeddableCartridge... cartridges) + throws OpenShiftException+
+
name - the name of the applicationcartridge - the cartridge (the application type, ex. jbossas-7,
+ jbossews-2, php.5.2, etc.scale - or null (will use default on openshift, ie, false)gearProfile - ("small", "micro", "medium", "large", "exlarge", "jumbo") or
+ null (will use default on openshift, ie, 'small')initialGitUrl - the git url for the initial template app to be usedtimeout - the timeout value in millisecondsenvironmentVariable - the environment variables to be added to the applicationcartridges - the embeddable cartridges that shall get added to the new
+ application (the add-on cartridges mysql, mongodb, postgresql,
+ etc.)
+OpenShiftException+List<IApplication> getApplications() + throws OpenShiftException+
OpenShiftException+List<String> getAvailableCartridgeNames() + throws OpenShiftException+
+
OpenShiftException+IApplication getApplicationByName(String name) + throws OpenShiftException+
+
name -
+OpenShiftException+boolean hasApplicationByName(String name) + throws OpenShiftException+
+
name -
+OpenShiftException+List<IApplication> getApplicationsByCartridge(IStandaloneCartridge cartridge) + throws OpenShiftException+
OpenShiftException+boolean hasApplicationByCartridge(IStandaloneCartridge cartridge) + throws OpenShiftException+
OpenShiftException+List<IGearProfile> getAvailableGearProfiles() + throws OpenShiftException+
+
OpenShiftException
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
public interface IEnvironmentVariable
+
| +Method Summary | +|
|---|---|
+ void |
+destroy()
+
++ Destroys this environment variable |
+
+ IApplication |
+getApplication()
+
++ Returns the application for this environment variable |
+
+ String |
+getName()
+
++ |
+
+ String |
+getValue()
+
++ |
+
+ void |
+update(String value)
+
++ Updates this environment variable to the given value. |
+
| Methods inherited from interface com.openshift.client.IOpenShiftResource | +
|---|
getCreationLog, getMessages, hasCreationLog, refresh |
+
| +Method Detail | +
|---|
+String getName()+
+String getValue()+
+void update(String value) + throws OpenShiftException+
+
value - new value for this environment variable
+OpenShiftException+void destroy() + throws OpenShiftException+
+
OpenShiftException+IApplication getApplication()+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
public interface IField
+
| +Field Summary | +|
|---|---|
+static IField |
+APPINFO
+
++ |
+
+static IField |
+DEFAULT
+
++ |
+
+static IField |
+RESULT
+
++ |
+
| +Method Summary | +|
|---|---|
+ String |
+getValue()
+
++ |
+
| +Field Detail | +
|---|
+static final IField DEFAULT+
+static final IField RESULT+
+static final IField APPINFO+
| +Method Detail | +
|---|
+String getValue()+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
public interface IGear
+
| +Method Summary | +|
|---|---|
+ String |
+getId()
+
++ Returns the id of this gear. |
+
+ String |
+getSshUrl()
+
++ The URL to use when connecting with SSH in the following form: + ssh://<username>@<host> |
+
+ GearState |
+getState()
+
++ Returns the state of this gear |
+
| +Method Detail | +
|---|
+String getId()+
+
+GearState getState()+
+
+String getSshUrl()+
ssh://<username>@<host>
++
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
public interface IGearGroup
+
| +Method Summary | +|
|---|---|
+ Collection<ICartridge> |
+getCartridges()
+
++ Returns the cartridges in this gear group resource |
+
+ Collection<IGear> |
+getGears()
+
++ Returns the gears in this gear group resource |
+
+ String |
+getName()
+
++ Returns the name of this gear groups |
+
+ String |
+getUUID()
+
++ Returns the uuid of this gear groups. |
+
| +Method Detail | +
|---|
+String getUUID()+
+
+String getName()+
+
+Collection<IGear> getGears()+
+
+Collection<ICartridge> getCartridges()+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
public interface IGearProfile
+
| +Field Summary | +|
|---|---|
+static IGearProfile |
+EXLARGE
+
++ |
+
+static IGearProfile |
+JUMBO
+
++ |
+
+static IGearProfile |
+LARGE
+
++ |
+
+static IGearProfile |
+MEDIUM
+
++ |
+
+static IGearProfile |
+MICRO
+
++ |
+
+static IGearProfile |
+SMALL
+
++ |
+
| +Method Summary | +|
|---|---|
+ String |
+getName()
+
++ |
+
| +Field Detail | +
|---|
+static final IGearProfile JUMBO+
+static final IGearProfile EXLARGE+
+static final IGearProfile LARGE+
+static final IGearProfile MEDIUM+
+static final IGearProfile MICRO+
+static final IGearProfile SMALL+
| +Method Detail | +
|---|
+String getName()+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
public interface IHttpClient
+
| +Field Summary | +|
|---|---|
+static char |
+AMPERSAND
+
++ |
+
+static String |
+AUTHORIZATION_BASIC
+
++ |
+
+static char |
+COLON
+
++ |
+
+static char |
+COMMA
+
++ |
+
+static int |
+DEFAULT_CONNECT_TIMEOUT
+
++ |
+
+static int |
+DEFAULT_READ_TIMEOUT
+
++ |
+
+static char |
+EQUALS
+
++ |
+
+static String |
+HTTP
+
++ |
+
+static String |
+MEDIATYPE_APPLICATION_FORMURLENCODED
+
++ |
+
+static String |
+MEDIATYPE_APPLICATION_JSON
+
++ |
+
+static String |
+MEDIATYPE_APPLICATION_XML
+
++ |
+
+static int |
+NO_TIMEOUT
+
++ |
+
+static String |
+PROPERTY_ACCEPT
+
++ |
+
+static String |
+PROPERTY_AUTHIV
+
++ |
+
+static String |
+PROPERTY_AUTHKEY
+
++ |
+
+static String |
+PROPERTY_AUTHORIZATION
+
++ |
+
+static String |
+PROPERTY_CONTENT_TYPE
+
++ |
+
+static String |
+PROPERTY_USER_AGENT
+
++ |
+
+static char |
+QUESTION_MARK
+
++ |
+
+static char |
+SEMICOLON
+
++ |
+
+static char |
+SLASH
+
++ |
+
+static char |
+SPACE
+
++ |
+
+static int |
+STATUS_BAD_REQUEST
+
++ |
+
+static int |
+STATUS_INTERNAL_SERVER_ERROR
+
++ |
+
+static int |
+STATUS_NOT_FOUND
+
++ |
+
+static int |
+STATUS_OK
+
++ |
+
+static int |
+STATUS_UNAUTHORIZED
+
++ |
+
+static String |
+SYSPROP_DEFAULT_CONNECT_TIMEOUT
+
++ |
+
+static String |
+SYSPROP_DEFAULT_READ_TIMEOUT
+
++ |
+
+static String |
+SYSPROP_OPENSHIFT_CONNECT_TIMEOUT
+
++ |
+
+static String |
+SYSPROP_OPENSHIFT_READ_TIMEOUT
+
++ |
+
+static String |
+VERSION
+
++ |
+
| +Method Summary | +|
|---|---|
+ String |
+delete(URL url,
+ IMediaType mediaType,
+ int timeout,
+ Parameter... parameters)
+
++ |
+
+ String |
+delete(URL url,
+ int timeout)
+
++ |
+
+ String |
+get(URL url,
+ int timeout)
+
++ |
+
+ String |
+head(URL url,
+ int timeout)
+
++ |
+
+ String |
+patch(URL url,
+ IMediaType mediaType,
+ int timeout,
+ Parameter... parameters)
+
++ |
+
+ String |
+post(URL url,
+ IMediaType mediaType,
+ int timeout,
+ Parameter... parameters)
+
++ |
+
+ String |
+put(URL url,
+ IMediaType mediaType,
+ int timeout,
+ Parameter... parameters)
+
++ |
+
+ void |
+setAcceptedMediaType(String acceptedMediaType)
+
++ |
+
+ void |
+setAcceptVersion(String version)
+
++ |
+
+ void |
+setUserAgent(String userAgent)
+
++ |
+
| +Field Detail | +
|---|
+static final String HTTP+
+static final String PROPERTY_CONTENT_TYPE+
+static final String PROPERTY_AUTHORIZATION+
+static final String PROPERTY_ACCEPT+
+static final String PROPERTY_USER_AGENT+
+static final String PROPERTY_AUTHKEY+
+static final String PROPERTY_AUTHIV+
+static final String MEDIATYPE_APPLICATION_JSON+
+static final String MEDIATYPE_APPLICATION_XML+
+static final String MEDIATYPE_APPLICATION_FORMURLENCODED+
+static final String AUTHORIZATION_BASIC+
+static final int STATUS_OK+
+static final int STATUS_INTERNAL_SERVER_ERROR+
+static final int STATUS_BAD_REQUEST+
+static final int STATUS_UNAUTHORIZED+
+static final int STATUS_NOT_FOUND+
+static final char SPACE+
+static final char COLON+
+static final char COMMA+
+static final char SEMICOLON+
+static final char AMPERSAND+
+static final char EQUALS+
+static final char SLASH+
+static final char QUESTION_MARK+
+static final String VERSION+
+static final String SYSPROP_OPENSHIFT_CONNECT_TIMEOUT+
+static final String SYSPROP_OPENSHIFT_READ_TIMEOUT+
+static final String SYSPROP_DEFAULT_CONNECT_TIMEOUT+
+static final String SYSPROP_DEFAULT_READ_TIMEOUT+
+static final int DEFAULT_CONNECT_TIMEOUT+
+static final int DEFAULT_READ_TIMEOUT+
+static final int NO_TIMEOUT+
| +Method Detail | +
|---|
+String get(URL url, + int timeout) + throws HttpClientException, + SocketTimeoutException+
HttpClientException
+SocketTimeoutException+String head(URL url, + int timeout) + throws HttpClientException, + SocketTimeoutException+
HttpClientException
+SocketTimeoutException+String post(URL url, + IMediaType mediaType, + int timeout, + Parameter... parameters) + throws HttpClientException, + SocketTimeoutException, + EncodingException+
HttpClientException
+SocketTimeoutException
+EncodingException+String put(URL url, + IMediaType mediaType, + int timeout, + Parameter... parameters) + throws HttpClientException, + SocketTimeoutException, + EncodingException+
HttpClientException
+SocketTimeoutException
+EncodingException+String patch(URL url, + IMediaType mediaType, + int timeout, + Parameter... parameters) + throws HttpClientException, + SocketTimeoutException, + EncodingException+
HttpClientException
+SocketTimeoutException
+EncodingException+String delete(URL url, + IMediaType mediaType, + int timeout, + Parameter... parameters) + throws HttpClientException, + SocketTimeoutException, + EncodingException+
HttpClientException
+SocketTimeoutException
+EncodingException+String delete(URL url, + int timeout) + throws HttpClientException, + SocketTimeoutException, + EncodingException+
HttpClientException
+SocketTimeoutException
+EncodingException+void setUserAgent(String userAgent)+
+void setAcceptVersion(String version)+
+void setAcceptedMediaType(String acceptedMediaType)+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
public interface IOpenShiftConnection
+
| +Method Summary | +|
|---|---|
+ List<IDomain> |
+getDomains()
+
++ Returns the domains associated with the current OpenShift connection. |
+
+ List<IEmbeddableCartridge> |
+getEmbeddableCartridges()
+
++ Returns the available embeddable cartridges associated with the current + OpenShift connection. |
+
+ ExecutorService |
+getExecutorService()
+
++ Returns the executor service instance that's available in this + connection. |
+
+ String |
+getServer()
+
++ Returns the server this connection is bound to. |
+
+ List<IStandaloneCartridge> |
+getStandaloneCartridges()
+
++ Returns the available standalone cartridges associated with the current + OpenShift connection. |
+
+ IUser |
+getUser()
+
++ Returns the user associated with the current OpenShift connection. |
+
+ void |
+setEnableSSLCertChecks(boolean doSSLChecks)
+
++ Sets flag for enabling SSL certificate checks (i.e. |
+
+ void |
+setProxyHost(String proxyHost)
+
++ Sets the HTTP proxy hostname |
+
+ void |
+setProxyPort(String proxyPort)
+
++ Sets the HTTP proxy port |
+
+ void |
+setProxySet(boolean proxySet)
+
++ Sets flag for using an HTTP proxy |
+
| +Method Detail | +
|---|
+String getServer()+
+
+IUser getUser() + throws OpenShiftException+
+
OpenShiftException+List<IDomain> getDomains() + throws OpenShiftException+
+
OpenShiftException+List<IStandaloneCartridge> getStandaloneCartridges() + throws OpenShiftException+
+
OpenShiftException+List<IEmbeddableCartridge> getEmbeddableCartridges() + throws OpenShiftException+
+
OpenShiftException+void setEnableSSLCertChecks(boolean doSSLChecks)+
+
doSSLChecks - +void setProxySet(boolean proxySet)+
+
proxySet - +void setProxyHost(String proxyHost)+
+
proxyHost - +void setProxyPort(String proxyPort)+
+
proxyPort - +ExecutorService getExecutorService()+
+
ExecutorService,
+Executors
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
public interface IOpenShiftResource
+
| +Method Summary | +|
|---|---|
+ String |
+getCreationLog()
+
++ Returns the log that was created when the resource was created. |
+
+ Messages |
+getMessages()
+
++ Returns all the (creation log) messages. |
+
+ boolean |
+hasCreationLog()
+
++ Returns + true if there is log about the creation of this resource. |
+
+ void |
+refresh()
+
++ Refresh the resource and its list of children resources that were + previously loaded |
+
| +Method Detail | +
|---|
+boolean hasCreationLog()+
true if there is log about the creation of this resource.
+ Creation logs are only available at creation time. So resources that were retrieved
+ while they already existed wont have a creation log.
+
+
+
+- Returns:
- true if there's cretion log for this resource
+
++String getCreationLog()+
+
+Messages getMessages()+
+
getCreationLog()+void refresh() + throws OpenShiftException+
+
OpenShiftException
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
public interface IOpenShiftSSHKey
+
| +Method Summary | +|
|---|---|
+ void |
+destroy()
+
++ |
+
+ String |
+getName()
+
++ Returns the name that is used to store this key on OpenShift. |
+
+ void |
+setKeyType(SSHKeyType type,
+ String publicKey)
+
++ Sets the new type and public key of this ssh key to the OpenShift PaaS |
+
+ void |
+setPublicKey(String publicKey)
+
++ Sets the public key portion of this ssh key to the OpenShift PaaS. |
+
| Methods inherited from interface com.openshift.client.ISSHPublicKey | +
|---|
getKeyType, getPublicKey |
+
| +Method Detail | +
|---|
+String getName()+
+
+void setPublicKey(String publicKey) + throws OpenShiftException+
+
publicKey - the new public key porition of this key
+OpenShiftException+void setKeyType(SSHKeyType type, + String publicKey) + throws OpenShiftException+
+
type -
+OpenShiftException+void destroy() + throws OpenShiftException+
OpenShiftException
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
public interface ISSHPublicKey
+
| +Method Summary | +|
|---|---|
+ SSHKeyType |
+getKeyType()
+
++ Returns the type of the key (ssh-rsa or ssh-dss) |
+
+ String |
+getPublicKey()
+
++ Returns the content of the public key (key content without ssh-rsa + identifier nor comment) of the ssh key |
+
| +Method Detail | +
|---|
+String getPublicKey()+
+
OpenShiftException+SSHKeyType getKeyType()+
+
OpenShiftException
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
public interface ISeverity
+
| +Field Summary | +|
|---|---|
+static ISeverity |
+DEBUG
+
++ |
+
+static ISeverity |
+ERROR
+
++ |
+
+static ISeverity |
+INFO
+
++ |
+
+static ISeverity |
+RESULT
+
++ |
+
| +Method Summary | +|
|---|---|
+ String |
+getValue()
+
++ |
+
| +Field Detail | +
|---|
+static final ISeverity INFO+
+static final ISeverity DEBUG+
+static final ISeverity ERROR+
+static final ISeverity RESULT+
| +Method Detail | +
|---|
+String getValue()+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
public interface IUser
+
| +Field Summary | +|
|---|---|
+static String |
+ID
+
++ |
+
| +Method Summary | +|
|---|---|
+ IDomain |
+createDomain(String id)
+
++ |
+
+ void |
+deleteKey(String name)
+
++ |
+
+ IOpenShiftConnection |
+getConnection()
+
++ |
+
+ int |
+getConsumedGears()
+
++ |
+
+ IDomain |
+getDefaultDomain()
+
++ |
+
+ IDomain |
+getDomain(String id)
+
++ |
+
+ List<IDomain> |
+getDomains()
+
++ |
+
+ int |
+getMaxGears()
+
++ |
+
+ String |
+getPassword()
+
++ |
+
+ String |
+getRhlogin()
+
++ |
+
+ String |
+getServer()
+
++ |
+
+ IOpenShiftSSHKey |
+getSSHKeyByName(String name)
+
++ |
+
+ IOpenShiftSSHKey |
+getSSHKeyByPublicKey(String publicKey)
+
++ |
+
+ List<IOpenShiftSSHKey> |
+getSSHKeys()
+
++ |
+
+ boolean |
+hasDomain()
+
++ |
+
+ boolean |
+hasDomain(String id)
+
++ |
+
+ boolean |
+hasSSHKeyName(String name)
+
++ |
+
+ boolean |
+hasSSHPublicKey(String publicKey)
+
++ |
+
+ IOpenShiftSSHKey |
+putSSHKey(String name,
+ ISSHPublicKey key)
+
++ |
+
| Methods inherited from interface com.openshift.client.IOpenShiftResource | +
|---|
getCreationLog, getMessages, hasCreationLog, refresh |
+
| +Field Detail | +
|---|
+static final String ID+
| +Method Detail | +
|---|
+String getRhlogin()+
+String getPassword()+
+String getServer()+
+IOpenShiftConnection getConnection()+
+IDomain createDomain(String id) + throws OpenShiftException+
OpenShiftException+List<IDomain> getDomains() + throws OpenShiftException+
OpenShiftException+IDomain getDefaultDomain() + throws OpenShiftException+
OpenShiftException+IDomain getDomain(String id) + throws OpenShiftException+
OpenShiftException+boolean hasDomain() + throws OpenShiftException+
OpenShiftException+boolean hasDomain(String id) + throws OpenShiftException+
OpenShiftException+List<IOpenShiftSSHKey> getSSHKeys() + throws OpenShiftException+
OpenShiftException+IOpenShiftSSHKey putSSHKey(String name, + ISSHPublicKey key) + throws OpenShiftException+
OpenShiftException+IOpenShiftSSHKey getSSHKeyByName(String name) + throws OpenShiftUnknonwSSHKeyTypeException, + OpenShiftException+
OpenShiftUnknonwSSHKeyTypeException
+OpenShiftException+IOpenShiftSSHKey getSSHKeyByPublicKey(String publicKey) + throws OpenShiftUnknonwSSHKeyTypeException, + OpenShiftException+
OpenShiftUnknonwSSHKeyTypeException
+OpenShiftException+boolean hasSSHKeyName(String name) + throws OpenShiftUnknonwSSHKeyTypeException, + OpenShiftException+
OpenShiftUnknonwSSHKeyTypeException
+OpenShiftException+boolean hasSSHPublicKey(String publicKey) + throws OpenShiftUnknonwSSHKeyTypeException, + OpenShiftException+
OpenShiftUnknonwSSHKeyTypeException
+OpenShiftException+void deleteKey(String name)+
+int getMaxGears()+
+int getConsumedGears()+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++java.lang.Throwable +
java.lang.Exception +
java.lang.RuntimeException +
com.openshift.client.OpenShiftException +
com.openshift.client.OpenShiftEndpointException +
com.openshift.client.InvalidCredentialsOpenShiftException +
public class InvalidCredentialsOpenShiftException
+
| +Constructor Summary | +|
|---|---|
InvalidCredentialsOpenShiftException(String url,
+ HttpClientException cause,
+ RestResponse restResponse)
+
++ |
+|
| +Method Summary | +
|---|
| Methods inherited from class com.openshift.client.OpenShiftEndpointException | +
|---|
getRestResponse, getRestResponseMessage, getRestResponseMessages, getUrl |
+
| Methods inherited from class java.lang.Throwable | +
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public InvalidCredentialsOpenShiftException(String url, + HttpClientException cause, + RestResponse restResponse) + throws OpenShiftException+
OpenShiftException
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++java.lang.Throwable +
java.lang.Exception +
java.lang.RuntimeException +
com.openshift.client.OpenShiftException +
com.openshift.client.InvalidNameOpenShiftException +
public class InvalidNameOpenShiftException
+
| +Constructor Summary | +|
|---|---|
InvalidNameOpenShiftException(String message,
+ Object... arguments)
+
++ |
+|
| +Method Summary | +
|---|
| Methods inherited from class java.lang.Throwable | +
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public InvalidNameOpenShiftException(String message, + Object... arguments)+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.client.Message +
public class Message
+
| +Constructor Summary | +|
|---|---|
Message(String text,
+ String field,
+ String severity,
+ int exitCode)
+
++ |
+|
| +Method Summary | +|
|---|---|
+ int |
+getExitCode()
+
++ |
+
+ IField |
+getField()
+
++ |
+
+ ISeverity |
+getSeverity()
+
++ |
+
+ String |
+getText()
+
++ |
+
+ String |
+toString()
+
++ |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public Message(String text, + String field, + String severity, + int exitCode)+
| +Method Detail | +
|---|
+public IField getField()+
+public String getText()+
+public ISeverity getSeverity()+
+public int getExitCode()+
+public String toString()+
toString in class Object
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.client.Messages +
public class Messages
+
| +Constructor Summary | +|
|---|---|
Messages(Map<IField,List<Message>> messages)
+
++ Instantiates a new abstract open shift resource. |
+|
| +Method Summary | +|
|---|---|
+ List<Message> |
+getAll()
+
++ |
+
+ List<Message> |
+getBy(IField field)
+
++ Returns all the message of the given field type. |
+
+ List<Message> |
+getBy(IField field,
+ ISeverity severity)
+
++ Returns the messages of the given field type and severity. |
+
+ Message |
+getFirstBy(IField field)
+
++ Returns the first message of the given field type. |
+
+ Message |
+getFirstBy(IField field,
+ ISeverity severity)
+
++ Returns the first message of the given field type and severity. |
+
+ boolean |
+hasMessages()
+
++ |
+
+ int |
+size()
+
++ |
+
+ String |
+toString()
+
++ |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public Messages(Map<IField,List<Message>> messages)+
+
service - the servicelinks - the links| +Method Detail | +
|---|
+public List<Message> getAll()+
+public Message getFirstBy(IField field, + ISeverity severity)+
#getCreationLog() for further details.
++
field - the field typeseverity - the severity
+Message#FIELD_APPINFO,
+Message#FIELD_RESULT,
+ISeverity+public List<Message> getBy(IField field, + ISeverity severity)+
#getCreationLog() for further details.
++
field - the field typeseverity - the severity
+Message#FIELD_APPINFO,
+Message#FIELD_RESULT,
+ISeverity+public Message getFirstBy(IField field)+
#getCreationLog() for further details.
++
field - the field type
+Message#FIELD_APPINFO,
+Message#FIELD_RESULT+public List<Message> getBy(IField field)+
#getCreationLog() for further details.
++
field - the field type
+Message#FIELD_APPINFO,
+Message#FIELD_RESULT+public boolean hasMessages()+
+public int size()+
+public String toString()+
toString in class Object
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++java.lang.Throwable +
java.lang.Exception +
java.lang.RuntimeException +
com.openshift.client.OpenShiftException +
com.openshift.client.OpenShiftEndpointException +
com.openshift.client.NotFoundOpenShiftException +
public class NotFoundOpenShiftException
+
| +Constructor Summary | +|
|---|---|
NotFoundOpenShiftException(String url,
+ HttpClientException e,
+ RestResponse restResponse)
+
++ |
+|
| +Method Summary | +
|---|
| Methods inherited from class com.openshift.client.OpenShiftEndpointException | +
|---|
getRestResponse, getRestResponseMessage, getRestResponseMessages, getUrl |
+
| Methods inherited from class java.lang.Throwable | +
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public NotFoundOpenShiftException(String url, + HttpClientException e, + RestResponse restResponse) + throws OpenShiftException+
OpenShiftException
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++java.lang.Throwable +
java.lang.Exception +
java.lang.RuntimeException +
com.openshift.client.OpenShiftException +
com.openshift.client.OpenShiftApplicationNotAvailableException +
public class OpenShiftApplicationNotAvailableException
+
| +Constructor Summary | +|
|---|---|
OpenShiftApplicationNotAvailableException(String message)
+
++ |
+|
| +Method Summary | +
|---|
| Methods inherited from class java.lang.Throwable | +
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public OpenShiftApplicationNotAvailableException(String message)+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.AbstractOpenShiftConnectionFactory +
com.openshift.client.OpenShiftConnectionFactory +
public class OpenShiftConnectionFactory
+Connection Factory, used to establish a connection and retrieve a user. +
+ +
+
| +Constructor Summary | +|
|---|---|
OpenShiftConnectionFactory()
+
++ |
+|
| +Method Summary | +|
|---|---|
+ IOpenShiftConnection |
+getConnection(String clientId,
+ String password)
+
++ Establish a connection with the clientId along with user's password. |
+
+ IOpenShiftConnection |
+getConnection(String clientId,
+ String username,
+ String password)
+
++ Establish a connection with the clientId along with user's login and + password. |
+
+ IOpenShiftConnection |
+getConnection(String clientId,
+ String username,
+ String password,
+ String serverUrl)
+
++ Establish a connection with the clientId along with user's login and + password. |
+
+protected IOpenShiftConnection |
+getConnection(String clientId,
+ String username,
+ String password,
+ String serverUrl,
+ IHttpClient httpClient)
+
++ |
+
+ IOpenShiftConnection |
+getConnection(String clientId,
+ String username,
+ String password,
+ String authKey,
+ String authIV,
+ String serverUrl)
+
++ Establish a connection with the clientId along with user's login and + password. |
+
| Methods inherited from class com.openshift.internal.client.AbstractOpenShiftConnectionFactory | +
|---|
getConnection |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public OpenShiftConnectionFactory()+
| +Method Detail | +
|---|
+public IOpenShiftConnection getConnection(String clientId, + String password) + throws OpenShiftException+
+
clientId - http client idpassword - user's password
+FileNotFoundException
+IOException
+OpenShiftException+public IOpenShiftConnection getConnection(String clientId, + String username, + String password) + throws OpenShiftException+
+
clientId - http client idusername - user's loginpassword - user's password
+FileNotFoundException
+IOException
+OpenShiftException+public IOpenShiftConnection getConnection(String clientId, + String username, + String password, + String serverUrl) + throws OpenShiftException+
+
clientId - http client idusername - user's login.password - user's password.serverUrl - the server url.
+FileNotFoundException
+IOException
+OpenShiftException+public IOpenShiftConnection getConnection(String clientId, + String username, + String password, + String authKey, + String authIV, + String serverUrl) + throws OpenShiftException+
+
clientId - http client idusername - user's login.password - user's password.serverUrl - the server url.
+FileNotFoundException
+IOException
+OpenShiftException+protected IOpenShiftConnection getConnection(String clientId, + String username, + String password, + String serverUrl, + IHttpClient httpClient) + throws OpenShiftException, + IOException+
OpenShiftException
+IOException
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++java.lang.Throwable +
java.lang.Exception +
java.lang.RuntimeException +
com.openshift.client.OpenShiftException +
com.openshift.client.OpenShiftEndpointException +
public class OpenShiftEndpointException
+
| +Constructor Summary | +|
|---|---|
OpenShiftEndpointException(String url,
+ Throwable cause,
+ RestResponse response,
+ String message,
+ Object... arguments)
+
++ |
+|
| +Method Summary | +|
|---|---|
+ RestResponse |
+getRestResponse()
+
++ |
+
+ List<Message> |
+getRestResponseMessage(IField field)
+
++ Returns the message for the given field. |
+
+ Messages |
+getRestResponseMessages()
+
++ |
+
+protected String |
+getUrl()
+
++ |
+
| Methods inherited from class java.lang.Throwable | +
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public OpenShiftEndpointException(String url, + Throwable cause, + RestResponse response, + String message, + Object... arguments)+
| +Method Detail | +
|---|
+public RestResponse getRestResponse() + throws OpenShiftException+
RestResponse.
+OpenShiftException - if the unmarshalling fails+public Messages getRestResponseMessages()+
RestResponse. If the unmarshalling fails, the returned list is null.+public List<Message> getRestResponseMessage(IField field)+
null otherwise.
++
field -
+Message#FIELD_DEFAULT,
+Message#FIELD_APPINFO,
+Message#FIELD_RESULT+protected String getUrl()+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++java.lang.Throwable +
java.lang.Exception +
java.lang.RuntimeException +
com.openshift.client.OpenShiftException +
public class OpenShiftException
+
| +Constructor Summary | +|
|---|---|
OpenShiftException(String message,
+ Object... arguments)
+
++ |
+|
OpenShiftException(Throwable cause,
+ String message,
+ Object... arguments)
+
++ |
+|
| +Method Summary | +
|---|
| Methods inherited from class java.lang.Throwable | +
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public OpenShiftException(Throwable cause, + String message, + Object... arguments)+
+public OpenShiftException(String message, + Object... arguments)+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++java.lang.Throwable +
java.lang.Exception +
java.lang.RuntimeException +
com.openshift.client.OpenShiftException +
com.openshift.client.OpenShiftRequestException +
public class OpenShiftRequestException
+
| +Constructor Summary | +|
|---|---|
OpenShiftRequestException(String message,
+ Object... arguments)
+
++ |
+|
| +Method Summary | +
|---|
| Methods inherited from class java.lang.Throwable | +
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public OpenShiftRequestException(String message, + Object... arguments)+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++java.lang.Throwable +
java.lang.Exception +
java.lang.RuntimeException +
com.openshift.client.OpenShiftException +
com.openshift.client.OpenShiftSSHKeyException +
public class OpenShiftSSHKeyException
+
| +Constructor Summary | +|
|---|---|
OpenShiftSSHKeyException(String message,
+ Object... arguments)
+
++ |
+|
| +Method Summary | +
|---|
| Methods inherited from class java.lang.Throwable | +
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public OpenShiftSSHKeyException(String message, + Object... arguments)+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++java.lang.Throwable +
java.lang.Exception +
java.lang.RuntimeException +
com.openshift.client.OpenShiftException +
com.openshift.client.OpenShiftSSHOperationException +
public class OpenShiftSSHOperationException
+OpenShift Exception that encapsulates an underlying exception that occurred during an SSH operation. +
+ +
+
| +Constructor Summary | +|
|---|---|
OpenShiftSSHOperationException(String message,
+ Object... arguments)
+
++ |
+|
OpenShiftSSHOperationException(Throwable cause,
+ String message,
+ Object... arguments)
+
++ |
+|
| +Method Summary | +
|---|
| Methods inherited from class java.lang.Throwable | +
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public OpenShiftSSHOperationException(Throwable cause, + String message, + Object... arguments)+
+public OpenShiftSSHOperationException(String message, + Object... arguments)+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++java.lang.Throwable +
java.lang.Exception +
java.lang.RuntimeException +
com.openshift.client.OpenShiftException +
com.openshift.client.OpenShiftEndpointException +
com.openshift.client.OpenShiftTimeoutException +
public class OpenShiftTimeoutException
+
| +Constructor Summary | +|
|---|---|
OpenShiftTimeoutException(String url,
+ Throwable e,
+ String message,
+ Object... arguments)
+
++ |
+|
| +Method Summary | +
|---|
| Methods inherited from class com.openshift.client.OpenShiftEndpointException | +
|---|
getRestResponse, getRestResponseMessage, getRestResponseMessages, getUrl |
+
| Methods inherited from class java.lang.Throwable | +
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public OpenShiftTimeoutException(String url, + Throwable e, + String message, + Object... arguments)+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++java.lang.Throwable +
java.lang.Exception +
java.lang.RuntimeException +
com.openshift.client.OpenShiftException +
com.openshift.client.OpenShiftUnknonwSSHKeyTypeException +
public class OpenShiftUnknonwSSHKeyTypeException
+
| +Constructor Summary | +|
|---|---|
OpenShiftUnknonwSSHKeyTypeException(String message,
+ Object... arguments)
+
++ |
+|
| +Method Summary | +
|---|
| Methods inherited from class java.lang.Throwable | +
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public OpenShiftUnknonwSSHKeyTypeException(String message, + Object... arguments)+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.ssh.AbstractSSHKey +
com.openshift.client.SSHKeyPair +
public class SSHKeyPair
+
| +Method Summary | +|
|---|---|
+static SSHKeyPair |
+create(SSHKeyType type,
+ String passPhrase,
+ String privateKeyPath,
+ String publicKeyPath)
+
++ Creates private and public ssh-rsa keys and stores them to the given + paths. |
+
+static SSHKeyPair |
+create(String passPhrase,
+ String privateKeyPath,
+ String publicKeyPath)
+
++ |
+
+ String |
+getPrivateKeyPath()
+
++ |
+
+ String |
+getPublicKey()
+
++ Returns the content of the public key (key content without ssh-rsa + identifier nor comment) of the ssh key |
+
+ String |
+getPublicKeyPath()
+
++ |
+
+static SSHKeyPair |
+load(String privateKeyPath,
+ String publicKeyPath)
+
++ Loads existing private and public ssh key from the given paths. |
+
| Methods inherited from class com.openshift.internal.client.ssh.AbstractSSHKey | +
|---|
equals, getKeyType, hashCode, setKeyType, setKeyType, toString |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
+
| +Method Detail | +
|---|
+public static SSHKeyPair create(String passPhrase, + String privateKeyPath, + String publicKeyPath) + throws OpenShiftException+
OpenShiftException+public static SSHKeyPair create(SSHKeyType type, + String passPhrase, + String privateKeyPath, + String publicKeyPath) + throws OpenShiftException+
+
passPhrase - the pass phrase to set to the new keyprivateKeyPath - the path where the new private key gets storedpublicKeyPath - the path where the new public key gets stored
+OpenShiftException - if the key could not be created+public static SSHKeyPair load(String privateKeyPath, + String publicKeyPath) + throws OpenShiftException+
+
privateKeyPath - the path to the private keypublicKeyPath - the path to the public key
+OpenShiftException+public String getPublicKey()+
ISSHPublicKey+
+public String getPrivateKeyPath()+
+public String getPublicKeyPath()+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | ++DETAIL: ENUM CONSTANTS | FIELD | METHOD | +|||||||||
+java.lang.Object ++java.lang.Enum<SSHKeyType> +
com.openshift.client.SSHKeyType +
public enum SSHKeyType
+
| +Enum Constant Summary | +|
|---|---|
SSH_DSA
+
++ |
+|
SSH_RSA
+
++ |
+|
| +Method Summary | +|
|---|---|
+static SSHKeyType |
+getByJSchKeyType(int jschKeyType)
+
++ |
+
+static SSHKeyType |
+getByJSchKeyType(com.jcraft.jsch.KeyPair keyPair)
+
++ |
+
+static SSHKeyType |
+getByTypeId(String keyTypeId)
+
++ |
+
+ String |
+getTypeId()
+
++ |
+
+ int |
+toJSchKeyType()
+
++ Returns the JSch key pair constant for a given SSHKeyType. |
+
+static SSHKeyType |
+valueOf(String name)
+
++ Returns the enum constant of this type with the specified name. |
+
+static SSHKeyType[] |
+values()
+
++ Returns an array containing the constants of this enum type, in +the order they are declared. |
+
| Methods inherited from class java.lang.Enum | +
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
+
| Methods inherited from class java.lang.Object | +
|---|
getClass, notify, notifyAll, wait, wait, wait |
+
| +Enum Constant Detail | +
|---|
+public static final SSHKeyType SSH_RSA+
+public static final SSHKeyType SSH_DSA+
| +Method Detail | +
|---|
+public static SSHKeyType[] values()+
+for (SSHKeyType c : SSHKeyType.values()) + System.out.println(c); ++
+
+public static SSHKeyType valueOf(String name)+
+
name - the name of the enum constant to be returned.
+IllegalArgumentException - if this enum type has no constant
+with the specified name
+NullPointerException - if the argument is null+public String getTypeId()+
+public int toJSchKeyType()+
+
type - the SSHKeyType that the JSch KeyPair constant will get
+ returned for
++public static SSHKeyType getByTypeId(String keyTypeId) + throws OpenShiftUnknonwSSHKeyTypeException+
OpenShiftUnknonwSSHKeyTypeException+public static SSHKeyType getByJSchKeyType(com.jcraft.jsch.KeyPair keyPair) + throws OpenShiftUnknonwSSHKeyTypeException+
OpenShiftUnknonwSSHKeyTypeException+public static SSHKeyType getByJSchKeyType(int jschKeyType) + throws OpenShiftUnknonwSSHKeyTypeException+
OpenShiftUnknonwSSHKeyTypeException
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | ++DETAIL: ENUM CONSTANTS | FIELD | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.ssh.AbstractSSHKey +
com.openshift.client.SSHPublicKey +
public class SSHPublicKey
+
| +Constructor Summary | +|
|---|---|
SSHPublicKey(File publicKeyFile)
+
++ |
+|
SSHPublicKey(String publicKeyFilePath)
+
++ |
+|
| +Method Summary | +|
|---|---|
+ String |
+getPublicKey()
+
++ Returns the content of the public key (key content without ssh-rsa + identifier nor comment) of the ssh key |
+
| Methods inherited from class com.openshift.internal.client.ssh.AbstractSSHKey | +
|---|
equals, getKeyType, hashCode, setKeyType, setKeyType, toString |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public SSHPublicKey(String publicKeyFilePath) + throws FileNotFoundException, + OpenShiftException, + IOException+
FileNotFoundException
+OpenShiftException
+IOException+public SSHPublicKey(File publicKeyFile) + throws FileNotFoundException, + OpenShiftException, + IOException+
FileNotFoundException
+OpenShiftException
+IOException| +Method Detail | +
|---|
+public String getPublicKey()+
ISSHPublicKey+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.cartridge.BaseCartridge +
com.openshift.client.cartridge.EmbeddableCartridge +
public class EmbeddableCartridge
+An cartridge that may be embedded (added) into an application. Add-on + cartridge is an equivalent name for embedded cartridge. +
+ +
+
for cartridges that have already been added and
+ configured to an application.| +Field Summary | +
|---|
| Fields inherited from interface com.openshift.client.cartridge.IEmbeddableCartridge | +
|---|
NAME_10GEN_MMS_AGENT, NAME_CRON, NAME_HAPROXY, NAME_JENKINS_CLIENT, NAME_METRICS, NAME_MONGODB, NAME_MYSQL, NAME_PHPMYADMIN, NAME_POSTGRESQL, NAME_ROCKMONGO, NAME_SWITCHYARD |
+
| Fields inherited from interface com.openshift.client.cartridge.ICartridge | +
|---|
NAME_VERSION_DELIMITER |
+
| +Constructor Summary | +|
|---|---|
EmbeddableCartridge(String name)
+
++ |
+|
EmbeddableCartridge(String name,
+ String displayName,
+ String description)
+
++ Constructor used when available cartridges are loaded from OpenShift |
+|
EmbeddableCartridge(String name,
+ URL url)
+
++ |
+|
EmbeddableCartridge(URL url)
+
++ |
+|
| +Method Summary | +|
|---|---|
+ boolean |
+equals(Object obj)
+
++ |
+
| Methods inherited from class com.openshift.internal.client.cartridge.BaseCartridge | +
|---|
getDescription, getDisplayName, getName, getUrl, hashCode, isDownloadable, toString |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
+
| Methods inherited from interface com.openshift.client.cartridge.ICartridge | +
|---|
getDescription, getDisplayName, getName, getUrl, isDownloadable |
+
| +Constructor Detail | +
|---|
+public EmbeddableCartridge(String name)+
+public EmbeddableCartridge(URL url)+
+public EmbeddableCartridge(String name, + URL url)+
+public EmbeddableCartridge(String name, + String displayName, + String description)+
+
APIResource.getEmbeddableCartridges()| +Method Detail | +
|---|
+public boolean equals(Object obj)+
equals in class BaseCartridge
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
public interface ICartridge
+
| +Field Summary | +|
|---|---|
+static char |
+NAME_VERSION_DELIMITER
+
++ |
+
| +Method Summary | +|
|---|---|
+ String |
+getDescription()
+
++ Returns a description for this cartridge |
+
+ String |
+getDisplayName()
+
++ Returns a (human readable, nice) display name for this cartridge |
+
+ String |
+getName()
+
++ Returns the name of this cartridge |
+
+ URL |
+getUrl()
+
++ Returns the url at which the code for this cartridge may get downloaded. |
+
+ boolean |
+isDownloadable()
+
++ Returns true if this is a downloadable cartridge whose code
+ may be downloaded at the url returned by getUrl() (cartridge
+ code will get downloaded upon creation). |
+
| +Field Detail | +
|---|
+static final char NAME_VERSION_DELIMITER+
| +Method Detail | +
|---|
+String getName()+
+
+String getDisplayName()+
+
+String getDescription()+
+
+boolean isDownloadable()+
true if this is a downloadable cartridge whose code
+ may be downloaded at the url returned by getUrl() (cartridge
+ code will get downloaded upon creation).
+ Examples:
+ +
true if this is a downloadable cartridgegetUrl()+URL getUrl()+
null if this is not a downloadable cartridge.
+
+
+
+- Returns:
- the url if downloadable cartridge or null
- See Also:
isDownloadable()
+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
public interface IEmbeddableCartridge
+
| +Field Summary | +|
|---|---|
+static String |
+NAME_10GEN_MMS_AGENT
+
++ |
+
+static String |
+NAME_CRON
+
++ |
+
+static String |
+NAME_HAPROXY
+
++ |
+
+static String |
+NAME_JENKINS_CLIENT
+
++ |
+
+static String |
+NAME_METRICS
+
++ |
+
+static String |
+NAME_MONGODB
+
++ |
+
+static String |
+NAME_MYSQL
+
++ |
+
+static String |
+NAME_PHPMYADMIN
+
++ |
+
+static String |
+NAME_POSTGRESQL
+
++ |
+
+static String |
+NAME_ROCKMONGO
+
++ |
+
+static String |
+NAME_SWITCHYARD
+
++ |
+
| Fields inherited from interface com.openshift.client.cartridge.ICartridge | +
|---|
NAME_VERSION_DELIMITER |
+
| +Method Summary | +
|---|
| Methods inherited from interface com.openshift.client.cartridge.ICartridge | +
|---|
getDescription, getDisplayName, getName, getUrl, isDownloadable |
+
| +Field Detail | +
|---|
+static final String NAME_10GEN_MMS_AGENT+
+static final String NAME_CRON+
+static final String NAME_HAPROXY+
+static final String NAME_JENKINS_CLIENT+
+static final String NAME_METRICS+
+static final String NAME_MONGODB+
+static final String NAME_PHPMYADMIN+
+static final String NAME_POSTGRESQL+
+static final String NAME_MYSQL+
+static final String NAME_ROCKMONGO+
+static final String NAME_SWITCHYARD+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
public interface IEmbeddedCartridge
+Interface to designate a cartridge that has been added and configured +
+ +
+
| +Field Summary | +
|---|
| Fields inherited from interface com.openshift.client.cartridge.IEmbeddableCartridge | +
|---|
NAME_10GEN_MMS_AGENT, NAME_CRON, NAME_HAPROXY, NAME_JENKINS_CLIENT, NAME_METRICS, NAME_MONGODB, NAME_MYSQL, NAME_PHPMYADMIN, NAME_POSTGRESQL, NAME_ROCKMONGO, NAME_SWITCHYARD |
+
| Fields inherited from interface com.openshift.client.cartridge.ICartridge | +
|---|
NAME_VERSION_DELIMITER |
+
| +Method Summary | +|
|---|---|
+ void |
+destroy()
+
++ Destroys this cartridge (and removes it from the list of existing cartridges) |
+
+ IApplication |
+getApplication()
+
++ Returns the application this cartridge is embedded into. |
+
+ CartridgeResourceProperties |
+getProperties()
+
++ Returns the properties for this embedded cartridge |
+
+ URL |
+getUrl()
+
++ The url at which this cartridge may be reached |
+
| Methods inherited from interface com.openshift.client.IOpenShiftResource | +
|---|
getCreationLog, getMessages, hasCreationLog, refresh |
+
| Methods inherited from interface com.openshift.client.cartridge.ICartridge | +
|---|
getDescription, getDisplayName, getName, isDownloadable |
+
| +Method Detail | +
|---|
+URL getUrl() + throws OpenShiftException+
+
getUrl in interface ICartridgeOpenShiftExceptionICartridge.isDownloadable()+void destroy() + throws OpenShiftException+
+
OpenShiftException+IApplication getApplication()+
+
+CartridgeResourceProperties getProperties()+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
public interface IStandaloneCartridge
+
| +Field Summary | +|
|---|---|
+static String |
+NAME_JBOSSAS
+
++ |
+
+static String |
+NAME_JBOSSEAP
+
++ |
+
+static String |
+NAME_JBOSSEWS
+
++ |
+
+static String |
+NAME_JENKINS
+
++ |
+
+static String |
+NAME_PERL
+
++ |
+
+static String |
+NAME_PHP
+
++ |
+
+static String |
+NAME_PYTHON
+
++ |
+
+static String |
+NAME_RUBY
+
++ |
+
+static String |
+NAME_ZEND
+
++ |
+
| Fields inherited from interface com.openshift.client.cartridge.ICartridge | +
|---|
NAME_VERSION_DELIMITER |
+
| +Method Summary | +
|---|
| Methods inherited from interface com.openshift.client.cartridge.ICartridge | +
|---|
getDescription, getDisplayName, getName, getUrl, isDownloadable |
+
| +Field Detail | +
|---|
+static final String NAME_JBOSSEWS+
+static final String NAME_JBOSSAS+
+static final String NAME_JBOSSEAP+
+static final String NAME_JENKINS+
+static final String NAME_PERL+
+static final String NAME_PHP+
+static final String NAME_PYTHON+
+static final String NAME_RUBY+
+static final String NAME_ZEND+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.cartridge.BaseCartridge +
com.openshift.client.cartridge.StandaloneCartridge +
public class StandaloneCartridge
+A cartridge that is available on the openshift server. This class is no enum + since we dont know all available types and they may change at any time. +
+ +
+
| +Field Summary | +
|---|
| Fields inherited from interface com.openshift.client.cartridge.IStandaloneCartridge | +
|---|
NAME_JBOSSAS, NAME_JBOSSEAP, NAME_JBOSSEWS, NAME_JENKINS, NAME_PERL, NAME_PHP, NAME_PYTHON, NAME_RUBY, NAME_ZEND |
+
| Fields inherited from interface com.openshift.client.cartridge.ICartridge | +
|---|
NAME_VERSION_DELIMITER |
+
| +Constructor Summary | +|
|---|---|
StandaloneCartridge(String name)
+
++ |
+|
StandaloneCartridge(String name,
+ String displayName,
+ String description)
+
++ |
+|
StandaloneCartridge(String name,
+ URL url)
+
++ |
+|
StandaloneCartridge(String name,
+ URL url,
+ String displayName,
+ String description)
+
++ |
+|
StandaloneCartridge(URL url)
+
++ |
+|
| +Method Summary | +
|---|
| Methods inherited from class com.openshift.internal.client.cartridge.BaseCartridge | +
|---|
equals, getDescription, getDisplayName, getName, getUrl, hashCode, isDownloadable, toString |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
+
| Methods inherited from interface com.openshift.client.cartridge.ICartridge | +
|---|
getDescription, getDisplayName, getName, getUrl, isDownloadable |
+
| +Constructor Detail | +
|---|
+public StandaloneCartridge(String name)+
+public StandaloneCartridge(URL url)+
+public StandaloneCartridge(String name, + URL url)+
+public StandaloneCartridge(String name, + String displayName, + String description)+
+public StandaloneCartridge(String name, + URL url, + String displayName, + String description)+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use ICartridge | +|
|---|---|
| com.openshift.client | ++ |
| com.openshift.client.cartridge | ++ |
| com.openshift.client.cartridge.selector | ++ |
| com.openshift.client.utils | ++ |
| com.openshift.internal.client | ++ |
| com.openshift.internal.client.cartridge | ++ |
| +Uses of ICartridge in com.openshift.client | +
|---|
+ +
| Methods in com.openshift.client that return types with arguments of type ICartridge | +|
|---|---|
+ Collection<ICartridge> |
+IGearGroup.getCartridges()
+
++ Returns the cartridges in this gear group resource |
+
| +Uses of ICartridge in com.openshift.client.cartridge | +
|---|
+ +
| Subinterfaces of ICartridge in com.openshift.client.cartridge | +|
|---|---|
+ interface |
+IEmbeddableCartridge
+
++ |
+
+ interface |
+IEmbeddedCartridge
+
++ Interface to designate a cartridge that has been added and configured |
+
+ interface |
+IStandaloneCartridge
+
++ |
+
+ +
| Classes in com.openshift.client.cartridge that implement ICartridge | +|
|---|---|
+ class |
+EmbeddableCartridge
+
++ An cartridge that may be embedded (added) into an application. |
+
+ class |
+StandaloneCartridge
+
++ A cartridge that is available on the openshift server. |
+
| +Uses of ICartridge in com.openshift.client.cartridge.selector | +
|---|
+ +
| Methods in com.openshift.client.cartridge.selector with type parameters of type ICartridge | +||
|---|---|---|
+
+ |
+LatestVersionQuery.get(Collection<C> cartridges)
+
++ |
+|
+
+ |
+LatestVersionQuery.getAll(Collection<C> cartridges)
+
++ |
+|
+protected
+ |
+LatestVersionQuery.getLatest(Collection<C> matchingCartridges)
+
++ |
+|
+protected abstract
+ |
+StringPropertyQuery.getProperty(C cartridge)
+
++ |
+|
+
+ |
+StringPropertyQuery.matches(C cartridge)
+
++ |
+|
+
+ |
+LatestVersionQuery.matches(C cartridge)
+
++ |
+|
| +Uses of ICartridge in com.openshift.client.utils | +
|---|
+ +
| Methods in com.openshift.client.utils with parameters of type ICartridge | +|
|---|---|
+static List<String> |
+OpenShiftResourceUtils.toNames(ICartridge... cartridges)
+
++ |
+
| +Uses of ICartridge in com.openshift.internal.client | +
|---|
+ +
| Classes in com.openshift.internal.client that implement ICartridge | +|
|---|---|
+ class |
+EmbeddedCartridgeResource
+
++ A cartridge that is embedded into an application. |
+
+ +
| Methods in com.openshift.internal.client that return ICartridge | +|
|---|---|
+protected ICartridge |
+ApplicationResource.getCartridge(String cartridgeName)
+
++ Returns the main (standalone) cartrige or one of the embedded cartridges + whose name matches the given param. |
+
+ +
| Methods in com.openshift.internal.client that return types with arguments of type ICartridge | +|
|---|---|
+ Collection<ICartridge> |
+GearGroupResource.getCartridges()
+
++ |
+
| +Uses of ICartridge in com.openshift.internal.client.cartridge | +
|---|
+ +
| Classes in com.openshift.internal.client.cartridge that implement ICartridge | +|
|---|---|
+ class |
+BaseCartridge
+
++ A (base) cartridge for an OpenShift application. |
+
+ +
| Methods in com.openshift.internal.client.cartridge with type parameters of type ICartridge | +||
|---|---|---|
+
+ |
+AbstractCartridgeQuery.get(Collection<C> cartridges)
+
++ |
+|
+
+ |
+AbstractCartridgeQuery.getAll(Collection<C> cartridges)
+
++ |
+|
+abstract
+ |
+AbstractCartridgeQuery.matches(C cartridge)
+
++ |
+|
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use IEmbeddableCartridge | +|
|---|---|
| com.openshift.client | ++ |
| com.openshift.client.cartridge | ++ |
| com.openshift.client.cartridge.selector | ++ |
| com.openshift.internal.client | ++ |
| +Uses of IEmbeddableCartridge in com.openshift.client | +
|---|
+ +
| Methods in com.openshift.client that return types with arguments of type IEmbeddableCartridge | +|
|---|---|
+ List<IEmbeddableCartridge> |
+IOpenShiftConnection.getEmbeddableCartridges()
+
++ Returns the available embeddable cartridges associated with the current + OpenShift connection. |
+
+ +
| Methods in com.openshift.client with parameters of type IEmbeddableCartridge | +|
|---|---|
+ IEmbeddedCartridge |
+IApplication.addEmbeddableCartridge(IEmbeddableCartridge cartridge)
+
++ Adds the given embeddable cartridge to this application. |
+
+ IApplication |
+IDomain.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale,
+ IGearProfile gearProfile,
+ String initialGitUrl,
+ int timeout,
+ IEmbeddableCartridge... cartridges)
+
++ Creates a new application with the given name and the given + cartridge/framework. |
+
+ IApplication |
+IDomain.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale,
+ IGearProfile gearProfile,
+ String initialGitUrl,
+ int timeout,
+ Map<String,String> environmentVariable,
+ IEmbeddableCartridge... cartridges)
+
++ Creates a new application with the given name and the given + cartridge/framework. |
+
+ IEmbeddedCartridge |
+IApplication.getEmbeddedCartridge(IEmbeddableCartridge cartridge)
+
++ Returns the embedded cartridge in this application. |
+
+ boolean |
+IApplication.hasEmbeddedCartridge(IEmbeddableCartridge cartridge)
+
++ Returns true if this application has an embedded cartridge. |
+
+ void |
+IApplication.removeEmbeddedCartridge(IEmbeddableCartridge cartridge)
+
++ Removes the given embedded cartridge that is equal to the given + embeddable cartridge. |
+
+ +
| Method parameters in com.openshift.client with type arguments of type IEmbeddableCartridge | +|
|---|---|
+ List<IEmbeddedCartridge> |
+IApplication.addEmbeddableCartridges(Collection<IEmbeddableCartridge> cartridge)
+
++ Adds all given embedded cartridges from this app, given their names. |
+
+ void |
+IApplication.removeEmbeddedCartridges(Collection<IEmbeddableCartridge> cartridges)
+
++ Removes the given embedded cartridges in this application that are equal to the + given IEmbeddableCartridge. |
+
| +Uses of IEmbeddableCartridge in com.openshift.client.cartridge | +
|---|
+ +
| Subinterfaces of IEmbeddableCartridge in com.openshift.client.cartridge | +|
|---|---|
+ interface |
+IEmbeddedCartridge
+
++ Interface to designate a cartridge that has been added and configured |
+
+ +
| Classes in com.openshift.client.cartridge that implement IEmbeddableCartridge | +|
|---|---|
+ class |
+EmbeddableCartridge
+
++ An cartridge that may be embedded (added) into an application. |
+
| +Uses of IEmbeddableCartridge in com.openshift.client.cartridge.selector | +
|---|
+ +
| Methods in com.openshift.client.cartridge.selector that return IEmbeddableCartridge | +|
|---|---|
+ IEmbeddableCartridge |
+LatestEmbeddableCartridge.get(IApplication application)
+
++ |
+
+ IEmbeddableCartridge |
+LatestEmbeddableCartridge.get(IUser user)
+
++ |
+
| +Uses of IEmbeddableCartridge in com.openshift.internal.client | +
|---|
+ +
| Classes in com.openshift.internal.client that implement IEmbeddableCartridge | +|
|---|---|
+ class |
+EmbeddedCartridgeResource
+
++ A cartridge that is embedded into an application. |
+
+ +
| Methods in com.openshift.internal.client that return types with arguments of type IEmbeddableCartridge | +|
|---|---|
+ List<IEmbeddableCartridge> |
+APIResource.getEmbeddableCartridges()
+
++ |
+
+ +
| Methods in com.openshift.internal.client with parameters of type IEmbeddableCartridge | +|
|---|---|
+protected AbstractOpenShiftResource.Parameters |
+AbstractOpenShiftResource.Parameters.addCartridge(IEmbeddableCartridge embeddable)
+
++ |
+
+protected AbstractOpenShiftResource.Parameters |
+AbstractOpenShiftResource.Parameters.addCartridges(IStandaloneCartridge standalone,
+ IEmbeddableCartridge[] embeddables)
+
++ |
+
+ IEmbeddedCartridge |
+ApplicationResource.addEmbeddableCartridge(IEmbeddableCartridge cartridge)
+
++ Adds the given embedded cartridge to this application. |
+
+ IApplication |
+DomainResource.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale,
+ IGearProfile gearProfile,
+ String initialGitUrl,
+ int timeout,
+ IEmbeddableCartridge... cartridges)
+
++ |
+
+ IApplication |
+DomainResource.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale,
+ IGearProfile gearProfile,
+ String initialGitUrl,
+ int timeout,
+ Map<String,String> environmentVariables,
+ IEmbeddableCartridge... cartridges)
+
++ |
+
+ IEmbeddedCartridge |
+ApplicationResource.getEmbeddedCartridge(IEmbeddableCartridge cartridge)
+
++ |
+
+ boolean |
+ApplicationResource.hasEmbeddedCartridge(IEmbeddableCartridge cartridge)
+
++ |
+
+ void |
+ApplicationResource.removeEmbeddedCartridge(IEmbeddableCartridge cartridge)
+
++ |
+
+ +
| Method parameters in com.openshift.internal.client with type arguments of type IEmbeddableCartridge | +|
|---|---|
+ List<IEmbeddedCartridge> |
+ApplicationResource.addEmbeddableCartridges(Collection<IEmbeddableCartridge> cartridges)
+
++ |
+
+ void |
+ApplicationResource.removeEmbeddedCartridges(Collection<IEmbeddableCartridge> cartridges)
+
++ |
+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use IEmbeddedCartridge | +|
|---|---|
| com.openshift.client | ++ |
| com.openshift.client.cartridge.selector | ++ |
| com.openshift.internal.client | ++ |
| +Uses of IEmbeddedCartridge in com.openshift.client | +
|---|
+ +
| Methods in com.openshift.client that return IEmbeddedCartridge | +|
|---|---|
+ IEmbeddedCartridge |
+IApplication.addEmbeddableCartridge(IEmbeddableCartridge cartridge)
+
++ Adds the given embeddable cartridge to this application. |
+
+ IEmbeddedCartridge |
+IApplication.getEmbeddedCartridge(IEmbeddableCartridge cartridge)
+
++ Returns the embedded cartridge in this application. |
+
+ IEmbeddedCartridge |
+IApplication.getEmbeddedCartridge(String cartridgeName)
+
++ Returns the embedded cartridge given its name. |
+
+ +
| Methods in com.openshift.client that return types with arguments of type IEmbeddedCartridge | +|
|---|---|
+ List<IEmbeddedCartridge> |
+IApplication.addEmbeddableCartridges(Collection<IEmbeddableCartridge> cartridge)
+
++ Adds all given embedded cartridges from this app, given their names. |
+
+ List<IEmbeddedCartridge> |
+IApplication.getEmbeddedCartridges()
+
++ Returns all embedded cartridges. |
+
| +Uses of IEmbeddedCartridge in com.openshift.client.cartridge.selector | +
|---|
+ +
| Methods in com.openshift.client.cartridge.selector with parameters of type IEmbeddedCartridge | +|
|---|---|
+ CartridgeResourceProperty |
+UrlPropertyQuery.getMatchingProperty(IEmbeddedCartridge embeddedCartridge)
+
++ |
+
+abstract CartridgeResourceProperty |
+CartridgePropertyQuery.getMatchingProperty(IEmbeddedCartridge embeddedCartridge)
+
++ |
+
| +Uses of IEmbeddedCartridge in com.openshift.internal.client | +
|---|
+ +
| Classes in com.openshift.internal.client that implement IEmbeddedCartridge | +|
|---|---|
+ class |
+EmbeddedCartridgeResource
+
++ A cartridge that is embedded into an application. |
+
+ +
| Methods in com.openshift.internal.client that return IEmbeddedCartridge | +|
|---|---|
+ IEmbeddedCartridge |
+ApplicationResource.addEmbeddableCartridge(IEmbeddableCartridge cartridge)
+
++ Adds the given embedded cartridge to this application. |
+
+ IEmbeddedCartridge |
+ApplicationResource.getEmbeddedCartridge(IEmbeddableCartridge cartridge)
+
++ |
+
+ IEmbeddedCartridge |
+ApplicationResource.getEmbeddedCartridge(String cartridgeName)
+
++ |
+
+ +
| Methods in com.openshift.internal.client that return types with arguments of type IEmbeddedCartridge | +|
|---|---|
+ List<IEmbeddedCartridge> |
+ApplicationResource.addEmbeddableCartridges(Collection<IEmbeddableCartridge> cartridges)
+
++ |
+
+ List<IEmbeddedCartridge> |
+ApplicationResource.getEmbeddedCartridges()
+
++ |
+
+ +
| Methods in com.openshift.internal.client with parameters of type IEmbeddedCartridge | +|
|---|---|
+protected void |
+ApplicationResource.removeEmbeddedCartridge(IEmbeddedCartridge embeddedCartridge)
+
++ "callback" from the embeddedCartridge once it has been destroyed. |
+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use IStandaloneCartridge | +|
|---|---|
| com.openshift.client | ++ |
| com.openshift.client.cartridge | ++ |
| com.openshift.client.cartridge.selector | ++ |
| com.openshift.internal.client | ++ |
| +Uses of IStandaloneCartridge in com.openshift.client | +
|---|
+ +
| Methods in com.openshift.client that return IStandaloneCartridge | +|
|---|---|
+ IStandaloneCartridge |
+IApplication.getCartridge()
+
++ Returns the cartridge (application type) that this app is running on. |
+
+ +
| Methods in com.openshift.client that return types with arguments of type IStandaloneCartridge | +|
|---|---|
+ List<IStandaloneCartridge> |
+IOpenShiftConnection.getStandaloneCartridges()
+
++ Returns the available standalone cartridges associated with the current + OpenShift connection. |
+
+ +
| Methods in com.openshift.client with parameters of type IStandaloneCartridge | +|
|---|---|
+ IApplication |
+IDomain.createApplication(String name,
+ IStandaloneCartridge cartridge)
+
++ |
+
+ IApplication |
+IDomain.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale)
+
++ |
+
+ IApplication |
+IDomain.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale,
+ IGearProfile gearProfile)
+
++ |
+
+ IApplication |
+IDomain.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale,
+ IGearProfile gearProfile,
+ String initialGitUrl)
+
++ Creates a new application with the given name and the given + cartridge/framework. |
+
+ IApplication |
+IDomain.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale,
+ IGearProfile gearProfile,
+ String initialGitUrl,
+ int timeout,
+ IEmbeddableCartridge... cartridges)
+
++ Creates a new application with the given name and the given + cartridge/framework. |
+
+ IApplication |
+IDomain.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale,
+ IGearProfile gearProfile,
+ String initialGitUrl,
+ int timeout,
+ Map<String,String> environmentVariable,
+ IEmbeddableCartridge... cartridges)
+
++ Creates a new application with the given name and the given + cartridge/framework. |
+
+ IApplication |
+IDomain.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ IGearProfile gearProfile)
+
++ |
+
+ IApplication |
+IDomain.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ String initialGitUrl)
+
++ |
+
+ List<IApplication> |
+IDomain.getApplicationsByCartridge(IStandaloneCartridge cartridge)
+
++ |
+
+ boolean |
+IDomain.hasApplicationByCartridge(IStandaloneCartridge cartridge)
+
++ |
+
+ ApplicationBuilder.CartridgeHolder |
+ApplicationBuilder.setCartridge(IStandaloneCartridge cartridge)
+
++ |
+
| +Uses of IStandaloneCartridge in com.openshift.client.cartridge | +
|---|
+ +
| Classes in com.openshift.client.cartridge that implement IStandaloneCartridge | +|
|---|---|
+ class |
+StandaloneCartridge
+
++ A cartridge that is available on the openshift server. |
+
| +Uses of IStandaloneCartridge in com.openshift.client.cartridge.selector | +
|---|
+ +
| Methods in com.openshift.client.cartridge.selector that return IStandaloneCartridge | +|
|---|---|
+ IStandaloneCartridge |
+LatestStandaloneCartridge.get(IApplication application)
+
++ |
+
+ IStandaloneCartridge |
+LatestStandaloneCartridge.get(IUser user)
+
++ |
+
+ +
| Methods in com.openshift.client.cartridge.selector that return types with arguments of type IStandaloneCartridge | +|
|---|---|
+ Collection<IStandaloneCartridge> |
+LatestVersionQuery.allStandaloneCartridges(IApplication application)
+
++ |
+
| +Uses of IStandaloneCartridge in com.openshift.internal.client | +
|---|
+ +
| Methods in com.openshift.internal.client that return IStandaloneCartridge | +|
|---|---|
+ IStandaloneCartridge |
+ApplicationResource.getCartridge()
+
++ |
+
+ +
| Methods in com.openshift.internal.client that return types with arguments of type IStandaloneCartridge | +|
|---|---|
+ List<IStandaloneCartridge> |
+APIResource.getStandaloneCartridges()
+
++ |
+
+ +
| Methods in com.openshift.internal.client with parameters of type IStandaloneCartridge | +|
|---|---|
+protected AbstractOpenShiftResource.Parameters |
+AbstractOpenShiftResource.Parameters.addCartridges(IStandaloneCartridge standalone,
+ IEmbeddableCartridge[] embeddables)
+
++ |
+
+ IApplication |
+DomainResource.createApplication(String name,
+ IStandaloneCartridge cartridge)
+
++ |
+
+ IApplication |
+DomainResource.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale)
+
++ |
+
+ IApplication |
+DomainResource.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale,
+ IGearProfile gearProfile)
+
++ |
+
+ IApplication |
+DomainResource.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale,
+ IGearProfile gearProfile,
+ String initialGitUrl)
+
++ |
+
+ IApplication |
+DomainResource.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale,
+ IGearProfile gearProfile,
+ String initialGitUrl,
+ int timeout,
+ IEmbeddableCartridge... cartridges)
+
++ |
+
+ IApplication |
+DomainResource.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale,
+ IGearProfile gearProfile,
+ String initialGitUrl,
+ int timeout,
+ Map<String,String> environmentVariables,
+ IEmbeddableCartridge... cartridges)
+
++ |
+
+ IApplication |
+DomainResource.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale,
+ String initialGitUrl)
+
++ |
+
+ IApplication |
+DomainResource.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ IGearProfile gearProfile)
+
++ |
+
+ IApplication |
+DomainResource.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ IGearProfile gearProfile,
+ String initialGitUrl)
+
++ |
+
+ IApplication |
+DomainResource.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ String initialGitUrl)
+
++ |
+
+ List<IApplication> |
+DomainResource.getApplicationsByCartridge(IStandaloneCartridge cartridge)
+
++ |
+
+ boolean |
+DomainResource.hasApplicationByCartridge(IStandaloneCartridge cartridge)
+
++ |
+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
|
+Interfaces
+
+ +ICartridge + +IEmbeddableCartridge + +IEmbeddedCartridge + +IStandaloneCartridge |
+
|
+Classes
+
+ +EmbeddableCartridge + +StandaloneCartridge |
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Interface Summary | +|
|---|---|
| ICartridge | ++ |
| IEmbeddableCartridge | ++ |
| IEmbeddedCartridge | +Interface to designate a cartridge that has been added and configured | +
| IStandaloneCartridge | ++ |
+ +
| +Class Summary | +|
|---|---|
| EmbeddableCartridge | +An cartridge that may be embedded (added) into an application. | +
| StandaloneCartridge | +A cartridge that is available on the openshift server. | +
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use com.openshift.client.cartridge | +|
|---|---|
| com.openshift.client | ++ |
| com.openshift.client.cartridge | ++ |
| com.openshift.client.cartridge.selector | ++ |
| com.openshift.client.utils | ++ |
| com.openshift.internal.client | ++ |
| com.openshift.internal.client.cartridge | ++ |
| +Classes in com.openshift.client.cartridge used by com.openshift.client | +|
|---|---|
| ICartridge
+
+ + |
+|
| IEmbeddableCartridge
+
+ + |
+|
| IEmbeddedCartridge
+
+ + Interface to designate a cartridge that has been added and configured |
+|
| IStandaloneCartridge
+
+ + |
+|
| +Classes in com.openshift.client.cartridge used by com.openshift.client.cartridge | +|
|---|---|
| ICartridge
+
+ + |
+|
| IEmbeddableCartridge
+
+ + |
+|
| IStandaloneCartridge
+
+ + |
+|
| +Classes in com.openshift.client.cartridge used by com.openshift.client.cartridge.selector | +|
|---|---|
| ICartridge
+
+ + |
+|
| IEmbeddableCartridge
+
+ + |
+|
| IEmbeddedCartridge
+
+ + Interface to designate a cartridge that has been added and configured |
+|
| IStandaloneCartridge
+
+ + |
+|
| +Classes in com.openshift.client.cartridge used by com.openshift.client.utils | +|
|---|---|
| ICartridge
+
+ + |
+|
| +Classes in com.openshift.client.cartridge used by com.openshift.internal.client | +|
|---|---|
| ICartridge
+
+ + |
+|
| IEmbeddableCartridge
+
+ + |
+|
| IEmbeddedCartridge
+
+ + Interface to designate a cartridge that has been added and configured |
+|
| IStandaloneCartridge
+
+ + |
+|
| +Classes in com.openshift.client.cartridge used by com.openshift.internal.client.cartridge | +|
|---|---|
| ICartridge
+
+ + |
+|
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.client.cartridge.selector.CartridgePropertyQuery +
public abstract class CartridgePropertyQuery
+
| +Constructor Summary | +|
|---|---|
CartridgePropertyQuery()
+
++ |
+|
| +Method Summary | +|
|---|---|
+abstract CartridgeResourceProperty |
+getMatchingProperty(IEmbeddedCartridge embeddedCartridge)
+
++ |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public CartridgePropertyQuery()+
| +Method Detail | +
|---|
+public abstract CartridgeResourceProperty getMatchingProperty(IEmbeddedCartridge embeddedCartridge)+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.cartridge.AbstractCartridgeQuery +
com.openshift.client.cartridge.selector.LatestVersionQuery +
com.openshift.client.cartridge.selector.LatestEmbeddableCartridge +
public class LatestEmbeddableCartridge
+A selector that shall select the latest version of an embedded cartidge that's given by name. +
+ +
+
IEmbeddableCartridge| +Nested Class Summary | +
|---|
| Nested classes/interfaces inherited from class com.openshift.client.cartridge.selector.LatestVersionQuery | +
|---|
LatestVersionQuery.VersionedName |
+
| +Constructor Summary | +|
|---|---|
LatestEmbeddableCartridge(String name)
+
++ |
+|
| +Method Summary | +|
|---|---|
+ IEmbeddableCartridge |
+get(IApplication application)
+
++ |
+
+ IEmbeddableCartridge |
+get(IUser user)
+
++ |
+
| Methods inherited from class com.openshift.client.cartridge.selector.LatestVersionQuery | +
|---|
allStandaloneCartridges, equals, get, getAll, getLatest, getNameConstraint, hashCode, matches |
+
| Methods inherited from class com.openshift.internal.client.cartridge.AbstractCartridgeQuery | +
|---|
getConnection, getConnection |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public LatestEmbeddableCartridge(String name)+
| +Method Detail | +
|---|
+public IEmbeddableCartridge get(IApplication application)+
+public IEmbeddableCartridge get(IUser user)+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.cartridge.AbstractCartridgeQuery +
com.openshift.client.cartridge.selector.LatestVersionQuery +
com.openshift.client.cartridge.selector.LatestStandaloneCartridge +
public class LatestStandaloneCartridge
+A selector that shall select the latest version of a standalone cartidge that's given by name. +
+ +
+
IStandaloneCartridge| +Nested Class Summary | +
|---|
| Nested classes/interfaces inherited from class com.openshift.client.cartridge.selector.LatestVersionQuery | +
|---|
LatestVersionQuery.VersionedName |
+
| +Constructor Summary | +|
|---|---|
LatestStandaloneCartridge(String name)
+
++ |
+|
| +Method Summary | +|
|---|---|
+ IStandaloneCartridge |
+get(IApplication application)
+
++ |
+
+ IStandaloneCartridge |
+get(IUser user)
+
++ |
+
| Methods inherited from class com.openshift.client.cartridge.selector.LatestVersionQuery | +
|---|
allStandaloneCartridges, equals, get, getAll, getLatest, getNameConstraint, hashCode, matches |
+
| Methods inherited from class com.openshift.internal.client.cartridge.AbstractCartridgeQuery | +
|---|
getConnection, getConnection |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public LatestStandaloneCartridge(String name)+
| +Method Detail | +
|---|
+public IStandaloneCartridge get(IApplication application)+
+public IStandaloneCartridge get(IUser user)+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.client.cartridge.selector.LatestVersionOf +
public class LatestVersionOf
+
| +Constructor Summary | +|
|---|---|
LatestVersionOf()
+
++ |
+|
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public LatestVersionOf()+
| +Method Detail | +
|---|
+public static LatestEmbeddableCartridge mmsAgent()+
+public static LatestEmbeddableCartridge cron()+
+public static LatestEmbeddableCartridge haProxy()+
+public static LatestEmbeddableCartridge jenkinsClient()+
+public static LatestEmbeddableCartridge metrics()+
+public static LatestEmbeddableCartridge mongoDB()+
+public static LatestEmbeddableCartridge phpMyAdmin()+
+public static LatestEmbeddableCartridge postgreSQL()+
+public static LatestEmbeddableCartridge mySQL()+
+public static LatestEmbeddableCartridge rockMongo()+
+public static LatestEmbeddableCartridge switchyard()+
+public static LatestStandaloneCartridge jbossEws()+
+public static LatestStandaloneCartridge jbossEap()+
+public static LatestStandaloneCartridge jbossAs()+
+public static LatestStandaloneCartridge jenkins()+
+public static LatestStandaloneCartridge perl()+
+public static LatestStandaloneCartridge php()+
+public static LatestStandaloneCartridge python()+
+public static LatestStandaloneCartridge ruby()+
+public static LatestStandaloneCartridge zend()+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.client.cartridge.selector.LatestVersionQuery.VersionedName +
protected class LatestVersionQuery.VersionedName
+
| +Constructor Summary | +|
|---|---|
+protected |
+LatestVersionQuery.VersionedName(String name)
+
++ |
+
| +Method Summary | +|
|---|---|
+ int |
+compareTo(LatestVersionQuery.VersionedName other)
+
++ |
+
+ String |
+getMajor()
+
++ |
+
+ String |
+getMinor()
+
++ |
+
+ String |
+getName()
+
++ |
+
+ boolean |
+hasVersion()
+
++ |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+protected LatestVersionQuery.VersionedName(String name)+
| +Method Detail | +
|---|
+public String getName()+
+public boolean hasVersion()+
+public String getMajor()+
+public String getMinor()+
+public int compareTo(LatestVersionQuery.VersionedName other)+
compareTo in interface Comparable<LatestVersionQuery.VersionedName>
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.cartridge.AbstractCartridgeQuery +
com.openshift.client.cartridge.selector.LatestVersionQuery +
public class LatestVersionQuery
+A constraint that shall match available embeddable and standalone cartridges by name. Among + several matching ones, the one with the highest version is chosen. +
+ +
+
for cartridges that have already been added and
+ configured to an application.| +Nested Class Summary | +|
|---|---|
+protected class |
+LatestVersionQuery.VersionedName
+
++ |
+
| +Constructor Summary | +|
|---|---|
LatestVersionQuery(String name)
+
++ |
+|
| +Method Summary | +||
|---|---|---|
+ Collection<IStandaloneCartridge> |
+allStandaloneCartridges(IApplication application)
+
++ |
+|
+ boolean |
+equals(Object obj)
+
++ |
+|
+
+ |
+get(Collection<C> cartridges)
+
++ |
+|
+
+ |
+getAll(Collection<C> cartridges)
+
++ |
+|
+protected
+ |
+getLatest(Collection<C> matchingCartridges)
+
++ |
+|
+ String |
+getNameConstraint()
+
++ |
+|
+ int |
+hashCode()
+
++ |
+|
+
+ |
+matches(C cartridge)
+
++ |
+|
| Methods inherited from class com.openshift.internal.client.cartridge.AbstractCartridgeQuery | +
|---|
getConnection, getConnection |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public LatestVersionQuery(String name)+
| +Method Detail | +
|---|
+public String getNameConstraint()+
+public <C extends ICartridge> Collection<C> getAll(Collection<C> cartridges)+
getAll in class AbstractCartridgeQuery+public <C extends ICartridge> C get(Collection<C> cartridges)+
get in class AbstractCartridgeQuery+public <C extends ICartridge> boolean matches(C cartridge)+
matches in class AbstractCartridgeQuery+protected <C extends ICartridge> C getLatest(Collection<C> matchingCartridges)+
+public Collection<IStandaloneCartridge> allStandaloneCartridges(IApplication application)+
+public int hashCode()+
hashCode in class Object+public boolean equals(Object obj)+
equals in class Object
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.cartridge.AbstractCartridgeQuery +
com.openshift.client.cartridge.selector.StringPropertyQuery +
public abstract class StringPropertyQuery
+A constraint that shall match available cartridges by url. +
+ +
+
IEmbeddableCartridge,
+IStandaloneCartridge| +Constructor Summary | +|
|---|---|
StringPropertyQuery(Pattern pattern)
+
++ |
+|
StringPropertyQuery(String propertyPattern)
+
++ |
+|
| +Method Summary | +||
|---|---|---|
+protected abstract
+ |
+getProperty(C cartridge)
+
++ |
+|
+
+ |
+matches(C cartridge)
+
++ |
+|
| Methods inherited from class com.openshift.internal.client.cartridge.AbstractCartridgeQuery | +
|---|
get, getAll, getConnection, getConnection |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public StringPropertyQuery(String propertyPattern)+
+public StringPropertyQuery(Pattern pattern)+
| +Method Detail | +
|---|
+public <C extends ICartridge> boolean matches(C cartridge)+
matches in class AbstractCartridgeQuery+protected abstract <C extends ICartridge> String getProperty(C cartridge)+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.client.cartridge.selector.CartridgePropertyQuery +
com.openshift.client.cartridge.selector.UrlPropertyQuery +
public class UrlPropertyQuery
+
| +Constructor Summary | +|
|---|---|
UrlPropertyQuery()
+
++ |
+|
| +Method Summary | +|
|---|---|
+ CartridgeResourceProperty |
+getMatchingProperty(IEmbeddedCartridge embeddedCartridge)
+
++ |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public UrlPropertyQuery()+
| +Method Detail | +
|---|
+public CartridgeResourceProperty getMatchingProperty(IEmbeddedCartridge embeddedCartridge)+
getMatchingProperty in class CartridgePropertyQuery
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use CartridgePropertyQuery | +|
|---|---|
| com.openshift.client.cartridge.selector | ++ |
| +Uses of CartridgePropertyQuery in com.openshift.client.cartridge.selector | +
|---|
+ +
| Subclasses of CartridgePropertyQuery in com.openshift.client.cartridge.selector | +|
|---|---|
+ class |
+UrlPropertyQuery
+
++ |
+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use LatestEmbeddableCartridge | +|
|---|---|
| com.openshift.client.cartridge.selector | ++ |
| +Uses of LatestEmbeddableCartridge in com.openshift.client.cartridge.selector | +
|---|
+ +
| Methods in com.openshift.client.cartridge.selector that return LatestEmbeddableCartridge | +|
|---|---|
+static LatestEmbeddableCartridge |
+LatestVersionOf.cron()
+
++ |
+
+static LatestEmbeddableCartridge |
+LatestVersionOf.haProxy()
+
++ |
+
+static LatestEmbeddableCartridge |
+LatestVersionOf.jenkinsClient()
+
++ |
+
+static LatestEmbeddableCartridge |
+LatestVersionOf.metrics()
+
++ |
+
+static LatestEmbeddableCartridge |
+LatestVersionOf.mmsAgent()
+
++ |
+
+static LatestEmbeddableCartridge |
+LatestVersionOf.mongoDB()
+
++ |
+
+static LatestEmbeddableCartridge |
+LatestVersionOf.mySQL()
+
++ |
+
+static LatestEmbeddableCartridge |
+LatestVersionOf.phpMyAdmin()
+
++ |
+
+static LatestEmbeddableCartridge |
+LatestVersionOf.postgreSQL()
+
++ |
+
+static LatestEmbeddableCartridge |
+LatestVersionOf.rockMongo()
+
++ |
+
+static LatestEmbeddableCartridge |
+LatestVersionOf.switchyard()
+
++ |
+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use LatestStandaloneCartridge | +|
|---|---|
| com.openshift.client.cartridge.selector | ++ |
| +Uses of LatestStandaloneCartridge in com.openshift.client.cartridge.selector | +
|---|
+ +
| Methods in com.openshift.client.cartridge.selector that return LatestStandaloneCartridge | +|
|---|---|
+static LatestStandaloneCartridge |
+LatestVersionOf.jbossAs()
+
++ |
+
+static LatestStandaloneCartridge |
+LatestVersionOf.jbossEap()
+
++ |
+
+static LatestStandaloneCartridge |
+LatestVersionOf.jbossEws()
+
++ |
+
+static LatestStandaloneCartridge |
+LatestVersionOf.jenkins()
+
++ |
+
+static LatestStandaloneCartridge |
+LatestVersionOf.perl()
+
++ |
+
+static LatestStandaloneCartridge |
+LatestVersionOf.php()
+
++ |
+
+static LatestStandaloneCartridge |
+LatestVersionOf.python()
+
++ |
+
+static LatestStandaloneCartridge |
+LatestVersionOf.ruby()
+
++ |
+
+static LatestStandaloneCartridge |
+LatestVersionOf.zend()
+
++ |
+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use LatestVersionQuery.VersionedName | +|
|---|---|
| com.openshift.client.cartridge.selector | ++ |
| +Uses of LatestVersionQuery.VersionedName in com.openshift.client.cartridge.selector | +
|---|
+ +
| Methods in com.openshift.client.cartridge.selector with parameters of type LatestVersionQuery.VersionedName | +|
|---|---|
+ int |
+LatestVersionQuery.VersionedName.compareTo(LatestVersionQuery.VersionedName other)
+
++ |
+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use LatestVersionQuery | +|
|---|---|
| com.openshift.client.cartridge.selector | ++ |
| +Uses of LatestVersionQuery in com.openshift.client.cartridge.selector | +
|---|
+ +
| Subclasses of LatestVersionQuery in com.openshift.client.cartridge.selector | +|
|---|---|
+ class |
+LatestEmbeddableCartridge
+
++ A selector that shall select the latest version of an embedded cartidge that's given by name. |
+
+ class |
+LatestStandaloneCartridge
+
++ A selector that shall select the latest version of a standalone cartidge that's given by name. |
+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
|
+Classes
+
+ +CartridgePropertyQuery + +LatestEmbeddableCartridge + +LatestStandaloneCartridge + +LatestVersionOf + +LatestVersionQuery + +StringPropertyQuery + +UrlPropertyQuery |
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Class Summary | +|
|---|---|
| CartridgePropertyQuery | ++ |
| LatestEmbeddableCartridge | +A selector that shall select the latest version of an embedded cartidge that's given by name. | +
| LatestStandaloneCartridge | +A selector that shall select the latest version of a standalone cartidge that's given by name. | +
| LatestVersionOf | ++ |
| LatestVersionQuery | +A constraint that shall match available embeddable and standalone cartridges by name. | +
| StringPropertyQuery | +A constraint that shall match available cartridges by url. | +
| UrlPropertyQuery | ++ |
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use com.openshift.client.cartridge.selector | +|
|---|---|
| com.openshift.client.cartridge.selector | ++ |
| +Classes in com.openshift.client.cartridge.selector used by com.openshift.client.cartridge.selector | +|
|---|---|
| CartridgePropertyQuery
+
+ + |
+|
| LatestEmbeddableCartridge
+
+ + A selector that shall select the latest version of an embedded cartidge that's given by name. |
+|
| LatestStandaloneCartridge
+
+ + A selector that shall select the latest version of a standalone cartidge that's given by name. |
+|
| LatestVersionQuery
+
+ + A constraint that shall match available embeddable and standalone cartridges by name. |
+|
| LatestVersionQuery.VersionedName
+
+ + |
+|
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use ApplicationBuilder.CartridgeHolder | +|
|---|---|
| com.openshift.client | ++ |
| +Uses of ApplicationBuilder.CartridgeHolder in com.openshift.client | +
|---|
+ +
| Methods in com.openshift.client that return ApplicationBuilder.CartridgeHolder | +|
|---|---|
+ ApplicationBuilder.CartridgeHolder |
+ApplicationBuilder.setCartridge(IStandaloneCartridge cartridge)
+
++ |
+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use ApplicationBuilder.NamedCartridgeHolder | +|
|---|---|
| com.openshift.client | ++ |
| +Uses of ApplicationBuilder.NamedCartridgeHolder in com.openshift.client | +
|---|
+ +
| Methods in com.openshift.client that return ApplicationBuilder.NamedCartridgeHolder | +|
|---|---|
+ ApplicationBuilder.NamedCartridgeHolder |
+ApplicationBuilder.NamedCartridgeHolder.setApplicationScale(ApplicationScale applicationScale)
+
++ |
+
+ ApplicationBuilder.NamedCartridgeHolder |
+ApplicationBuilder.NamedCartridgeHolder.setGearProfile(IGearProfile gearProfile)
+
++ |
+
+ ApplicationBuilder.NamedCartridgeHolder |
+ApplicationBuilder.NamedCartridgeHolder.setInitialGitUrl(String initialGitUrl)
+
++ |
+
+ ApplicationBuilder.NamedCartridgeHolder |
+ApplicationBuilder.CartridgeHolder.setName(String name)
+
++ |
+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use ApplicationScale | +|
|---|---|
| com.openshift.client | ++ |
| com.openshift.internal.client | ++ |
| com.openshift.internal.client.response | ++ |
| +Uses of ApplicationScale in com.openshift.client | +
|---|
+ +
| Methods in com.openshift.client that return ApplicationScale | +|
|---|---|
+ ApplicationScale |
+IApplication.getApplicationScale()
+
++ Returns true if scaling is enabled on this application (only set at + creation time). |
+
+static ApplicationScale |
+ApplicationScale.safeValueOf(String value)
+
++ |
+
+static ApplicationScale |
+ApplicationScale.valueOf(String name)
+
++ Returns the enum constant of this type with the specified name. |
+
+static ApplicationScale[] |
+ApplicationScale.values()
+
++ Returns an array containing the constants of this enum type, in +the order they are declared. |
+
+ +
| Methods in com.openshift.client with parameters of type ApplicationScale | +|
|---|---|
+ IApplication |
+IDomain.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale)
+
++ |
+
+ IApplication |
+IDomain.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale,
+ IGearProfile gearProfile)
+
++ |
+
+ IApplication |
+IDomain.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale,
+ IGearProfile gearProfile,
+ String initialGitUrl)
+
++ Creates a new application with the given name and the given + cartridge/framework. |
+
+ IApplication |
+IDomain.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale,
+ IGearProfile gearProfile,
+ String initialGitUrl,
+ int timeout,
+ IEmbeddableCartridge... cartridges)
+
++ Creates a new application with the given name and the given + cartridge/framework. |
+
+ IApplication |
+IDomain.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale,
+ IGearProfile gearProfile,
+ String initialGitUrl,
+ int timeout,
+ Map<String,String> environmentVariable,
+ IEmbeddableCartridge... cartridges)
+
++ Creates a new application with the given name and the given + cartridge/framework. |
+
+ ApplicationBuilder.NamedCartridgeHolder |
+ApplicationBuilder.NamedCartridgeHolder.setApplicationScale(ApplicationScale applicationScale)
+
++ |
+
| +Uses of ApplicationScale in com.openshift.internal.client | +
|---|
+ +
| Methods in com.openshift.internal.client that return ApplicationScale | +|
|---|---|
+ ApplicationScale |
+ApplicationResource.getApplicationScale()
+
++ |
+
+ +
| Methods in com.openshift.internal.client with parameters of type ApplicationScale | +|
|---|---|
+ IApplication |
+DomainResource.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale)
+
++ |
+
+ IApplication |
+DomainResource.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale,
+ IGearProfile gearProfile)
+
++ |
+
+ IApplication |
+DomainResource.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale,
+ IGearProfile gearProfile,
+ String initialGitUrl)
+
++ |
+
+ IApplication |
+DomainResource.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale,
+ IGearProfile gearProfile,
+ String initialGitUrl,
+ int timeout,
+ IEmbeddableCartridge... cartridges)
+
++ |
+
+ IApplication |
+DomainResource.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale,
+ IGearProfile gearProfile,
+ String initialGitUrl,
+ int timeout,
+ Map<String,String> environmentVariables,
+ IEmbeddableCartridge... cartridges)
+
++ |
+
+ IApplication |
+DomainResource.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale,
+ String initialGitUrl)
+
++ |
+
+protected AbstractOpenShiftResource.Parameters |
+AbstractOpenShiftResource.Parameters.scale(ApplicationScale scale)
+
++ |
+
+ +
| Constructors in com.openshift.internal.client with parameters of type ApplicationScale | +|
|---|---|
ApplicationResource(String name,
+ String uuid,
+ String creationTime,
+ Messages messages,
+ String applicationUrl,
+ String sshUrl,
+ String gitUrl,
+ String initialGitUrl,
+ IGearProfile gearProfile,
+ ApplicationScale scale,
+ List<String> aliases,
+ Map<String,CartridgeResourceDTO> cartridgesByName,
+ Map<String,Link> links,
+ DomainResource domain)
+
++ Instantiates a new application. |
+|
| +Uses of ApplicationScale in com.openshift.internal.client.response | +
|---|
+ +
| Methods in com.openshift.internal.client.response that return ApplicationScale | +|
|---|---|
+ ApplicationScale |
+ApplicationResourceDTO.getApplicationScale()
+
++ |
+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use GearState | +|
|---|---|
| com.openshift.client | ++ |
| com.openshift.internal.client | ++ |
| +Uses of GearState in com.openshift.client | +
|---|
+ +
| Methods in com.openshift.client that return GearState | +|
|---|---|
+ GearState |
+IGear.getState()
+
++ Returns the state of this gear |
+
+static GearState |
+GearState.safeValueOf(String gearStateString)
+
++ |
+
+static GearState |
+GearState.valueOf(String name)
+
++ Returns the enum constant of this type with the specified name. |
+
+static GearState[] |
+GearState.values()
+
++ Returns an array containing the constants of this enum type, in +the order they are declared. |
+
| +Uses of GearState in com.openshift.internal.client | +
|---|
+ +
| Methods in com.openshift.internal.client that return GearState | +|
|---|---|
+ GearState |
+Gear.getState()
+
++ |
+
+ +
| Constructors in com.openshift.internal.client with parameters of type GearState | +|
|---|---|
Gear(String id,
+ GearState state,
+ String sshUrl)
+
++ |
+|
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use HttpMethod | +|
|---|---|
| com.openshift.client | ++ |
| com.openshift.internal.client.httpclient | ++ |
| com.openshift.internal.client.response | ++ |
| +Uses of HttpMethod in com.openshift.client | +
|---|
+ +
| Methods in com.openshift.client that return HttpMethod | +|
|---|---|
+static HttpMethod |
+HttpMethod.valueOf(String name)
+
++ Returns the enum constant of this type with the specified name. |
+
+static HttpMethod[] |
+HttpMethod.values()
+
++ Returns an array containing the constants of this enum type, in +the order they are declared. |
+
| +Uses of HttpMethod in com.openshift.internal.client.httpclient | +
|---|
+ +
| Methods in com.openshift.internal.client.httpclient with parameters of type HttpMethod | +|
|---|---|
+protected String |
+UrlConnectionHttpClient.request(HttpMethod httpMethod,
+ URL url,
+ IMediaType requestMediaType,
+ int timeout,
+ Parameter... parameters)
+
++ |
+
+protected String |
+UrlConnectionHttpClient.request(HttpMethod httpMethod,
+ URL url,
+ IMediaType requestMediaType,
+ int timeout,
+ ParameterValueMap parameters)
+
++ |
+
| +Uses of HttpMethod in com.openshift.internal.client.response | +
|---|
+ +
| Methods in com.openshift.internal.client.response that return HttpMethod | +|
|---|---|
+ HttpMethod |
+Link.getHttpMethod()
+
++ Gets the http method this link operates on. |
+
+ +
| Constructors in com.openshift.internal.client.response with parameters of type HttpMethod | +|
|---|---|
Link(String href,
+ HttpMethod httpMethod)
+
++ |
+|
Link(String rel,
+ String href,
+ HttpMethod httpMethod)
+
++ |
+|
Link(String rel,
+ String href,
+ HttpMethod httpMethod,
+ List<LinkParameter> requiredParams,
+ List<LinkParameter> optionalParams)
+
++ Instantiates a new Link object. |
+|
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use IApplication | +|
|---|---|
| com.openshift.client | ++ |
| com.openshift.client.cartridge | ++ |
| com.openshift.client.cartridge.selector | ++ |
| com.openshift.internal.client | ++ |
| com.openshift.internal.client.cartridge | ++ |
| com.openshift.internal.client.ssh | ++ |
| +Uses of IApplication in com.openshift.client | +
|---|
+ +
| Methods in com.openshift.client that return IApplication | +|
|---|---|
+ IApplication |
+ApplicationBuilder.NamedCartridgeHolder.build()
+
++ |
+
+ IApplication |
+IDomain.createApplication(String name,
+ IStandaloneCartridge cartridge)
+
++ |
+
+ IApplication |
+IDomain.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale)
+
++ |
+
+ IApplication |
+IDomain.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale,
+ IGearProfile gearProfile)
+
++ |
+
+ IApplication |
+IDomain.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale,
+ IGearProfile gearProfile,
+ String initialGitUrl)
+
++ Creates a new application with the given name and the given + cartridge/framework. |
+
+ IApplication |
+IDomain.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale,
+ IGearProfile gearProfile,
+ String initialGitUrl,
+ int timeout,
+ IEmbeddableCartridge... cartridges)
+
++ Creates a new application with the given name and the given + cartridge/framework. |
+
+ IApplication |
+IDomain.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale,
+ IGearProfile gearProfile,
+ String initialGitUrl,
+ int timeout,
+ Map<String,String> environmentVariable,
+ IEmbeddableCartridge... cartridges)
+
++ Creates a new application with the given name and the given + cartridge/framework. |
+
+ IApplication |
+IDomain.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ IGearProfile gearProfile)
+
++ |
+
+ IApplication |
+IDomain.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ String initialGitUrl)
+
++ |
+
+ IApplication |
+IEnvironmentVariable.getApplication()
+
++ Returns the application for this environment variable |
+
+ IApplication |
+IDomain.getApplicationByName(String name)
+
++ Returns the application identified by the given name. |
+
+ +
| Methods in com.openshift.client that return types with arguments of type IApplication | +|
|---|---|
+ List<IApplication> |
+IDomain.getApplications()
+
++ |
+
+ List<IApplication> |
+IDomain.getApplicationsByCartridge(IStandaloneCartridge cartridge)
+
++ |
+
| +Uses of IApplication in com.openshift.client.cartridge | +
|---|
+ +
| Methods in com.openshift.client.cartridge that return IApplication | +|
|---|---|
+ IApplication |
+IEmbeddedCartridge.getApplication()
+
++ Returns the application this cartridge is embedded into. |
+
| +Uses of IApplication in com.openshift.client.cartridge.selector | +
|---|
+ +
| Methods in com.openshift.client.cartridge.selector with parameters of type IApplication | +|
|---|---|
+ Collection<IStandaloneCartridge> |
+LatestVersionQuery.allStandaloneCartridges(IApplication application)
+
++ |
+
+ IStandaloneCartridge |
+LatestStandaloneCartridge.get(IApplication application)
+
++ |
+
+ IEmbeddableCartridge |
+LatestEmbeddableCartridge.get(IApplication application)
+
++ |
+
| +Uses of IApplication in com.openshift.internal.client | +
|---|
+ +
| Classes in com.openshift.internal.client that implement IApplication | +|
|---|---|
+ class |
+ApplicationResource
+
++ The ApplicationResource object is an implementation of com.openshift.client.IApplication, and provides + a runtime model for the real application that resides on the OpenShift platform being accessed. |
+
+ +
| Methods in com.openshift.internal.client that return IApplication | +|
|---|---|
+ IApplication |
+DomainResource.createApplication(String name,
+ IStandaloneCartridge cartridge)
+
++ |
+
+ IApplication |
+DomainResource.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale)
+
++ |
+
+ IApplication |
+DomainResource.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale,
+ IGearProfile gearProfile)
+
++ |
+
+ IApplication |
+DomainResource.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale,
+ IGearProfile gearProfile,
+ String initialGitUrl)
+
++ |
+
+ IApplication |
+DomainResource.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale,
+ IGearProfile gearProfile,
+ String initialGitUrl,
+ int timeout,
+ IEmbeddableCartridge... cartridges)
+
++ |
+
+ IApplication |
+DomainResource.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale,
+ IGearProfile gearProfile,
+ String initialGitUrl,
+ int timeout,
+ Map<String,String> environmentVariables,
+ IEmbeddableCartridge... cartridges)
+
++ |
+
+ IApplication |
+DomainResource.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale,
+ String initialGitUrl)
+
++ |
+
+ IApplication |
+DomainResource.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ IGearProfile gearProfile)
+
++ |
+
+ IApplication |
+DomainResource.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ IGearProfile gearProfile,
+ String initialGitUrl)
+
++ |
+
+ IApplication |
+DomainResource.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ String initialGitUrl)
+
++ |
+
+ IApplication |
+EnvironmentVariableResource.getApplication()
+
++ |
+
+ IApplication |
+EmbeddedCartridgeResource.getApplication()
+
++ |
+
+ IApplication |
+DomainResource.getApplicationByName(String name)
+
++ |
+
+ +
| Methods in com.openshift.internal.client that return types with arguments of type IApplication | +|
|---|---|
+ List<IApplication> |
+DomainResource.getApplications()
+
++ |
+
+ List<IApplication> |
+DomainResource.getApplicationsByCartridge(IStandaloneCartridge cartridge)
+
++ |
+
+protected List<IApplication> |
+DomainResource.getOrLoadApplications()
+
++ |
+
+ +
| Methods in com.openshift.internal.client with parameters of type IApplication | +|
|---|---|
+protected void |
+DomainResource.removeApplication(IApplication application)
+
++ |
+
| +Uses of IApplication in com.openshift.internal.client.cartridge | +
|---|
+ +
| Methods in com.openshift.internal.client.cartridge with parameters of type IApplication | +|
|---|---|
+protected IOpenShiftConnection |
+AbstractCartridgeQuery.getConnection(IApplication application)
+
++ |
+
| +Uses of IApplication in com.openshift.internal.client.ssh | +
|---|
+ +
| Methods in com.openshift.internal.client.ssh that return IApplication | +|
|---|---|
+protected IApplication |
+ApplicationPortForwarding.getApplication()
+
++ |
+
+ +
| Constructors in com.openshift.internal.client.ssh with parameters of type IApplication | +|
|---|---|
ApplicationPortForwarding(IApplication application,
+ String name,
+ String remoteAddress,
+ int remotePort)
+
++ |
+|
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use IApplicationPortForwarding | +|
|---|---|
| com.openshift.client | ++ |
| com.openshift.internal.client | ++ |
| com.openshift.internal.client.ssh | ++ |
| +Uses of IApplicationPortForwarding in com.openshift.client | +
|---|
+ +
| Methods in com.openshift.client that return types with arguments of type IApplicationPortForwarding | +|
|---|---|
+ List<IApplicationPortForwarding> |
+IApplication.getForwardablePorts()
+
++ Returns the list of forwardable ports on OpenShift for this application. |
+
+ List<IApplicationPortForwarding> |
+IApplication.refreshForwardablePorts()
+
++ Refreshes the list of port-forwarding. |
+
+ List<IApplicationPortForwarding> |
+IApplication.startPortForwarding()
+
++ |
+
+ List<IApplicationPortForwarding> |
+IApplication.stopPortForwarding()
+
++ Stop the port-forwarding for all ports. |
+
| +Uses of IApplicationPortForwarding in com.openshift.internal.client | +
|---|
+ +
| Methods in com.openshift.internal.client that return types with arguments of type IApplicationPortForwarding | +|
|---|---|
+ List<IApplicationPortForwarding> |
+ApplicationResource.getForwardablePorts()
+
++ |
+
+ List<IApplicationPortForwarding> |
+ApplicationResource.refreshForwardablePorts()
+
++ |
+
+ List<IApplicationPortForwarding> |
+ApplicationResource.startPortForwarding()
+
++ |
+
+ List<IApplicationPortForwarding> |
+ApplicationResource.stopPortForwarding()
+
++ |
+
| +Uses of IApplicationPortForwarding in com.openshift.internal.client.ssh | +
|---|
+ +
| Classes in com.openshift.internal.client.ssh that implement IApplicationPortForwarding | +|
|---|---|
+ class |
+ApplicationPortForwarding
+
++ |
+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use IDomain | +|
|---|---|
| com.openshift.client | ++ |
| com.openshift.internal.client | ++ |
| com.openshift.internal.client.cartridge | ++ |
| +Uses of IDomain in com.openshift.client | +
|---|
+ +
| Methods in com.openshift.client that return IDomain | +|
|---|---|
+ IDomain |
+IUser.createDomain(String id)
+
++ |
+
+ IDomain |
+IUser.getDefaultDomain()
+
++ |
+
+ IDomain |
+IApplication.getDomain()
+
++ Get the domain of the application. |
+
+ IDomain |
+IUser.getDomain(String id)
+
++ |
+
+ +
| Methods in com.openshift.client that return types with arguments of type IDomain | +|
|---|---|
+ List<IDomain> |
+IUser.getDomains()
+
++ |
+
+ List<IDomain> |
+IOpenShiftConnection.getDomains()
+
++ Returns the domains associated with the current OpenShift connection. |
+
+ +
| Constructors in com.openshift.client with parameters of type IDomain | +|
|---|---|
ApplicationBuilder(IDomain domain)
+
++ |
+|
| +Uses of IDomain in com.openshift.internal.client | +
|---|
+ +
| Classes in com.openshift.internal.client that implement IDomain | +|
|---|---|
+ class |
+DomainResource
+
++ |
+
+ +
| Methods in com.openshift.internal.client that return IDomain | +|
|---|---|
+ IDomain |
+UserResource.createDomain(String id)
+
++ |
+
+ IDomain |
+APIResource.createDomain(String id)
+
++ |
+
+ IDomain |
+UserResource.getDefaultDomain()
+
++ |
+
+ IDomain |
+APIResource.getDefaultDomain()
+
++ |
+
+ IDomain |
+ApplicationResource.getDomain()
+
++ |
+
+ IDomain |
+UserResource.getDomain(String id)
+
++ |
+
+ IDomain |
+APIResource.getDomain(String id)
+
++ |
+
+ +
| Methods in com.openshift.internal.client that return types with arguments of type IDomain | +|
|---|---|
+ List<IDomain> |
+UserResource.getDomains()
+
++ |
+
+ List<IDomain> |
+APIResource.getDomains()
+
++ |
+
+ +
| Methods in com.openshift.internal.client with parameters of type IDomain | +|
|---|---|
+protected void |
+APIResource.removeDomain(IDomain domain)
+
++ Called after a domain has been destroyed |
+
| +Uses of IDomain in com.openshift.internal.client.cartridge | +
|---|
+ +
| Methods in com.openshift.internal.client.cartridge with parameters of type IDomain | +|
|---|---|
+protected IOpenShiftConnection |
+AbstractCartridgeQuery.getConnection(IDomain domain)
+
++ |
+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use IEnvironmentVariable | +|
|---|---|
| com.openshift.client | ++ |
| com.openshift.internal.client | ++ |
| +Uses of IEnvironmentVariable in com.openshift.client | +
|---|
+ +
| Methods in com.openshift.client that return IEnvironmentVariable | +|
|---|---|
+ IEnvironmentVariable |
+IApplication.addEnvironmentVariable(String name,
+ String value)
+
++ Adds an environment variable to this application. |
+
+ IEnvironmentVariable |
+IApplication.getEnvironmentVariable(String name)
+
++ Return the environment variable for the specified name |
+
+ +
| Methods in com.openshift.client that return types with arguments of type IEnvironmentVariable | +|
|---|---|
+ Map<String,IEnvironmentVariable> |
+IApplication.addEnvironmentVariables(Map<String,String> environmentVariables)
+
++ Adds a map of environment variables to the application |
+
+ Map<String,IEnvironmentVariable> |
+IApplication.getEnvironmentVariables()
+
++ Retrieves the map of environment variables |
+
+ +
| Methods in com.openshift.client with parameters of type IEnvironmentVariable | +|
|---|---|
+ void |
+IApplication.removeEnvironmentVariable(IEnvironmentVariable environmentVariable)
+
++ Removes the environment variables with the given name from this application. |
+
| +Uses of IEnvironmentVariable in com.openshift.internal.client | +
|---|
+ +
| Classes in com.openshift.internal.client that implement IEnvironmentVariable | +|
|---|---|
+ class |
+EnvironmentVariableResource
+
++ |
+
+ +
| Methods in com.openshift.internal.client that return IEnvironmentVariable | +|
|---|---|
+ IEnvironmentVariable |
+ApplicationResource.addEnvironmentVariable(String name,
+ String value)
+
++ |
+
+ IEnvironmentVariable |
+ApplicationResource.getEnvironmentVariable(String name)
+
++ |
+
+ +
| Methods in com.openshift.internal.client that return types with arguments of type IEnvironmentVariable | +|
|---|---|
+ Map<String,IEnvironmentVariable> |
+ApplicationResource.addEnvironmentVariables(Map<String,String> environmentVariables)
+
++ |
+
+ Map<String,IEnvironmentVariable> |
+ApplicationResource.getEnvironmentVariables()
+
++ |
+
+protected Map<String,IEnvironmentVariable> |
+ApplicationResource.getOrLoadEnvironmentVariables()
+
++ |
+
+ +
| Methods in com.openshift.internal.client with parameters of type IEnvironmentVariable | +|
|---|---|
+ void |
+ApplicationResource.removeEnvironmentVariable(IEnvironmentVariable environmentVariable)
+
++ |
+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use IField | +|
|---|---|
| com.openshift.client | ++ |
| com.openshift.internal.client | ++ |
| +Uses of IField in com.openshift.client | +
|---|
+ +
| Fields in com.openshift.client declared as IField | +|
|---|---|
+static IField |
+IField.APPINFO
+
++ |
+
+static IField |
+IField.DEFAULT
+
++ |
+
+static IField |
+IField.RESULT
+
++ |
+
+ +
| Methods in com.openshift.client that return IField | +|
|---|---|
+ IField |
+Message.getField()
+
++ |
+
+ +
| Methods in com.openshift.client with parameters of type IField | +|
|---|---|
+ List<Message> |
+Messages.getBy(IField field)
+
++ Returns all the message of the given field type. |
+
+ List<Message> |
+Messages.getBy(IField field,
+ ISeverity severity)
+
++ Returns the messages of the given field type and severity. |
+
+ Message |
+Messages.getFirstBy(IField field)
+
++ Returns the first message of the given field type. |
+
+ Message |
+Messages.getFirstBy(IField field,
+ ISeverity severity)
+
++ Returns the first message of the given field type and severity. |
+
+ List<Message> |
+OpenShiftEndpointException.getRestResponseMessage(IField field)
+
++ Returns the message for the given field. |
+
+ +
| Constructor parameters in com.openshift.client with type arguments of type IField | +|
|---|---|
Messages(Map<IField,List<Message>> messages)
+
++ Instantiates a new abstract open shift resource. |
+|
| +Uses of IField in com.openshift.internal.client | +
|---|
+ +
| Classes in com.openshift.internal.client that implement IField | +|
|---|---|
+ class |
+Field
+
++ |
+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use IGear | +|
|---|---|
| com.openshift.client | ++ |
| com.openshift.internal.client | ++ |
| +Uses of IGear in com.openshift.client | +
|---|
+ +
| Methods in com.openshift.client that return types with arguments of type IGear | +|
|---|---|
+ Collection<IGear> |
+IGearGroup.getGears()
+
++ Returns the gears in this gear group resource |
+
| +Uses of IGear in com.openshift.internal.client | +
|---|
+ +
| Classes in com.openshift.internal.client that implement IGear | +|
|---|---|
+ class |
+Gear
+
++ A gear that a cartridge is running on. |
+
+ +
| Methods in com.openshift.internal.client that return types with arguments of type IGear | +|
|---|---|
+ Collection<IGear> |
+GearGroupResource.getGears()
+
++ |
+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use IGearGroup | +|
|---|---|
| com.openshift.client | ++ |
| com.openshift.internal.client | ++ |
| +Uses of IGearGroup in com.openshift.client | +
|---|
+ +
| Methods in com.openshift.client that return types with arguments of type IGearGroup | +|
|---|---|
+ Collection<IGearGroup> |
+IApplication.getGearGroups()
+
++ Returns the gear groups for this application. |
+
| +Uses of IGearGroup in com.openshift.internal.client | +
|---|
+ +
| Classes in com.openshift.internal.client that implement IGearGroup | +|
|---|---|
+ class |
+GearGroupResource
+
++ |
+
+ +
| Methods in com.openshift.internal.client that return types with arguments of type IGearGroup | +|
|---|---|
+ Collection<IGearGroup> |
+ApplicationResource.getGearGroups()
+
++ |
+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use IGearProfile | +|
|---|---|
| com.openshift.client | ++ |
| com.openshift.internal.client | ++ |
| com.openshift.internal.client.response | ++ |
| +Uses of IGearProfile in com.openshift.client | +
|---|
+ +
| Fields in com.openshift.client declared as IGearProfile | +|
|---|---|
+static IGearProfile |
+IGearProfile.EXLARGE
+
++ |
+
+static IGearProfile |
+IGearProfile.JUMBO
+
++ |
+
+static IGearProfile |
+IGearProfile.LARGE
+
++ |
+
+static IGearProfile |
+IGearProfile.MEDIUM
+
++ |
+
+static IGearProfile |
+IGearProfile.MICRO
+
++ |
+
+static IGearProfile |
+IGearProfile.SMALL
+
++ |
+
+ +
| Methods in com.openshift.client that return IGearProfile | +|
|---|---|
+ IGearProfile |
+IApplication.getGearProfile()
+
++ Returns true if scaling is enabled on this application (only set at + creation time). |
+
+ +
| Methods in com.openshift.client that return types with arguments of type IGearProfile | +|
|---|---|
+ List<IGearProfile> |
+IDomain.getAvailableGearProfiles()
+
++ Returns the list of available gear size that the user can choose when creating a new application (application's gear size can't be changed after creation). |
+
+ +
| Methods in com.openshift.client with parameters of type IGearProfile | +|
|---|---|
+ IApplication |
+IDomain.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale,
+ IGearProfile gearProfile)
+
++ |
+
+ IApplication |
+IDomain.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale,
+ IGearProfile gearProfile,
+ String initialGitUrl)
+
++ Creates a new application with the given name and the given + cartridge/framework. |
+
+ IApplication |
+IDomain.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale,
+ IGearProfile gearProfile,
+ String initialGitUrl,
+ int timeout,
+ IEmbeddableCartridge... cartridges)
+
++ Creates a new application with the given name and the given + cartridge/framework. |
+
+ IApplication |
+IDomain.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale,
+ IGearProfile gearProfile,
+ String initialGitUrl,
+ int timeout,
+ Map<String,String> environmentVariable,
+ IEmbeddableCartridge... cartridges)
+
++ Creates a new application with the given name and the given + cartridge/framework. |
+
+ IApplication |
+IDomain.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ IGearProfile gearProfile)
+
++ |
+
+ ApplicationBuilder.NamedCartridgeHolder |
+ApplicationBuilder.NamedCartridgeHolder.setGearProfile(IGearProfile gearProfile)
+
++ |
+
| +Uses of IGearProfile in com.openshift.internal.client | +
|---|
+ +
| Classes in com.openshift.internal.client that implement IGearProfile | +|
|---|---|
+ class |
+GearProfile
+
++ |
+
+ +
| Methods in com.openshift.internal.client that return IGearProfile | +|
|---|---|
+ IGearProfile |
+ApplicationResource.getGearProfile()
+
++ |
+
+ +
| Methods in com.openshift.internal.client that return types with arguments of type IGearProfile | +|
|---|---|
+ List<IGearProfile> |
+DomainResource.getAvailableGearProfiles()
+
++ |
+
+ +
| Methods in com.openshift.internal.client with parameters of type IGearProfile | +|
|---|---|
+ IApplication |
+DomainResource.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale,
+ IGearProfile gearProfile)
+
++ |
+
+ IApplication |
+DomainResource.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale,
+ IGearProfile gearProfile,
+ String initialGitUrl)
+
++ |
+
+ IApplication |
+DomainResource.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale,
+ IGearProfile gearProfile,
+ String initialGitUrl,
+ int timeout,
+ IEmbeddableCartridge... cartridges)
+
++ |
+
+ IApplication |
+DomainResource.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale,
+ IGearProfile gearProfile,
+ String initialGitUrl,
+ int timeout,
+ Map<String,String> environmentVariables,
+ IEmbeddableCartridge... cartridges)
+
++ |
+
+ IApplication |
+DomainResource.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ IGearProfile gearProfile)
+
++ |
+
+ IApplication |
+DomainResource.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ IGearProfile gearProfile,
+ String initialGitUrl)
+
++ |
+
+protected AbstractOpenShiftResource.Parameters |
+AbstractOpenShiftResource.Parameters.gearProfile(IGearProfile gearProfile)
+
++ |
+
+ +
| Constructors in com.openshift.internal.client with parameters of type IGearProfile | +|
|---|---|
ApplicationResource(String name,
+ String uuid,
+ String creationTime,
+ Messages messages,
+ String applicationUrl,
+ String sshUrl,
+ String gitUrl,
+ String initialGitUrl,
+ IGearProfile gearProfile,
+ ApplicationScale scale,
+ List<String> aliases,
+ Map<String,CartridgeResourceDTO> cartridgesByName,
+ Map<String,Link> links,
+ DomainResource domain)
+
++ Instantiates a new application. |
+|
| +Uses of IGearProfile in com.openshift.internal.client.response | +
|---|
+ +
| Methods in com.openshift.internal.client.response that return IGearProfile | +|
|---|---|
+ IGearProfile |
+ApplicationResourceDTO.getGearProfile()
+
++ |
+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use IHttpClient | +|
|---|---|
| com.openshift.client | ++ |
| com.openshift.internal.client | ++ |
| com.openshift.internal.client.httpclient | ++ |
| +Uses of IHttpClient in com.openshift.client | +
|---|
+ +
| Methods in com.openshift.client with parameters of type IHttpClient | +|
|---|---|
+protected IOpenShiftConnection |
+OpenShiftConnectionFactory.getConnection(String clientId,
+ String username,
+ String password,
+ String serverUrl,
+ IHttpClient httpClient)
+
++ |
+
| +Uses of IHttpClient in com.openshift.internal.client | +
|---|
+ +
| Constructors in com.openshift.internal.client with parameters of type IHttpClient | +|
|---|---|
RestService(String server,
+ String clientId,
+ IMediaType defaultRequestMediaType,
+ String acceptedMediaType,
+ IRestResponseFactory factory,
+ IHttpClient client)
+
++ |
+|
RestService(String server,
+ String clientId,
+ IMediaType defaultRequestMediaType,
+ String acceptedMediaType,
+ IRestResponseFactory factory,
+ IHttpClient client,
+ RestServiceProperties properties)
+
++ |
+|
RestService(String server,
+ String clientId,
+ String protocolVersion,
+ IMediaType defaultRequestMediaType,
+ String acceptedMediaType,
+ IRestResponseFactory factory,
+ IHttpClient client,
+ RestServiceProperties properties)
+
++ |
+|
| +Uses of IHttpClient in com.openshift.internal.client.httpclient | +
|---|
+ +
| Classes in com.openshift.internal.client.httpclient that implement IHttpClient | +|
|---|---|
+ class |
+UrlConnectionHttpClient
+
++ |
+
+ +
| Methods in com.openshift.internal.client.httpclient that return IHttpClient | +|
|---|---|
+ IHttpClient |
+UrlConnectionHttpClientBuilder.client()
+
++ |
+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use IOpenShiftConnection | +|
|---|---|
| com.openshift.client | ++ |
| com.openshift.internal.client | ++ |
| com.openshift.internal.client.cartridge | ++ |
| +Uses of IOpenShiftConnection in com.openshift.client | +
|---|
+ +
| Methods in com.openshift.client that return IOpenShiftConnection | +|
|---|---|
+ IOpenShiftConnection |
+IUser.getConnection()
+
++ |
+
+ IOpenShiftConnection |
+OpenShiftConnectionFactory.getConnection(String clientId,
+ String password)
+
++ Establish a connection with the clientId along with user's password. |
+
+ IOpenShiftConnection |
+OpenShiftConnectionFactory.getConnection(String clientId,
+ String username,
+ String password)
+
++ Establish a connection with the clientId along with user's login and + password. |
+
+ IOpenShiftConnection |
+OpenShiftConnectionFactory.getConnection(String clientId,
+ String username,
+ String password,
+ String serverUrl)
+
++ Establish a connection with the clientId along with user's login and + password. |
+
+protected IOpenShiftConnection |
+OpenShiftConnectionFactory.getConnection(String clientId,
+ String username,
+ String password,
+ String serverUrl,
+ IHttpClient httpClient)
+
++ |
+
+ IOpenShiftConnection |
+OpenShiftConnectionFactory.getConnection(String clientId,
+ String username,
+ String password,
+ String authKey,
+ String authIV,
+ String serverUrl)
+
++ Establish a connection with the clientId along with user's login and + password. |
+
| +Uses of IOpenShiftConnection in com.openshift.internal.client | +
|---|
+ +
| Classes in com.openshift.internal.client that implement IOpenShiftConnection | +|
|---|---|
+ class |
+APIResource
+
++ |
+
+ +
| Methods in com.openshift.internal.client that return IOpenShiftConnection | +|
|---|---|
+ IOpenShiftConnection |
+UserResource.getConnection()
+
++ |
+
+protected IOpenShiftConnection |
+ApplicationResource.getConnection()
+
++ |
+
+protected IOpenShiftConnection |
+AbstractOpenShiftConnectionFactory.getConnection(IRestService service,
+ String login,
+ String password)
+
++ |
+
| +Uses of IOpenShiftConnection in com.openshift.internal.client.cartridge | +
|---|
+ +
| Methods in com.openshift.internal.client.cartridge that return IOpenShiftConnection | +|
|---|---|
+protected IOpenShiftConnection |
+AbstractCartridgeQuery.getConnection(IApplication application)
+
++ |
+
+protected IOpenShiftConnection |
+AbstractCartridgeQuery.getConnection(IDomain domain)
+
++ |
+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use IOpenShiftResource | +|
|---|---|
| com.openshift.client | ++ |
| com.openshift.client.cartridge | ++ |
| com.openshift.internal.client | ++ |
| +Uses of IOpenShiftResource in com.openshift.client | +
|---|
+ +
| Subinterfaces of IOpenShiftResource in com.openshift.client | +|
|---|---|
+ interface |
+IApplication
+
++ |
+
+ interface |
+IDomain
+
++ |
+
+ interface |
+IEnvironmentVariable
+
++ |
+
+ interface |
+IUser
+
++ |
+
| +Uses of IOpenShiftResource in com.openshift.client.cartridge | +
|---|
+ +
| Subinterfaces of IOpenShiftResource in com.openshift.client.cartridge | +|
|---|---|
+ interface |
+IEmbeddedCartridge
+
++ Interface to designate a cartridge that has been added and configured |
+
| +Uses of IOpenShiftResource in com.openshift.internal.client | +
|---|
+ +
| Classes in com.openshift.internal.client that implement IOpenShiftResource | +|
|---|---|
+ class |
+AbstractOpenShiftResource
+
++ The Class AbstractOpenShiftResource. |
+
+ class |
+APIResource
+
++ |
+
+ class |
+ApplicationResource
+
++ The ApplicationResource object is an implementation of com.openshift.client.IApplication, and provides + a runtime model for the real application that resides on the OpenShift platform being accessed. |
+
+ class |
+DomainResource
+
++ |
+
+ class |
+EmbeddedCartridgeResource
+
++ A cartridge that is embedded into an application. |
+
+ class |
+EnvironmentVariableResource
+
++ |
+
+ class |
+GearGroupResource
+
++ |
+
+ class |
+SSHKeyResource
+
++ |
+
+ class |
+UserResource
+
++ |
+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use IOpenShiftSSHKey | +|
|---|---|
| com.openshift.client | ++ |
| com.openshift.internal.client | ++ |
| +Uses of IOpenShiftSSHKey in com.openshift.client | +
|---|
+ +
| Methods in com.openshift.client that return IOpenShiftSSHKey | +|
|---|---|
+ IOpenShiftSSHKey |
+IUser.getSSHKeyByName(String name)
+
++ |
+
+ IOpenShiftSSHKey |
+IUser.getSSHKeyByPublicKey(String publicKey)
+
++ |
+
+ IOpenShiftSSHKey |
+IUser.putSSHKey(String name,
+ ISSHPublicKey key)
+
++ |
+
+ +
| Methods in com.openshift.client that return types with arguments of type IOpenShiftSSHKey | +|
|---|---|
+ List<IOpenShiftSSHKey> |
+IUser.getSSHKeys()
+
++ |
+
| +Uses of IOpenShiftSSHKey in com.openshift.internal.client | +
|---|
+ +
| Classes in com.openshift.internal.client that implement IOpenShiftSSHKey | +|
|---|---|
+ class |
+SSHKeyResource
+
++ |
+
+ +
| Methods in com.openshift.internal.client that return IOpenShiftSSHKey | +|
|---|---|
+ IOpenShiftSSHKey |
+UserResource.getSSHKeyByName(String name)
+
++ |
+
+ IOpenShiftSSHKey |
+UserResource.getSSHKeyByPublicKey(String publicKey)
+
++ |
+
+ IOpenShiftSSHKey |
+UserResource.putSSHKey(String name,
+ ISSHPublicKey key)
+
++ Adds the given ssh key with the given name. |
+
+ +
| Methods in com.openshift.internal.client that return types with arguments of type IOpenShiftSSHKey | +|
|---|---|
+ List<IOpenShiftSSHKey> |
+UserResource.getSSHKeys()
+
++ |
+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use ISSHPublicKey | +|
|---|---|
| com.openshift.client | ++ |
| com.openshift.internal.client | ++ |
| com.openshift.internal.client.ssh | ++ |
| +Uses of ISSHPublicKey in com.openshift.client | +
|---|
+ +
| Subinterfaces of ISSHPublicKey in com.openshift.client | +|
|---|---|
+ interface |
+IOpenShiftSSHKey
+
++ |
+
+ +
| Classes in com.openshift.client that implement ISSHPublicKey | +|
|---|---|
+ class |
+SSHKeyPair
+
++ |
+
+ class |
+SSHPublicKey
+
++ |
+
+ +
| Methods in com.openshift.client with parameters of type ISSHPublicKey | +|
|---|---|
+ IOpenShiftSSHKey |
+IUser.putSSHKey(String name,
+ ISSHPublicKey key)
+
++ |
+
| +Uses of ISSHPublicKey in com.openshift.internal.client | +
|---|
+ +
| Classes in com.openshift.internal.client that implement ISSHPublicKey | +|
|---|---|
+ class |
+SSHKeyResource
+
++ |
+
+ +
| Methods in com.openshift.internal.client with parameters of type ISSHPublicKey | +|
|---|---|
+ IOpenShiftSSHKey |
+UserResource.putSSHKey(String name,
+ ISSHPublicKey key)
+
++ Adds the given ssh key with the given name. |
+
| +Uses of ISSHPublicKey in com.openshift.internal.client.ssh | +
|---|
+ +
| Classes in com.openshift.internal.client.ssh that implement ISSHPublicKey | +|
|---|---|
+ class |
+AbstractSSHKey
+
++ |
+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use ISeverity | +|
|---|---|
| com.openshift.client | ++ |
| com.openshift.internal.client | ++ |
| +Uses of ISeverity in com.openshift.client | +
|---|
+ +
| Fields in com.openshift.client declared as ISeverity | +|
|---|---|
+static ISeverity |
+ISeverity.DEBUG
+
++ |
+
+static ISeverity |
+ISeverity.ERROR
+
++ |
+
+static ISeverity |
+ISeverity.INFO
+
++ |
+
+static ISeverity |
+ISeverity.RESULT
+
++ |
+
+ +
| Methods in com.openshift.client that return ISeverity | +|
|---|---|
+ ISeverity |
+Message.getSeverity()
+
++ |
+
+ +
| Methods in com.openshift.client with parameters of type ISeverity | +|
|---|---|
+ List<Message> |
+Messages.getBy(IField field,
+ ISeverity severity)
+
++ Returns the messages of the given field type and severity. |
+
+ Message |
+Messages.getFirstBy(IField field,
+ ISeverity severity)
+
++ Returns the first message of the given field type and severity. |
+
| +Uses of ISeverity in com.openshift.internal.client | +
|---|
+ +
| Classes in com.openshift.internal.client that implement ISeverity | +|
|---|---|
+ class |
+Severity
+
++ |
+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use IUser | +|
|---|---|
| com.openshift.client | ++ |
| com.openshift.client.cartridge.selector | ++ |
| com.openshift.internal.client | ++ |
| +Uses of IUser in com.openshift.client | +
|---|
+ +
| Methods in com.openshift.client that return IUser | +|
|---|---|
+ IUser |
+IOpenShiftConnection.getUser()
+
++ Returns the user associated with the current OpenShift connection. |
+
+ IUser |
+IDomain.getUser()
+
++ Returns the currently connected user that manages this domain. |
+
| +Uses of IUser in com.openshift.client.cartridge.selector | +
|---|
+ +
| Methods in com.openshift.client.cartridge.selector with parameters of type IUser | +|
|---|---|
+ IStandaloneCartridge |
+LatestStandaloneCartridge.get(IUser user)
+
++ |
+
+ IEmbeddableCartridge |
+LatestEmbeddableCartridge.get(IUser user)
+
++ |
+
| +Uses of IUser in com.openshift.internal.client | +
|---|
+ +
| Classes in com.openshift.internal.client that implement IUser | +|
|---|---|
+ class |
+UserResource
+
++ |
+
+ +
| Methods in com.openshift.internal.client that return IUser | +|
|---|---|
+ IUser |
+DomainResource.getUser()
+
++ |
+
+ IUser |
+APIResource.getUser()
+
++ |
+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use Message | +|
|---|---|
| com.openshift.client | ++ |
| +Uses of Message in com.openshift.client | +
|---|
+ +
| Methods in com.openshift.client that return Message | +|
|---|---|
+ Message |
+Messages.getFirstBy(IField field)
+
++ Returns the first message of the given field type. |
+
+ Message |
+Messages.getFirstBy(IField field,
+ ISeverity severity)
+
++ Returns the first message of the given field type and severity. |
+
+ +
| Methods in com.openshift.client that return types with arguments of type Message | +|
|---|---|
+ List<Message> |
+Messages.getAll()
+
++ |
+
+ List<Message> |
+Messages.getBy(IField field)
+
++ Returns all the message of the given field type. |
+
+ List<Message> |
+Messages.getBy(IField field,
+ ISeverity severity)
+
++ Returns the messages of the given field type and severity. |
+
+ List<Message> |
+OpenShiftEndpointException.getRestResponseMessage(IField field)
+
++ Returns the message for the given field. |
+
+ +
| Constructor parameters in com.openshift.client with type arguments of type Message | +|
|---|---|
Messages(Map<IField,List<Message>> messages)
+
++ Instantiates a new abstract open shift resource. |
+|
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use Messages | +|
|---|---|
| com.openshift.client | ++ |
| com.openshift.internal.client | ++ |
| com.openshift.internal.client.response | ++ |
| +Uses of Messages in com.openshift.client | +
|---|
+ +
| Methods in com.openshift.client that return Messages | +|
|---|---|
+ Messages |
+IOpenShiftResource.getMessages()
+
++ Returns all the (creation log) messages. |
+
+ Messages |
+OpenShiftEndpointException.getRestResponseMessages()
+
++ |
+
| +Uses of Messages in com.openshift.internal.client | +
|---|
+ +
| Methods in com.openshift.internal.client that return Messages | +|
|---|---|
+ Messages |
+AbstractOpenShiftResource.getMessages()
+
++ |
+
+ +
| Constructors in com.openshift.internal.client with parameters of type Messages | +|
|---|---|
AbstractOpenShiftResource(IRestService service,
+ Map<String,Link> links,
+ Messages messages)
+
++ Instantiates a new abstract open shift resource. |
+|
ApplicationResource(String name,
+ String uuid,
+ String creationTime,
+ Messages messages,
+ String applicationUrl,
+ String sshUrl,
+ String gitUrl,
+ String initialGitUrl,
+ IGearProfile gearProfile,
+ ApplicationScale scale,
+ List<String> aliases,
+ Map<String,CartridgeResourceDTO> cartridgesByName,
+ Map<String,Link> links,
+ DomainResource domain)
+
++ Instantiates a new application. |
+|
DomainResource(String namespace,
+ String suffix,
+ Map<String,Link> links,
+ Messages messages,
+ APIResource api)
+
++ |
+|
EnvironmentVariableResource(String name,
+ String value,
+ Messages messages,
+ Map<String,Link> links,
+ ApplicationResource application)
+
++ |
+|
| +Uses of Messages in com.openshift.internal.client.response | +
|---|
+ +
| Methods in com.openshift.internal.client.response that return Messages | +|
|---|---|
+ Messages |
+RestResponse.getMessages()
+
++ Gets the messages. |
+
+ Messages |
+BaseResourceDTO.getMessages()
+
++ Returns the messages that were reported when this resource was created. |
+
+ +
| Constructors in com.openshift.internal.client.response with parameters of type Messages | +|
|---|---|
BaseResourceDTO(Map<String,Link> links,
+ Messages messages)
+
++ Instantiates a new base resource dto. |
+|
CartridgeResourceDTO(String name,
+ String displayName,
+ String description,
+ String type,
+ URL url,
+ CartridgeResourceProperties properties,
+ Map<String,Link> links,
+ Messages messages)
+
++ |
+|
EnvironmentVariableResourceDTO(String name,
+ String value,
+ Map<String,Link> links,
+ Messages messages)
+
++ Instantiates a new environment variable resource dto. |
+|
RestResponse(String status,
+ Messages messages,
+ Object data,
+ EnumDataType dataType)
+
++ Instantiates a new response. |
+|
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use OpenShiftEndpointException | +|
|---|---|
| com.openshift.client | ++ |
| +Uses of OpenShiftEndpointException in com.openshift.client | +
|---|
+ +
| Subclasses of OpenShiftEndpointException in com.openshift.client | +|
|---|---|
+ class |
+InvalidCredentialsOpenShiftException
+
++ |
+
+ class |
+NotFoundOpenShiftException
+
++ |
+
+ class |
+OpenShiftTimeoutException
+
++ |
+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use OpenShiftException | +|
|---|---|
| com.openshift.client | ++ |
| com.openshift.client.cartridge | ++ |
| com.openshift.client.configuration | ++ |
| com.openshift.internal.client | ++ |
| com.openshift.internal.client.response | ++ |
| +Uses of OpenShiftException in com.openshift.client | +
|---|
+ +
| Subclasses of OpenShiftException in com.openshift.client | +|
|---|---|
+ class |
+InvalidCredentialsOpenShiftException
+
++ |
+
+ class |
+InvalidNameOpenShiftException
+
++ |
+
+ class |
+NotFoundOpenShiftException
+
++ |
+
+ class |
+OpenShiftApplicationNotAvailableException
+
++ |
+
+ class |
+OpenShiftEndpointException
+
++ |
+
+ class |
+OpenShiftRequestException
+
++ |
+
+ class |
+OpenShiftSSHKeyException
+
++ |
+
+ class |
+OpenShiftSSHOperationException
+
++ OpenShift Exception that encapsulates an underlying exception that occurred during an SSH operation. |
+
+ class |
+OpenShiftTimeoutException
+
++ |
+
+ class |
+OpenShiftUnknonwSSHKeyTypeException
+
++ |
+
+ +
| Methods in com.openshift.client that throw OpenShiftException | +|
|---|---|
+ void |
+IApplication.addAlias(String string)
+
++ Add application alias |
+
+ IEmbeddedCartridge |
+IApplication.addEmbeddableCartridge(IEmbeddableCartridge cartridge)
+
++ Adds the given embeddable cartridge to this application. |
+
+ List<IEmbeddedCartridge> |
+IApplication.addEmbeddableCartridges(Collection<IEmbeddableCartridge> cartridge)
+
++ Adds all given embedded cartridges from this app, given their names. |
+
+ IEnvironmentVariable |
+IApplication.addEnvironmentVariable(String name,
+ String value)
+
++ Adds an environment variable to this application. |
+
+ Map<String,IEnvironmentVariable> |
+IApplication.addEnvironmentVariables(Map<String,String> environmentVariables)
+
++ Adds a map of environment variables to the application |
+
+static SSHKeyPair |
+SSHKeyPair.create(SSHKeyType type,
+ String passPhrase,
+ String privateKeyPath,
+ String publicKeyPath)
+
++ Creates private and public ssh-rsa keys and stores them to the given + paths. |
+
+static SSHKeyPair |
+SSHKeyPair.create(String passPhrase,
+ String privateKeyPath,
+ String publicKeyPath)
+
++ |
+
+ IApplication |
+IDomain.createApplication(String name,
+ IStandaloneCartridge cartridge)
+
++ |
+
+ IApplication |
+IDomain.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale)
+
++ |
+
+ IApplication |
+IDomain.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale,
+ IGearProfile gearProfile)
+
++ |
+
+ IApplication |
+IDomain.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale,
+ IGearProfile gearProfile,
+ String initialGitUrl)
+
++ Creates a new application with the given name and the given + cartridge/framework. |
+
+ IApplication |
+IDomain.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale,
+ IGearProfile gearProfile,
+ String initialGitUrl,
+ int timeout,
+ IEmbeddableCartridge... cartridges)
+
++ Creates a new application with the given name and the given + cartridge/framework. |
+
+ IApplication |
+IDomain.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale,
+ IGearProfile gearProfile,
+ String initialGitUrl,
+ int timeout,
+ Map<String,String> environmentVariable,
+ IEmbeddableCartridge... cartridges)
+
++ Creates a new application with the given name and the given + cartridge/framework. |
+
+ IApplication |
+IDomain.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ IGearProfile gearProfile)
+
++ |
+
+ IApplication |
+IDomain.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ String initialGitUrl)
+
++ |
+
+ IDomain |
+IUser.createDomain(String id)
+
++ |
+
+ void |
+IOpenShiftSSHKey.destroy()
+
++ |
+
+ void |
+IEnvironmentVariable.destroy()
+
++ Destroys this environment variable |
+
+ void |
+IDomain.destroy()
+
++ Destroys the current domain. |
+
+ void |
+IApplication.destroy()
+
++ Destroys this application (and removes it from the list of available + applications) |
+
+ void |
+IDomain.destroy(boolean force)
+
++ Destroys the current domain, using the 'force' parameter to also destroy the domain applications. |
+
+ IApplication |
+IDomain.getApplicationByName(String name)
+
++ Returns the application identified by the given name. |
+
+ List<IApplication> |
+IDomain.getApplications()
+
++ |
+
+ List<IApplication> |
+IDomain.getApplicationsByCartridge(IStandaloneCartridge cartridge)
+
++ |
+
+ List<String> |
+IDomain.getAvailableCartridgeNames()
+
++ Returns the list of cartridges that can be used to create a new application. |
+
+ List<IGearProfile> |
+IDomain.getAvailableGearProfiles()
+
++ Returns the list of available gear size that the user can choose when creating a new application (application's gear size can't be changed after creation). |
+
+ IOpenShiftConnection |
+OpenShiftConnectionFactory.getConnection(String clientId,
+ String password)
+
++ Establish a connection with the clientId along with user's password. |
+
+ IOpenShiftConnection |
+OpenShiftConnectionFactory.getConnection(String clientId,
+ String username,
+ String password)
+
++ Establish a connection with the clientId along with user's login and + password. |
+
+ IOpenShiftConnection |
+OpenShiftConnectionFactory.getConnection(String clientId,
+ String username,
+ String password,
+ String serverUrl)
+
++ Establish a connection with the clientId along with user's login and + password. |
+
+protected IOpenShiftConnection |
+OpenShiftConnectionFactory.getConnection(String clientId,
+ String username,
+ String password,
+ String serverUrl,
+ IHttpClient httpClient)
+
++ |
+
+ IOpenShiftConnection |
+OpenShiftConnectionFactory.getConnection(String clientId,
+ String username,
+ String password,
+ String authKey,
+ String authIV,
+ String serverUrl)
+
++ Establish a connection with the clientId along with user's login and + password. |
+
+ IDomain |
+IUser.getDefaultDomain()
+
++ |
+
+ IDomain |
+IUser.getDomain(String id)
+
++ |
+
+ List<IDomain> |
+IUser.getDomains()
+
++ |
+
+ List<IDomain> |
+IOpenShiftConnection.getDomains()
+
++ Returns the domains associated with the current OpenShift connection. |
+
+ List<IEmbeddableCartridge> |
+IOpenShiftConnection.getEmbeddableCartridges()
+
++ Returns the available embeddable cartridges associated with the current + OpenShift connection. |
+
+ IEmbeddedCartridge |
+IApplication.getEmbeddedCartridge(IEmbeddableCartridge cartridge)
+
++ Returns the embedded cartridge in this application. |
+
+ IEmbeddedCartridge |
+IApplication.getEmbeddedCartridge(String cartridgeName)
+
++ Returns the embedded cartridge given its name. |
+
+ List<IEmbeddedCartridge> |
+IApplication.getEmbeddedCartridges()
+
++ Returns all embedded cartridges. |
+
+ IEnvironmentVariable |
+IApplication.getEnvironmentVariable(String name)
+
++ Return the environment variable for the specified name |
+
+ Collection<IGearGroup> |
+IApplication.getGearGroups()
+
++ Returns the gear groups for this application. |
+
+ RestResponse |
+OpenShiftEndpointException.getRestResponse()
+
++ |
+
+ IOpenShiftSSHKey |
+IUser.getSSHKeyByName(String name)
+
++ |
+
+ IOpenShiftSSHKey |
+IUser.getSSHKeyByPublicKey(String publicKey)
+
++ |
+
+ List<IOpenShiftSSHKey> |
+IUser.getSSHKeys()
+
++ |
+
+ List<IStandaloneCartridge> |
+IOpenShiftConnection.getStandaloneCartridges()
+
++ Returns the available standalone cartridges associated with the current + OpenShift connection. |
+
+ IUser |
+IOpenShiftConnection.getUser()
+
++ Returns the user associated with the current OpenShift connection. |
+
+ IUser |
+IDomain.getUser()
+
++ Returns the currently connected user that manages this domain. |
+
+ boolean |
+IDomain.hasApplicationByCartridge(IStandaloneCartridge cartridge)
+
++ |
+
+ boolean |
+IDomain.hasApplicationByName(String name)
+
++ Returns true if the application identified by the given name exists in the domain. |
+
+ boolean |
+IUser.hasDomain()
+
++ |
+
+ boolean |
+IUser.hasDomain(String id)
+
++ |
+
+ boolean |
+IApplication.hasEmbeddedCartridge(IEmbeddableCartridge cartridge)
+
++ Returns true if this application has an embedded cartridge. |
+
+ boolean |
+IApplication.hasEmbeddedCartridge(String cartridgeName)
+
++ Returns true if this application has an embedded cartridge. |
+
+ boolean |
+IApplication.hasEnvironmentVariable(String name)
+
++ Checks if the environment variable is present in the application. |
+
+ boolean |
+IUser.hasSSHKeyName(String name)
+
++ |
+
+ boolean |
+IUser.hasSSHPublicKey(String publicKey)
+
++ |
+
+static SSHKeyPair |
+SSHKeyPair.load(String privateKeyPath,
+ String publicKeyPath)
+
++ Loads existing private and public ssh key from the given paths. |
+
+ IOpenShiftSSHKey |
+IUser.putSSHKey(String name,
+ ISSHPublicKey key)
+
++ |
+
+ void |
+IOpenShiftResource.refresh()
+
++ Refresh the resource and its list of children resources that were + previously loaded |
+
+ void |
+IApplication.refresh()
+
++ Refresh the application but reloading its content from OpenShift. |
+
+ void |
+IApplication.removeAlias(String alias)
+
++ Remove application alias |
+
+ void |
+IApplication.removeEmbeddedCartridge(IEmbeddableCartridge cartridge)
+
++ Removes the given embedded cartridge that is equal to the given + embeddable cartridge. |
+
+ void |
+IApplication.removeEmbeddedCartridges(Collection<IEmbeddableCartridge> cartridges)
+
++ Removes the given embedded cartridges in this application that are equal to the + given IEmbeddableCartridge. |
+
+ void |
+IApplication.removeEnvironmentVariable(String name)
+
++ Removes the environment variables with the given name from this application. |
+
+ void |
+IDomain.rename(String id)
+
++ Rename the current domain with the given id.... |
+
+ void |
+IApplication.restart()
+
++ Restarts this application. |
+
+ void |
+IApplication.scaleDown()
+
++ Scale down application |
+
+ void |
+IApplication.scaleUp()
+
++ Scale up application |
+
+ void |
+IOpenShiftSSHKey.setKeyType(SSHKeyType type,
+ String publicKey)
+
++ Sets the new type and public key of this ssh key to the OpenShift PaaS |
+
+ void |
+IOpenShiftSSHKey.setPublicKey(String publicKey)
+
++ Sets the public key portion of this ssh key to the OpenShift PaaS. |
+
+ void |
+IApplication.start()
+
++ Starts this application. |
+
+ void |
+IApplication.stop()
+
++ Stops this application. |
+
+ void |
+IApplication.stop(boolean force)
+
++ Stops this application |
+
+ void |
+IEnvironmentVariable.update(String value)
+
++ Updates this environment variable to the given value. |
+
+ boolean |
+IApplication.waitForAccessible(long timeout)
+
++ Waits for this application to become accessible on its public url. |
+
+ Future<Boolean> |
+IApplication.waitForAccessibleAsync(long timeout)
+
++ Returns a Future that the caller can use to wait for the application to + become accessible on its public url. |
+
+ +
| Constructors in com.openshift.client that throw OpenShiftException | +|
|---|---|
InvalidCredentialsOpenShiftException(String url,
+ HttpClientException cause,
+ RestResponse restResponse)
+
++ |
+|
NotFoundOpenShiftException(String url,
+ HttpClientException e,
+ RestResponse restResponse)
+
++ |
+|
SSHPublicKey(File publicKeyFile)
+
++ |
+|
SSHPublicKey(String publicKeyFilePath)
+
++ |
+|
| +Uses of OpenShiftException in com.openshift.client.cartridge | +
|---|
+ +
| Methods in com.openshift.client.cartridge that throw OpenShiftException | +|
|---|---|
+ void |
+IEmbeddedCartridge.destroy()
+
++ Destroys this cartridge (and removes it from the list of existing cartridges) |
+
+ URL |
+IEmbeddedCartridge.getUrl()
+
++ The url at which this cartridge may be reached |
+
| +Uses of OpenShiftException in com.openshift.client.configuration | +
|---|
+ +
| Constructors in com.openshift.client.configuration that throw OpenShiftException | +|
|---|---|
DefaultConfiguration()
+
++ |
+|
OpenShiftConfiguration()
+
++ |
+|
SystemConfiguration(IOpenShiftConfiguration parentConfiguration)
+
++ |
+|
SystemProperties(IOpenShiftConfiguration parentConfiguration)
+
++ |
+|
UserConfiguration(SystemConfiguration systemConfiguration)
+
++ |
+|
| +Uses of OpenShiftException in com.openshift.internal.client | +
|---|
+ +
| Methods in com.openshift.internal.client that throw OpenShiftException | +||
|---|---|---|
+ void |
+ApplicationResource.addAlias(String alias)
+
++ |
+|
+ IEmbeddedCartridge |
+ApplicationResource.addEmbeddableCartridge(IEmbeddableCartridge cartridge)
+
++ Adds the given embedded cartridge to this application. |
+|
+ List<IEmbeddedCartridge> |
+ApplicationResource.addEmbeddableCartridges(Collection<IEmbeddableCartridge> cartridges)
+
++ |
+|
+ IEnvironmentVariable |
+ApplicationResource.addEnvironmentVariable(String name,
+ String value)
+
++ |
+|
+ Map<String,IEnvironmentVariable> |
+ApplicationResource.addEnvironmentVariables(Map<String,String> environmentVariables)
+
++ |
+|
+ IApplication |
+DomainResource.createApplication(String name,
+ IStandaloneCartridge cartridge)
+
++ |
+|
+ IApplication |
+DomainResource.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale)
+
++ |
+|
+ IApplication |
+DomainResource.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale,
+ IGearProfile gearProfile)
+
++ |
+|
+ IApplication |
+DomainResource.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale,
+ IGearProfile gearProfile,
+ String initialGitUrl)
+
++ |
+|
+ IApplication |
+DomainResource.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale,
+ IGearProfile gearProfile,
+ String initialGitUrl,
+ int timeout,
+ IEmbeddableCartridge... cartridges)
+
++ |
+|
+ IApplication |
+DomainResource.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale,
+ IGearProfile gearProfile,
+ String initialGitUrl,
+ int timeout,
+ Map<String,String> environmentVariables,
+ IEmbeddableCartridge... cartridges)
+
++ |
+|
+ IApplication |
+DomainResource.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale,
+ String initialGitUrl)
+
++ |
+|
+ IApplication |
+DomainResource.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ IGearProfile gearProfile)
+
++ |
+|
+ IApplication |
+DomainResource.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ IGearProfile gearProfile,
+ String initialGitUrl)
+
++ |
+|
+ IApplication |
+DomainResource.createApplication(String name,
+ IStandaloneCartridge cartridge,
+ String initialGitUrl)
+
++ |
+|
+ IDomain |
+UserResource.createDomain(String id)
+
++ |
+|
+ IDomain |
+APIResource.createDomain(String id)
+
++ |
+|
+ void |
+SSHKeyResource.destroy()
+
++ |
+|
+ void |
+EnvironmentVariableResource.destroy()
+
++ |
+|
+ void |
+EmbeddedCartridgeResource.destroy()
+
++ |
+|
+ void |
+DomainResource.destroy()
+
++ |
+|
+ void |
+ApplicationResource.destroy()
+
++ |
+|
+ void |
+DomainResource.destroy(boolean force)
+
++ |
+|
+protected
+ |
+AbstractOpenShiftResource.ServiceRequest.execute(int timeout,
+ IMediaType mediaType,
+ Parameter... parameters)
+
++ |
+|
+protected
+ |
+AbstractOpenShiftResource.ServiceRequest.execute(int timeout,
+ List<Parameter> urlParameter,
+ IMediaType mediaType,
+ Parameter... parameters)
+
++ |
+|
+protected
+ |
+AbstractOpenShiftResource.ServiceRequest.execute(int timeout,
+ List<Parameter> urlParameter,
+ Parameter... parameters)
+
++ |
+|
+protected
+ |
+AbstractOpenShiftResource.ServiceRequest.execute(int timeout,
+ Parameter... parameters)
+
++ |
+|
+protected
+ |
+AbstractOpenShiftResource.ServiceRequest.execute(List<Parameter> urlParameter,
+ Parameter... parameters)
+
++ |
+|
+protected
+ |
+AbstractOpenShiftResource.ServiceRequest.execute(Parameter... parameters)
+
++ |
+|
+ IApplication |
+DomainResource.getApplicationByName(String name)
+
++ |
+|
+ List<IApplication> |
+DomainResource.getApplications()
+
++ |
+|
+ List<IApplication> |
+DomainResource.getApplicationsByCartridge(IStandaloneCartridge cartridge)
+
++ |
+|
+ List<String> |
+DomainResource.getAvailableCartridgeNames()
+
++ |
+|
+ List<IGearProfile> |
+DomainResource.getAvailableGearProfiles()
+
++ |
+|
+protected IOpenShiftConnection |
+AbstractOpenShiftConnectionFactory.getConnection(IRestService service,
+ String login,
+ String password)
+
++ |
+|
+ IDomain |
+UserResource.getDefaultDomain()
+
++ |
+|
+ IDomain |
+UserResource.getDomain(String id)
+
++ |
+|
+ IDomain |
+APIResource.getDomain(String id)
+
++ |
+|
+ List<IDomain> |
+UserResource.getDomains()
+
++ |
+|
+ List<IDomain> |
+APIResource.getDomains()
+
++ |
+|
+ List<IEmbeddableCartridge> |
+APIResource.getEmbeddableCartridges()
+
++ |
+|
+ IEmbeddedCartridge |
+ApplicationResource.getEmbeddedCartridge(IEmbeddableCartridge cartridge)
+
++ |
+|
+ IEmbeddedCartridge |
+ApplicationResource.getEmbeddedCartridge(String cartridgeName)
+
++ |
+|
+ List<IEmbeddedCartridge> |
+ApplicationResource.getEmbeddedCartridges()
+
++ |
+|
+ Map<String,IEnvironmentVariable> |
+ApplicationResource.getEnvironmentVariables()
+
++ |
+|
+ Collection<IGearGroup> |
+ApplicationResource.getGearGroups()
+
++ |
+|
+protected Link |
+AbstractOpenShiftResource.getLink(String linkName)
+
++ Gets the link for the given name. |
+|
+protected List<IApplication> |
+DomainResource.getOrLoadApplications()
+
++ |
+|
+protected Map<String,IEnvironmentVariable> |
+ApplicationResource.getOrLoadEnvironmentVariables()
+
++ |
+|
+ IOpenShiftSSHKey |
+UserResource.getSSHKeyByName(String name)
+
++ |
+|
+ IOpenShiftSSHKey |
+UserResource.getSSHKeyByPublicKey(String publicKey)
+
++ |
+|
+ List<IOpenShiftSSHKey> |
+UserResource.getSSHKeys()
+
++ |
+|
+ List<IStandaloneCartridge> |
+APIResource.getStandaloneCartridges()
+
++ |
+|
+ IUser |
+DomainResource.getUser()
+
++ |
+|
+ IUser |
+APIResource.getUser()
+
++ |
+|
+ boolean |
+DomainResource.hasApplicationByCartridge(IStandaloneCartridge cartridge)
+
++ |
+|
+ boolean |
+DomainResource.hasApplicationByName(String name)
+
++ |
+|
+ boolean |
+UserResource.hasDomain()
+
++ |
+|
+ boolean |
+UserResource.hasDomain(String id)
+
++ |
+|
+protected boolean |
+APIResource.hasDomain(String name)
+
++ |
+|
+ boolean |
+ApplicationResource.hasEmbeddedCartridge(IEmbeddableCartridge cartridge)
+
++ |
+|
+ boolean |
+ApplicationResource.hasEmbeddedCartridge(String cartridgeName)
+
++ |
+|
+ boolean |
+ApplicationResource.hasEnvironmentVariable(String name)
+
++ |
+|
+ boolean |
+UserResource.hasSSHKeyName(String name)
+
++ |
+|
+ boolean |
+UserResource.hasSSHPublicKey(String publicKey)
+
++ |
+|
+ IOpenShiftSSHKey |
+UserResource.putSSHKey(String name,
+ ISSHPublicKey key)
+
++ Adds the given ssh key with the given name. |
+|
+ void |
+UserResource.refresh()
+
++ |
+|
+ void |
+SSHKeyResource.refresh()
+
++ |
+|
+ void |
+GearGroupResource.refresh()
+
++ |
+|
+ void |
+EnvironmentVariableResource.refresh()
+
++ |
+|
+ void |
+EmbeddedCartridgeResource.refresh()
+
++ Refreshes the content of this embedded cartridge. |
+|
+ void |
+DomainResource.refresh()
+
++ |
+|
+ void |
+ApplicationResource.refresh()
+
++ |
+|
+ void |
+APIResource.refresh()
+
++ |
+|
+protected void |
+ApplicationResource.refreshEmbeddedCartridges()
+
++ Queries the backend to list the embedded cartridges and adds the new ones + & update the ones that are already present |
+|
+ void |
+ApplicationResource.removeAlias(String alias)
+
++ |
+|
+ void |
+ApplicationResource.removeEmbeddedCartridge(IEmbeddableCartridge cartridge)
+
++ |
+|
+protected void |
+ApplicationResource.removeEmbeddedCartridge(IEmbeddedCartridge embeddedCartridge)
+
++ "callback" from the embeddedCartridge once it has been destroyed. |
+|
+ void |
+ApplicationResource.removeEmbeddedCartridges(Collection<IEmbeddableCartridge> cartridges)
+
++ |
+|
+ void |
+DomainResource.rename(String id)
+
++ |
+|
+ RestResponse |
+RestService.request(Link link,
+ int timeout,
+ IMediaType requestMediaType,
+ Parameter... parameters)
+
++ |
+|
+ RestResponse |
+IRestService.request(Link link,
+ int timeout,
+ IMediaType mediaType,
+ Parameter... parameters)
+
++ Requests the given link sending the given parameters while encoding the + parameters with the given media type and respecting the given timeout. |
+|
+ RestResponse |
+RestService.request(Link link,
+ int timeout,
+ List<Parameter> urlParameters,
+ IMediaType requestMediaType,
+ Parameter... parameters)
+
++ |
+|
+ RestResponse |
+IRestService.request(Link link,
+ int timeout,
+ List<Parameter> urlParameters,
+ IMediaType mediaType,
+ Parameter... parameters)
+
++ |
+|
+ RestResponse |
+RestService.request(Link link,
+ int timeout,
+ List<Parameter> urlParameters,
+ Parameter... parameters)
+
++ |
+|
+ RestResponse |
+IRestService.request(Link link,
+ int timeout,
+ List<Parameter> urlParameters,
+ Parameter... parameters)
+
++ |
+|
+ RestResponse |
+RestService.request(Link link,
+ int timeout,
+ Parameter... parameters)
+
++ |
+|
+ RestResponse |
+IRestService.request(Link link,
+ int timeout,
+ Parameter... parameters)
+
++ |
+|
+ RestResponse |
+RestService.request(Link link,
+ List<Parameter> urlParameters,
+ Parameter... parameters)
+
++ |
+|
+ RestResponse |
+IRestService.request(Link link,
+ List<Parameter> urlParameters,
+ Parameter... parameters)
+
++ |
+|
+ RestResponse |
+RestService.request(Link link,
+ Parameter... parameters)
+
++ |
+|
+ RestResponse |
+IRestService.request(Link link,
+ Parameter... parameters)
+
++ |
+|
+ void |
+ApplicationResource.restart()
+
++ |
+|
+ void |
+ApplicationResource.scaleDown()
+
++ |
+|
+ void |
+ApplicationResource.scaleUp()
+
++ |
+|
+ void |
+SSHKeyResource.setKeyType(SSHKeyType type,
+ String publicKey)
+
++ |
+|
+ void |
+SSHKeyResource.setPublicKey(String publicKey)
+
++ |
+|
+ void |
+ApplicationResource.start()
+
++ |
+|
+ void |
+ApplicationResource.stop()
+
++ |
+|
+ void |
+ApplicationResource.stop(boolean force)
+
++ |
+|
+ void |
+EnvironmentVariableResource.update(String newValue)
+
++ |
+|
+protected void |
+ApplicationResource.updateEnvironmentVariables()
+
++ |
+|
+ boolean |
+ApplicationResource.waitForAccessible(long timeout)
+
++ |
+|
+ Future<Boolean> |
+ApplicationResource.waitForAccessibleAsync(long timeout)
+
++ |
+|
| +Uses of OpenShiftException in com.openshift.internal.client.response | +
|---|
+ +
| Methods in com.openshift.internal.client.response that throw OpenShiftException | +|
|---|---|
+ RestResponse |
+OpenShiftJsonDTOFactory.get(String json)
+
++ |
+
+ RestResponse |
+IRestResponseFactory.get(String restResponse)
+
++ Returns a RestResponse instance for a given rest response string. |
+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use OpenShiftRequestException | +|
|---|---|
| com.openshift.internal.client.response | ++ |
| +Uses of OpenShiftRequestException in com.openshift.internal.client.response | +
|---|
+ +
| Methods in com.openshift.internal.client.response that throw OpenShiftRequestException | +|
|---|---|
+ void |
+Link.validateRequestParameters(Parameter[] parameters)
+
++ |
+
+ +
| Constructors in com.openshift.internal.client.response that throw OpenShiftRequestException | +|
|---|---|
LinkParameter(String name,
+ LinkParameterType type,
+ String defaultValue,
+ String description,
+ List<String> validOptions)
+
++ |
+|
LinkParameter(String name,
+ String type,
+ String defaultValue,
+ String description,
+ List<String> validOptions)
+
++ |
+|
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use OpenShiftSSHOperationException | +|
|---|---|
| com.openshift.client | ++ |
| com.openshift.internal.client | ++ |
| com.openshift.internal.client.ssh | ++ |
| +Uses of OpenShiftSSHOperationException in com.openshift.client | +
|---|
+ +
| Methods in com.openshift.client that throw OpenShiftSSHOperationException | +|
|---|---|
+ List<String> |
+IApplication.getEnvironmentProperties()
+
++ Retrieves the list of environment properties. |
+
+ Map<String,IEnvironmentVariable> |
+IApplication.getEnvironmentVariables()
+
++ Retrieves the map of environment variables |
+
+ List<IApplicationPortForwarding> |
+IApplication.getForwardablePorts()
+
++ Returns the list of forwardable ports on OpenShift for this application. |
+
+ boolean |
+IApplication.isPortFowardingStarted()
+
++ Returns true if the port-forwarding has been started, false otherwise. |
+
+ boolean |
+IApplicationPortForwarding.isStarted(com.jcraft.jsch.Session session)
+
++ |
+
+ List<IApplicationPortForwarding> |
+IApplication.refreshForwardablePorts()
+
++ Refreshes the list of port-forwarding. |
+
+ void |
+IApplicationPortForwarding.start(com.jcraft.jsch.Session session)
+
++ Start the binding, ie, open a SSH tunnel between local address:port and remote address:port. |
+
+ List<IApplicationPortForwarding> |
+IApplication.startPortForwarding()
+
++ |
+
+ void |
+IApplicationPortForwarding.stop(com.jcraft.jsch.Session session)
+
++ Stop the SSH tunnel. |
+
+ List<IApplicationPortForwarding> |
+IApplication.stopPortForwarding()
+
++ Stop the port-forwarding for all ports. |
+
| +Uses of OpenShiftSSHOperationException in com.openshift.internal.client | +
|---|
+ +
| Methods in com.openshift.internal.client that throw OpenShiftSSHOperationException | +|
|---|---|
+ List<String> |
+ApplicationResource.getEnvironmentProperties()
+
++ |
+
+ List<IApplicationPortForwarding> |
+ApplicationResource.getForwardablePorts()
+
++ |
+
+ boolean |
+ApplicationResource.isPortFowardingStarted()
+
++ |
+
+ List<IApplicationPortForwarding> |
+ApplicationResource.refreshForwardablePorts()
+
++ |
+
+protected List<String> |
+ApplicationResource.sshExecCmd(String command,
+ ApplicationResource.SshStreams sshStream)
+
++ |
+
+ List<IApplicationPortForwarding> |
+ApplicationResource.startPortForwarding()
+
++ |
+
+ List<IApplicationPortForwarding> |
+ApplicationResource.stopPortForwarding()
+
++ |
+
| +Uses of OpenShiftSSHOperationException in com.openshift.internal.client.ssh | +
|---|
+ +
| Methods in com.openshift.internal.client.ssh that throw OpenShiftSSHOperationException | +|
|---|---|
+ boolean |
+ApplicationPortForwarding.isStarted(com.jcraft.jsch.Session session)
+
++ |
+
+ void |
+ApplicationPortForwarding.start(com.jcraft.jsch.Session session)
+
++ |
+
+ void |
+ApplicationPortForwarding.stop(com.jcraft.jsch.Session session)
+
++ |
+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use OpenShiftUnknonwSSHKeyTypeException | +|
|---|---|
| com.openshift.client | ++ |
| com.openshift.internal.client | ++ |
| com.openshift.internal.client.ssh | ++ |
| +Uses of OpenShiftUnknonwSSHKeyTypeException in com.openshift.client | +
|---|
+ +
| Methods in com.openshift.client that throw OpenShiftUnknonwSSHKeyTypeException | +|
|---|---|
+static SSHKeyType |
+SSHKeyType.getByJSchKeyType(int jschKeyType)
+
++ |
+
+static SSHKeyType |
+SSHKeyType.getByJSchKeyType(com.jcraft.jsch.KeyPair keyPair)
+
++ |
+
+static SSHKeyType |
+SSHKeyType.getByTypeId(String keyTypeId)
+
++ |
+
+ IOpenShiftSSHKey |
+IUser.getSSHKeyByName(String name)
+
++ |
+
+ IOpenShiftSSHKey |
+IUser.getSSHKeyByPublicKey(String publicKey)
+
++ |
+
+ boolean |
+IUser.hasSSHKeyName(String name)
+
++ |
+
+ boolean |
+IUser.hasSSHPublicKey(String publicKey)
+
++ |
+
| +Uses of OpenShiftUnknonwSSHKeyTypeException in com.openshift.internal.client | +
|---|
+ +
| Methods in com.openshift.internal.client that throw OpenShiftUnknonwSSHKeyTypeException | +|
|---|---|
+ IOpenShiftSSHKey |
+UserResource.getSSHKeyByName(String name)
+
++ |
+
+ IOpenShiftSSHKey |
+UserResource.getSSHKeyByPublicKey(String publicKey)
+
++ |
+
+ List<IOpenShiftSSHKey> |
+UserResource.getSSHKeys()
+
++ |
+
+ boolean |
+UserResource.hasSSHKeyName(String name)
+
++ |
+
+ boolean |
+UserResource.hasSSHPublicKey(String publicKey)
+
++ |
+
+protected void |
+SSHKeyResource.update(KeyResourceDTO dto)
+
++ |
+
+ +
| Constructors in com.openshift.internal.client that throw OpenShiftUnknonwSSHKeyTypeException | +|
|---|---|
SSHKeyResource(KeyResourceDTO dto,
+ UserResource user)
+
++ |
+|
| +Uses of OpenShiftUnknonwSSHKeyTypeException in com.openshift.internal.client.ssh | +
|---|
+ +
| Methods in com.openshift.internal.client.ssh that throw OpenShiftUnknonwSSHKeyTypeException | +|
|---|---|
+protected void |
+AbstractSSHKey.setKeyType(String keyTypeId)
+
++ |
+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use SSHKeyPair | +|
|---|---|
| com.openshift.client | ++ |
| +Uses of SSHKeyPair in com.openshift.client | +
|---|
+ +
| Methods in com.openshift.client that return SSHKeyPair | +|
|---|---|
+static SSHKeyPair |
+SSHKeyPair.create(SSHKeyType type,
+ String passPhrase,
+ String privateKeyPath,
+ String publicKeyPath)
+
++ Creates private and public ssh-rsa keys and stores them to the given + paths. |
+
+static SSHKeyPair |
+SSHKeyPair.create(String passPhrase,
+ String privateKeyPath,
+ String publicKeyPath)
+
++ |
+
+static SSHKeyPair |
+SSHKeyPair.load(String privateKeyPath,
+ String publicKeyPath)
+
++ Loads existing private and public ssh key from the given paths. |
+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use SSHKeyType | +|
|---|---|
| com.openshift.client | ++ |
| com.openshift.internal.client | ++ |
| com.openshift.internal.client.ssh | ++ |
| +Uses of SSHKeyType in com.openshift.client | +
|---|
+ +
| Methods in com.openshift.client that return SSHKeyType | +|
|---|---|
+static SSHKeyType |
+SSHKeyType.getByJSchKeyType(int jschKeyType)
+
++ |
+
+static SSHKeyType |
+SSHKeyType.getByJSchKeyType(com.jcraft.jsch.KeyPair keyPair)
+
++ |
+
+static SSHKeyType |
+SSHKeyType.getByTypeId(String keyTypeId)
+
++ |
+
+ SSHKeyType |
+ISSHPublicKey.getKeyType()
+
++ Returns the type of the key (ssh-rsa or ssh-dss) |
+
+static SSHKeyType |
+SSHKeyType.valueOf(String name)
+
++ Returns the enum constant of this type with the specified name. |
+
+static SSHKeyType[] |
+SSHKeyType.values()
+
++ Returns an array containing the constants of this enum type, in +the order they are declared. |
+
+ +
| Methods in com.openshift.client with parameters of type SSHKeyType | +|
|---|---|
+static SSHKeyPair |
+SSHKeyPair.create(SSHKeyType type,
+ String passPhrase,
+ String privateKeyPath,
+ String publicKeyPath)
+
++ Creates private and public ssh-rsa keys and stores them to the given + paths. |
+
+ void |
+IOpenShiftSSHKey.setKeyType(SSHKeyType type,
+ String publicKey)
+
++ Sets the new type and public key of this ssh key to the OpenShift PaaS |
+
| +Uses of SSHKeyType in com.openshift.internal.client | +
|---|
+ +
| Methods in com.openshift.internal.client that return SSHKeyType | +|
|---|---|
+ SSHKeyType |
+SSHKeyResource.getKeyType()
+
++ |
+
+ +
| Methods in com.openshift.internal.client with parameters of type SSHKeyType | +|
|---|---|
+ void |
+SSHKeyResource.setKeyType(SSHKeyType type,
+ String publicKey)
+
++ |
+
| +Uses of SSHKeyType in com.openshift.internal.client.ssh | +
|---|
+ +
| Methods in com.openshift.internal.client.ssh that return SSHKeyType | +|
|---|---|
+ SSHKeyType |
+AbstractSSHKey.getKeyType()
+
++ |
+
+ +
| Methods in com.openshift.internal.client.ssh with parameters of type SSHKeyType | +|
|---|---|
+protected void |
+AbstractSSHKey.setKeyType(SSHKeyType keyType)
+
++ |
+
+ +
| Constructors in com.openshift.internal.client.ssh with parameters of type SSHKeyType | +|
|---|---|
AbstractSSHKey(SSHKeyType sshKeyType)
+
++ |
+|
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.client.configuration.AbstractOpenshiftConfiguration +
public abstract class AbstractOpenshiftConfiguration
+
| +Field Summary | +|
|---|---|
+protected static String |
+KEY_CLIENT_ID
+
++ |
+
+protected static String |
+KEY_LIBRA_DOMAIN
+
++ |
+
+protected static String |
+KEY_LIBRA_SERVER
+
++ |
+
+protected static String |
+KEY_PASSWORD
+
++ |
+
+protected static String |
+KEY_RHLOGIN
+
++ |
+
| +Constructor Summary | +|
|---|---|
+protected |
+AbstractOpenshiftConfiguration()
+
++ |
+
+protected |
+AbstractOpenshiftConfiguration(File file,
+ IOpenShiftConfiguration parentConfiguration)
+
++ |
+
+protected |
+AbstractOpenshiftConfiguration(IOpenShiftConfiguration parentConfiguration)
+
++ |
+
| +Method Summary | +|
|---|---|
+protected String |
+ensureIsSingleQuoted(String value)
+
++ |
+
+ String |
+getClientId()
+
++ |
+
+protected File |
+getFile()
+
++ |
+
+ String |
+getLibraDomain()
+
++ |
+
+ String |
+getLibraServer()
+
++ |
+
+ String |
+getPassword()
+
++ |
+
+ Properties |
+getProperties()
+
++ |
+
+protected Properties |
+getProperties(File file,
+ Properties defaultProperties)
+
++ |
+
+ String |
+getProxyHost()
+
++ |
+
+ String |
+getProxyPort()
+
++ |
+
+ boolean |
+getProxySet()
+
++ |
+
+ String |
+getRhlogin()
+
++ |
+
+protected void |
+initProperties(File file)
+
++ |
+
+protected void |
+initProperties(File file,
+ Properties defaultProperties)
+
++ |
+
+protected void |
+initProperties(Properties defaultProperties)
+
++ |
+
+protected String |
+removeQuotes(String value)
+
++ |
+
+ void |
+save()
+
++ |
+
+ void |
+setEnableSSLCertChecks(boolean doSSLChecks)
+
++ |
+
+ void |
+setLibraDomain(String libraDomain)
+
++ |
+
+ void |
+setLibraServer(String libraServer)
+
++ |
+
+ void |
+setRhlogin(String rhlogin)
+
++ |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Field Detail | +
|---|
+protected static final String KEY_RHLOGIN+
+protected static final String KEY_LIBRA_SERVER+
+protected static final String KEY_LIBRA_DOMAIN+
+protected static final String KEY_PASSWORD+
+protected static final String KEY_CLIENT_ID+
| +Constructor Detail | +
|---|
+protected AbstractOpenshiftConfiguration() + throws FileNotFoundException, + IOException+
FileNotFoundException
+IOException+protected AbstractOpenshiftConfiguration(IOpenShiftConfiguration parentConfiguration) + throws FileNotFoundException, + IOException+
FileNotFoundException
+IOException+protected AbstractOpenshiftConfiguration(File file, + IOpenShiftConfiguration parentConfiguration) + throws FileNotFoundException, + IOException+
FileNotFoundException
+IOException| +Method Detail | +
|---|
+protected void initProperties(File file) + throws FileNotFoundException, + IOException+
FileNotFoundException
+IOException+protected void initProperties(Properties defaultProperties) + throws FileNotFoundException, + IOException+
FileNotFoundException
+IOException+protected void initProperties(File file, + Properties defaultProperties) + throws FileNotFoundException, + IOException+
FileNotFoundException
+IOException+protected Properties getProperties(File file, + Properties defaultProperties) + throws FileNotFoundException, + IOException+
FileNotFoundException
+IOException+protected File getFile()+
+public Properties getProperties()+
getProperties in interface IOpenShiftConfiguration+public void save() + throws IOException+
IOException+public void setRhlogin(String rhlogin)+
setRhlogin in interface IOpenShiftConfiguration+public String getRhlogin()+
getRhlogin in interface IOpenShiftConfiguration+public void setLibraServer(String libraServer)+
setLibraServer in interface IOpenShiftConfiguration+public String getLibraServer()+
getLibraServer in interface IOpenShiftConfiguration+public void setLibraDomain(String libraDomain)+
setLibraDomain in interface IOpenShiftConfiguration+public String getLibraDomain()+
getLibraDomain in interface IOpenShiftConfiguration+protected String ensureIsSingleQuoted(String value)+
+protected String removeQuotes(String value)+
+public String getPassword()+
+public String getClientId()+
+public void setEnableSSLCertChecks(boolean doSSLChecks)+
+public boolean getProxySet()+
+public String getProxyHost()+
+public String getProxyPort()+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.client.configuration.AbstractOpenshiftConfiguration +
com.openshift.client.configuration.DefaultConfiguration +
public class DefaultConfiguration
+
| +Field Summary | +|
|---|---|
+static String |
+LIBRA_DOMAIN
+
++ |
+
+static String |
+LIBRA_SERVER
+
++ |
+
| Fields inherited from class com.openshift.client.configuration.AbstractOpenshiftConfiguration | +
|---|
KEY_CLIENT_ID, KEY_LIBRA_DOMAIN, KEY_LIBRA_SERVER, KEY_PASSWORD, KEY_RHLOGIN |
+
| +Constructor Summary | +|
|---|---|
DefaultConfiguration()
+
++ |
+|
| +Method Summary | +|
|---|---|
+protected Properties |
+getProperties(File file,
+ Properties defaultProperties)
+
++ |
+
| Methods inherited from class com.openshift.client.configuration.AbstractOpenshiftConfiguration | +
|---|
ensureIsSingleQuoted, getClientId, getFile, getLibraDomain, getLibraServer, getPassword, getProperties, getProxyHost, getProxyPort, getProxySet, getRhlogin, initProperties, initProperties, initProperties, removeQuotes, save, setEnableSSLCertChecks, setLibraDomain, setLibraServer, setRhlogin |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Field Detail | +
|---|
+public static final String LIBRA_SERVER+
+public static final String LIBRA_DOMAIN+
| +Constructor Detail | +
|---|
+public DefaultConfiguration() + throws OpenShiftException, + IOException+
OpenShiftException
+IOException| +Method Detail | +
|---|
+protected Properties getProperties(File file, + Properties defaultProperties)+
getProperties in class AbstractOpenshiftConfiguration
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
public interface IOpenShiftConfiguration
+
| +Method Summary | +|
|---|---|
+ String |
+getLibraDomain()
+
++ |
+
+ String |
+getLibraServer()
+
++ |
+
+ Properties |
+getProperties()
+
++ |
+
+ String |
+getRhlogin()
+
++ |
+
+ void |
+setLibraDomain(String libraDomain)
+
++ |
+
+ void |
+setLibraServer(String libraServer)
+
++ |
+
+ void |
+setRhlogin(String rhlogin)
+
++ |
+
| +Method Detail | +
|---|
+String getRhlogin()+
+void setRhlogin(String rhlogin)+
+String getLibraServer()+
+void setLibraServer(String libraServer)+
+String getLibraDomain()+
+void setLibraDomain(String libraDomain)+
+Properties getProperties()+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.client.configuration.AbstractOpenshiftConfiguration +
com.openshift.client.configuration.OpenShiftConfiguration +
public class OpenShiftConfiguration
+
| +Field Summary | +
|---|
| Fields inherited from class com.openshift.client.configuration.AbstractOpenshiftConfiguration | +
|---|
KEY_CLIENT_ID, KEY_LIBRA_DOMAIN, KEY_LIBRA_SERVER, KEY_PASSWORD, KEY_RHLOGIN |
+
| +Constructor Summary | +|
|---|---|
OpenShiftConfiguration()
+
++ |
+|
| +Method Summary | +
|---|
| Methods inherited from class com.openshift.client.configuration.AbstractOpenshiftConfiguration | +
|---|
ensureIsSingleQuoted, getClientId, getFile, getLibraDomain, getLibraServer, getPassword, getProperties, getProperties, getProxyHost, getProxyPort, getProxySet, getRhlogin, initProperties, initProperties, initProperties, removeQuotes, save, setEnableSSLCertChecks, setLibraDomain, setLibraServer, setRhlogin |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public OpenShiftConfiguration() + throws FileNotFoundException, + IOException, + OpenShiftException+
FileNotFoundException
+IOException
+OpenShiftException
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.client.configuration.AbstractOpenshiftConfiguration +
com.openshift.client.configuration.SystemConfiguration +
public class SystemConfiguration
+The system wide OpenShift configuration that is at /etc/express.conf +
+ +
+
| +Field Summary | +
|---|
| Fields inherited from class com.openshift.client.configuration.AbstractOpenshiftConfiguration | +
|---|
KEY_CLIENT_ID, KEY_LIBRA_DOMAIN, KEY_LIBRA_SERVER, KEY_PASSWORD, KEY_RHLOGIN |
+
| +Constructor Summary | +|
|---|---|
SystemConfiguration(IOpenShiftConfiguration parentConfiguration)
+
++ |
+|
| +Method Summary | +
|---|
| Methods inherited from class com.openshift.client.configuration.AbstractOpenshiftConfiguration | +
|---|
ensureIsSingleQuoted, getClientId, getFile, getLibraDomain, getLibraServer, getPassword, getProperties, getProperties, getProxyHost, getProxyPort, getProxySet, getRhlogin, initProperties, initProperties, initProperties, removeQuotes, save, setEnableSSLCertChecks, setLibraDomain, setLibraServer, setRhlogin |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public SystemConfiguration(IOpenShiftConfiguration parentConfiguration) + throws OpenShiftException, + IOException+
OpenShiftException
+IOException
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.client.configuration.AbstractOpenshiftConfiguration +
com.openshift.client.configuration.SystemProperties +
public class SystemProperties
+
| +Field Summary | +
|---|
| Fields inherited from class com.openshift.client.configuration.AbstractOpenshiftConfiguration | +
|---|
KEY_CLIENT_ID, KEY_LIBRA_DOMAIN, KEY_LIBRA_SERVER, KEY_PASSWORD, KEY_RHLOGIN |
+
| +Constructor Summary | +|
|---|---|
SystemProperties(IOpenShiftConfiguration parentConfiguration)
+
++ |
+|
| +Method Summary | +|
|---|---|
+protected Properties |
+getProperties(File file,
+ Properties defaultProperties)
+
++ |
+
| Methods inherited from class com.openshift.client.configuration.AbstractOpenshiftConfiguration | +
|---|
ensureIsSingleQuoted, getClientId, getFile, getLibraDomain, getLibraServer, getPassword, getProperties, getProxyHost, getProxyPort, getProxySet, getRhlogin, initProperties, initProperties, initProperties, removeQuotes, save, setEnableSSLCertChecks, setLibraDomain, setLibraServer, setRhlogin |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public SystemProperties(IOpenShiftConfiguration parentConfiguration) + throws OpenShiftException, + IOException+
OpenShiftException
+IOException| +Method Detail | +
|---|
+protected Properties getProperties(File file, + Properties defaultProperties)+
getProperties in class AbstractOpenshiftConfiguration
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.client.configuration.AbstractOpenshiftConfiguration +
com.openshift.client.configuration.UserConfiguration +
public class UserConfiguration
+
| +Field Summary | +
|---|
| Fields inherited from class com.openshift.client.configuration.AbstractOpenshiftConfiguration | +
|---|
KEY_CLIENT_ID, KEY_LIBRA_DOMAIN, KEY_LIBRA_SERVER, KEY_PASSWORD, KEY_RHLOGIN |
+
| +Constructor Summary | +|
|---|---|
UserConfiguration(SystemConfiguration systemConfiguration)
+
++ |
+|
| +Method Summary | +
|---|
| Methods inherited from class com.openshift.client.configuration.AbstractOpenshiftConfiguration | +
|---|
ensureIsSingleQuoted, getClientId, getFile, getLibraDomain, getLibraServer, getPassword, getProperties, getProperties, getProxyHost, getProxyPort, getProxySet, getRhlogin, initProperties, initProperties, initProperties, removeQuotes, save, setEnableSSLCertChecks, setLibraDomain, setLibraServer, setRhlogin |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public UserConfiguration(SystemConfiguration systemConfiguration) + throws OpenShiftException, + IOException+
OpenShiftException
+IOException
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use AbstractOpenshiftConfiguration | +|
|---|---|
| com.openshift.client.configuration | ++ |
| +Uses of AbstractOpenshiftConfiguration in com.openshift.client.configuration | +
|---|
+ +
| Subclasses of AbstractOpenshiftConfiguration in com.openshift.client.configuration | +|
|---|---|
+ class |
+DefaultConfiguration
+
++ |
+
+ class |
+OpenShiftConfiguration
+
++ |
+
+ class |
+SystemConfiguration
+
++ The system wide OpenShift configuration that is at /etc/express.conf |
+
+ class |
+SystemProperties
+
++ |
+
+ class |
+UserConfiguration
+
++ |
+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use IOpenShiftConfiguration | +|
|---|---|
| com.openshift.client.configuration | ++ |
| +Uses of IOpenShiftConfiguration in com.openshift.client.configuration | +
|---|
+ +
| Classes in com.openshift.client.configuration that implement IOpenShiftConfiguration | +|
|---|---|
+ class |
+AbstractOpenshiftConfiguration
+
++ |
+
+ class |
+DefaultConfiguration
+
++ |
+
+ class |
+OpenShiftConfiguration
+
++ |
+
+ class |
+SystemConfiguration
+
++ The system wide OpenShift configuration that is at /etc/express.conf |
+
+ class |
+SystemProperties
+
++ |
+
+ class |
+UserConfiguration
+
++ |
+
+ +
| Constructors in com.openshift.client.configuration with parameters of type IOpenShiftConfiguration | +|
|---|---|
AbstractOpenshiftConfiguration(File file,
+ IOpenShiftConfiguration parentConfiguration)
+
++ |
+|
AbstractOpenshiftConfiguration(IOpenShiftConfiguration parentConfiguration)
+
++ |
+|
SystemConfiguration(IOpenShiftConfiguration parentConfiguration)
+
++ |
+|
SystemProperties(IOpenShiftConfiguration parentConfiguration)
+
++ |
+|
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use SystemConfiguration | +|
|---|---|
| com.openshift.client.configuration | ++ |
| +Uses of SystemConfiguration in com.openshift.client.configuration | +
|---|
+ +
| Constructors in com.openshift.client.configuration with parameters of type SystemConfiguration | +|
|---|---|
UserConfiguration(SystemConfiguration systemConfiguration)
+
++ |
+|
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
|
+Interfaces
+
+ +IOpenShiftConfiguration |
+
|
+Classes
+
+ +AbstractOpenshiftConfiguration + +DefaultConfiguration + +OpenShiftConfiguration + +SystemConfiguration + +SystemProperties + +UserConfiguration |
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Interface Summary | +|
|---|---|
| IOpenShiftConfiguration | ++ |
+ +
| +Class Summary | +|
|---|---|
| AbstractOpenshiftConfiguration | ++ |
| DefaultConfiguration | ++ |
| OpenShiftConfiguration | ++ |
| SystemConfiguration | +The system wide OpenShift configuration that is at /etc/express.conf | +
| SystemProperties | ++ |
| UserConfiguration | ++ |
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use com.openshift.client.configuration | +|
|---|---|
| com.openshift.client.configuration | ++ |
| +Classes in com.openshift.client.configuration used by com.openshift.client.configuration | +|
|---|---|
| AbstractOpenshiftConfiguration
+
+ + |
+|
| IOpenShiftConfiguration
+
+ + |
+|
| SystemConfiguration
+
+ + The system wide OpenShift configuration that is at /etc/express.conf |
+|
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
|
+Interfaces
+
+ +IApplication + +IApplicationPortForwarding + +IDomain + +IEnvironmentVariable + +IField + +IGear + +IGearGroup + +IGearProfile + +IHttpClient + +IOpenShiftConnection + +IOpenShiftResource + +IOpenShiftSSHKey + +ISeverity + +ISSHPublicKey + +IUser |
+
|
+Classes
+
+ +ApplicationBuilder + +Message + +Messages + +OpenShiftConnectionFactory + +SSHKeyPair + +SSHPublicKey |
+
|
+Enums
+
+ +ApplicationScale + +GearState + +HttpMethod + +SSHKeyType |
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Interface Summary | +|
|---|---|
| IApplication | ++ |
| IApplicationPortForwarding | ++ |
| IDomain | ++ |
| IEnvironmentVariable | ++ |
| IField | ++ |
| IGear | ++ |
| IGearGroup | ++ |
| IGearProfile | ++ |
| IHttpClient | ++ |
| IOpenShiftConnection | ++ |
| IOpenShiftResource | ++ |
| IOpenShiftSSHKey | ++ |
| ISeverity | ++ |
| ISSHPublicKey | ++ |
| IUser | ++ |
+ +
| +Class Summary | +|
|---|---|
| ApplicationBuilder | ++ |
| Message | ++ |
| Messages | ++ |
| OpenShiftConnectionFactory | +Connection Factory, used to establish a connection and retrieve a user. | +
| SSHKeyPair | ++ |
| SSHPublicKey | ++ |
+ +
| +Enum Summary | +|
|---|---|
| ApplicationScale | +Enum to indicate the support for scalability when creating a new application | +
| GearState | ++ |
| HttpMethod | ++ |
| SSHKeyType | ++ |
+ +
| +Exception Summary | +|
|---|---|
| InvalidCredentialsOpenShiftException | ++ |
| InvalidNameOpenShiftException | ++ |
| NotFoundOpenShiftException | ++ |
| OpenShiftApplicationNotAvailableException | ++ |
| OpenShiftEndpointException | ++ |
| OpenShiftException | ++ |
| OpenShiftRequestException | ++ |
| OpenShiftSSHKeyException | ++ |
| OpenShiftSSHOperationException | +OpenShift Exception that encapsulates an underlying exception that occurred during an SSH operation. | +
| OpenShiftTimeoutException | ++ |
| OpenShiftUnknonwSSHKeyTypeException | ++ |
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use com.openshift.client | +|
|---|---|
| com.openshift.client | ++ |
| com.openshift.client.cartridge | ++ |
| com.openshift.client.cartridge.selector | ++ |
| com.openshift.client.configuration | ++ |
| com.openshift.internal.client | ++ |
| com.openshift.internal.client.cartridge | ++ |
| com.openshift.internal.client.httpclient | ++ |
| com.openshift.internal.client.response | ++ |
| com.openshift.internal.client.ssh | ++ |
| +Classes in com.openshift.client used by com.openshift.client | +|
|---|---|
| ApplicationBuilder.CartridgeHolder
+
+ + |
+|
| ApplicationBuilder.NamedCartridgeHolder
+
+ + |
+|
| ApplicationScale
+
+ + Enum to indicate the support for scalability when creating a new application |
+|
| GearState
+
+ + |
+|
| HttpMethod
+
+ + |
+|
| IApplication
+
+ + |
+|
| IApplicationPortForwarding
+
+ + |
+|
| IDomain
+
+ + |
+|
| IEnvironmentVariable
+
+ + |
+|
| IField
+
+ + |
+|
| IGear
+
+ + |
+|
| IGearGroup
+
+ + |
+|
| IGearProfile
+
+ + |
+|
| IHttpClient
+
+ + |
+|
| IOpenShiftConnection
+
+ + |
+|
| IOpenShiftResource
+
+ + |
+|
| IOpenShiftSSHKey
+
+ + |
+|
| ISeverity
+
+ + |
+|
| ISSHPublicKey
+
+ + |
+|
| IUser
+
+ + |
+|
| Message
+
+ + |
+|
| Messages
+
+ + |
+|
| OpenShiftEndpointException
+
+ + |
+|
| OpenShiftException
+
+ + |
+|
| OpenShiftSSHOperationException
+
+ + OpenShift Exception that encapsulates an underlying exception that occurred during an SSH operation. |
+|
| OpenShiftUnknonwSSHKeyTypeException
+
+ + |
+|
| SSHKeyPair
+
+ + |
+|
| SSHKeyType
+
+ + |
+|
| +Classes in com.openshift.client used by com.openshift.client.cartridge | +|
|---|---|
| IApplication
+
+ + |
+|
| IOpenShiftResource
+
+ + |
+|
| OpenShiftException
+
+ + |
+|
| +Classes in com.openshift.client used by com.openshift.client.cartridge.selector | +|
|---|---|
| IApplication
+
+ + |
+|
| IUser
+
+ + |
+|
| +Classes in com.openshift.client used by com.openshift.client.configuration | +|
|---|---|
| OpenShiftException
+
+ + |
+|
| +Classes in com.openshift.client used by com.openshift.internal.client | +|
|---|---|
| ApplicationScale
+
+ + Enum to indicate the support for scalability when creating a new application |
+|
| GearState
+
+ + |
+|
| IApplication
+
+ + |
+|
| IApplicationPortForwarding
+
+ + |
+|
| IDomain
+
+ + |
+|
| IEnvironmentVariable
+
+ + |
+|
| IField
+
+ + |
+|
| IGear
+
+ + |
+|
| IGearGroup
+
+ + |
+|
| IGearProfile
+
+ + |
+|
| IHttpClient
+
+ + |
+|
| IOpenShiftConnection
+
+ + |
+|
| IOpenShiftResource
+
+ + |
+|
| IOpenShiftSSHKey
+
+ + |
+|
| ISeverity
+
+ + |
+|
| ISSHPublicKey
+
+ + |
+|
| IUser
+
+ + |
+|
| Messages
+
+ + |
+|
| OpenShiftException
+
+ + |
+|
| OpenShiftSSHOperationException
+
+ + OpenShift Exception that encapsulates an underlying exception that occurred during an SSH operation. |
+|
| OpenShiftUnknonwSSHKeyTypeException
+
+ + |
+|
| SSHKeyType
+
+ + |
+|
| +Classes in com.openshift.client used by com.openshift.internal.client.cartridge | +|
|---|---|
| IApplication
+
+ + |
+|
| IDomain
+
+ + |
+|
| IOpenShiftConnection
+
+ + |
+|
| +Classes in com.openshift.client used by com.openshift.internal.client.httpclient | +|
|---|---|
| HttpMethod
+
+ + |
+|
| IHttpClient
+
+ + |
+|
| +Classes in com.openshift.client used by com.openshift.internal.client.response | +|
|---|---|
| ApplicationScale
+
+ + Enum to indicate the support for scalability when creating a new application |
+|
| HttpMethod
+
+ + |
+|
| IGearProfile
+
+ + |
+|
| Messages
+
+ + |
+|
| OpenShiftException
+
+ + |
+|
| OpenShiftRequestException
+
+ + |
+|
| +Classes in com.openshift.client used by com.openshift.internal.client.ssh | +|
|---|---|
| IApplication
+
+ + |
+|
| IApplicationPortForwarding
+
+ + |
+|
| ISSHPublicKey
+
+ + |
+|
| OpenShiftSSHOperationException
+
+ + OpenShift Exception that encapsulates an underlying exception that occurred during an SSH operation. |
+|
| OpenShiftUnknonwSSHKeyTypeException
+
+ + |
+|
| SSHKeyType
+
+ + |
+|
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.client.utils.Base64Coder +
public class Base64Coder
+A utility class that offers methods to encode and decode strings from and to + base64 +
+ +
+
| +Method Summary | +|
|---|---|
+static String |
+decode(byte[] encoded)
+
++ |
+
+static String |
+decode(String encoded)
+
++ Decodes the given base64 encoded string. |
+
+static String |
+encode(byte[] unencoded)
+
++ Encodes the given byte array to a base64 encoded String |
+
+static String |
+encode(String unencoded)
+
++ Encodes the given string to a base64 encoded string. |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Method Detail | +
|---|
+public static String encode(byte[] unencoded)+
+
unencoded - the array of unencoded bytes that shall get encoded
++public static String encode(String unencoded)+
null if the given string is null.
++
unencoded -
++public static String decode(byte[] encoded)+
+public static String decode(String encoded)+
null if the
+ given string is null.
++
encoded - the base64 encoded string
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.client.utils.HostUtils +
public class HostUtils
+
| +Constructor Summary | +|
|---|---|
HostUtils()
+
++ |
+|
| +Method Summary | +|
|---|---|
+static boolean |
+canResolv(String urlString)
+
++ |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public HostUtils()+
| +Method Detail | +
|---|
+public static boolean canResolv(String urlString) + throws MalformedURLException+
MalformedURLException
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.client.utils.OpenShiftResourceUtils +
public class OpenShiftResourceUtils
+
| +Constructor Summary | +|
|---|---|
OpenShiftResourceUtils()
+
++ |
+|
| +Method Summary | +|
|---|---|
+static List<String> |
+toNames(ICartridge... cartridges)
+
++ |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public OpenShiftResourceUtils()+
| +Method Detail | +
|---|
+public static List<String> toNames(ICartridge... cartridges)+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.client.utils.RFC822DateUtils +
public class RFC822DateUtils
+
| +Constructor Summary | +|
|---|---|
RFC822DateUtils()
+
++ |
+|
| +Method Summary | +|
|---|---|
+static Date |
+getDate(String rfc822DateString)
+
++ Returns a date instance for a given timestamp string that complies to the + RFC 822 standard |
+
+static String |
+getString(Date date)
+
++ |
+
+static Date |
+safeGetDate(String rfc822DateString)
+
++ Returns a date instance for a given timestamp string that complies to the + RFC 822 standard. |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public RFC822DateUtils()+
| +Method Detail | +
|---|
+public static Date getDate(String rfc822DateString) + throws DatatypeConfigurationException+
+
rfc822DateString -
+DatatypeConfigurationException+public static Date safeGetDate(String rfc822DateString)+
null is returned an
+ no exception is thrown.
++
rfc822DateString -
++public static String getString(Date date) + throws DatatypeConfigurationException+
DatatypeConfigurationException
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
|
+Classes
+
+ +Base64Coder + +HostUtils + +OpenShiftResourceUtils + +RFC822DateUtils |
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Class Summary | +|
|---|---|
| Base64Coder | +A utility class that offers methods to encode and decode strings from and to + base64 | +
| HostUtils | ++ |
| OpenShiftResourceUtils | ++ |
| RFC822DateUtils | ++ |
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.AbstractOpenShiftResource +
com.openshift.internal.client.APIResource +
public class APIResource
+
| +Nested Class Summary | +
|---|
| Nested classes/interfaces inherited from class com.openshift.internal.client.AbstractOpenShiftResource | +
|---|
AbstractOpenShiftResource.Parameters, AbstractOpenShiftResource.ServiceRequest |
+
| +Constructor Summary | +|
|---|---|
+protected |
+APIResource(String login,
+ String password,
+ IRestService service,
+ Map<String,Link> links)
+
++ |
+
| +Method Summary | +|
|---|---|
+ IDomain |
+createDomain(String id)
+
++ |
+
+ void |
+disconnect()
+
++ |
+
+ IDomain |
+getDefaultDomain()
+
++ |
+
+ IDomain |
+getDomain(String id)
+
++ |
+
+ List<IDomain> |
+getDomains()
+
++ Returns the domains associated with the current OpenShift connection. |
+
+ List<IEmbeddableCartridge> |
+getEmbeddableCartridges()
+
++ Returns the available embeddable cartridges associated with the current + OpenShift connection. |
+
+ ExecutorService |
+getExecutorService()
+
++ Returns the executor service instance that's available in this + connection. |
+
+protected String |
+getLogin()
+
++ |
+
+protected String |
+getPassword()
+
++ |
+
+ String |
+getServer()
+
++ Returns the server this connection is bound to. |
+
+ List<IStandaloneCartridge> |
+getStandaloneCartridges()
+
++ Returns the available standalone cartridges associated with the current + OpenShift connection. |
+
+ IUser |
+getUser()
+
++ Returns the user associated with the current OpenShift connection. |
+
+protected boolean |
+hasDomain(String name)
+
++ |
+
+ void |
+refresh()
+
++ Refresh the resource and its list of children resources that were + previously loaded |
+
+protected void |
+removeDomain(IDomain domain)
+
++ Called after a domain has been destroyed |
+
+ void |
+setEnableSSLCertChecks(boolean doSSLChecks)
+
++ Sets flag for enabling SSL certificate checks (i.e. |
+
+ void |
+setProxyHost(String proxyHost)
+
++ Sets the HTTP proxy hostname |
+
+ void |
+setProxyPort(String proxyPort)
+
++ Sets the HTTP proxy port |
+
+ void |
+setProxySet(boolean proxySet)
+
++ Sets flag for using an HTTP proxy |
+
| Methods inherited from class com.openshift.internal.client.AbstractOpenShiftResource | +
|---|
getCreationLog, getLink, getMessages, hasCreationLog, setLinks |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+protected APIResource(String login, + String password, + IRestService service, + Map<String,Link> links)+
| +Method Detail | +
|---|
+protected final String getLogin()+
+protected final String getPassword()+
+public String getServer()+
IOpenShiftConnection+
getServer in interface IOpenShiftConnection+public void setEnableSSLCertChecks(boolean doSSLChecks)+
IOpenShiftConnection+
setEnableSSLCertChecks in interface IOpenShiftConnection+public void setProxySet(boolean proxySet)+
IOpenShiftConnection+
setProxySet in interface IOpenShiftConnection+public void setProxyHost(String proxyHost)+
IOpenShiftConnection+
setProxyHost in interface IOpenShiftConnection+public void setProxyPort(String proxyPort)+
IOpenShiftConnection+
setProxyPort in interface IOpenShiftConnection+public IUser getUser() + throws OpenShiftException+
IOpenShiftConnection+
getUser in interface IOpenShiftConnectionOpenShiftException+public List<IDomain> getDomains() + throws OpenShiftException+
IOpenShiftConnection+
getDomains in interface IOpenShiftConnectionOpenShiftException+public IDomain getDomain(String id) + throws OpenShiftException+
OpenShiftException+public IDomain getDefaultDomain()+
+public IDomain createDomain(String id) + throws OpenShiftException+
OpenShiftException+public List<IStandaloneCartridge> getStandaloneCartridges() + throws OpenShiftException+
IOpenShiftConnection+
getStandaloneCartridges in interface IOpenShiftConnectionOpenShiftException+public List<IEmbeddableCartridge> getEmbeddableCartridges() + throws OpenShiftException+
IOpenShiftConnection+
getEmbeddableCartridges in interface IOpenShiftConnectionOpenShiftException+public void refresh() + throws OpenShiftException+
IOpenShiftResource+
refresh in interface IOpenShiftResourceOpenShiftException+protected void removeDomain(IDomain domain)+
+
domain - the domain to remove from the API's domains list.+protected boolean hasDomain(String name) + throws OpenShiftException+
OpenShiftException+public ExecutorService getExecutorService()+
IOpenShiftConnection+
getExecutorService in interface IOpenShiftConnectionExecutorService,
+Executors+public void disconnect()+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.AbstractOpenShiftConnectionFactory +
public abstract class AbstractOpenShiftConnectionFactory
+Connection Factory, used to establish a connection and retrieve a user. +
+ +
+
| +Constructor Summary | +|
|---|---|
AbstractOpenShiftConnectionFactory()
+
++ |
+|
| +Method Summary | +|
|---|---|
+protected IOpenShiftConnection |
+getConnection(IRestService service,
+ String login,
+ String password)
+
++ |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public AbstractOpenShiftConnectionFactory()+
| +Method Detail | +
|---|
+protected IOpenShiftConnection getConnection(IRestService service, + String login, + String password) + throws IOException, + OpenShiftException+
IOException
+OpenShiftException
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.AbstractOpenShiftResource.Parameters +
protected static class AbstractOpenShiftResource.Parameters
+
| +Constructor Summary | +|
|---|---|
+protected |
+AbstractOpenShiftResource.Parameters()
+
++ |
+
| +Method Summary | +|
|---|---|
+protected AbstractOpenShiftResource.Parameters |
+add(Parameter parameter)
+
++ |
+
+protected AbstractOpenShiftResource.Parameters |
+add(String name,
+ String value)
+
++ |
+
+protected AbstractOpenShiftResource.Parameters |
+addCartridge(IEmbeddableCartridge embeddable)
+
++ |
+
+protected AbstractOpenShiftResource.Parameters |
+addCartridges(IStandaloneCartridge standalone,
+ IEmbeddableCartridge[] embeddables)
+
++ |
+
+protected AbstractOpenShiftResource.Parameters |
+addEnvironmentVariables(Map<String,String> environmentVariables)
+
++ |
+
+protected AbstractOpenShiftResource.Parameters |
+gearProfile(IGearProfile gearProfile)
+
++ |
+
+protected AbstractOpenShiftResource.Parameters |
+include(String includedResource)
+
++ |
+
+protected AbstractOpenShiftResource.Parameters |
+scale(ApplicationScale scale)
+
++ |
+
+protected Parameter[] |
+toArray()
+
++ |
+
+protected List<Parameter> |
+toList()
+
++ |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+protected AbstractOpenShiftResource.Parameters()+
| +Method Detail | +
|---|
+protected AbstractOpenShiftResource.Parameters addCartridge(IEmbeddableCartridge embeddable)+
+protected AbstractOpenShiftResource.Parameters addCartridges(IStandaloneCartridge standalone, + IEmbeddableCartridge[] embeddables)+
+protected AbstractOpenShiftResource.Parameters addEnvironmentVariables(Map<String,String> environmentVariables)+
+protected AbstractOpenShiftResource.Parameters scale(ApplicationScale scale)+
+protected AbstractOpenShiftResource.Parameters gearProfile(IGearProfile gearProfile)+
+protected AbstractOpenShiftResource.Parameters include(String includedResource)+
+protected AbstractOpenShiftResource.Parameters add(String name, + String value)+
+protected AbstractOpenShiftResource.Parameters add(Parameter parameter)+
+protected Parameter[] toArray()+
+protected List<Parameter> toList()+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.AbstractOpenShiftResource.ServiceRequest +
protected class AbstractOpenShiftResource.ServiceRequest
+
| +Field Summary | +|
|---|---|
+protected String |
+linkName
+
++ |
+
| +Constructor Summary | +|
|---|---|
+protected |
+AbstractOpenShiftResource.ServiceRequest(String linkName)
+
++ |
+
| +Method Summary | +||
|---|---|---|
+protected
+ |
+execute(int timeout,
+ IMediaType mediaType,
+ Parameter... parameters)
+
++ |
+|
+protected
+ |
+execute(int timeout,
+ List<Parameter> urlParameter,
+ IMediaType mediaType,
+ Parameter... parameters)
+
++ |
+|
+protected
+ |
+execute(int timeout,
+ List<Parameter> urlParameter,
+ Parameter... parameters)
+
++ |
+|
+protected
+ |
+execute(int timeout,
+ Parameter... parameters)
+
++ |
+|
+protected
+ |
+execute(List<Parameter> urlParameter,
+ Parameter... parameters)
+
++ |
+|
+protected
+ |
+execute(Parameter... parameters)
+
++ |
+|
+protected
+ |
+getData(RestResponse response)
+
++ |
+|
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Field Detail | +
|---|
+protected final String linkName+
| +Constructor Detail | +
|---|
+protected AbstractOpenShiftResource.ServiceRequest(String linkName)+
| +Method Detail | +
|---|
+protected <DTO> DTO execute(Parameter... parameters) + throws OpenShiftException+
OpenShiftException+protected <DTO> DTO execute(int timeout, + Parameter... parameters) + throws OpenShiftException+
OpenShiftException+protected <DTO> DTO execute(int timeout, + IMediaType mediaType, + Parameter... parameters) + throws OpenShiftException+
OpenShiftException+protected <DTO> DTO execute(List<Parameter> urlParameter, + Parameter... parameters) + throws OpenShiftException+
OpenShiftException+protected <DTO> DTO execute(int timeout, + List<Parameter> urlParameter, + Parameter... parameters) + throws OpenShiftException+
OpenShiftException+protected <DTO> DTO execute(int timeout, + List<Parameter> urlParameter, + IMediaType mediaType, + Parameter... parameters) + throws OpenShiftException+
OpenShiftException+protected <DTO> DTO getData(RestResponse response)+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.AbstractOpenShiftResource +
public abstract class AbstractOpenShiftResource
+The Class AbstractOpenShiftResource. +
+ +
+
| +Nested Class Summary | +|
|---|---|
+protected static class |
+AbstractOpenShiftResource.Parameters
+
++ |
+
+protected class |
+AbstractOpenShiftResource.ServiceRequest
+
++ |
+
| +Constructor Summary | +|
|---|---|
+protected |
+AbstractOpenShiftResource(IRestService service)
+
++ Instantiates a new abstract open shift resource. |
+
+protected |
+AbstractOpenShiftResource(IRestService service,
+ Map<String,Link> links,
+ Messages messages)
+
++ Instantiates a new abstract open shift resource. |
+
| +Method Summary | +|
|---|---|
+ String |
+getCreationLog()
+
++ Returns the log that was created when the resource was created. |
+
+protected Link |
+getLink(String linkName)
+
++ Gets the link for the given name. |
+
+ Messages |
+getMessages()
+
++ Returns all the (creation log) messages. |
+
+ boolean |
+hasCreationLog()
+
++ Returns + true if there is log about the creation of this resource. |
+
+protected void |
+setLinks(Map<String,Link> links)
+
++ |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| Methods inherited from interface com.openshift.client.IOpenShiftResource | +
|---|
refresh |
+
| +Constructor Detail | +
|---|
+protected AbstractOpenShiftResource(IRestService service)+
+
service - the service+protected AbstractOpenShiftResource(IRestService service, + Map<String,Link> links, + Messages messages)+
+
service - the servicelinks - the links| +Method Detail | +
|---|
+protected void setLinks(Map<String,Link> links)+
+protected Link getLink(String linkName) + throws OpenShiftException+
+ This method is protected for testing purposes only. +
+
linkName - the name of the link that shall get retrieved
+OpenShiftException - thrown if no link with the given name exists+public boolean hasCreationLog()+
IOpenShiftResourcetrue if there is log about the creation of this resource.
+ Creation logs are only available at creation time. So resources that were retrieved
+ while they already existed wont have a creation log.
+
+
+- Specified by:
hasCreationLog in interface IOpenShiftResource
+
+
+
+- Returns:
- true if there's cretion log for this resource
+
++public String getCreationLog()+
IOpenShiftResource+
getCreationLog in interface IOpenShiftResource+public Messages getMessages()+
IOpenShiftResource+
getMessages in interface IOpenShiftResourceIOpenShiftResource.getCreationLog()
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | ++DETAIL: ENUM CONSTANTS | FIELD | METHOD | +|||||||||
+java.lang.Object ++java.lang.Enum<ApplicationResource.SshStreams> +
com.openshift.internal.client.ApplicationResource.SshStreams +
protected static enum ApplicationResource.SshStreams
+
| +Enum Constant Summary | +|
|---|---|
EXT_INPUT
+
++ |
+|
INPUT
+
++ |
+|
| +Method Summary | +|
|---|---|
+protected abstract InputStream |
+getInputStream(com.jcraft.jsch.Channel channel)
+
++ |
+
+ List<String> |
+getLines(com.jcraft.jsch.Channel channel)
+
++ |
+
+static ApplicationResource.SshStreams |
+valueOf(String name)
+
++ Returns the enum constant of this type with the specified name. |
+
+static ApplicationResource.SshStreams[] |
+values()
+
++ Returns an array containing the constants of this enum type, in +the order they are declared. |
+
| Methods inherited from class java.lang.Enum | +
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
+
| Methods inherited from class java.lang.Object | +
|---|
getClass, notify, notifyAll, wait, wait, wait |
+
| +Enum Constant Detail | +
|---|
+public static final ApplicationResource.SshStreams EXT_INPUT+
+public static final ApplicationResource.SshStreams INPUT+
| +Method Detail | +
|---|
+public static ApplicationResource.SshStreams[] values()+
+for (ApplicationResource.SshStreams c : ApplicationResource.SshStreams.values()) + System.out.println(c); ++
+
+public static ApplicationResource.SshStreams valueOf(String name)+
+
name - the name of the enum constant to be returned.
+IllegalArgumentException - if this enum type has no constant
+with the specified name
+NullPointerException - if the argument is null+public List<String> getLines(com.jcraft.jsch.Channel channel) + throws IOException+
IOException+protected abstract InputStream getInputStream(com.jcraft.jsch.Channel channel) + throws IOException+
IOException
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | ++DETAIL: ENUM CONSTANTS | FIELD | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.AbstractOpenShiftResource +
com.openshift.internal.client.ApplicationResource +
public class ApplicationResource
+The ApplicationResource object is an implementation of com.openshift.client.IApplication, and provides + a runtime model for the real application that resides on the OpenShift platform being accessed. +
+ +
+
| +Nested Class Summary | +|
|---|---|
+protected static class |
+ApplicationResource.SshStreams
+
++ |
+
| Nested classes/interfaces inherited from class com.openshift.internal.client.AbstractOpenShiftResource | +
|---|
AbstractOpenShiftResource.Parameters, AbstractOpenShiftResource.ServiceRequest |
+
| +Constructor Summary | +|
|---|---|
+protected |
+ApplicationResource(ApplicationResourceDTO dto,
+ DomainResource domain)
+
++ |
+
+protected |
+ApplicationResource(String name,
+ String uuid,
+ String creationTime,
+ Messages messages,
+ String applicationUrl,
+ String sshUrl,
+ String gitUrl,
+ String initialGitUrl,
+ IGearProfile gearProfile,
+ ApplicationScale scale,
+ List<String> aliases,
+ Map<String,CartridgeResourceDTO> cartridgesByName,
+ Map<String,Link> links,
+ DomainResource domain)
+
++ Instantiates a new application. |
+
| +Method Summary | +|
|---|---|
+ void |
+addAlias(String alias)
+
++ Add application alias |
+
+ IEmbeddedCartridge |
+addEmbeddableCartridge(IEmbeddableCartridge cartridge)
+
++ Adds the given embedded cartridge to this application. |
+
+ List<IEmbeddedCartridge> |
+addEmbeddableCartridges(Collection<IEmbeddableCartridge> cartridges)
+
++ Adds all given embedded cartridges from this app, given their names. |
+
+ IEnvironmentVariable |
+addEnvironmentVariable(String name,
+ String value)
+
++ Adds an environment variable to this application. |
+
+ Map<String,IEnvironmentVariable> |
+addEnvironmentVariables(Map<String,String> environmentVariables)
+
++ Adds a map of environment variables to the application |
+
+ boolean |
+canGetEnvironmentVariables()
+
++ Used to determine if environment variables exist and are available to be retrieved |
+
+protected boolean |
+canResolv(String url)
+
++ |
+
+ boolean |
+canUpdateEnvironmentVariables()
+
++ Used to determine if the current instance is able to update environment variables. |
+
+ void |
+destroy()
+
++ Destroys this application (and removes it from the list of available + applications) |
+
+ boolean |
+equals(Object object)
+
++ |
+
+ List<String> |
+getAliases()
+
++ Retrieve all application aliases |
+
+ ApplicationScale |
+getApplicationScale()
+
++ Returns true if scaling is enabled on this application (only set at + creation time). |
+
+ String |
+getApplicationUrl()
+
++ Returns the url at which this application may be reached at. |
+
+ IStandaloneCartridge |
+getCartridge()
+
++ Returns the cartridge (application type) that this app is running on. |
+
+protected ICartridge |
+getCartridge(String cartridgeName)
+
++ Returns the main (standalone) cartrige or one of the embedded cartridges + whose name matches the given param. |
+
+protected IOpenShiftConnection |
+getConnection()
+
++ |
+
+ Date |
+getCreationTime()
+
++ Returns the timestamp at which this app was created. |
+
+ void |
+getDescriptor()
+
++ |
+
+ IDomain |
+getDomain()
+
++ Get the domain of the application. |
+
+ IEmbeddedCartridge |
+getEmbeddedCartridge(IEmbeddableCartridge cartridge)
+
++ Returns the embedded cartridge in this application. |
+
+ IEmbeddedCartridge |
+getEmbeddedCartridge(String cartridgeName)
+
++ Returns the embedded cartridge given its name. |
+
+ List<IEmbeddedCartridge> |
+getEmbeddedCartridges()
+
++ Returns all embedded cartridges. |
+
+ List<String> |
+getEnvironmentProperties()
+
++ Retrieves the list of environment properties. |
+
+ IEnvironmentVariable |
+getEnvironmentVariable(String name)
+
++ Return the environment variable for the specified name |
+
+ Map<String,IEnvironmentVariable> |
+getEnvironmentVariables()
+
++ Retrieves the map of environment variables |
+
+ List<IApplicationPortForwarding> |
+getForwardablePorts()
+
++ Returns the list of forwardable ports on OpenShift for this application. |
+
+ Collection<IGearGroup> |
+getGearGroups()
+
++ Returns the gear groups for this application. |
+
+ IGearProfile |
+getGearProfile()
+
++ Returns true if scaling is enabled on this application (only set at + creation time). |
+
+ String |
+getGitUrl()
+
++ Returns the uri at which the git repository of this application may be + reached at. |
+
+ String |
+getInitialGitUrl()
+
++ Returns the git url that the application will get its initial code and configuration from. |
+
+ String |
+getName()
+
++ Returns the name of this application. |
+
+protected Map<String,IEnvironmentVariable> |
+getOrLoadEnvironmentVariables()
+
++ |
+
+ com.jcraft.jsch.Session |
+getSSHSession()
+
++ Returns the SSH session that this application uses to connect to + OpenShift. |
+
+ String |
+getSshUrl()
+
++ Returns the url to use to connect with ssh. |
+
+ String |
+getUUID()
+
++ Returns the uuid of this application. |
+
+ boolean |
+hasAlias(String name)
+
++ |
+
+ boolean |
+hasEmbeddedCartridge(IEmbeddableCartridge cartridge)
+
++ Returns true if this application has an embedded cartridge. |
+
+ boolean |
+hasEmbeddedCartridge(String cartridgeName)
+
++ Returns true if this application has an embedded cartridge. |
+
+ boolean |
+hasEnvironmentVariable(String name)
+
++ Checks if the environment variable is present in the application. |
+
+ int |
+hashCode()
+
++ |
+
+ boolean |
+hasSSHSession()
+
++ Returns true if the application was already provided with an SSH session, + and this session is still valid (connected). |
+
+ boolean |
+isPortFowardingStarted()
+
++ Returns true if the port-forwarding has been started, false otherwise. |
+
+ void |
+refresh()
+
++ Refresh the application but reloading its content from OpenShift. |
+
+protected void |
+refreshEmbeddedCartridges()
+
++ Queries the backend to list the embedded cartridges and adds the new ones + & update the ones that are already present |
+
+ List<IApplicationPortForwarding> |
+refreshForwardablePorts()
+
++ Refreshes the list of port-forwarding. |
+
+ void |
+removeAlias(String alias)
+
++ Remove application alias |
+
+ void |
+removeEmbeddedCartridge(IEmbeddableCartridge cartridge)
+
++ Removes the given embedded cartridge that is equal to the given + embeddable cartridge. |
+
+protected void |
+removeEmbeddedCartridge(IEmbeddedCartridge embeddedCartridge)
+
++ "callback" from the embeddedCartridge once it has been destroyed. |
+
+ void |
+removeEmbeddedCartridges(Collection<IEmbeddableCartridge> cartridges)
+
++ Removes the given embedded cartridges in this application that are equal to the + given IEmbeddableCartridge. |
+
+ void |
+removeEnvironmentVariable(IEnvironmentVariable environmentVariable)
+
++ Removes the environment variables with the given name from this application. |
+
+ void |
+removeEnvironmentVariable(String targetName)
+
++ Removes the environment variables with the given name from this application. |
+
+ void |
+restart()
+
++ Restarts this application. |
+
+ void |
+scaleDown()
+
++ Scale down application |
+
+ void |
+scaleUp()
+
++ Scale up application |
+
+ void |
+setSSHSession(com.jcraft.jsch.Session session)
+
++ Sets the SSH session that this application will use to connect to + OpenShift to perform some operations. |
+
+protected List<String> |
+sshExecCmd(String command,
+ ApplicationResource.SshStreams sshStream)
+
++ |
+
+ void |
+start()
+
++ Starts this application. |
+
+ List<IApplicationPortForwarding> |
+startPortForwarding()
+
++ |
+
+ void |
+stop()
+
++ Stops this application. |
+
+ void |
+stop(boolean force)
+
++ Stops this application |
+
+ List<IApplicationPortForwarding> |
+stopPortForwarding()
+
++ Stop the port-forwarding for all ports. |
+
+ String |
+toString()
+
++ |
+
+protected void |
+update(ApplicationResourceDTO dto)
+
++ |
+
+protected void |
+updateEnvironmentVariables()
+
++ |
+
+ boolean |
+waitForAccessible(long timeout)
+
++ Waits for this application to become accessible on its public url. |
+
+ Future<Boolean> |
+waitForAccessibleAsync(long timeout)
+
++ Returns a Future that the caller can use to wait for the application to + become accessible on its public url. |
+
| Methods inherited from class com.openshift.internal.client.AbstractOpenShiftResource | +
|---|
getCreationLog, getLink, getMessages, hasCreationLog, setLinks |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
+
| Methods inherited from interface com.openshift.client.IOpenShiftResource | +
|---|
getCreationLog, getMessages, hasCreationLog |
+
| +Constructor Detail | +
|---|
+protected ApplicationResource(ApplicationResourceDTO dto, + DomainResource domain)+
+protected ApplicationResource(String name, + String uuid, + String creationTime, + Messages messages, + String applicationUrl, + String sshUrl, + String gitUrl, + String initialGitUrl, + IGearProfile gearProfile, + ApplicationScale scale, + List<String> aliases, + Map<String,CartridgeResourceDTO> cartridgesByName, + Map<String,Link> links, + DomainResource domain)+
+
name - the nameuuid - the uuidcreationTime - the creation timemessages - the creation logapplicationUrl - the application urlgitUrl - the git urlsshUrl - the ssh urlcartridge - the cartridge (type/framework)aliases - the aliaseslinks - the linksdomain - the domain this application belongs to
+DatatypeConfigurationException| +Method Detail | +
|---|
+public String getName()+
IApplication+
getName in interface IApplication+public ApplicationScale getApplicationScale()+
IApplication+
getApplicationScale in interface IApplication+public IGearProfile getGearProfile()+
IApplication+
getGearProfile in interface IApplication+public String getUUID()+
IApplication+
getUUID in interface IApplication+public IStandaloneCartridge getCartridge()+
IApplication+
getCartridge in interface IApplication+protected ICartridge getCartridge(String cartridgeName)+
+
cartridgeName - the name of the cartridge to look for.
++public Date getCreationTime()+
IApplication+
getCreationTime in interface IApplication+public IDomain getDomain()+
IApplication+
getDomain in interface IApplication+public void destroy() + throws OpenShiftException+
IApplication+
destroy in interface IApplicationOpenShiftExceptionIUser#getApplications()+public void start() + throws OpenShiftException+
IApplication+
start in interface IApplicationOpenShiftException+public void restart() + throws OpenShiftException+
IApplication+
restart in interface IApplicationOpenShiftException+public void stop() + throws OpenShiftException+
IApplication+
stop in interface IApplicationOpenShiftException+public void stop(boolean force) + throws OpenShiftException+
IApplication+
stop in interface IApplicationforce - : true to force stop, false otherwise
+OpenShiftException+public void getDescriptor()+
+public void scaleDown() + throws OpenShiftException+
IApplication+
scaleDown in interface IApplicationOpenShiftException+public void scaleUp() + throws OpenShiftException+
IApplication+
scaleUp in interface IApplicationOpenShiftException+public void addAlias(String alias) + throws OpenShiftException+
IApplication+
addAlias in interface IApplicationOpenShiftException+public List<String> getAliases()+
IApplication+
getAliases in interface IApplication+public boolean hasAlias(String name)+
hasAlias in interface IApplication+public void removeAlias(String alias) + throws OpenShiftException+
IApplication+
removeAlias in interface IApplicationOpenShiftException+public String getGitUrl()+
IApplication+
getGitUrl in interface IApplication+public String getInitialGitUrl()+
IApplication+
getInitialGitUrl in interface IApplication+public String getSshUrl()+
IApplication+
getSshUrl in interface IApplication+public String getApplicationUrl()+
IApplication+
getApplicationUrl in interface IApplication+public IEmbeddedCartridge addEmbeddableCartridge(IEmbeddableCartridge cartridge) + throws OpenShiftException+
+
addEmbeddableCartridge in interface IApplicationcartridge - the embeddable cartridge that shall be added to this
+ application
+OpenShiftException+public List<IEmbeddedCartridge> addEmbeddableCartridges(Collection<IEmbeddableCartridge> cartridges) + throws OpenShiftException+
IApplication+
addEmbeddableCartridges in interface IApplicationOpenShiftException#addEmbeddableCartridge(IEmbeddedCartridge),
+#removeEmbeddedCartridge(IEmbeddedCartridge)+protected void removeEmbeddedCartridge(IEmbeddedCartridge embeddedCartridge) + throws OpenShiftException+
+
embeddedCartridge -
+OpenShiftException+protected void refreshEmbeddedCartridges() + throws OpenShiftException+
+
OpenShiftException+public List<IEmbeddedCartridge> getEmbeddedCartridges() + throws OpenShiftException+
IApplication+
getEmbeddedCartridges in interface IApplicationOpenShiftExceptionIEmbeddedCartridge,
+#addEmbeddableCartridge(IEmbeddedCartridge),
+#removeEmbeddedCartridge(IEmbeddedCartridge)+public boolean hasEmbeddedCartridge(String cartridgeName) + throws OpenShiftException+
IApplicationtrue if this application has an embedded cartridge.
+ Returns false otherwise.
++
hasEmbeddedCartridge in interface IApplicationOpenShiftExceptionIEmbeddedCartridge,
+#addEmbeddableCartridge(IEmbeddedCartridge),
+#removeEmbeddedCartridge(IEmbeddedCartridge)+public boolean hasEmbeddedCartridge(IEmbeddableCartridge cartridge) + throws OpenShiftException+
IApplicationtrue if this application has an embedded cartridge.
+ Returns false otherwise.
++
hasEmbeddedCartridge in interface IApplicationOpenShiftExceptionIEmbeddedCartridge,
+#addEmbeddableCartridge(IEmbeddedCartridge),
+#removeEmbeddedCartridge(IEmbeddedCartridge)+public IEmbeddedCartridge getEmbeddedCartridge(IEmbeddableCartridge cartridge) + throws OpenShiftException+
IApplicationnull if none was
+ found.
++
getEmbeddedCartridge in interface IApplicationOpenShiftException+public IEmbeddedCartridge getEmbeddedCartridge(String cartridgeName) + throws OpenShiftException+
IApplicationnull
+ if none was found.
++
getEmbeddedCartridge in interface IApplicationOpenShiftException+public void removeEmbeddedCartridge(IEmbeddableCartridge cartridge) + throws OpenShiftException+
IApplication+
removeEmbeddedCartridge in interface IApplicationcartridge - the cartridge that shall be removed
+OpenShiftException+public void removeEmbeddedCartridges(Collection<IEmbeddableCartridge> cartridges) + throws OpenShiftException+
IApplication+
removeEmbeddedCartridges in interface IApplicationcartridges - the cartridges that shall get removed
+OpenShiftException+public Collection<IGearGroup> getGearGroups() + throws OpenShiftException+
IApplication+
getGearGroups in interface IApplicationIGearGroup for this application.
+OpenShiftException+public boolean waitForAccessible(long timeout) + throws OpenShiftException+
IApplication+
waitForAccessible in interface IApplicationOpenShiftExceptionIApplication.getApplicationUrl()+public Future<Boolean> waitForAccessibleAsync(long timeout) + throws OpenShiftException+
IApplication+
waitForAccessibleAsync in interface IApplicationOpenShiftExceptionIApplication.getApplicationUrl(),
+IApplication.waitForAccessible(long),
+IOpenShiftConnection.getExecutorService(),
+Future+protected IOpenShiftConnection getConnection()+
+protected boolean canResolv(String url) + throws MalformedURLException+
MalformedURLException+public void refresh() + throws OpenShiftException+
IApplication+
refresh in interface IApplicationrefresh in interface IOpenShiftResourceOpenShiftException+public void setSSHSession(com.jcraft.jsch.Session session)+
IApplication+
setSSHSession in interface IApplicationsession - the SSH session+public com.jcraft.jsch.Session getSSHSession()+
IApplication+
getSSHSession in interface IApplication+public boolean hasSSHSession()+
IApplication+
hasSSHSession in interface IApplication+public boolean isPortFowardingStarted() + throws OpenShiftSSHOperationException+
IApplication+
isPortFowardingStarted in interface IApplicationOpenShiftSSHOperationException+public List<IApplicationPortForwarding> refreshForwardablePorts() + throws OpenShiftSSHOperationException+
IApplication+
refreshForwardablePorts in interface IApplicationOpenShiftSSHOperationException+public List<IApplicationPortForwarding> getForwardablePorts() + throws OpenShiftSSHOperationException+
IApplication+
getForwardablePorts in interface IApplicationOpenShiftSSHOperationException+public List<String> getEnvironmentProperties() + throws OpenShiftSSHOperationException+
IApplication+
getEnvironmentProperties in interface IApplicationOpenShiftSSHOperationException+public Map<String,IEnvironmentVariable> getEnvironmentVariables() + throws OpenShiftException+
IApplication+
getEnvironmentVariables in interface IApplicationOpenShiftSSHOperationException
+OpenShiftException+protected Map<String,IEnvironmentVariable> getOrLoadEnvironmentVariables() + throws OpenShiftException+
OpenShiftException+public IEnvironmentVariable addEnvironmentVariable(String name, + String value) + throws OpenShiftException+
IApplication+
addEnvironmentVariable in interface IApplicationname - key associated with the variable to addvalue - value of the new variable
+OpenShiftSSHOperationException - - if the variable already exists
+OpenShiftException+public Map<String,IEnvironmentVariable> addEnvironmentVariables(Map<String,String> environmentVariables) + throws OpenShiftException+
IApplication+
addEnvironmentVariables in interface IApplicationenvironmentVariables - MapOpenShiftSSHOperationException
+OpenShiftException+public void removeEnvironmentVariable(String targetName)+
IApplication+
removeEnvironmentVariable in interface IApplicationtargetName - key associated with the IEnvironmentVariable to be removed+public void removeEnvironmentVariable(IEnvironmentVariable environmentVariable)+
IApplication+
removeEnvironmentVariable in interface IApplicationenvironmentVariable - IEnvironmentVariable instance which should be removed+public boolean hasEnvironmentVariable(String name) + throws OpenShiftException+
IApplication+
hasEnvironmentVariable in interface IApplicationname - Name of the environment variable
+true if the current instance has IEnvironmentVariables to return false if the current instance has no IEnvironmentVariables to return
+OpenShiftSSHOperationException
+OpenShiftException+protected void updateEnvironmentVariables() + throws OpenShiftException+
OpenShiftException+public IEnvironmentVariable getEnvironmentVariable(String name)+
IApplication+
getEnvironmentVariable in interface IApplicationname - key to be used to locate the environment variable
++public boolean canGetEnvironmentVariables()+
IApplication+
canGetEnvironmentVariables in interface IApplicationtrue if this application can list its environment variables. false if it cannot. Internally this translates to the presence of the link to list environment variables.#getEnvironmentVariablesMap(),
+IApplication.getEnvironmentVariable(String),
+LINK_LIST_ENVIRONMENT_VARIABLES+public boolean canUpdateEnvironmentVariables()+
IApplication+
canUpdateEnvironmentVariables in interface IApplicationtrue if this application can augment its environment variables.false if it cannot. IApplication.addEnvironmentVariable(String, String),
+IApplication.addEnvironmentVariables(Map),
+LINK_SET_UNSET_ENVIRONMENT_VARIABLES+protected List<String> sshExecCmd(String command, + ApplicationResource.SshStreams sshStream) + throws OpenShiftSSHOperationException+
command -
+OpenShiftSSHOperationException+public List<IApplicationPortForwarding> startPortForwarding() + throws OpenShiftSSHOperationException+
startPortForwarding in interface IApplicationOpenShiftSSHOperationException+public List<IApplicationPortForwarding> stopPortForwarding() + throws OpenShiftSSHOperationException+
IApplication+
stopPortForwarding in interface IApplicationOpenShiftSSHOperationException+protected void update(ApplicationResourceDTO dto)+
+public int hashCode()+
hashCode in class Object+public boolean equals(Object object)+
equals in class Object+public String toString()+
toString in class Object
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | ++DETAIL: ENUM CONSTANTS | FIELD | METHOD | +|||||||||
+java.lang.Object ++java.lang.Enum<CartridgeType> +
com.openshift.internal.client.CartridgeType +
public enum CartridgeType
+
| +Enum Constant Summary | +|
|---|---|
EMBEDDED
+
++ |
+|
STANDALONE
+
++ |
+|
| +Method Summary | +|
|---|---|
+static CartridgeType |
+safeValueOf(String type)
+
++ |
+
+static CartridgeType |
+valueOf(String name)
+
++ Returns the enum constant of this type with the specified name. |
+
+static CartridgeType[] |
+values()
+
++ Returns an array containing the constants of this enum type, in +the order they are declared. |
+
| Methods inherited from class java.lang.Enum | +
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
+
| Methods inherited from class java.lang.Object | +
|---|
getClass, notify, notifyAll, wait, wait, wait |
+
| +Enum Constant Detail | +
|---|
+public static final CartridgeType EMBEDDED+
+public static final CartridgeType STANDALONE+
| +Method Detail | +
|---|
+public static CartridgeType[] values()+
+for (CartridgeType c : CartridgeType.values()) + System.out.println(c); ++
+
+public static CartridgeType valueOf(String name)+
+
name - the name of the enum constant to be returned.
+IllegalArgumentException - if this enum type has no constant
+with the specified name
+NullPointerException - if the argument is null+public static CartridgeType safeValueOf(String type)+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | ++DETAIL: ENUM CONSTANTS | FIELD | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.AbstractOpenShiftResource +
com.openshift.internal.client.DomainResource +
public class DomainResource
+
| +Nested Class Summary | +
|---|
| Nested classes/interfaces inherited from class com.openshift.internal.client.AbstractOpenShiftResource | +
|---|
AbstractOpenShiftResource.Parameters, AbstractOpenShiftResource.ServiceRequest |
+
| +Constructor Summary | +|
|---|---|
+protected |
+DomainResource(DomainResourceDTO domainDTO,
+ APIResource api)
+
++ |
+
+protected |
+DomainResource(String namespace,
+ String suffix,
+ Map<String,Link> links,
+ Messages messages,
+ APIResource api)
+
++ |
+
| +Method Summary | +|
|---|---|
+ boolean |
+canCreateApplicationWithEnvironmentVariables()
+
++ Returns true if this domain can create application with environment variables. |
+
+ IApplication |
+createApplication(String name,
+ IStandaloneCartridge cartridge)
+
++ |
+
+ IApplication |
+createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale)
+
++ |
+
+ IApplication |
+createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale,
+ IGearProfile gearProfile)
+
++ |
+
+ IApplication |
+createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale,
+ IGearProfile gearProfile,
+ String initialGitUrl)
+
++ Creates a new application with the given name and the given + cartridge/framework. |
+
+ IApplication |
+createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale,
+ IGearProfile gearProfile,
+ String initialGitUrl,
+ int timeout,
+ IEmbeddableCartridge... cartridges)
+
++ Creates a new application with the given name and the given + cartridge/framework. |
+
+ IApplication |
+createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale,
+ IGearProfile gearProfile,
+ String initialGitUrl,
+ int timeout,
+ Map<String,String> environmentVariables,
+ IEmbeddableCartridge... cartridges)
+
++ Creates a new application with the given name and the given + cartridge/framework. |
+
+ IApplication |
+createApplication(String name,
+ IStandaloneCartridge cartridge,
+ ApplicationScale scale,
+ String initialGitUrl)
+
++ |
+
+ IApplication |
+createApplication(String name,
+ IStandaloneCartridge cartridge,
+ IGearProfile gearProfile)
+
++ |
+
+ IApplication |
+createApplication(String name,
+ IStandaloneCartridge cartridge,
+ IGearProfile gearProfile,
+ String initialGitUrl)
+
++ |
+
+ IApplication |
+createApplication(String name,
+ IStandaloneCartridge cartridge,
+ String initialGitUrl)
+
++ |
+
+ void |
+destroy()
+
++ Destroys the current domain. |
+
+ void |
+destroy(boolean force)
+
++ Destroys the current domain, using the 'force' parameter to also destroy the domain applications. |
+
+ boolean |
+equals(Object obj)
+
++ |
+
+ IApplication |
+getApplicationByName(String name)
+
++ Returns the application identified by the given name. |
+
+ List<IApplication> |
+getApplications()
+
++ |
+
+ List<IApplication> |
+getApplicationsByCartridge(IStandaloneCartridge cartridge)
+
++ |
+
+ List<String> |
+getAvailableCartridgeNames()
+
++ Returns the list of cartridges that can be used to create a new application. |
+
+ List<IGearProfile> |
+getAvailableGearProfiles()
+
++ Returns the list of available gear size that the user can choose when creating a new application (application's gear size can't be changed after creation). |
+
+ String |
+getId()
+
++ |
+
+protected List<IApplication> |
+getOrLoadApplications()
+
++ |
+
+ String |
+getSuffix()
+
++ The domain suffix is the host part eg: 'rhcloud.com') |
+
+ IUser |
+getUser()
+
++ Returns the currently connected user that manages this domain. |
+
+ boolean |
+hasApplicationByCartridge(IStandaloneCartridge cartridge)
+
++ |
+
+ boolean |
+hasApplicationByName(String name)
+
++ Returns true if the application identified by the given name exists in the domain. |
+
+ int |
+hashCode()
+
++ |
+
+ void |
+refresh()
+
++ Refresh the resource and its list of children resources that were + previously loaded |
+
+protected void |
+removeApplication(IApplication application)
+
++ |
+
+ void |
+rename(String id)
+
++ Rename the current domain with the given id.... |
+
+ String |
+toString()
+
++ |
+
| Methods inherited from class com.openshift.internal.client.AbstractOpenShiftResource | +
|---|
getCreationLog, getLink, getMessages, hasCreationLog, setLinks |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
+
| Methods inherited from interface com.openshift.client.IOpenShiftResource | +
|---|
getCreationLog, getMessages, hasCreationLog |
+
| +Constructor Detail | +
|---|
+protected DomainResource(String namespace, + String suffix, + Map<String,Link> links, + Messages messages, + APIResource api)+
+protected DomainResource(DomainResourceDTO domainDTO, + APIResource api)+
| +Method Detail | +
|---|
+public String getId()+
getId in interface IDomain+public String getSuffix()+
IDomain+
getSuffix in interface IDomain+public void rename(String id) + throws OpenShiftException+
IDomain+
rename in interface IDomainOpenShiftException+public IUser getUser() + throws OpenShiftException+
IDomain+
getUser in interface IDomainOpenShiftException+public IApplication createApplication(String name, + IStandaloneCartridge cartridge) + throws OpenShiftException+
createApplication in interface IDomainOpenShiftException+public IApplication createApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale) + throws OpenShiftException+
createApplication in interface IDomainOpenShiftException+public IApplication createApplication(String name, + IStandaloneCartridge cartridge, + String initialGitUrl) + throws OpenShiftException+
createApplication in interface IDomainOpenShiftException+public IApplication createApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale, + String initialGitUrl) + throws OpenShiftException+
OpenShiftException+public IApplication createApplication(String name, + IStandaloneCartridge cartridge, + IGearProfile gearProfile) + throws OpenShiftException+
createApplication in interface IDomainOpenShiftException+public IApplication createApplication(String name, + IStandaloneCartridge cartridge, + IGearProfile gearProfile, + String initialGitUrl) + throws OpenShiftException+
OpenShiftException+public IApplication createApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale, + IGearProfile gearProfile) + throws OpenShiftException+
createApplication in interface IDomainOpenShiftException+public IApplication createApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale, + IGearProfile gearProfile, + String initialGitUrl) + throws OpenShiftException+
IDomain+
createApplication in interface IDomainname - the name of the applicationcartridge - the cartridge (the application type, ex. jbossas-7,
+ jbossews-2, php.5.2, etc.scale - or null (will use default on openshift, ie, false)gearProfile - ("small", "micro", "medium", "large", "exlarge", "jumbo") or
+ null (will use default on openshift, ie, 'small')initialGitUrl - the git url for the initial template app to be used
+OpenShiftException+public IApplication createApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale, + IGearProfile gearProfile, + String initialGitUrl, + int timeout, + IEmbeddableCartridge... cartridges) + throws OpenShiftException+
IDomain+
createApplication in interface IDomainname - the name of the applicationcartridge - the cartridge (the application type, ex. jbossas-7,
+ jbossews-2, php.5.2, etc.scale - or null (will use default on openshift, ie, false)gearProfile - ("small", "micro", "medium", "large", "exlarge", "jumbo") or
+ null (will use default on openshift, ie, 'small')initialGitUrl - the git url for the initial template app to be usedtimeout - the timeout value in millisecondscartridges - the embeddable cartridges that shall get added to the new
+ application (the add-on cartridges mysql, mongodb, postgresql,
+ etc.)
+OpenShiftException+public IApplication createApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale, + IGearProfile gearProfile, + String initialGitUrl, + int timeout, + Map<String,String> environmentVariables, + IEmbeddableCartridge... cartridges) + throws OpenShiftException+
IDomain+
createApplication in interface IDomainname - the name of the applicationcartridge - the cartridge (the application type, ex. jbossas-7,
+ jbossews-2, php.5.2, etc.scale - or null (will use default on openshift, ie, false)gearProfile - ("small", "micro", "medium", "large", "exlarge", "jumbo") or
+ null (will use default on openshift, ie, 'small')initialGitUrl - the git url for the initial template app to be usedtimeout - the timeout value in millisecondsenvironmentVariables - the environment variables to be added to the applicationcartridges - the embeddable cartridges that shall get added to the new
+ application (the add-on cartridges mysql, mongodb, postgresql,
+ etc.)
+OpenShiftException+public boolean hasApplicationByName(String name) + throws OpenShiftException+
IDomain+
hasApplicationByName in interface IDomainOpenShiftException+public IApplication getApplicationByName(String name) + throws OpenShiftException+
IDomain+
getApplicationByName in interface IDomainOpenShiftException+public List<IApplication> getApplicationsByCartridge(IStandaloneCartridge cartridge) + throws OpenShiftException+
getApplicationsByCartridge in interface IDomainOpenShiftException+public boolean hasApplicationByCartridge(IStandaloneCartridge cartridge) + throws OpenShiftException+
hasApplicationByCartridge in interface IDomainOpenShiftException+public boolean canCreateApplicationWithEnvironmentVariables()+
IDomaintrue if this domain can create application with environment variables. Returns false otherwise.
++
canCreateApplicationWithEnvironmentVariables in interface IDomainIApplication.getEnvironmentVariables()+public void destroy() + throws OpenShiftException+
IDomain+
destroy in interface IDomainOpenShiftException+public void destroy(boolean force) + throws OpenShiftException+
IDomain+
destroy in interface IDomainOpenShiftException+public List<IApplication> getApplications() + throws OpenShiftException+
getApplications in interface IDomainOpenShiftException+protected List<IApplication> getOrLoadApplications() + throws OpenShiftException+
OpenShiftException+protected void removeApplication(IApplication application)+
+public List<String> getAvailableCartridgeNames() + throws OpenShiftException+
IDomain+
getAvailableCartridgeNames in interface IDomainOpenShiftException+public List<IGearProfile> getAvailableGearProfiles() + throws OpenShiftException+
IDomain+
getAvailableGearProfiles in interface IDomainOpenShiftException+public void refresh() + throws OpenShiftException+
IOpenShiftResource+
refresh in interface IOpenShiftResourceOpenShiftException+public int hashCode()+
hashCode in class Object+public boolean equals(Object obj)+
equals in class Object+public String toString()+
toString in class Object
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.AbstractOpenShiftResource +
com.openshift.internal.client.EmbeddedCartridgeResource +
public class EmbeddedCartridgeResource
+A cartridge that is embedded into an application. +
+ +
+
| +Nested Class Summary | +
|---|
| Nested classes/interfaces inherited from class com.openshift.internal.client.AbstractOpenShiftResource | +
|---|
AbstractOpenShiftResource.Parameters, AbstractOpenShiftResource.ServiceRequest |
+
| +Field Summary | +
|---|
| Fields inherited from interface com.openshift.client.cartridge.IEmbeddableCartridge | +
|---|
NAME_10GEN_MMS_AGENT, NAME_CRON, NAME_HAPROXY, NAME_JENKINS_CLIENT, NAME_METRICS, NAME_MONGODB, NAME_MYSQL, NAME_PHPMYADMIN, NAME_POSTGRESQL, NAME_ROCKMONGO, NAME_SWITCHYARD |
+
| Fields inherited from interface com.openshift.client.cartridge.ICartridge | +
|---|
NAME_VERSION_DELIMITER |
+
| +Constructor Summary | +|
|---|---|
+protected |
+EmbeddedCartridgeResource(CartridgeResourceDTO dto,
+ ApplicationResource application)
+
++ |
+
| +Method Summary | +|
|---|---|
+ void |
+destroy()
+
++ Destroys this cartridge (and removes it from the list of existing cartridges) |
+
+ boolean |
+equals(Object obj)
+
++ TODO: implement fully correct #equals and #hashcode. |
+
+ IApplication |
+getApplication()
+
++ Returns the application this cartridge is embedded into. |
+
+ String |
+getDescription()
+
++ Returns a description for this cartridge |
+
+ String |
+getDisplayName()
+
++ Returns a (human readable, nice) display name for this cartridge |
+
+ String |
+getName()
+
++ Returns the name of this cartridge |
+
+ CartridgeResourceProperties |
+getProperties()
+
++ Returns the properties for this embedded cartridge |
+
+protected CartridgeType |
+getType()
+
++ |
+
+ URL |
+getUrl()
+
++ The url at which this cartridge may be reached |
+
+ int |
+hashCode()
+
++ |
+
+ boolean |
+isDownloadable()
+
++ Returns true if this is a downloadable cartridge whose code
+ may be downloaded at the url returned by ICartridge.getUrl() (cartridge
+ code will get downloaded upon creation). |
+
+ void |
+refresh()
+
++ Refreshes the content of this embedded cartridge. |
+
+ String |
+toString()
+
++ |
+
+protected void |
+update(CartridgeResourceDTO dto)
+
++ |
+
| Methods inherited from class com.openshift.internal.client.AbstractOpenShiftResource | +
|---|
getCreationLog, getLink, getMessages, hasCreationLog, setLinks |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
+
| Methods inherited from interface com.openshift.client.IOpenShiftResource | +
|---|
getCreationLog, getMessages, hasCreationLog |
+
| +Constructor Detail | +
|---|
+protected EmbeddedCartridgeResource(CartridgeResourceDTO dto, + ApplicationResource application)+
| +Method Detail | +
|---|
+public String getName()+
ICartridge+
getName in interface ICartridge+public String getDisplayName()+
ICartridge+
getDisplayName in interface ICartridge+public String getDescription()+
ICartridge+
getDescription in interface ICartridge+protected CartridgeType getType()+
+public URL getUrl()+
IEmbeddedCartridge+
getUrl in interface ICartridgegetUrl in interface IEmbeddedCartridgeICartridge.isDownloadable()+public boolean isDownloadable()+
ICartridgetrue if this is a downloadable cartridge whose code
+ may be downloaded at the url returned by ICartridge.getUrl() (cartridge
+ code will get downloaded upon creation).
+ Examples:
+ +
isDownloadable in interface ICartridgetrue if this is a downloadable cartridgeICartridge.getUrl()+public IApplication getApplication()+
IEmbeddedCartridge+
getApplication in interface IEmbeddedCartridge+protected void update(CartridgeResourceDTO dto)+
+public void refresh() + throws OpenShiftException+
+
refresh in interface IOpenShiftResourceOpenShiftExceptionupdate(CartridgeResourceDTO),
+ApplicationResource.refreshEmbeddedCartridges()+public void destroy() + throws OpenShiftException+
IEmbeddedCartridge+
destroy in interface IEmbeddedCartridgeOpenShiftException+public CartridgeResourceProperties getProperties()+
IEmbeddedCartridge+
getProperties in interface IEmbeddedCartridge+public int hashCode()+
hashCode in class Object+public boolean equals(Object obj)+
EmbeddedCartridgeResource may be
+ compared to EmbeddableCartridge.
++
equals in class Object+public String toString()+
toString in class Object
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.AbstractOpenShiftResource +
com.openshift.internal.client.EnvironmentVariableResource +
public class EnvironmentVariableResource
+
| +Nested Class Summary | +
|---|
| Nested classes/interfaces inherited from class com.openshift.internal.client.AbstractOpenShiftResource | +
|---|
AbstractOpenShiftResource.Parameters, AbstractOpenShiftResource.ServiceRequest |
+
| +Constructor Summary | +|
|---|---|
+protected |
+EnvironmentVariableResource(EnvironmentVariableResourceDTO dto,
+ ApplicationResource application)
+
++ |
+
+protected |
+EnvironmentVariableResource(String name,
+ String value,
+ Messages messages,
+ Map<String,Link> links,
+ ApplicationResource application)
+
++ |
+
| +Method Summary | +|
|---|---|
+ void |
+destroy()
+
++ Destroys this environment variable |
+
+ IApplication |
+getApplication()
+
++ Returns the application for this environment variable |
+
+ String |
+getName()
+
++ |
+
+ String |
+getValue()
+
++ |
+
+ void |
+refresh()
+
++ Refresh the resource and its list of children resources that were + previously loaded |
+
+ String |
+toString()
+
++ |
+
+ void |
+update(String newValue)
+
++ Updates this environment variable to the given value. |
+
| Methods inherited from class com.openshift.internal.client.AbstractOpenShiftResource | +
|---|
getCreationLog, getLink, getMessages, hasCreationLog, setLinks |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
| Methods inherited from interface com.openshift.client.IOpenShiftResource | +
|---|
getCreationLog, getMessages, hasCreationLog |
+
| +Constructor Detail | +
|---|
+protected EnvironmentVariableResource(EnvironmentVariableResourceDTO dto, + ApplicationResource application)+
+protected EnvironmentVariableResource(String name, + String value, + Messages messages, + Map<String,Link> links, + ApplicationResource application)+
| +Method Detail | +
|---|
+public String getName()+
getName in interface IEnvironmentVariable+public String getValue()+
getValue in interface IEnvironmentVariable+public void update(String newValue) + throws OpenShiftException+
IEnvironmentVariable+
update in interface IEnvironmentVariablenewValue - new value for this environment variable
+OpenShiftException+public void destroy() + throws OpenShiftException+
IEnvironmentVariable+
destroy in interface IEnvironmentVariableOpenShiftException+public void refresh() + throws OpenShiftException+
IOpenShiftResource+
refresh in interface IOpenShiftResourceOpenShiftException+public IApplication getApplication()+
IEnvironmentVariable+
getApplication in interface IEnvironmentVariable+public String toString()+
toString in class Object
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.Field +
public class Field
+
| +Field Summary | +
|---|
| Fields inherited from interface com.openshift.client.IField | +
|---|
APPINFO, DEFAULT, RESULT |
+
| +Constructor Summary | +|
|---|---|
Field(String field)
+
++ |
+|
| +Method Summary | +|
|---|---|
+ boolean |
+equals(Object obj)
+
++ |
+
+ String |
+getValue()
+
++ |
+
+ int |
+hashCode()
+
++ |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public Field(String field)+
| +Method Detail | +
|---|
+public String getValue()+
getValue in interface IField+public int hashCode()+
hashCode in class Object+public boolean equals(Object obj)+
equals in class Object
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.Gear +
public class Gear
+A gear that a cartridge is running on. +
+ +
+
| +Constructor Summary | +|
|---|---|
Gear(String id,
+ GearState state,
+ String sshUrl)
+
++ |
+|
| +Method Summary | +|
|---|---|
+ String |
+getId()
+
++ Returns the id of this gear. |
+
+ String |
+getSshUrl()
+
++ The URL to use when connecting with SSH in the following form: + ssh://<username>@<host> |
+
+ GearState |
+getState()
+
++ Returns the state of this gear |
+
+ String |
+toString()
+
++ |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public Gear(String id, + GearState state, + String sshUrl)+
| +Method Detail | +
|---|
+public String getId()+
IGear+
getId in interface IGear+public GearState getState()+
IGear+
getState in interface IGear+public String getSshUrl()+
IGearssh://<username>@<host>
++
getSshUrl in interface IGear+public String toString()+
toString in class Object
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.AbstractOpenShiftResource +
com.openshift.internal.client.GearGroupResource +
public class GearGroupResource
+
| +Nested Class Summary | +
|---|
| Nested classes/interfaces inherited from class com.openshift.internal.client.AbstractOpenShiftResource | +
|---|
AbstractOpenShiftResource.Parameters, AbstractOpenShiftResource.ServiceRequest |
+
| +Constructor Summary | +|
|---|---|
+protected |
+GearGroupResource(GearGroupResourceDTO dto,
+ ApplicationResource application,
+ IRestService service)
+
++ Constructor. |
+
+protected |
+GearGroupResource(String uuid,
+ String name,
+ Collection<GearResourceDTO> gearDTOs,
+ Map<String,CartridgeResourceDTO> cartridgeDTOs,
+ ApplicationResource application,
+ IRestService service)
+
++ Constructor. |
+
| +Method Summary | +|
|---|---|
+ Collection<ICartridge> |
+getCartridges()
+
++ Returns the cartridges in this gear group resource |
+
+ Collection<IGear> |
+getGears()
+
++ Returns the gears in this gear group resource |
+
+ String |
+getName()
+
++ Returns the name of this gear groups |
+
+ String |
+getUUID()
+
++ Returns the uuid of this gear groups. |
+
+ void |
+refresh()
+
++ Refresh the resource and its list of children resources that were + previously loaded |
+
| Methods inherited from class com.openshift.internal.client.AbstractOpenShiftResource | +
|---|
getCreationLog, getLink, getMessages, hasCreationLog, setLinks |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+protected GearGroupResource(String uuid, + String name, + Collection<GearResourceDTO> gearDTOs, + Map<String,CartridgeResourceDTO> cartridgeDTOs, + ApplicationResource application, + IRestService service)+
+
uuid - the gear group's UUIDname - the gear group's namegearDTOs - the gear group's gearscartridgeDTOs - the gear group's cartridges, indexed by their nameapplication - the gear group's parent applicationservice - the underlying REST Service+protected GearGroupResource(GearGroupResourceDTO dto, + ApplicationResource application, + IRestService service)+
+
dto - the associated GearGroupResourceDTOapplication - the parent applicationservicethe - underlying REST Service| +Method Detail | +
|---|
+public final String getUUID()+
IGearGroup+
getUUID in interface IGearGroup+public final String getName()+
IGearGroup+
getName in interface IGearGroup+public Collection<IGear> getGears()+
IGearGroup+
getGears in interface IGearGroup+public Collection<ICartridge> getCartridges()+
IGearGroup+
getCartridges in interface IGearGroup+public void refresh() + throws OpenShiftException+
IOpenShiftResource+
refresh in interface IOpenShiftResourceOpenShiftException
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.GearProfile +
public class GearProfile
+
| +Field Summary | +
|---|
| Fields inherited from interface com.openshift.client.IGearProfile | +
|---|
EXLARGE, JUMBO, LARGE, MEDIUM, MICRO, SMALL |
+
| +Constructor Summary | +|
|---|---|
GearProfile(String name)
+
++ |
+|
| +Method Summary | +|
|---|---|
+ boolean |
+equals(Object obj)
+
++ |
+
+ String |
+getName()
+
++ |
+
+ int |
+hashCode()
+
++ |
+
+ String |
+toString()
+
++ |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public GearProfile(String name)+
| +Method Detail | +
|---|
+public String getName()+
getName in interface IGearProfile+public int hashCode()+
hashCode in class Object+public boolean equals(Object obj)+
equals in class Object+public String toString()+
toString in class Object
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
public interface IRestService
+A rest service that executes request against the OpenShift server +
+ +
+
| +Field Summary | +|
|---|---|
+static String |
+SERVICE_PATH
+
++ |
+
+static String |
+SERVICE_VERSION
+
++ |
+
| +Method Summary | +|
|---|---|
+ String |
+getPlatformUrl()
+
++ Returns the OpenShift server. |
+
+ String |
+getServiceUrl()
+
++ Returns the url for the OpenShift service, the endpoint which this rest + service class is talking to. |
+
+ RestResponse |
+request(Link link,
+ int timeout,
+ IMediaType mediaType,
+ Parameter... parameters)
+
++ Requests the given link sending the given parameters while encoding the + parameters with the given media type and respecting the given timeout. |
+
+ RestResponse |
+request(Link link,
+ int timeout,
+ List<Parameter> urlParameters,
+ IMediaType mediaType,
+ Parameter... parameters)
+
++ |
+
+ RestResponse |
+request(Link link,
+ int timeout,
+ List<Parameter> urlParameters,
+ Parameter... parameters)
+
++ |
+
+ RestResponse |
+request(Link link,
+ int timeout,
+ Parameter... parameters)
+
++ |
+
+ RestResponse |
+request(Link link,
+ List<Parameter> urlParameters,
+ Parameter... parameters)
+
++ |
+
+ RestResponse |
+request(Link link,
+ Parameter... parameters)
+
++ |
+
| +Field Detail | +
|---|
+static final String SERVICE_VERSION+
+static final String SERVICE_PATH+
| +Method Detail | +
|---|
+RestResponse request(Link link, + Parameter... parameters) + throws OpenShiftException+
OpenShiftException+RestResponse request(Link link, + int timeout, + Parameter... parameters) + throws OpenShiftException+
OpenShiftException+RestResponse request(Link link, + int timeout, + IMediaType mediaType, + Parameter... parameters) + throws OpenShiftException+
+
link - the link to useparameters - the parameters to send
+OpenShiftExceptionLink,
+Parameter,
+IMediaType,
+IHttpClient.NO_TIMEOUT,
+IHttpClient.SYSPROP_DEFAULT_CONNECT_TIMEOUT,
+IHttpClient.SYSPROP_DEFAULT_READ_TIMEOUT,
+IHttpClient.SYSPROP_OPENSHIFT_CONNECT_TIMEOUT,
+IHttpClient.DEFAULT_CONNECT_TIMEOUT,
+IHttpClient.DEFAULT_READ_TIMEOUT+RestResponse request(Link link, + List<Parameter> urlParameters, + Parameter... parameters) + throws OpenShiftException+
OpenShiftException+RestResponse request(Link link, + int timeout, + List<Parameter> urlParameters, + Parameter... parameters) + throws OpenShiftException+
OpenShiftException+RestResponse request(Link link, + int timeout, + List<Parameter> urlParameters, + IMediaType mediaType, + Parameter... parameters) + throws OpenShiftException+
OpenShiftException+String getServiceUrl()+
+
+String getPlatformUrl()+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.RestService +
public class RestService
+
| +Field Summary | +
|---|
| Fields inherited from interface com.openshift.internal.client.IRestService | +
|---|
SERVICE_PATH, SERVICE_VERSION |
+
| +Constructor Summary | +|
|---|---|
+ |
+RestService(String server,
+ String clientId,
+ IMediaType defaultRequestMediaType,
+ String acceptedMediaType,
+ IRestResponseFactory factory,
+ IHttpClient client)
+
++ |
+
+protected |
+RestService(String server,
+ String clientId,
+ IMediaType defaultRequestMediaType,
+ String acceptedMediaType,
+ IRestResponseFactory factory,
+ IHttpClient client,
+ RestServiceProperties properties)
+
++ |
+
+protected |
+RestService(String server,
+ String clientId,
+ String protocolVersion,
+ IMediaType defaultRequestMediaType,
+ String acceptedMediaType,
+ IRestResponseFactory factory,
+ IHttpClient client,
+ RestServiceProperties properties)
+
++ |
+
| +Method Summary | +|
|---|---|
+ String |
+getPlatformUrl()
+
++ Returns the OpenShift server. |
+
+ String |
+getServiceUrl()
+
++ Returns the url for the OpenShift service, the endpoint which this rest + service class is talking to. |
+
+ RestResponse |
+request(Link link,
+ int timeout,
+ IMediaType requestMediaType,
+ Parameter... parameters)
+
++ Requests the given link sending the given parameters while encoding the + parameters with the given media type and respecting the given timeout. |
+
+ RestResponse |
+request(Link link,
+ int timeout,
+ List<Parameter> urlParameters,
+ IMediaType requestMediaType,
+ Parameter... parameters)
+
++ |
+
+ RestResponse |
+request(Link link,
+ int timeout,
+ List<Parameter> urlParameters,
+ Parameter... parameters)
+
++ |
+
+ RestResponse |
+request(Link link,
+ int timeout,
+ Parameter... parameters)
+
++ |
+
+ RestResponse |
+request(Link link,
+ List<Parameter> urlParameters,
+ Parameter... parameters)
+
++ |
+
+ RestResponse |
+request(Link link,
+ Parameter... parameters)
+
++ |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public RestService(String server, + String clientId, + IMediaType defaultRequestMediaType, + String acceptedMediaType, + IRestResponseFactory factory, + IHttpClient client)+
+protected RestService(String server, + String clientId, + IMediaType defaultRequestMediaType, + String acceptedMediaType, + IRestResponseFactory factory, + IHttpClient client, + RestServiceProperties properties)+
+protected RestService(String server, + String clientId, + String protocolVersion, + IMediaType defaultRequestMediaType, + String acceptedMediaType, + IRestResponseFactory factory, + IHttpClient client, + RestServiceProperties properties)+
| +Method Detail | +
|---|
+public RestResponse request(Link link, + Parameter... parameters) + throws OpenShiftException+
request in interface IRestServiceOpenShiftException+public RestResponse request(Link link, + int timeout, + Parameter... parameters) + throws OpenShiftException+
request in interface IRestServiceOpenShiftException+public RestResponse request(Link link, + List<Parameter> urlParameters, + Parameter... parameters) + throws OpenShiftException+
request in interface IRestServiceOpenShiftException+public RestResponse request(Link link, + int timeout, + IMediaType requestMediaType, + Parameter... parameters) + throws OpenShiftException+
IRestService+
request in interface IRestServicelink - the link to useparameters - the parameters to send
+OpenShiftExceptionLink,
+Parameter,
+IMediaType,
+IHttpClient.NO_TIMEOUT,
+IHttpClient.SYSPROP_DEFAULT_CONNECT_TIMEOUT,
+IHttpClient.SYSPROP_DEFAULT_READ_TIMEOUT,
+IHttpClient.SYSPROP_OPENSHIFT_CONNECT_TIMEOUT,
+IHttpClient.DEFAULT_CONNECT_TIMEOUT,
+IHttpClient.DEFAULT_READ_TIMEOUT+public RestResponse request(Link link, + int timeout, + List<Parameter> urlParameters, + Parameter... parameters) + throws OpenShiftException+
request in interface IRestServiceOpenShiftException+public RestResponse request(Link link, + int timeout, + List<Parameter> urlParameters, + IMediaType requestMediaType, + Parameter... parameters) + throws OpenShiftException+
request in interface IRestServiceOpenShiftException+public String getServiceUrl()+
IRestService+
getServiceUrl in interface IRestService+public String getPlatformUrl()+
IRestService+
getPlatformUrl in interface IRestService
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.RestServiceProperties +
public class RestServiceProperties
+
| +Constructor Summary | +|
|---|---|
RestServiceProperties()
+
++ |
+|
| +Method Summary | +|
|---|---|
+ String |
+getClientId()
+
++ |
+
+protected Properties |
+getProperties()
+
++ |
+
+ String |
+getUseragent(String clientId)
+
++ |
+
+protected String |
+getUseragentPattern()
+
++ |
+
+ String |
+getVersion()
+
++ |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public RestServiceProperties()+
| +Method Detail | +
|---|
+public String getVersion()+
+public String getUseragent(String clientId)+
+protected String getUseragentPattern()+
+public String getClientId()+
+protected Properties getProperties() + throws IOException+
IOException
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.AbstractOpenShiftResource +
com.openshift.internal.client.SSHKeyResource +
public class SSHKeyResource
+
| +Nested Class Summary | +
|---|
| Nested classes/interfaces inherited from class com.openshift.internal.client.AbstractOpenShiftResource | +
|---|
AbstractOpenShiftResource.Parameters, AbstractOpenShiftResource.ServiceRequest |
+
| +Constructor Summary | +|
|---|---|
+protected |
+SSHKeyResource(KeyResourceDTO dto,
+ UserResource user)
+
++ |
+
| +Method Summary | +|
|---|---|
+ void |
+destroy()
+
++ |
+
+ SSHKeyType |
+getKeyType()
+
++ Returns the type of the key (ssh-rsa or ssh-dss) |
+
+ String |
+getName()
+
++ Returns the name that is used to store this key on OpenShift. |
+
+ String |
+getPublicKey()
+
++ Returns the content of the public key (key content without ssh-rsa + identifier nor comment) of the ssh key |
+
+ void |
+refresh()
+
++ Refresh the resource and its list of children resources that were + previously loaded |
+
+ void |
+setKeyType(SSHKeyType type,
+ String publicKey)
+
++ Sets the new type and public key of this ssh key to the OpenShift PaaS |
+
+ void |
+setPublicKey(String publicKey)
+
++ Sets the public key portion of this ssh key to the OpenShift PaaS. |
+
+ String |
+toString()
+
++ |
+
+protected void |
+update(KeyResourceDTO dto)
+
++ |
+
| Methods inherited from class com.openshift.internal.client.AbstractOpenShiftResource | +
|---|
getCreationLog, getLink, getMessages, hasCreationLog, setLinks |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+protected SSHKeyResource(KeyResourceDTO dto, + UserResource user) + throws OpenShiftUnknonwSSHKeyTypeException+
OpenShiftUnknonwSSHKeyTypeException| +Method Detail | +
|---|
+public void setKeyType(SSHKeyType type, + String publicKey) + throws OpenShiftException+
IOpenShiftSSHKey+
setKeyType in interface IOpenShiftSSHKeyOpenShiftException+public String getName()+
IOpenShiftSSHKey+
getName in interface IOpenShiftSSHKey+public SSHKeyType getKeyType()+
ISSHPublicKey+
getKeyType in interface ISSHPublicKey+public void setPublicKey(String publicKey) + throws OpenShiftException+
IOpenShiftSSHKey+
setPublicKey in interface IOpenShiftSSHKeypublicKey - the new public key porition of this key
+OpenShiftException+public String getPublicKey()+
ISSHPublicKey+
getPublicKey in interface ISSHPublicKey+public void refresh() + throws OpenShiftException+
IOpenShiftResource+
refresh in interface IOpenShiftResourceOpenShiftException+public void destroy() + throws OpenShiftException+
destroy in interface IOpenShiftSSHKeyOpenShiftException+protected void update(KeyResourceDTO dto) + throws OpenShiftUnknonwSSHKeyTypeException+
OpenShiftUnknonwSSHKeyTypeException+public String toString()+
toString in class Object
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.Severity +
public class Severity
+
| +Field Summary | +
|---|
| Fields inherited from interface com.openshift.client.ISeverity | +
|---|
DEBUG, ERROR, INFO, RESULT |
+
| +Constructor Summary | +|
|---|---|
Severity(String severity)
+
++ |
+|
| +Method Summary | +|
|---|---|
+ boolean |
+equals(Object obj)
+
++ |
+
+ String |
+getValue()
+
++ |
+
+ int |
+hashCode()
+
++ |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public Severity(String severity)+
| +Method Detail | +
|---|
+public String getValue()+
getValue in interface ISeverity+public int hashCode()+
hashCode in class Object+public boolean equals(Object obj)+
equals in class Object
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.AbstractOpenShiftResource +
com.openshift.internal.client.UserResource +
public class UserResource
+
| +Nested Class Summary | +
|---|
| Nested classes/interfaces inherited from class com.openshift.internal.client.AbstractOpenShiftResource | +
|---|
AbstractOpenShiftResource.Parameters, AbstractOpenShiftResource.ServiceRequest |
+
| +Field Summary | +
|---|
| Fields inherited from interface com.openshift.client.IUser | +
|---|
ID |
+
| +Constructor Summary | +|
|---|---|
UserResource(APIResource api,
+ UserResourceDTO dto,
+ String password)
+
++ |
+|
| +Method Summary | +|
|---|---|
+ IDomain |
+createDomain(String id)
+
++ |
+
+ void |
+deleteKey(String name)
+
++ |
+
+ IOpenShiftConnection |
+getConnection()
+
++ |
+
+ int |
+getConsumedGears()
+
++ |
+
+ IDomain |
+getDefaultDomain()
+
++ |
+
+ IDomain |
+getDomain(String id)
+
++ |
+
+ List<IDomain> |
+getDomains()
+
++ |
+
+ int |
+getMaxGears()
+
++ |
+
+ String |
+getPassword()
+
++ |
+
+ String |
+getRhlogin()
+
++ |
+
+ String |
+getServer()
+
++ |
+
+ IOpenShiftSSHKey |
+getSSHKeyByName(String name)
+
++ |
+
+ IOpenShiftSSHKey |
+getSSHKeyByPublicKey(String publicKey)
+
++ |
+
+ List<IOpenShiftSSHKey> |
+getSSHKeys()
+
++ |
+
+ boolean |
+hasDomain()
+
++ |
+
+ boolean |
+hasDomain(String id)
+
++ |
+
+ boolean |
+hasSSHKeyName(String name)
+
++ |
+
+ boolean |
+hasSSHPublicKey(String publicKey)
+
++ |
+
+ IOpenShiftSSHKey |
+putSSHKey(String name,
+ ISSHPublicKey key)
+
++ Adds the given ssh key with the given name. |
+
+ void |
+refresh()
+
++ Refresh the resource and its list of children resources that were + previously loaded |
+
+protected void |
+removeSSHKey(SSHKeyResource key)
+
++ |
+
+ String |
+toString()
+
++ |
+
| Methods inherited from class com.openshift.internal.client.AbstractOpenShiftResource | +
|---|
getCreationLog, getLink, getMessages, hasCreationLog, setLinks |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
| Methods inherited from interface com.openshift.client.IOpenShiftResource | +
|---|
getCreationLog, getMessages, hasCreationLog |
+
| +Constructor Detail | +
|---|
+public UserResource(APIResource api, + UserResourceDTO dto, + String password)+
| +Method Detail | +
|---|
+public IOpenShiftConnection getConnection()+
getConnection in interface IUser+public String getRhlogin()+
getRhlogin in interface IUser+public String getPassword()+
getPassword in interface IUser+public String getServer()+
getServer in interface IUser+public int getMaxGears()+
getMaxGears in interface IUser+public int getConsumedGears()+
getConsumedGears in interface IUser+public IDomain createDomain(String id) + throws OpenShiftException+
createDomain in interface IUserOpenShiftException+public List<IDomain> getDomains() + throws OpenShiftException+
getDomains in interface IUserOpenShiftException+public IDomain getDefaultDomain() + throws OpenShiftException+
getDefaultDomain in interface IUserOpenShiftException+public IDomain getDomain(String id) + throws OpenShiftException+
getDomain in interface IUserOpenShiftException+public boolean hasDomain() + throws OpenShiftException+
hasDomain in interface IUserOpenShiftException+public boolean hasDomain(String id) + throws OpenShiftException+
hasDomain in interface IUserOpenShiftException+public void refresh() + throws OpenShiftException+
IOpenShiftResource+
refresh in interface IOpenShiftResourceOpenShiftException+public List<IOpenShiftSSHKey> getSSHKeys() + throws OpenShiftUnknonwSSHKeyTypeException, + OpenShiftException+
getSSHKeys in interface IUserOpenShiftUnknonwSSHKeyTypeException
+OpenShiftException+public void deleteKey(String name)+
deleteKey in interface IUser+public IOpenShiftSSHKey getSSHKeyByName(String name) + throws OpenShiftUnknonwSSHKeyTypeException, + OpenShiftException+
getSSHKeyByName in interface IUserOpenShiftUnknonwSSHKeyTypeException
+OpenShiftException+public IOpenShiftSSHKey getSSHKeyByPublicKey(String publicKey) + throws OpenShiftUnknonwSSHKeyTypeException, + OpenShiftException+
getSSHKeyByPublicKey in interface IUserOpenShiftUnknonwSSHKeyTypeException
+OpenShiftException+public boolean hasSSHKeyName(String name) + throws OpenShiftUnknonwSSHKeyTypeException, + OpenShiftException+
hasSSHKeyName in interface IUserOpenShiftUnknonwSSHKeyTypeException
+OpenShiftException+public boolean hasSSHPublicKey(String publicKey) + throws OpenShiftUnknonwSSHKeyTypeException, + OpenShiftException+
hasSSHPublicKey in interface IUserOpenShiftUnknonwSSHKeyTypeException
+OpenShiftException+public IOpenShiftSSHKey putSSHKey(String name, + ISSHPublicKey key) + throws OpenShiftException+
+
putSSHKey in interface IUsername - the name to identify the keykey - the key to add
+OpenShiftException+protected void removeSSHKey(SSHKeyResource key)+
+public String toString()+
toString in class Object
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.cartridge.AbstractCartridgeQuery +
public abstract class AbstractCartridgeQuery
+A base class for a constraint that shall match available embeddable + cartridges (on the platform). Among several matching ones, the one with the + highest version is chosen. application. +
+ +
+
for cartridges that have already been added and
+ configured to an application.| +Constructor Summary | +|
|---|---|
AbstractCartridgeQuery()
+
++ |
+|
| +Method Summary | +||
|---|---|---|
+
+ |
+get(Collection<C> cartridges)
+
++ |
+|
+
+ |
+getAll(Collection<C> cartridges)
+
++ |
+|
+protected IOpenShiftConnection |
+getConnection(IApplication application)
+
++ |
+|
+protected IOpenShiftConnection |
+getConnection(IDomain domain)
+
++ |
+|
+abstract
+ |
+matches(C cartridge)
+
++ |
+|
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public AbstractCartridgeQuery()+
| +Method Detail | +
|---|
+public <C extends ICartridge> Collection<C> getAll(Collection<C> cartridges)+
+public <C extends ICartridge> C get(Collection<C> cartridges)+
+public abstract <C extends ICartridge> boolean matches(C cartridge)+
+protected IOpenShiftConnection getConnection(IApplication application)+
+protected IOpenShiftConnection getConnection(IDomain domain)+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.cartridge.BaseCartridge +
public abstract class BaseCartridge
+A (base) cartridge for an OpenShift application. +
+ +
+
EmbeddableCartridge,
+StandaloneCartridge| +Field Summary | +
|---|
| Fields inherited from interface com.openshift.client.cartridge.ICartridge | +
|---|
NAME_VERSION_DELIMITER |
+
| +Constructor Summary | +|
|---|---|
+protected |
+BaseCartridge(String name)
+
++ |
+
+protected |
+BaseCartridge(String name,
+ String displayName,
+ String description)
+
++ |
+
+protected |
+BaseCartridge(String name,
+ URL url)
+
++ |
+
+protected |
+BaseCartridge(String name,
+ URL url,
+ String displayName,
+ String description)
+
++ |
+
+protected |
+BaseCartridge(URL url)
+
++ |
+
| +Method Summary | +|
|---|---|
+ boolean |
+equals(Object obj)
+
++ |
+
+ String |
+getDescription()
+
++ Returns a description for this cartridge |
+
+ String |
+getDisplayName()
+
++ Returns a (human readable, nice) display name for this cartridge |
+
+ String |
+getName()
+
++ Returns the name of this cartridge |
+
+ URL |
+getUrl()
+
++ Returns the url at which the code for this cartridge may get downloaded. |
+
+ int |
+hashCode()
+
++ |
+
+ boolean |
+isDownloadable()
+
++ Returns true if this is a downloadable cartridge whose code
+ may be downloaded at the url returned by ICartridge.getUrl() (cartridge
+ code will get downloaded upon creation). |
+
+ String |
+toString()
+
++ |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+protected BaseCartridge(String name)+
+protected BaseCartridge(URL url)+
+protected BaseCartridge(String name, + URL url)+
+protected BaseCartridge(String name, + String displayName, + String description)+
+protected BaseCartridge(String name, + URL url, + String displayName, + String description)+
| +Method Detail | +
|---|
+public String getName()+
ICartridge+
getName in interface ICartridge+public String getDisplayName()+
ICartridge+
getDisplayName in interface ICartridge+public String getDescription()+
ICartridge+
getDescription in interface ICartridge+public boolean isDownloadable()+
ICartridgetrue if this is a downloadable cartridge whose code
+ may be downloaded at the url returned by ICartridge.getUrl() (cartridge
+ code will get downloaded upon creation).
+ Examples:
+ +
isDownloadable in interface ICartridgetrue if this is a downloadable cartridgeICartridge.getUrl()+public URL getUrl()+
ICartridgenull if this is not a downloadable cartridge.
+
+
+- Specified by:
getUrl in interface ICartridge
+
+
+
+- Returns:
- the url if downloadable cartridge or null
- See Also:
ICartridge.isDownloadable()
+
++public int hashCode()+
hashCode in class Object+public boolean equals(Object obj)+
equals in class Object+public String toString()+
toString in class Object
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use AbstractCartridgeQuery | +|
|---|---|
| com.openshift.client.cartridge.selector | ++ |
| +Uses of AbstractCartridgeQuery in com.openshift.client.cartridge.selector | +
|---|
+ +
| Subclasses of AbstractCartridgeQuery in com.openshift.client.cartridge.selector | +|
|---|---|
+ class |
+LatestEmbeddableCartridge
+
++ A selector that shall select the latest version of an embedded cartidge that's given by name. |
+
+ class |
+LatestStandaloneCartridge
+
++ A selector that shall select the latest version of a standalone cartidge that's given by name. |
+
+ class |
+LatestVersionQuery
+
++ A constraint that shall match available embeddable and standalone cartridges by name. |
+
+ class |
+StringPropertyQuery
+
++ A constraint that shall match available cartridges by url. |
+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use BaseCartridge | +|
|---|---|
| com.openshift.client.cartridge | ++ |
| +Uses of BaseCartridge in com.openshift.client.cartridge | +
|---|
+ +
| Subclasses of BaseCartridge in com.openshift.client.cartridge | +|
|---|---|
+ class |
+EmbeddableCartridge
+
++ An cartridge that may be embedded (added) into an application. |
+
+ class |
+StandaloneCartridge
+
++ A cartridge that is available on the openshift server. |
+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
|
+Classes
+
+ +AbstractCartridgeQuery + +BaseCartridge |
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Class Summary | +|
|---|---|
| AbstractCartridgeQuery | +A base class for a constraint that shall match available embeddable + cartridges (on the platform). | +
| BaseCartridge | +A (base) cartridge for an OpenShift application. | +
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use com.openshift.internal.client.cartridge | +|
|---|---|
| com.openshift.client.cartridge | ++ |
| com.openshift.client.cartridge.selector | ++ |
| +Classes in com.openshift.internal.client.cartridge used by com.openshift.client.cartridge | +|
|---|---|
| BaseCartridge
+
+ + A (base) cartridge for an OpenShift application. |
+|
| +Classes in com.openshift.internal.client.cartridge used by com.openshift.client.cartridge.selector | +|
|---|---|
| AbstractCartridgeQuery
+
+ + A base class for a constraint that shall match available embeddable + cartridges (on the platform). |
+|
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use APIResource | +|
|---|---|
| com.openshift.internal.client | ++ |
| +Uses of APIResource in com.openshift.internal.client | +
|---|
+ +
| Constructors in com.openshift.internal.client with parameters of type APIResource | +|
|---|---|
DomainResource(DomainResourceDTO domainDTO,
+ APIResource api)
+
++ |
+|
DomainResource(String namespace,
+ String suffix,
+ Map<String,Link> links,
+ Messages messages,
+ APIResource api)
+
++ |
+|
UserResource(APIResource api,
+ UserResourceDTO dto,
+ String password)
+
++ |
+|
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use AbstractOpenShiftConnectionFactory | +|
|---|---|
| com.openshift.client | ++ |
| +Uses of AbstractOpenShiftConnectionFactory in com.openshift.client | +
|---|
+ +
| Subclasses of AbstractOpenShiftConnectionFactory in com.openshift.client | +|
|---|---|
+ class |
+OpenShiftConnectionFactory
+
++ Connection Factory, used to establish a connection and retrieve a user. |
+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use AbstractOpenShiftResource.Parameters | +|
|---|---|
| com.openshift.internal.client | ++ |
| +Uses of AbstractOpenShiftResource.Parameters in com.openshift.internal.client | +
|---|
+ +
| Methods in com.openshift.internal.client that return AbstractOpenShiftResource.Parameters | +|
|---|---|
+protected AbstractOpenShiftResource.Parameters |
+AbstractOpenShiftResource.Parameters.add(Parameter parameter)
+
++ |
+
+protected AbstractOpenShiftResource.Parameters |
+AbstractOpenShiftResource.Parameters.add(String name,
+ String value)
+
++ |
+
+protected AbstractOpenShiftResource.Parameters |
+AbstractOpenShiftResource.Parameters.addCartridge(IEmbeddableCartridge embeddable)
+
++ |
+
+protected AbstractOpenShiftResource.Parameters |
+AbstractOpenShiftResource.Parameters.addCartridges(IStandaloneCartridge standalone,
+ IEmbeddableCartridge[] embeddables)
+
++ |
+
+protected AbstractOpenShiftResource.Parameters |
+AbstractOpenShiftResource.Parameters.addEnvironmentVariables(Map<String,String> environmentVariables)
+
++ |
+
+protected AbstractOpenShiftResource.Parameters |
+AbstractOpenShiftResource.Parameters.gearProfile(IGearProfile gearProfile)
+
++ |
+
+protected AbstractOpenShiftResource.Parameters |
+AbstractOpenShiftResource.Parameters.include(String includedResource)
+
++ |
+
+protected AbstractOpenShiftResource.Parameters |
+AbstractOpenShiftResource.Parameters.scale(ApplicationScale scale)
+
++ |
+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use AbstractOpenShiftResource | +|
|---|---|
| com.openshift.internal.client | ++ |
| +Uses of AbstractOpenShiftResource in com.openshift.internal.client | +
|---|
+ +
| Subclasses of AbstractOpenShiftResource in com.openshift.internal.client | +|
|---|---|
+ class |
+APIResource
+
++ |
+
+ class |
+ApplicationResource
+
++ The ApplicationResource object is an implementation of com.openshift.client.IApplication, and provides + a runtime model for the real application that resides on the OpenShift platform being accessed. |
+
+ class |
+DomainResource
+
++ |
+
+ class |
+EmbeddedCartridgeResource
+
++ A cartridge that is embedded into an application. |
+
+ class |
+EnvironmentVariableResource
+
++ |
+
+ class |
+GearGroupResource
+
++ |
+
+ class |
+SSHKeyResource
+
++ |
+
+ class |
+UserResource
+
++ |
+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use ApplicationResource.SshStreams | +|
|---|---|
| com.openshift.internal.client | ++ |
| +Uses of ApplicationResource.SshStreams in com.openshift.internal.client | +
|---|
+ +
| Methods in com.openshift.internal.client that return ApplicationResource.SshStreams | +|
|---|---|
+static ApplicationResource.SshStreams |
+ApplicationResource.SshStreams.valueOf(String name)
+
++ Returns the enum constant of this type with the specified name. |
+
+static ApplicationResource.SshStreams[] |
+ApplicationResource.SshStreams.values()
+
++ Returns an array containing the constants of this enum type, in +the order they are declared. |
+
+ +
| Methods in com.openshift.internal.client with parameters of type ApplicationResource.SshStreams | +|
|---|---|
+protected List<String> |
+ApplicationResource.sshExecCmd(String command,
+ ApplicationResource.SshStreams sshStream)
+
++ |
+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use ApplicationResource | +|
|---|---|
| com.openshift.internal.client | ++ |
| +Uses of ApplicationResource in com.openshift.internal.client | +
|---|
+ +
| Constructors in com.openshift.internal.client with parameters of type ApplicationResource | +|
|---|---|
EmbeddedCartridgeResource(CartridgeResourceDTO dto,
+ ApplicationResource application)
+
++ |
+|
EnvironmentVariableResource(EnvironmentVariableResourceDTO dto,
+ ApplicationResource application)
+
++ |
+|
EnvironmentVariableResource(String name,
+ String value,
+ Messages messages,
+ Map<String,Link> links,
+ ApplicationResource application)
+
++ |
+|
GearGroupResource(GearGroupResourceDTO dto,
+ ApplicationResource application,
+ IRestService service)
+
++ Constructor. |
+|
GearGroupResource(String uuid,
+ String name,
+ Collection<GearResourceDTO> gearDTOs,
+ Map<String,CartridgeResourceDTO> cartridgeDTOs,
+ ApplicationResource application,
+ IRestService service)
+
++ Constructor. |
+|
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use CartridgeType | +|
|---|---|
| com.openshift.internal.client | ++ |
| com.openshift.internal.client.response | ++ |
| +Uses of CartridgeType in com.openshift.internal.client | +
|---|
+ +
| Methods in com.openshift.internal.client that return CartridgeType | +|
|---|---|
+protected CartridgeType |
+EmbeddedCartridgeResource.getType()
+
++ |
+
+static CartridgeType |
+CartridgeType.safeValueOf(String type)
+
++ |
+
+static CartridgeType |
+CartridgeType.valueOf(String name)
+
++ Returns the enum constant of this type with the specified name. |
+
+static CartridgeType[] |
+CartridgeType.values()
+
++ Returns an array containing the constants of this enum type, in +the order they are declared. |
+
| +Uses of CartridgeType in com.openshift.internal.client.response | +
|---|
+ +
| Methods in com.openshift.internal.client.response that return CartridgeType | +|
|---|---|
+ CartridgeType |
+CartridgeResourceDTO.getType()
+
++ |
+
+ +
| Constructors in com.openshift.internal.client.response with parameters of type CartridgeType | +|
|---|---|
CartridgeResourceDTO(String name,
+ CartridgeType type,
+ CartridgeResourceProperties properties)
+
++ |
+|
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use DomainResource | +|
|---|---|
| com.openshift.internal.client | ++ |
| +Uses of DomainResource in com.openshift.internal.client | +
|---|
+ +
| Constructors in com.openshift.internal.client with parameters of type DomainResource | +|
|---|---|
ApplicationResource(ApplicationResourceDTO dto,
+ DomainResource domain)
+
++ |
+|
ApplicationResource(String name,
+ String uuid,
+ String creationTime,
+ Messages messages,
+ String applicationUrl,
+ String sshUrl,
+ String gitUrl,
+ String initialGitUrl,
+ IGearProfile gearProfile,
+ ApplicationScale scale,
+ List<String> aliases,
+ Map<String,CartridgeResourceDTO> cartridgesByName,
+ Map<String,Link> links,
+ DomainResource domain)
+
++ Instantiates a new application. |
+|
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use IRestService | +|
|---|---|
| com.openshift.internal.client | ++ |
| +Uses of IRestService in com.openshift.internal.client | +
|---|
+ +
| Classes in com.openshift.internal.client that implement IRestService | +|
|---|---|
+ class |
+RestService
+
++ |
+
+ +
| Methods in com.openshift.internal.client with parameters of type IRestService | +|
|---|---|
+protected IOpenShiftConnection |
+AbstractOpenShiftConnectionFactory.getConnection(IRestService service,
+ String login,
+ String password)
+
++ |
+
+ +
| Constructors in com.openshift.internal.client with parameters of type IRestService | +|
|---|---|
AbstractOpenShiftResource(IRestService service)
+
++ Instantiates a new abstract open shift resource. |
+|
AbstractOpenShiftResource(IRestService service,
+ Map<String,Link> links,
+ Messages messages)
+
++ Instantiates a new abstract open shift resource. |
+|
APIResource(String login,
+ String password,
+ IRestService service,
+ Map<String,Link> links)
+
++ |
+|
GearGroupResource(GearGroupResourceDTO dto,
+ ApplicationResource application,
+ IRestService service)
+
++ Constructor. |
+|
GearGroupResource(String uuid,
+ String name,
+ Collection<GearResourceDTO> gearDTOs,
+ Map<String,CartridgeResourceDTO> cartridgeDTOs,
+ ApplicationResource application,
+ IRestService service)
+
++ Constructor. |
+|
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use RestServiceProperties | +|
|---|---|
| com.openshift.internal.client | ++ |
| +Uses of RestServiceProperties in com.openshift.internal.client | +
|---|
+ +
| Constructors in com.openshift.internal.client with parameters of type RestServiceProperties | +|
|---|---|
RestService(String server,
+ String clientId,
+ IMediaType defaultRequestMediaType,
+ String acceptedMediaType,
+ IRestResponseFactory factory,
+ IHttpClient client,
+ RestServiceProperties properties)
+
++ |
+|
RestService(String server,
+ String clientId,
+ String protocolVersion,
+ IMediaType defaultRequestMediaType,
+ String acceptedMediaType,
+ IRestResponseFactory factory,
+ IHttpClient client,
+ RestServiceProperties properties)
+
++ |
+|
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use SSHKeyResource | +|
|---|---|
| com.openshift.internal.client | ++ |
| +Uses of SSHKeyResource in com.openshift.internal.client | +
|---|
+ +
| Methods in com.openshift.internal.client with parameters of type SSHKeyResource | +|
|---|---|
+protected void |
+UserResource.removeSSHKey(SSHKeyResource key)
+
++ |
+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use UserResource | +|
|---|---|
| com.openshift.internal.client | ++ |
| +Uses of UserResource in com.openshift.internal.client | +
|---|
+ +
| Constructors in com.openshift.internal.client with parameters of type UserResource | +|
|---|---|
SSHKeyResource(KeyResourceDTO dto,
+ UserResource user)
+
++ |
+|
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++java.lang.Throwable +
java.lang.Exception +
java.lang.RuntimeException +
com.openshift.internal.client.httpclient.HttpClientException +
com.openshift.internal.client.httpclient.BadRequestException +
public class BadRequestException
+
| +Constructor Summary | +|
|---|---|
BadRequestException(String message,
+ Throwable cause)
+
++ |
+|
BadRequestException(Throwable cause)
+
++ |
+|
| +Method Summary | +
|---|
| Methods inherited from class java.lang.Throwable | +
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public BadRequestException(String message, + Throwable cause)+
+public BadRequestException(Throwable cause)+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++java.lang.Throwable +
java.lang.Exception +
java.lang.RuntimeException +
com.openshift.internal.client.httpclient.HttpClientException +
com.openshift.internal.client.httpclient.EncodingException +
public class EncodingException
+
| +Constructor Summary | +|
|---|---|
EncodingException(String message,
+ Throwable t)
+
++ |
+|
| +Method Summary | +
|---|
| Methods inherited from class java.lang.Throwable | +
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EncodingException(String message, + Throwable t)+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++java.lang.Throwable +
java.lang.Exception +
java.lang.RuntimeException +
com.openshift.internal.client.httpclient.HttpClientException +
public class HttpClientException
+
| +Constructor Summary | +|
|---|---|
HttpClientException(String message)
+
++ |
+|
HttpClientException(String message,
+ Throwable cause)
+
++ |
+|
HttpClientException(Throwable cause)
+
++ |
+|
| +Method Summary | +
|---|
| Methods inherited from class java.lang.Throwable | +
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public HttpClientException(String message, + Throwable cause)+
+public HttpClientException(String message)+
+public HttpClientException(Throwable cause)+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++java.lang.Throwable +
java.lang.Exception +
java.lang.RuntimeException +
com.openshift.internal.client.httpclient.HttpClientException +
com.openshift.internal.client.httpclient.InternalServerErrorException +
public class InternalServerErrorException
+
| +Constructor Summary | +|
|---|---|
InternalServerErrorException(String message)
+
++ |
+|
InternalServerErrorException(String message,
+ Throwable cause)
+
++ |
+|
| +Method Summary | +
|---|
| Methods inherited from class java.lang.Throwable | +
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public InternalServerErrorException(String message, + Throwable cause)+
+public InternalServerErrorException(String message)+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++java.lang.Throwable +
java.lang.Exception +
java.lang.RuntimeException +
com.openshift.internal.client.httpclient.HttpClientException +
com.openshift.internal.client.httpclient.NotFoundException +
public class NotFoundException
+
| +Constructor Summary | +|
|---|---|
NotFoundException(String message)
+
++ |
+|
NotFoundException(String message,
+ Throwable cause)
+
++ |
+|
| +Method Summary | +
|---|
| Methods inherited from class java.lang.Throwable | +
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public NotFoundException(String message, + Throwable cause)+
+public NotFoundException(String message)+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++java.lang.Throwable +
java.lang.Exception +
java.lang.RuntimeException +
com.openshift.internal.client.httpclient.HttpClientException +
com.openshift.internal.client.httpclient.UnauthorizedException +
public class UnauthorizedException
+
| +Constructor Summary | +|
|---|---|
UnauthorizedException(String message,
+ Throwable cause)
+
++ |
+|
UnauthorizedException(Throwable cause)
+
++ |
+|
| +Method Summary | +
|---|
| Methods inherited from class java.lang.Throwable | +
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public UnauthorizedException(String message, + Throwable cause)+
+public UnauthorizedException(Throwable cause)+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.httpclient.UrlConnectionHttpClient +
public class UrlConnectionHttpClient
+
| +Field Summary | +|
|---|---|
+protected String |
+acceptedMediaType
+
++ |
+
+protected String |
+acceptedVersion
+
++ |
+
+protected String |
+authIV
+
++ |
+
+protected String |
+authKey
+
++ |
+
+protected String |
+password
+
++ |
+
+protected boolean |
+sslChecks
+
++ |
+
+protected String |
+userAgent
+
++ |
+
+protected String |
+username
+
++ |
+
| +Constructor Summary | +|
|---|---|
UrlConnectionHttpClient(String username,
+ String password,
+ String userAgent,
+ boolean sslChecks,
+ String acceptedMediaType,
+ String version)
+
++ |
+|
UrlConnectionHttpClient(String username,
+ String password,
+ String userAgent,
+ boolean sslChecks,
+ String acceptedMediaType,
+ String version,
+ String authKey,
+ String authIV)
+
++ |
+|
| +Method Summary | +|
|---|---|
+protected HttpURLConnection |
+createConnection(URL url,
+ String username,
+ String password,
+ String authKey,
+ String authIV,
+ String userAgent,
+ String acceptedVersion,
+ String acceptedMediaType,
+ int timeout)
+
++ |
+
+protected String |
+createErrorMessage(IOException ioe,
+ HttpURLConnection connection)
+
++ |
+
+ String |
+delete(URL url,
+ IMediaType mediaType,
+ int timeout,
+ Parameter... parameters)
+
++ |
+
+ String |
+delete(URL url,
+ int timeout)
+
++ |
+
+ String |
+get(URL url,
+ int timeout)
+
++ |
+
+ String |
+head(URL url,
+ int timeout)
+
++ |
+
+ String |
+patch(URL url,
+ IMediaType mediaType,
+ int timeout,
+ Parameter... parameters)
+
++ |
+
+ String |
+post(URL url,
+ IMediaType mediaType,
+ int timeout,
+ Parameter... parameters)
+
++ |
+
+ String |
+put(URL url,
+ IMediaType mediaType,
+ int timeout,
+ Parameter... parameters)
+
++ |
+
+protected String |
+request(HttpMethod httpMethod,
+ URL url,
+ IMediaType requestMediaType,
+ int timeout,
+ Parameter... parameters)
+
++ |
+
+protected String |
+request(HttpMethod httpMethod,
+ URL url,
+ IMediaType requestMediaType,
+ int timeout,
+ ParameterValueMap parameters)
+
++ |
+
+ void |
+setAcceptedMediaType(String acceptedMediaType)
+
++ |
+
+ void |
+setAcceptVersion(String version)
+
++ |
+
+ void |
+setUserAgent(String userAgent)
+
++ |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Field Detail | +
|---|
+protected String userAgent+
+protected boolean sslChecks+
+protected String username+
+protected String password+
+protected String authKey+
+protected String authIV+
+protected String acceptedMediaType+
+protected String acceptedVersion+
| +Constructor Detail | +
|---|
+public UrlConnectionHttpClient(String username, + String password, + String userAgent, + boolean sslChecks, + String acceptedMediaType, + String version)+
+public UrlConnectionHttpClient(String username, + String password, + String userAgent, + boolean sslChecks, + String acceptedMediaType, + String version, + String authKey, + String authIV)+
| +Method Detail | +
|---|
+public String get(URL url, + int timeout) + throws HttpClientException, + SocketTimeoutException+
get in interface IHttpClientHttpClientException
+SocketTimeoutException+public String head(URL url, + int timeout) + throws HttpClientException, + SocketTimeoutException+
head in interface IHttpClientHttpClientException
+SocketTimeoutException+public String put(URL url, + IMediaType mediaType, + int timeout, + Parameter... parameters) + throws HttpClientException, + SocketTimeoutException, + EncodingException+
put in interface IHttpClientHttpClientException
+SocketTimeoutException
+EncodingException+public String post(URL url, + IMediaType mediaType, + int timeout, + Parameter... parameters) + throws HttpClientException, + SocketTimeoutException, + EncodingException+
post in interface IHttpClientHttpClientException
+SocketTimeoutException
+EncodingException+public String patch(URL url, + IMediaType mediaType, + int timeout, + Parameter... parameters) + throws HttpClientException, + SocketTimeoutException, + EncodingException+
patch in interface IHttpClientHttpClientException
+SocketTimeoutException
+EncodingException+public String delete(URL url, + IMediaType mediaType, + int timeout, + Parameter... parameters) + throws HttpClientException, + SocketTimeoutException, + EncodingException+
delete in interface IHttpClientHttpClientException
+SocketTimeoutException
+EncodingException+public String delete(URL url, + int timeout) + throws HttpClientException, + SocketTimeoutException, + EncodingException+
delete in interface IHttpClientHttpClientException
+SocketTimeoutException
+EncodingException+protected String request(HttpMethod httpMethod, + URL url, + IMediaType requestMediaType, + int timeout, + Parameter... parameters) + throws SocketTimeoutException, + HttpClientException+
SocketTimeoutException
+HttpClientException+protected String request(HttpMethod httpMethod, + URL url, + IMediaType requestMediaType, + int timeout, + ParameterValueMap parameters) + throws SocketTimeoutException, + HttpClientException+
SocketTimeoutException
+HttpClientException+protected String createErrorMessage(IOException ioe, + HttpURLConnection connection) + throws IOException+
IOException+protected HttpURLConnection createConnection(URL url, + String username, + String password, + String authKey, + String authIV, + String userAgent, + String acceptedVersion, + String acceptedMediaType, + int timeout) + throws IOException+
IOException+public void setUserAgent(String userAgent)+
setUserAgent in interface IHttpClient+public void setAcceptVersion(String version)+
setAcceptVersion in interface IHttpClient+public void setAcceptedMediaType(String acceptedMediaType)+
setAcceptedMediaType in interface IHttpClient
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.httpclient.UrlConnectionHttpClientBuilder +
public class UrlConnectionHttpClientBuilder
+
| +Constructor Summary | +|
|---|---|
UrlConnectionHttpClientBuilder()
+
++ |
+|
| +Method Summary | +|
|---|---|
+ IHttpClient |
+client()
+
++ |
+
+ UrlConnectionHttpClientBuilder |
+setAcceptMediaType(String mediaType)
+
++ |
+
+ UrlConnectionHttpClientBuilder |
+setCredentials(String username,
+ String password)
+
++ |
+
+ UrlConnectionHttpClientBuilder |
+setCredentials(String username,
+ String password,
+ String authKey,
+ String authIV)
+
++ |
+
+ UrlConnectionHttpClientBuilder |
+setSSLChecks(boolean check)
+
++ |
+
+ UrlConnectionHttpClientBuilder |
+setUserAgent(String userAgent)
+
++ |
+
+ UrlConnectionHttpClientBuilder |
+setVersion(String version)
+
++ |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public UrlConnectionHttpClientBuilder()+
| +Method Detail | +
|---|
+public UrlConnectionHttpClientBuilder setUserAgent(String userAgent)+
+public UrlConnectionHttpClientBuilder setSSLChecks(boolean check)+
+public UrlConnectionHttpClientBuilder setCredentials(String username, + String password)+
+public UrlConnectionHttpClientBuilder setCredentials(String username, + String password, + String authKey, + String authIV)+
+public UrlConnectionHttpClientBuilder setAcceptMediaType(String mediaType)+
+public UrlConnectionHttpClientBuilder setVersion(String version)+
+public IHttpClient client()+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use EncodingException | +|
|---|---|
| com.openshift.client | ++ |
| com.openshift.internal.client.httpclient | ++ |
| com.openshift.internal.client.httpclient.request | ++ |
| +Uses of EncodingException in com.openshift.client | +
|---|
+ +
| Methods in com.openshift.client that throw EncodingException | +|
|---|---|
+ String |
+IHttpClient.delete(URL url,
+ IMediaType mediaType,
+ int timeout,
+ Parameter... parameters)
+
++ |
+
+ String |
+IHttpClient.delete(URL url,
+ int timeout)
+
++ |
+
+ String |
+IHttpClient.patch(URL url,
+ IMediaType mediaType,
+ int timeout,
+ Parameter... parameters)
+
++ |
+
+ String |
+IHttpClient.post(URL url,
+ IMediaType mediaType,
+ int timeout,
+ Parameter... parameters)
+
++ |
+
+ String |
+IHttpClient.put(URL url,
+ IMediaType mediaType,
+ int timeout,
+ Parameter... parameters)
+
++ |
+
| +Uses of EncodingException in com.openshift.internal.client.httpclient | +
|---|
+ +
| Methods in com.openshift.internal.client.httpclient that throw EncodingException | +|
|---|---|
+ String |
+UrlConnectionHttpClient.delete(URL url,
+ IMediaType mediaType,
+ int timeout,
+ Parameter... parameters)
+
++ |
+
+ String |
+UrlConnectionHttpClient.delete(URL url,
+ int timeout)
+
++ |
+
+ String |
+UrlConnectionHttpClient.patch(URL url,
+ IMediaType mediaType,
+ int timeout,
+ Parameter... parameters)
+
++ |
+
+ String |
+UrlConnectionHttpClient.post(URL url,
+ IMediaType mediaType,
+ int timeout,
+ Parameter... parameters)
+
++ |
+
+ String |
+UrlConnectionHttpClient.put(URL url,
+ IMediaType mediaType,
+ int timeout,
+ Parameter... parameters)
+
++ |
+
| +Uses of EncodingException in com.openshift.internal.client.httpclient.request | +
|---|
+ +
| Methods in com.openshift.internal.client.httpclient.request that throw EncodingException | +|
|---|---|
+ void |
+JsonMediaType.writeTo(ParameterValueMap parameterMap,
+ OutputStream out)
+
++ |
+
+ void |
+IMediaType.writeTo(ParameterValueMap parameterMap,
+ OutputStream out)
+
++ |
+
+ void |
+FormUrlEncodedMediaType.writeTo(ParameterValueMap parameterMap,
+ OutputStream out)
+
++ |
+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use HttpClientException | +|
|---|---|
| com.openshift.client | ++ |
| com.openshift.internal.client.httpclient | ++ |
| +Uses of HttpClientException in com.openshift.client | +
|---|
+ +
| Methods in com.openshift.client that throw HttpClientException | +|
|---|---|
+ String |
+IHttpClient.delete(URL url,
+ IMediaType mediaType,
+ int timeout,
+ Parameter... parameters)
+
++ |
+
+ String |
+IHttpClient.delete(URL url,
+ int timeout)
+
++ |
+
+ String |
+IHttpClient.get(URL url,
+ int timeout)
+
++ |
+
+ String |
+IHttpClient.head(URL url,
+ int timeout)
+
++ |
+
+ String |
+IHttpClient.patch(URL url,
+ IMediaType mediaType,
+ int timeout,
+ Parameter... parameters)
+
++ |
+
+ String |
+IHttpClient.post(URL url,
+ IMediaType mediaType,
+ int timeout,
+ Parameter... parameters)
+
++ |
+
+ String |
+IHttpClient.put(URL url,
+ IMediaType mediaType,
+ int timeout,
+ Parameter... parameters)
+
++ |
+
+ +
| Constructors in com.openshift.client with parameters of type HttpClientException | +|
|---|---|
InvalidCredentialsOpenShiftException(String url,
+ HttpClientException cause,
+ RestResponse restResponse)
+
++ |
+|
NotFoundOpenShiftException(String url,
+ HttpClientException e,
+ RestResponse restResponse)
+
++ |
+|
| +Uses of HttpClientException in com.openshift.internal.client.httpclient | +
|---|
+ +
| Subclasses of HttpClientException in com.openshift.internal.client.httpclient | +|
|---|---|
+ class |
+BadRequestException
+
++ |
+
+ class |
+EncodingException
+
++ |
+
+ class |
+InternalServerErrorException
+
++ |
+
+ class |
+NotFoundException
+
++ |
+
+ class |
+UnauthorizedException
+
++ |
+
+ +
| Methods in com.openshift.internal.client.httpclient that throw HttpClientException | +|
|---|---|
+ String |
+UrlConnectionHttpClient.delete(URL url,
+ IMediaType mediaType,
+ int timeout,
+ Parameter... parameters)
+
++ |
+
+ String |
+UrlConnectionHttpClient.delete(URL url,
+ int timeout)
+
++ |
+
+ String |
+UrlConnectionHttpClient.get(URL url,
+ int timeout)
+
++ |
+
+ String |
+UrlConnectionHttpClient.head(URL url,
+ int timeout)
+
++ |
+
+ String |
+UrlConnectionHttpClient.patch(URL url,
+ IMediaType mediaType,
+ int timeout,
+ Parameter... parameters)
+
++ |
+
+ String |
+UrlConnectionHttpClient.post(URL url,
+ IMediaType mediaType,
+ int timeout,
+ Parameter... parameters)
+
++ |
+
+ String |
+UrlConnectionHttpClient.put(URL url,
+ IMediaType mediaType,
+ int timeout,
+ Parameter... parameters)
+
++ |
+
+protected String |
+UrlConnectionHttpClient.request(HttpMethod httpMethod,
+ URL url,
+ IMediaType requestMediaType,
+ int timeout,
+ Parameter... parameters)
+
++ |
+
+protected String |
+UrlConnectionHttpClient.request(HttpMethod httpMethod,
+ URL url,
+ IMediaType requestMediaType,
+ int timeout,
+ ParameterValueMap parameters)
+
++ |
+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use UrlConnectionHttpClientBuilder | +|
|---|---|
| com.openshift.internal.client.httpclient | ++ |
| +Uses of UrlConnectionHttpClientBuilder in com.openshift.internal.client.httpclient | +
|---|
+ +
| Methods in com.openshift.internal.client.httpclient that return UrlConnectionHttpClientBuilder | +|
|---|---|
+ UrlConnectionHttpClientBuilder |
+UrlConnectionHttpClientBuilder.setAcceptMediaType(String mediaType)
+
++ |
+
+ UrlConnectionHttpClientBuilder |
+UrlConnectionHttpClientBuilder.setCredentials(String username,
+ String password)
+
++ |
+
+ UrlConnectionHttpClientBuilder |
+UrlConnectionHttpClientBuilder.setCredentials(String username,
+ String password,
+ String authKey,
+ String authIV)
+
++ |
+
+ UrlConnectionHttpClientBuilder |
+UrlConnectionHttpClientBuilder.setSSLChecks(boolean check)
+
++ |
+
+ UrlConnectionHttpClientBuilder |
+UrlConnectionHttpClientBuilder.setUserAgent(String userAgent)
+
++ |
+
+ UrlConnectionHttpClientBuilder |
+UrlConnectionHttpClientBuilder.setVersion(String version)
+
++ |
+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
|
+Classes
+
+ +UrlConnectionHttpClient + +UrlConnectionHttpClientBuilder |
+
|
+Exceptions
+
+ +BadRequestException + +EncodingException + +HttpClientException + +InternalServerErrorException + +NotFoundException + +UnauthorizedException |
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Class Summary | +|
|---|---|
| UrlConnectionHttpClient | ++ |
| UrlConnectionHttpClientBuilder | ++ |
+ +
| +Exception Summary | +|
|---|---|
| BadRequestException | ++ |
| EncodingException | ++ |
| HttpClientException | ++ |
| InternalServerErrorException | ++ |
| NotFoundException | ++ |
| UnauthorizedException | ++ |
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use com.openshift.internal.client.httpclient | +|
|---|---|
| com.openshift.client | ++ |
| com.openshift.internal.client.httpclient | ++ |
| com.openshift.internal.client.httpclient.request | ++ |
| +Classes in com.openshift.internal.client.httpclient used by com.openshift.client | +|
|---|---|
| EncodingException
+
+ + |
+|
| HttpClientException
+
+ + |
+|
| +Classes in com.openshift.internal.client.httpclient used by com.openshift.internal.client.httpclient | +|
|---|---|
| EncodingException
+
+ + |
+|
| HttpClientException
+
+ + |
+|
| UrlConnectionHttpClientBuilder
+
+ + |
+|
| +Classes in com.openshift.internal.client.httpclient used by com.openshift.internal.client.httpclient.request | +|
|---|---|
| EncodingException
+
+ + |
+|
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.httpclient.request.FormUrlEncodedMediaType +
public class FormUrlEncodedMediaType
+A class that encodes request parameters to formurl-encoded format so that they may get sent to + the server. There are 4 types that are recognized and correctly encoded: +
+ +
+
IHttpClient.post(java.net.URL, IMediaType, int,
+ com.openshift.internal.client.httpclient.request.Parameter...),
+IHttpClient.put(java.net.URL, IMediaType, int,
+ com.openshift.internal.client.httpclient.request.Parameter...),
+IHttpClient.delete(java.net.URL, IMediaType, int,
+ com.openshift.internal.client.httpclient.request.Parameter...)| +Constructor Summary | +|
|---|---|
FormUrlEncodedMediaType()
+
++ |
+|
| +Method Summary | +|
|---|---|
+ String |
+getType()
+
++ |
+
+ void |
+writeTo(ParameterValueMap parameterMap,
+ OutputStream out)
+
++ |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public FormUrlEncodedMediaType()+
| +Method Detail | +
|---|
+public String getType()+
getType in interface IMediaType+public void writeTo(ParameterValueMap parameterMap, + OutputStream out) + throws EncodingException+
writeTo in interface IMediaTypeEncodingException
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
public interface IMediaType
+A media type that encodes and writes request parameters before they get sent by the client. +
+ +
+
IHttpClient.post(java.net.URL, IMediaType, int, com.openshift.internal.client.httpclient.request.Parameter...),
+IHttpClient.put(java.net.URL, IMediaType, int, com.openshift.internal.client.httpclient.request.Parameter...),
+IHttpClient.delete(java.net.URL, IMediaType, int, com.openshift.internal.client.httpclient.request.Parameter...)| +Method Summary | +|
|---|---|
+ String |
+getType()
+
++ |
+
+ void |
+writeTo(ParameterValueMap parameterMap,
+ OutputStream out)
+
++ |
+
| +Method Detail | +
|---|
+String getType()+
+void writeTo(ParameterValueMap parameterMap, + OutputStream out) + throws EncodingException+
EncodingException
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.httpclient.request.JsonMediaType +
public class JsonMediaType
+A class that encodes request parameters to json so that they may get sent to + the server. There are 4 types that are recognized and correctly encoded: +
+ +
+
IHttpClient.post(java.net.URL, IMediaType, int, com.openshift.internal.client.httpclient.request.Parameter...),
+IHttpClient.put(java.net.URL, IMediaType, int, com.openshift.internal.client.httpclient.request.Parameter...),
+IHttpClient.delete(java.net.URL, IMediaType, int, com.openshift.internal.client.httpclient.request.Parameter...)| +Constructor Summary | +|
|---|---|
JsonMediaType()
+
++ |
+|
| +Method Summary | +|
|---|---|
+ String |
+getType()
+
++ |
+
+ void |
+writeTo(ParameterValueMap parameterMap,
+ OutputStream out)
+
++ |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public JsonMediaType()+
| +Method Detail | +
|---|
+public String getType()+
getType in interface IMediaType+public void writeTo(ParameterValueMap parameterMap, + OutputStream out) + throws EncodingException+
writeTo in interface IMediaTypeEncodingException
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.httpclient.request.ParameterValue<ParameterValue<?>> +
com.openshift.internal.client.httpclient.request.Parameter +
public class Parameter
+A parameter wrapper to pass param key/values to the service when executing a + remote operation from a link. +
+ +
+
| +Constructor Summary | +|
|---|---|
Parameter(String name,
+ ParameterValue<?> value)
+
++ |
+|
Parameter(String name,
+ String value)
+
++ |
+|
| +Method Summary | +|
|---|---|
+ boolean |
+equals(Object obj)
+
++ |
+
+ String |
+getName()
+
++ |
+
+ int |
+hashCode()
+
++ |
+
+ String |
+toString()
+
++ |
+
| Methods inherited from class com.openshift.internal.client.httpclient.request.ParameterValue | +
|---|
getValue |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public Parameter(String name, + String value)+
+public Parameter(String name, + ParameterValue<?> value)+
| +Method Detail | +
|---|
+public String getName()+
+public int hashCode()+
hashCode in class ParameterValue<ParameterValue<?>>+public boolean equals(Object obj)+
equals in class ParameterValue<ParameterValue<?>>+public String toString()+
toString in class ParameterValue<ParameterValue<?>>
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.httpclient.request.ParameterValue<V> +
public abstract class ParameterValue<V>
+
| +Constructor Summary | +|
|---|---|
ParameterValue(V value)
+
++ |
+|
| +Method Summary | +|
|---|---|
+ boolean |
+equals(Object obj)
+
++ |
+
+ V |
+getValue()
+
++ |
+
+ int |
+hashCode()
+
++ |
+
+ String |
+toString()
+
++ |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public ParameterValue(V value)+
| +Method Detail | +
|---|
+public int hashCode()+
hashCode in class Object+public boolean equals(Object obj)+
equals in class Object+public V getValue()+
+public String toString()+
toString in class Object
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.httpclient.request.ParameterValue<List<ParameterValue<?>>> +
com.openshift.internal.client.httpclient.request.ParameterValueArray +
public class ParameterValueArray
+
| +Constructor Summary | +|
|---|---|
ParameterValueArray()
+
++ |
+|
ParameterValueArray(List<ParameterValue<?>> values)
+
++ |
+|
| +Method Summary | +|
|---|---|
+ ParameterValueArray |
+add(ParameterValue<?> value)
+
++ |
+
+ ParameterValueArray |
+add(String name,
+ String value)
+
++ |
+
+ ParameterValueArray |
+addAll(List<? extends ParameterValue<?>> values)
+
++ |
+
+ String |
+toString()
+
++ |
+
| Methods inherited from class com.openshift.internal.client.httpclient.request.ParameterValue | +
|---|
equals, getValue, hashCode |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public ParameterValueArray()+
+public ParameterValueArray(List<ParameterValue<?>> values)+
| +Method Detail | +
|---|
+public ParameterValueArray add(String name, + String value)+
+public ParameterValueArray add(ParameterValue<?> value)+
+public ParameterValueArray addAll(List<? extends ParameterValue<?>> values)+
+public String toString()+
toString in class ParameterValue<List<ParameterValue<?>>>
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.httpclient.request.ParameterValue<Map<String,Parameter>> +
com.openshift.internal.client.httpclient.request.ParameterValueMap +
public class ParameterValueMap
+
| +Constructor Summary | +|
|---|---|
ParameterValueMap()
+
++ |
+|
ParameterValueMap(List<Parameter> parameters)
+
++ |
+|
ParameterValueMap(Parameter... parameters)
+
++ |
+|
| +Method Summary | +|
|---|---|
+ ParameterValueMap |
+add(Parameter parameter)
+
++ |
+
+ ParameterValueMap |
+add(String name,
+ String value)
+
++ |
+
+ ParameterValueMap |
+addAll(List<? extends Parameter> parameters)
+
++ |
+
+ boolean |
+equals(Object obj)
+
++ |
+
+ Parameter |
+getParamater(String name)
+
++ |
+
+ boolean |
+isEmpty()
+
++ |
+
+ String |
+toString()
+
++ |
+
| Methods inherited from class com.openshift.internal.client.httpclient.request.ParameterValue | +
|---|
getValue, hashCode |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public ParameterValueMap(List<Parameter> parameters)+
+public ParameterValueMap(Parameter... parameters)+
+public ParameterValueMap()+
| +Method Detail | +
|---|
+public ParameterValueMap addAll(List<? extends Parameter> parameters)+
+public ParameterValueMap add(String name, + String value)+
+public ParameterValueMap add(Parameter parameter)+
+public Parameter getParamater(String name)+
+public boolean isEmpty()+
+public boolean equals(Object obj)+
equals in class ParameterValue<Map<String,Parameter>>+public String toString()+
toString in class ParameterValue<Map<String,Parameter>>
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.httpclient.request.ParameterValue<ParameterValue<?>> +
com.openshift.internal.client.httpclient.request.Parameter +
com.openshift.internal.client.httpclient.request.StringParameter +
public class StringParameter
+
| +Constructor Summary | +|
|---|---|
StringParameter(String name,
+ String value)
+
++ |
+|
| +Method Summary | +|
|---|---|
+ String |
+toString()
+
++ |
+
| Methods inherited from class com.openshift.internal.client.httpclient.request.Parameter | +
|---|
equals, getName, hashCode |
+
| Methods inherited from class com.openshift.internal.client.httpclient.request.ParameterValue | +
|---|
getValue |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public StringParameter(String name, + String value)+
| +Method Detail | +
|---|
+public String toString()+
toString in class Parameter
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.httpclient.request.ParameterValue<String> +
com.openshift.internal.client.httpclient.request.StringValue +
public class StringValue
+
| +Constructor Summary | +|
|---|---|
StringValue(String value)
+
++ |
+|
| +Method Summary | +|
|---|---|
+ String |
+toString()
+
++ |
+
| Methods inherited from class com.openshift.internal.client.httpclient.request.ParameterValue | +
|---|
equals, getValue, hashCode |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public StringValue(String value)+
| +Method Detail | +
|---|
+public String toString()+
toString in class ParameterValue<String>
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use IMediaType | +|
|---|---|
| com.openshift.client | ++ |
| com.openshift.internal.client | ++ |
| com.openshift.internal.client.httpclient | ++ |
| com.openshift.internal.client.httpclient.request | ++ |
| +Uses of IMediaType in com.openshift.client | +
|---|
+ +
| Methods in com.openshift.client with parameters of type IMediaType | +|
|---|---|
+ String |
+IHttpClient.delete(URL url,
+ IMediaType mediaType,
+ int timeout,
+ Parameter... parameters)
+
++ |
+
+ String |
+IHttpClient.patch(URL url,
+ IMediaType mediaType,
+ int timeout,
+ Parameter... parameters)
+
++ |
+
+ String |
+IHttpClient.post(URL url,
+ IMediaType mediaType,
+ int timeout,
+ Parameter... parameters)
+
++ |
+
+ String |
+IHttpClient.put(URL url,
+ IMediaType mediaType,
+ int timeout,
+ Parameter... parameters)
+
++ |
+
| +Uses of IMediaType in com.openshift.internal.client | +
|---|
+ +
| Methods in com.openshift.internal.client with parameters of type IMediaType | +||
|---|---|---|
+protected
+ |
+AbstractOpenShiftResource.ServiceRequest.execute(int timeout,
+ IMediaType mediaType,
+ Parameter... parameters)
+
++ |
+|
+protected
+ |
+AbstractOpenShiftResource.ServiceRequest.execute(int timeout,
+ List<Parameter> urlParameter,
+ IMediaType mediaType,
+ Parameter... parameters)
+
++ |
+|
+ RestResponse |
+RestService.request(Link link,
+ int timeout,
+ IMediaType requestMediaType,
+ Parameter... parameters)
+
++ |
+|
+ RestResponse |
+IRestService.request(Link link,
+ int timeout,
+ IMediaType mediaType,
+ Parameter... parameters)
+
++ Requests the given link sending the given parameters while encoding the + parameters with the given media type and respecting the given timeout. |
+|
+ RestResponse |
+RestService.request(Link link,
+ int timeout,
+ List<Parameter> urlParameters,
+ IMediaType requestMediaType,
+ Parameter... parameters)
+
++ |
+|
+ RestResponse |
+IRestService.request(Link link,
+ int timeout,
+ List<Parameter> urlParameters,
+ IMediaType mediaType,
+ Parameter... parameters)
+
++ |
+|
+ +
| Constructors in com.openshift.internal.client with parameters of type IMediaType | +|
|---|---|
RestService(String server,
+ String clientId,
+ IMediaType defaultRequestMediaType,
+ String acceptedMediaType,
+ IRestResponseFactory factory,
+ IHttpClient client)
+
++ |
+|
RestService(String server,
+ String clientId,
+ IMediaType defaultRequestMediaType,
+ String acceptedMediaType,
+ IRestResponseFactory factory,
+ IHttpClient client,
+ RestServiceProperties properties)
+
++ |
+|
RestService(String server,
+ String clientId,
+ String protocolVersion,
+ IMediaType defaultRequestMediaType,
+ String acceptedMediaType,
+ IRestResponseFactory factory,
+ IHttpClient client,
+ RestServiceProperties properties)
+
++ |
+|
| +Uses of IMediaType in com.openshift.internal.client.httpclient | +
|---|
+ +
| Methods in com.openshift.internal.client.httpclient with parameters of type IMediaType | +|
|---|---|
+ String |
+UrlConnectionHttpClient.delete(URL url,
+ IMediaType mediaType,
+ int timeout,
+ Parameter... parameters)
+
++ |
+
+ String |
+UrlConnectionHttpClient.patch(URL url,
+ IMediaType mediaType,
+ int timeout,
+ Parameter... parameters)
+
++ |
+
+ String |
+UrlConnectionHttpClient.post(URL url,
+ IMediaType mediaType,
+ int timeout,
+ Parameter... parameters)
+
++ |
+
+ String |
+UrlConnectionHttpClient.put(URL url,
+ IMediaType mediaType,
+ int timeout,
+ Parameter... parameters)
+
++ |
+
+protected String |
+UrlConnectionHttpClient.request(HttpMethod httpMethod,
+ URL url,
+ IMediaType requestMediaType,
+ int timeout,
+ Parameter... parameters)
+
++ |
+
+protected String |
+UrlConnectionHttpClient.request(HttpMethod httpMethod,
+ URL url,
+ IMediaType requestMediaType,
+ int timeout,
+ ParameterValueMap parameters)
+
++ |
+
| +Uses of IMediaType in com.openshift.internal.client.httpclient.request | +
|---|
+ +
| Classes in com.openshift.internal.client.httpclient.request that implement IMediaType | +|
|---|---|
+ class |
+FormUrlEncodedMediaType
+
++ A class that encodes request parameters to formurl-encoded format so that they may get sent to + the server. |
+
+ class |
+JsonMediaType
+
++ A class that encodes request parameters to json so that they may get sent to + the server. |
+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use Parameter | +|
|---|---|
| com.openshift.client | ++ |
| com.openshift.internal.client | ++ |
| com.openshift.internal.client.httpclient | ++ |
| com.openshift.internal.client.httpclient.request | ++ |
| com.openshift.internal.client.response | ++ |
| +Uses of Parameter in com.openshift.client | +
|---|
+ +
| Methods in com.openshift.client with parameters of type Parameter | +|
|---|---|
+ String |
+IHttpClient.delete(URL url,
+ IMediaType mediaType,
+ int timeout,
+ Parameter... parameters)
+
++ |
+
+ String |
+IHttpClient.patch(URL url,
+ IMediaType mediaType,
+ int timeout,
+ Parameter... parameters)
+
++ |
+
+ String |
+IHttpClient.post(URL url,
+ IMediaType mediaType,
+ int timeout,
+ Parameter... parameters)
+
++ |
+
+ String |
+IHttpClient.put(URL url,
+ IMediaType mediaType,
+ int timeout,
+ Parameter... parameters)
+
++ |
+
| +Uses of Parameter in com.openshift.internal.client | +
|---|
+ +
| Methods in com.openshift.internal.client that return Parameter | +|
|---|---|
+protected Parameter[] |
+AbstractOpenShiftResource.Parameters.toArray()
+
++ |
+
+ +
| Methods in com.openshift.internal.client that return types with arguments of type Parameter | +|
|---|---|
+protected List<Parameter> |
+AbstractOpenShiftResource.Parameters.toList()
+
++ |
+
+ +
| Methods in com.openshift.internal.client with parameters of type Parameter | +||
|---|---|---|
+protected AbstractOpenShiftResource.Parameters |
+AbstractOpenShiftResource.Parameters.add(Parameter parameter)
+
++ |
+|
+protected
+ |
+AbstractOpenShiftResource.ServiceRequest.execute(int timeout,
+ IMediaType mediaType,
+ Parameter... parameters)
+
++ |
+|
+protected
+ |
+AbstractOpenShiftResource.ServiceRequest.execute(int timeout,
+ List<Parameter> urlParameter,
+ IMediaType mediaType,
+ Parameter... parameters)
+
++ |
+|
+protected
+ |
+AbstractOpenShiftResource.ServiceRequest.execute(int timeout,
+ List<Parameter> urlParameter,
+ Parameter... parameters)
+
++ |
+|
+protected
+ |
+AbstractOpenShiftResource.ServiceRequest.execute(int timeout,
+ Parameter... parameters)
+
++ |
+|
+protected
+ |
+AbstractOpenShiftResource.ServiceRequest.execute(List<Parameter> urlParameter,
+ Parameter... parameters)
+
++ |
+|
+protected
+ |
+AbstractOpenShiftResource.ServiceRequest.execute(Parameter... parameters)
+
++ |
+|
+ RestResponse |
+RestService.request(Link link,
+ int timeout,
+ IMediaType requestMediaType,
+ Parameter... parameters)
+
++ |
+|
+ RestResponse |
+IRestService.request(Link link,
+ int timeout,
+ IMediaType mediaType,
+ Parameter... parameters)
+
++ Requests the given link sending the given parameters while encoding the + parameters with the given media type and respecting the given timeout. |
+|
+ RestResponse |
+RestService.request(Link link,
+ int timeout,
+ List<Parameter> urlParameters,
+ IMediaType requestMediaType,
+ Parameter... parameters)
+
++ |
+|
+ RestResponse |
+IRestService.request(Link link,
+ int timeout,
+ List<Parameter> urlParameters,
+ IMediaType mediaType,
+ Parameter... parameters)
+
++ |
+|
+ RestResponse |
+RestService.request(Link link,
+ int timeout,
+ List<Parameter> urlParameters,
+ Parameter... parameters)
+
++ |
+|
+ RestResponse |
+IRestService.request(Link link,
+ int timeout,
+ List<Parameter> urlParameters,
+ Parameter... parameters)
+
++ |
+|
+ RestResponse |
+RestService.request(Link link,
+ int timeout,
+ Parameter... parameters)
+
++ |
+|
+ RestResponse |
+IRestService.request(Link link,
+ int timeout,
+ Parameter... parameters)
+
++ |
+|
+ RestResponse |
+RestService.request(Link link,
+ List<Parameter> urlParameters,
+ Parameter... parameters)
+
++ |
+|
+ RestResponse |
+IRestService.request(Link link,
+ List<Parameter> urlParameters,
+ Parameter... parameters)
+
++ |
+|
+ RestResponse |
+RestService.request(Link link,
+ Parameter... parameters)
+
++ |
+|
+ RestResponse |
+IRestService.request(Link link,
+ Parameter... parameters)
+
++ |
+|
+ +
| Method parameters in com.openshift.internal.client with type arguments of type Parameter | +||
|---|---|---|
+protected
+ |
+AbstractOpenShiftResource.ServiceRequest.execute(int timeout,
+ List<Parameter> urlParameter,
+ IMediaType mediaType,
+ Parameter... parameters)
+
++ |
+|
+protected
+ |
+AbstractOpenShiftResource.ServiceRequest.execute(int timeout,
+ List<Parameter> urlParameter,
+ Parameter... parameters)
+
++ |
+|
+protected
+ |
+AbstractOpenShiftResource.ServiceRequest.execute(List<Parameter> urlParameter,
+ Parameter... parameters)
+
++ |
+|
+ RestResponse |
+RestService.request(Link link,
+ int timeout,
+ List<Parameter> urlParameters,
+ IMediaType requestMediaType,
+ Parameter... parameters)
+
++ |
+|
+ RestResponse |
+IRestService.request(Link link,
+ int timeout,
+ List<Parameter> urlParameters,
+ IMediaType mediaType,
+ Parameter... parameters)
+
++ |
+|
+ RestResponse |
+RestService.request(Link link,
+ int timeout,
+ List<Parameter> urlParameters,
+ Parameter... parameters)
+
++ |
+|
+ RestResponse |
+IRestService.request(Link link,
+ int timeout,
+ List<Parameter> urlParameters,
+ Parameter... parameters)
+
++ |
+|
+ RestResponse |
+RestService.request(Link link,
+ List<Parameter> urlParameters,
+ Parameter... parameters)
+
++ |
+|
+ RestResponse |
+IRestService.request(Link link,
+ List<Parameter> urlParameters,
+ Parameter... parameters)
+
++ |
+|
| +Uses of Parameter in com.openshift.internal.client.httpclient | +
|---|
+ +
| Methods in com.openshift.internal.client.httpclient with parameters of type Parameter | +|
|---|---|
+ String |
+UrlConnectionHttpClient.delete(URL url,
+ IMediaType mediaType,
+ int timeout,
+ Parameter... parameters)
+
++ |
+
+ String |
+UrlConnectionHttpClient.patch(URL url,
+ IMediaType mediaType,
+ int timeout,
+ Parameter... parameters)
+
++ |
+
+ String |
+UrlConnectionHttpClient.post(URL url,
+ IMediaType mediaType,
+ int timeout,
+ Parameter... parameters)
+
++ |
+
+ String |
+UrlConnectionHttpClient.put(URL url,
+ IMediaType mediaType,
+ int timeout,
+ Parameter... parameters)
+
++ |
+
+protected String |
+UrlConnectionHttpClient.request(HttpMethod httpMethod,
+ URL url,
+ IMediaType requestMediaType,
+ int timeout,
+ Parameter... parameters)
+
++ |
+
| +Uses of Parameter in com.openshift.internal.client.httpclient.request | +
|---|
+ +
| Subclasses of Parameter in com.openshift.internal.client.httpclient.request | +|
|---|---|
+ class |
+StringParameter
+
++ |
+
+ +
| Methods in com.openshift.internal.client.httpclient.request that return Parameter | +|
|---|---|
+ Parameter |
+ParameterValueMap.getParamater(String name)
+
++ |
+
+ +
| Methods in com.openshift.internal.client.httpclient.request with parameters of type Parameter | +|
|---|---|
+ ParameterValueMap |
+ParameterValueMap.add(Parameter parameter)
+
++ |
+
+ +
| Method parameters in com.openshift.internal.client.httpclient.request with type arguments of type Parameter | +|
|---|---|
+ ParameterValueMap |
+ParameterValueMap.addAll(List<? extends Parameter> parameters)
+
++ |
+
+ +
| Constructors in com.openshift.internal.client.httpclient.request with parameters of type Parameter | +|
|---|---|
ParameterValueMap(Parameter... parameters)
+
++ |
+|
+ +
| Constructor parameters in com.openshift.internal.client.httpclient.request with type arguments of type Parameter | +|
|---|---|
ParameterValueMap(List<Parameter> parameters)
+
++ |
+|
| +Uses of Parameter in com.openshift.internal.client.response | +
|---|
+ +
| Methods in com.openshift.internal.client.response with parameters of type Parameter | +|
|---|---|
+ String |
+Link.getHref(String server,
+ String servicePath,
+ Parameter... urlParameters)
+
++ |
+
+ void |
+Link.validateRequestParameters(Parameter[] parameters)
+
++ |
+
+ +
| Method parameters in com.openshift.internal.client.response with type arguments of type Parameter | +|
|---|---|
+ String |
+Link.getHref(String server,
+ String servicePath,
+ List<Parameter> urlParameters)
+
++ |
+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use ParameterValue | +|
|---|---|
| com.openshift.internal.client.httpclient.request | ++ |
| +Uses of ParameterValue in com.openshift.internal.client.httpclient.request | +
|---|
+ +
| Subclasses of ParameterValue in com.openshift.internal.client.httpclient.request | +|
|---|---|
+ class |
+Parameter
+
++ A parameter wrapper to pass param key/values to the service when executing a + remote operation from a link. |
+
+ class |
+ParameterValueArray
+
++ |
+
+ class |
+ParameterValueMap
+
++ |
+
+ class |
+StringParameter
+
++ |
+
+ class |
+StringValue
+
++ |
+
+ +
| Methods in com.openshift.internal.client.httpclient.request with parameters of type ParameterValue | +|
|---|---|
+ ParameterValueArray |
+ParameterValueArray.add(ParameterValue<?> value)
+
++ |
+
+ +
| Method parameters in com.openshift.internal.client.httpclient.request with type arguments of type ParameterValue | +|
|---|---|
+ ParameterValueArray |
+ParameterValueArray.addAll(List<? extends ParameterValue<?>> values)
+
++ |
+
+ +
| Constructors in com.openshift.internal.client.httpclient.request with parameters of type ParameterValue | +|
|---|---|
Parameter(String name,
+ ParameterValue<?> value)
+
++ |
+|
+ +
| Constructor parameters in com.openshift.internal.client.httpclient.request with type arguments of type ParameterValue | +|
|---|---|
ParameterValueArray(List<ParameterValue<?>> values)
+
++ |
+|
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use ParameterValueArray | +|
|---|---|
| com.openshift.internal.client.httpclient.request | ++ |
| +Uses of ParameterValueArray in com.openshift.internal.client.httpclient.request | +
|---|
+ +
| Methods in com.openshift.internal.client.httpclient.request that return ParameterValueArray | +|
|---|---|
+ ParameterValueArray |
+ParameterValueArray.add(ParameterValue<?> value)
+
++ |
+
+ ParameterValueArray |
+ParameterValueArray.add(String name,
+ String value)
+
++ |
+
+ ParameterValueArray |
+ParameterValueArray.addAll(List<? extends ParameterValue<?>> values)
+
++ |
+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use ParameterValueMap | +|
|---|---|
| com.openshift.internal.client.httpclient | ++ |
| com.openshift.internal.client.httpclient.request | ++ |
| +Uses of ParameterValueMap in com.openshift.internal.client.httpclient | +
|---|
+ +
| Methods in com.openshift.internal.client.httpclient with parameters of type ParameterValueMap | +|
|---|---|
+protected String |
+UrlConnectionHttpClient.request(HttpMethod httpMethod,
+ URL url,
+ IMediaType requestMediaType,
+ int timeout,
+ ParameterValueMap parameters)
+
++ |
+
| +Uses of ParameterValueMap in com.openshift.internal.client.httpclient.request | +
|---|
+ +
| Methods in com.openshift.internal.client.httpclient.request that return ParameterValueMap | +|
|---|---|
+ ParameterValueMap |
+ParameterValueMap.add(Parameter parameter)
+
++ |
+
+ ParameterValueMap |
+ParameterValueMap.add(String name,
+ String value)
+
++ |
+
+ ParameterValueMap |
+ParameterValueMap.addAll(List<? extends Parameter> parameters)
+
++ |
+
+ +
| Methods in com.openshift.internal.client.httpclient.request with parameters of type ParameterValueMap | +|
|---|---|
+ void |
+JsonMediaType.writeTo(ParameterValueMap parameterMap,
+ OutputStream out)
+
++ |
+
+ void |
+IMediaType.writeTo(ParameterValueMap parameterMap,
+ OutputStream out)
+
++ |
+
+ void |
+FormUrlEncodedMediaType.writeTo(ParameterValueMap parameterMap,
+ OutputStream out)
+
++ |
+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
|
+Interfaces
+
+ +IMediaType |
+
|
+Classes
+
+ +FormUrlEncodedMediaType + +JsonMediaType + +Parameter + +ParameterValue + +ParameterValueArray + +ParameterValueMap + +StringParameter + +StringValue |
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Interface Summary | +|
|---|---|
| IMediaType | +A media type that encodes and writes request parameters before they get sent by the client. | +
+ +
| +Class Summary | +|
|---|---|
| FormUrlEncodedMediaType | +A class that encodes request parameters to formurl-encoded format so that they may get sent to + the server. | +
| JsonMediaType | +A class that encodes request parameters to json so that they may get sent to + the server. | +
| Parameter | +A parameter wrapper to pass param key/values to the service when executing a + remote operation from a link. | +
| ParameterValue<V> | ++ |
| ParameterValueArray | ++ |
| ParameterValueMap | ++ |
| StringParameter | ++ |
| StringValue | ++ |
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use com.openshift.internal.client.httpclient.request | +|
|---|---|
| com.openshift.client | ++ |
| com.openshift.internal.client | ++ |
| com.openshift.internal.client.httpclient | ++ |
| com.openshift.internal.client.httpclient.request | ++ |
| com.openshift.internal.client.response | ++ |
| +Classes in com.openshift.internal.client.httpclient.request used by com.openshift.client | +|
|---|---|
| IMediaType
+
+ + A media type that encodes and writes request parameters before they get sent by the client. |
+|
| Parameter
+
+ + A parameter wrapper to pass param key/values to the service when executing a + remote operation from a link. |
+|
| +Classes in com.openshift.internal.client.httpclient.request used by com.openshift.internal.client | +|
|---|---|
| IMediaType
+
+ + A media type that encodes and writes request parameters before they get sent by the client. |
+|
| Parameter
+
+ + A parameter wrapper to pass param key/values to the service when executing a + remote operation from a link. |
+|
| +Classes in com.openshift.internal.client.httpclient.request used by com.openshift.internal.client.httpclient | +|
|---|---|
| IMediaType
+
+ + A media type that encodes and writes request parameters before they get sent by the client. |
+|
| Parameter
+
+ + A parameter wrapper to pass param key/values to the service when executing a + remote operation from a link. |
+|
| ParameterValueMap
+
+ + |
+|
| +Classes in com.openshift.internal.client.httpclient.request used by com.openshift.internal.client.httpclient.request | +|
|---|---|
| IMediaType
+
+ + A media type that encodes and writes request parameters before they get sent by the client. |
+|
| Parameter
+
+ + A parameter wrapper to pass param key/values to the service when executing a + remote operation from a link. |
+|
| ParameterValue
+
+ + |
+|
| ParameterValueArray
+
+ + |
+|
| ParameterValueMap
+
+ + |
+|
| +Classes in com.openshift.internal.client.httpclient.request used by com.openshift.internal.client.response | +|
|---|---|
| Parameter
+
+ + A parameter wrapper to pass param key/values to the service when executing a + remote operation from a link. |
+|
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
|
+Interfaces
+
+ +IRestService |
+
|
+Classes
+
+ +AbstractOpenShiftConnectionFactory + +AbstractOpenShiftResource + +AbstractOpenShiftResource.Parameters + +APIResource + +ApplicationResource + +DomainResource + +EmbeddedCartridgeResource + +EnvironmentVariableResource + +Field + +Gear + +GearGroupResource + +GearProfile + +RestService + +RestServiceProperties + +Severity + +SSHKeyResource + +UserResource |
+
|
+Enums
+
+ +ApplicationResource.SshStreams + +CartridgeType |
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Interface Summary | +|
|---|---|
| IRestService | +A rest service that executes request against the OpenShift server | +
+ +
| +Class Summary | +|
|---|---|
| AbstractOpenShiftConnectionFactory | +Connection Factory, used to establish a connection and retrieve a user. | +
| AbstractOpenShiftResource | +The Class AbstractOpenShiftResource. | +
| AbstractOpenShiftResource.Parameters | ++ |
| APIResource | ++ |
| ApplicationResource | +The ApplicationResource object is an implementation of com.openshift.client.IApplication, and provides + a runtime model for the real application that resides on the OpenShift platform being accessed. | +
| DomainResource | ++ |
| EmbeddedCartridgeResource | +A cartridge that is embedded into an application. | +
| EnvironmentVariableResource | ++ |
| Field | ++ |
| Gear | +A gear that a cartridge is running on. | +
| GearGroupResource | ++ |
| GearProfile | ++ |
| RestService | ++ |
| RestServiceProperties | ++ |
| Severity | ++ |
| SSHKeyResource | ++ |
| UserResource | ++ |
+ +
| +Enum Summary | +|
|---|---|
| ApplicationResource.SshStreams | ++ |
| CartridgeType | ++ |
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use com.openshift.internal.client | +|
|---|---|
| com.openshift.client | ++ |
| com.openshift.internal.client | ++ |
| com.openshift.internal.client.response | ++ |
| +Classes in com.openshift.internal.client used by com.openshift.client | +|
|---|---|
| AbstractOpenShiftConnectionFactory
+
+ + Connection Factory, used to establish a connection and retrieve a user. |
+|
| +Classes in com.openshift.internal.client used by com.openshift.internal.client | +|
|---|---|
| AbstractOpenShiftResource
+
+ + The Class AbstractOpenShiftResource. |
+|
| AbstractOpenShiftResource.Parameters
+
+ + |
+|
| APIResource
+
+ + |
+|
| ApplicationResource
+
+ + The ApplicationResource object is an implementation of com.openshift.client.IApplication, and provides + a runtime model for the real application that resides on the OpenShift platform being accessed. |
+|
| ApplicationResource.SshStreams
+
+ + |
+|
| CartridgeType
+
+ + |
+|
| DomainResource
+
+ + |
+|
| IRestService
+
+ + A rest service that executes request against the OpenShift server |
+|
| RestServiceProperties
+
+ + |
+|
| SSHKeyResource
+
+ + |
+|
| UserResource
+
+ + |
+|
| +Classes in com.openshift.internal.client used by com.openshift.internal.client.response | +|
|---|---|
| CartridgeType
+
+ + |
+|
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.response.BaseResourceDTO +
com.openshift.internal.client.response.ApplicationResourceDTO +
public class ApplicationResourceDTO
+The Class ApplicationDTO. +
+ +
+
| +Method Summary | +|
|---|---|
+ List<String> |
+getAliases()
+
++ |
+
+ ApplicationScale |
+getApplicationScale()
+
++ |
+
+ String |
+getApplicationUrl()
+
++ |
+
+ Map<String,CartridgeResourceDTO> |
+getCartridges()
+
++ |
+
+ String |
+getCreationTime()
+
++ Gets the creation time. |
+
+ String |
+getDomainId()
+
++ Gets the domain id. |
+
+ String |
+getFramework()
+
++ Gets the framework. |
+
+ IGearProfile |
+getGearProfile()
+
++ |
+
+ String |
+getGitUrl()
+
++ |
+
+ String |
+getInitialGitUrl()
+
++ |
+
+ String |
+getName()
+
++ Gets the name. |
+
+ String |
+getSshUrl()
+
++ |
+
+ String |
+getUuid()
+
++ Gets the uuid. |
+
+ String |
+toString()
+
++ |
+
| Methods inherited from class com.openshift.internal.client.response.BaseResourceDTO | +
|---|
getLink, getLinks, getMessages |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
| +Method Detail | +
|---|
+public final String getFramework()+
+
+public final String getDomainId()+
+
+public final String getCreationTime()+
+
+public final String getName()+
+
+public final ApplicationScale getApplicationScale()+
+public final IGearProfile getGearProfile()+
+public final String getUuid()+
+
+public final String getApplicationUrl()+
+public String getSshUrl()+
+public final String getGitUrl()+
+public final String getInitialGitUrl()+
+public List<String> getAliases()+
+public Map<String,CartridgeResourceDTO> getCartridges()+
+public String toString()+
toString in class Object
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.response.BaseResourceDTO +
T - the generic typepublic abstract class BaseResourceDTO
+The Class BaseResourceDTO. +
+ +
+
| +Constructor Summary | +|
|---|---|
+protected |
+BaseResourceDTO()
+
++ |
+
+protected |
+BaseResourceDTO(Map<String,Link> links,
+ Messages messages)
+
++ Instantiates a new base resource dto. |
+
| +Method Summary | +|
|---|---|
+ Link |
+getLink(String name)
+
++ Gets the link. |
+
+ Map<String,Link> |
+getLinks()
+
++ Gets the links. |
+
+ Messages |
+getMessages()
+
++ Returns the messages that were reported when this resource was created. |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+protected BaseResourceDTO()+
+protected BaseResourceDTO(Map<String,Link> links, + Messages messages)+
+
links - the links| +Method Detail | +
|---|
+public final Map<String,Link> getLinks()+
+
+public final Link getLink(String name)+
+
name - the name of the link to look for.
++public Messages getMessages()+
null if retrieved in a session in which we did not
+ create this resource.
++
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.response.BaseResourceDTO +
com.openshift.internal.client.response.CartridgeResourceDTO +
public class CartridgeResourceDTO
+
| +Constructor Summary | +|
|---|---|
+protected |
+CartridgeResourceDTO(String name,
+ CartridgeType type,
+ CartridgeResourceProperties properties)
+
++ |
+
+protected |
+CartridgeResourceDTO(String name,
+ String displayName,
+ String description,
+ String type,
+ URL url,
+ CartridgeResourceProperties properties,
+ Map<String,Link> links,
+ Messages messages)
+
++ |
+
| +Method Summary | +|
|---|---|
+ String |
+getDescription()
+
++ |
+
+ String |
+getDisplayName()
+
++ |
+
+ String |
+getName()
+
++ |
+
+ CartridgeResourceProperties |
+getProperties()
+
++ |
+
+ CartridgeType |
+getType()
+
++ |
+
+ URL |
+getUrl()
+
++ |
+
+ String |
+toString()
+
++ |
+
| Methods inherited from class com.openshift.internal.client.response.BaseResourceDTO | +
|---|
getLink, getLinks, getMessages |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+protected CartridgeResourceDTO(String name, + CartridgeType type, + CartridgeResourceProperties properties)+
+protected CartridgeResourceDTO(String name, + String displayName, + String description, + String type, + URL url, + CartridgeResourceProperties properties, + Map<String,Link> links, + Messages messages)+
| +Method Detail | +
|---|
+public String getName()+
+public String getDisplayName()+
+public String getDescription()+
+public CartridgeType getType()+
+public URL getUrl()+
+public CartridgeResourceProperties getProperties()+
+public String toString()+
toString in class Object
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.response.CartridgeResourceProperties +
public class CartridgeResourceProperties
+Properties that hold informations available in cartridges +
+ +
+
| +Field Summary | +|
|---|---|
+static String |
+CONNECTION_URL
+
++ |
+
+static String |
+DATABASE_NAME
+
++ |
+
+static String |
+JOB_URL
+
++ |
+
+static String |
+PASSWORD
+
++ |
+
+static String |
+USERNAME
+
++ |
+
| +Constructor Summary | +|
|---|---|
CartridgeResourceProperties()
+
++ |
+|
| +Method Summary | +|
|---|---|
+ void |
+add(String name,
+ CartridgeResourceProperty property)
+
++ |
+
+ List<CartridgeResourceProperty> |
+getAll()
+
++ |
+
+ CartridgeResourceProperty |
+getProperty(String name)
+
++ |
+
+ String |
+getPropertyValue(String name)
+
++ |
+
+ int |
+size()
+
++ |
+
+ String |
+toString()
+
++ |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
| +Field Detail | +
|---|
+public static final String CONNECTION_URL+
+public static final String JOB_URL+
+public static final String USERNAME+
+public static final String PASSWORD+
+public static final String DATABASE_NAME+
| +Constructor Detail | +
|---|
+public CartridgeResourceProperties()+
| +Method Detail | +
|---|
+public String getPropertyValue(String name)+
+public void add(String name, + CartridgeResourceProperty property)+
+public CartridgeResourceProperty getProperty(String name)+
+public List<CartridgeResourceProperty> getAll()+
+public int size()+
+public String toString()+
toString in class Object
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.response.CartridgeResourceProperty +
public class CartridgeResourceProperty
+
| +Constructor Summary | +|
|---|---|
+protected |
+CartridgeResourceProperty(String name,
+ String value)
+
++ Constructor called when embedded cartridges are listed within an + application. |
+
+protected |
+CartridgeResourceProperty(String name,
+ String type,
+ String description,
+ String value)
+
++ Constructor called when embedded cartridges are listed on their own (when + /cartridges resource is queried. |
+
| +Method Summary | +|
|---|---|
+ String |
+getDescription()
+
++ |
+
+ String |
+getName()
+
++ |
+
+ String |
+getType()
+
++ |
+
+ String |
+getValue()
+
++ |
+
+ String |
+toString()
+
++ |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+protected CartridgeResourceProperty(String name, + String value)+
+ ex. +
+ "metrics-0.1":{
+ "connection_url":"https://eap6-foobarz.rhcloud.com/metrics/",
+ "info":"Connection URL: https://eap6-foobarz.rhcloud.com/metrics/"
+ }
+
+
+
+
+protected CartridgeResourceProperty(String name, + String type, + String description, + String value)+
+ ex. + +
+ "properties":[
+ {
+ "name":"connection_url",
+ "type":"cart_data",
+ "description":"Application metrics URL",
+ "value":"https://eap6-foobarz.rhcloud.com/metrics/"
+ }
+
+
+
| +Method Detail | +
|---|
+public String getName()+
+public String getType()+
+public String getDescription()+
+public String getValue()+
+public String toString()+
toString in class Object
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.response.BaseResourceDTO +
com.openshift.internal.client.response.DomainResourceDTO +
public class DomainResourceDTO
+
| +Method Summary | +|
|---|---|
+ String |
+getId()
+
++ |
+
+ String |
+getSuffix()
+
++ |
+
| Methods inherited from class com.openshift.internal.client.response.BaseResourceDTO | +
|---|
getLink, getLinks, getMessages |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Method Detail | +
|---|
+public final String getId()+
+public String getSuffix()+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | ++DETAIL: ENUM CONSTANTS | FIELD | METHOD | +|||||||||
+java.lang.Object ++java.lang.Enum<EnumDataType> +
com.openshift.internal.client.response.EnumDataType +
public enum EnumDataType
+The Enum EnumDataType. +
+ +
+
| +Enum Constant Summary | +|
|---|---|
application
+
++ |
+|
applications
+
++ |
+|
cartridge
+
++ The standalone cartridge type. |
+|
cartridges
+
++ The standalone cartridges type. |
+|
domain
+
++ |
+|
domains
+
++ |
+|
embedded
+
++ The embedded cartridge type. |
+|
environment_variable
+
++ The environmetn-variable type |
+|
environment_variables
+
++ The environment-variables type |
+|
gear_groups
+
++ |
+|
key
+
++ one user's key. |
+|
keys
+
++ the user's keys. |
+|
links
+
++ Links / the root node that allows for navigation amongst resources. |
+|
user
+
++ |
+|
| +Method Summary | +|
|---|---|
+static EnumDataType |
+valueOf(String name)
+
++ Returns the enum constant of this type with the specified name. |
+
+static EnumDataType[] |
+values()
+
++ Returns an array containing the constants of this enum type, in +the order they are declared. |
+
| Methods inherited from class java.lang.Enum | +
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
+
| Methods inherited from class java.lang.Object | +
|---|
getClass, notify, notifyAll, wait, wait, wait |
+
| +Enum Constant Detail | +
|---|
+public static final EnumDataType links+
+
+public static final EnumDataType user+
+public static final EnumDataType keys+
+
+public static final EnumDataType key+
+
+public static final EnumDataType domains+
+public static final EnumDataType domain+
+public static final EnumDataType applications+
+public static final EnumDataType application+
+public static final EnumDataType embedded+
+
+public static final EnumDataType gear_groups+
+public static final EnumDataType cartridges+
+
+public static final EnumDataType cartridge+
+
+public static final EnumDataType environment_variables+
+
+public static final EnumDataType environment_variable+
+
| +Method Detail | +
|---|
+public static EnumDataType[] values()+
+for (EnumDataType c : EnumDataType.values()) + System.out.println(c); ++
+
+public static EnumDataType valueOf(String name)+
+
name - the name of the enum constant to be returned.
+IllegalArgumentException - if this enum type has no constant
+with the specified name
+NullPointerException - if the argument is null
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | ++DETAIL: ENUM CONSTANTS | FIELD | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.response.BaseResourceDTO +
com.openshift.internal.client.response.EnvironmentVariableResourceDTO +
public class EnvironmentVariableResourceDTO
+The DTO for an environment variable +
+ +
+
| +Constructor Summary | +|
|---|---|
EnvironmentVariableResourceDTO(String name,
+ String value,
+ Map<String,Link> links,
+ Messages messages)
+
++ Instantiates a new environment variable resource dto. |
+|
| +Method Summary | +|
|---|---|
+ String |
+getName()
+
++ Returns the name of this environment variable |
+
+ String |
+getValue()
+
++ Returns the value of this gear group. |
+
| Methods inherited from class com.openshift.internal.client.response.BaseResourceDTO | +
|---|
getLink, getLinks, getMessages |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public EnvironmentVariableResourceDTO(String name, + String value, + Map<String,Link> links, + Messages messages)+
+
name - the namevalue - the value| +Method Detail | +
|---|
+public final String getName()+
+
+public final String getValue()+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.response.BaseResourceDTO +
com.openshift.internal.client.response.GearGroupResourceDTO +
public class GearGroupResourceDTO
+The DTO for a gear groups +
+ +
+
| +Method Summary | +|
|---|---|
+ CartridgeResourceDTO |
+getCartridge(String name)
+
++ Returns the cartridge identified by the given name. |
+
+ Map<String,CartridgeResourceDTO> |
+getCartridges()
+
++ Returns the cartridges within this gear group. |
+
+ Collection<GearResourceDTO> |
+getGears()
+
++ Returns the gears within this gear group. |
+
+ String |
+getName()
+
++ Returns the name of this gear group |
+
+ String |
+getUuid()
+
++ Returns the uuid of this gear group. |
+
| Methods inherited from class com.openshift.internal.client.response.BaseResourceDTO | +
|---|
getLink, getLinks, getMessages |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Method Detail | +
|---|
+public final String getName()+
+
+public final String getUuid()+
+
+public final Collection<GearResourceDTO> getGears()+
+
+public Map<String,CartridgeResourceDTO> getCartridges()+
+
+public CartridgeResourceDTO getCartridge(String name)+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.response.BaseResourceDTO +
com.openshift.internal.client.response.GearResourceDTO +
public class GearResourceDTO
+The Class ApplicationDTO. +
+ +
+
| +Method Summary | +|
|---|---|
+ String |
+getSshUrl()
+
++ |
+
+ String |
+getState()
+
++ |
+
+ String |
+getUuid()
+
++ |
+
+ String |
+toString()
+
++ |
+
| Methods inherited from class com.openshift.internal.client.response.BaseResourceDTO | +
|---|
getLink, getLinks, getMessages |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
| +Method Detail | +
|---|
+public String toString()+
toString in class Object+public String getUuid()+
+public String getState()+
+public String getSshUrl()+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
public interface IRestResponseFactory
+
| +Method Summary | +|
|---|---|
+ RestResponse |
+get(String restResponse)
+
++ Returns a RestResponse instance for a given rest response string. |
+
| +Method Detail | +
|---|
+RestResponse get(String restResponse) + throws OpenShiftException+
RestResponse instance for a given rest response string.
++
rest - response string
+OpenShiftExceptionRestResponse
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.response.BaseResourceDTO +
com.openshift.internal.client.response.KeyResourceDTO +
public class KeyResourceDTO
+The Class KeyResourceDTO. +
+ +
+
| +Method Summary | +|
|---|---|
+ String |
+getContent()
+
++ Returns the public key content. |
+
+ String |
+getName()
+
++ Returns the name. |
+
+ String |
+getType()
+
++ Returns the type. |
+
+ String |
+toString()
+
++ |
+
| Methods inherited from class com.openshift.internal.client.response.BaseResourceDTO | +
|---|
getLink, getLinks, getMessages |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
| +Method Detail | +
|---|
+public final String getName()+
+
+public final String getType()+
+
+public final String getContent()+
+
+public String toString()+
toString in class Object
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.response.Link +
public class Link
+The Class Link. +
+ +
+
| +Constructor Summary | +|
|---|---|
+ |
+Link(String href,
+ HttpMethod httpMethod)
+
++ |
+
+ |
+Link(String rel,
+ String href,
+ HttpMethod httpMethod)
+
++ |
+
+protected |
+Link(String rel,
+ String href,
+ HttpMethod httpMethod,
+ List<LinkParameter> requiredParams,
+ List<LinkParameter> optionalParams)
+
++ Instantiates a new Link object. |
+
+protected |
+Link(String rel,
+ String href,
+ String httpMethod,
+ List<LinkParameter> requiredParams,
+ List<LinkParameter> optionalParams)
+
++ |
+
| +Method Summary | +|
|---|---|
+ String |
+getHref()
+
++ Gets the url/href this link points to. |
+
+ String |
+getHref(String server,
+ String servicePath,
+ List<Parameter> urlParameters)
+
++ |
+
+ String |
+getHref(String server,
+ String servicePath,
+ Parameter... urlParameters)
+
++ |
+
+ HttpMethod |
+getHttpMethod()
+
++ Gets the http method this link operates on. |
+
+ List<LinkParameter> |
+getOptionalParams()
+
++ Gets the optional params. |
+
+ String |
+getRel()
+
++ Gets the related resource (destination) this link points to. |
+
+ List<LinkParameter> |
+getRequiredParams()
+
++ Gets the required params. |
+
+ boolean |
+hasParameter(String name)
+
++ |
+
+ String |
+toString()
+
++ |
+
+ void |
+validateRequestParameters(Parameter[] parameters)
+
++ |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public Link(String href, + HttpMethod httpMethod)+
+public Link(String rel, + String href, + HttpMethod httpMethod)+
+protected Link(String rel, + String href, + String httpMethod, + List<LinkParameter> requiredParams, + List<LinkParameter> optionalParams)+
+protected Link(String rel, + String href, + HttpMethod httpMethod, + List<LinkParameter> requiredParams, + List<LinkParameter> optionalParams)+
+
rel - the related resource this link points tohref - the href the url/href this link points tohttpMethod - the http method that this link operates onrequiredParams - the required paramsoptionalParams - the optional params| +Method Detail | +
|---|
+public final String getRel()+
+
+public final String getHref()+
+
+public final String getHref(String server, + String servicePath, + Parameter... urlParameters)+
+public final String getHref(String server, + String servicePath, + List<Parameter> urlParameters)+
+public final HttpMethod getHttpMethod()+
+
+public final List<LinkParameter> getRequiredParams()+
+
+public final List<LinkParameter> getOptionalParams()+
+
+public boolean hasParameter(String name)+
+public void validateRequestParameters(Parameter[] parameters) + throws OpenShiftRequestException+
OpenShiftRequestException+public String toString()+
toString in class Object
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.response.LinkParameter +
public class LinkParameter
+
| +Field Summary | +|
|---|---|
+protected String |
+defaultValue
+
++ |
+
+protected String |
+description
+
++ |
+
+protected String |
+name
+
++ |
+
+protected LinkParameterType |
+type
+
++ |
+
+protected List<String> |
+validOptions
+
++ |
+
| +Constructor Summary | +|
|---|---|
+protected |
+LinkParameter(String name,
+ LinkParameterType type,
+ String defaultValue,
+ String description,
+ List<String> validOptions)
+
++ |
+
+protected |
+LinkParameter(String name,
+ String type,
+ String defaultValue,
+ String description,
+ List<String> validOptions)
+
++ |
+
| +Method Summary | +|
|---|---|
+ String |
+getDefaultValue()
+
++ |
+
+ String |
+getDescription()
+
++ |
+
+ String |
+getName()
+
++ |
+
+ LinkParameterType |
+getType()
+
++ |
+
+ List<String> |
+getValidOptions()
+
++ |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Field Detail | +
|---|
+protected final String name+
+protected final LinkParameterType type+
+protected final String description+
+protected final String defaultValue+
+protected final List<String> validOptions+
| +Constructor Detail | +
|---|
+protected LinkParameter(String name, + String type, + String defaultValue, + String description, + List<String> validOptions) + throws OpenShiftRequestException+
OpenShiftRequestException+protected LinkParameter(String name, + LinkParameterType type, + String defaultValue, + String description, + List<String> validOptions) + throws OpenShiftRequestException+
OpenShiftRequestException| +Method Detail | +
|---|
+public final String getName()+
+public final LinkParameterType getType()+
+public final String getDescription()+
+public String getDefaultValue()+
+public List<String> getValidOptions()+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.response.LinkParameterType +
public class LinkParameterType
+
| +Field Summary | +|
|---|---|
+static LinkParameterType |
+ARRAY
+
++ |
+
+static LinkParameterType |
+BOOLEAN
+
++ |
+
+static LinkParameterType |
+INTEGER
+
++ |
+
+static LinkParameterType |
+STRING
+
++ |
+
| +Constructor Summary | +|
|---|---|
LinkParameterType(String type)
+
++ |
+|
| +Method Summary | +|
|---|---|
+ boolean |
+equals(Object obj)
+
++ |
+
+ int |
+hashCode()
+
++ |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
+
| +Field Detail | +
|---|
+public static final LinkParameterType STRING+
+public static final LinkParameterType BOOLEAN+
+public static final LinkParameterType INTEGER+
+public static final LinkParameterType ARRAY+
| +Constructor Detail | +
|---|
+public LinkParameterType(String type)+
| +Method Detail | +
|---|
+public int hashCode()+
hashCode in class Object+public boolean equals(Object obj)+
equals in class Object
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.response.OpenShiftJsonDTOFactory +
public class OpenShiftJsonDTOFactory
+A factory for creating DTO objects. +
+ +
+
| +Constructor Summary | +|
|---|---|
OpenShiftJsonDTOFactory()
+
++ |
+|
| +Method Summary | +|
|---|---|
+ RestResponse |
+get(String json)
+
++ Returns a RestResponse instance for a given rest response string. |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public OpenShiftJsonDTOFactory()+
| +Method Detail | +
|---|
+public RestResponse get(String json) + throws OpenShiftException+
IRestResponseFactoryRestResponse instance for a given rest response string.
++
get in interface IRestResponseFactoryOpenShiftExceptionRestResponse
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.response.RestResponse +
public class RestResponse
+The Class Response. +
+ +
+
| +Constructor Summary | +|
|---|---|
+protected |
+RestResponse(String status,
+ Messages messages,
+ Object data,
+ EnumDataType dataType)
+
++ Instantiates a new response. |
+
| +Method Summary | +||
|---|---|---|
+
+ |
+getData()
+
++ Gets the data. |
+|
+ EnumDataType |
+getDataType()
+
++ Gets the data type. |
+|
+ Messages |
+getMessages()
+
++ Gets the messages. |
+|
+ String |
+getStatus()
+
++ Gets the status. |
+|
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+protected RestResponse(String status, + Messages messages, + Object data, + EnumDataType dataType)+
+
status - the statusmessages - the messagesdata - the datadataType - the data type| +Method Detail | +
|---|
+public final String getStatus()+
+
+public final Messages getMessages()+
+
+public final EnumDataType getDataType()+
+
+public final <T> T getData()+
+
T - the generic type
+getDataType() method to discover the actual type of the data.
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.response.BaseResourceDTO +
com.openshift.internal.client.response.UserResourceDTO +
public class UserResourceDTO
+
| +Method Summary | +|
|---|---|
+ int |
+getConsumedGears()
+
++ |
+
+ int |
+getMaxGears()
+
++ |
+
+ String |
+getRhLogin()
+
++ |
+
| Methods inherited from class com.openshift.internal.client.response.BaseResourceDTO | +
|---|
getLink, getLinks, getMessages |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Method Detail | +
|---|
+public String getRhLogin()+
+public int getMaxGears()+
+public int getConsumedGears()+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use ApplicationResourceDTO | +|
|---|---|
| com.openshift.internal.client | ++ |
| +Uses of ApplicationResourceDTO in com.openshift.internal.client | +
|---|
+ +
| Methods in com.openshift.internal.client with parameters of type ApplicationResourceDTO | +|
|---|---|
+protected void |
+ApplicationResource.update(ApplicationResourceDTO dto)
+
++ |
+
+ +
| Constructors in com.openshift.internal.client with parameters of type ApplicationResourceDTO | +|
|---|---|
ApplicationResource(ApplicationResourceDTO dto,
+ DomainResource domain)
+
++ |
+|
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use BaseResourceDTO | +|
|---|---|
| com.openshift.internal.client.response | ++ |
| +Uses of BaseResourceDTO in com.openshift.internal.client.response | +
|---|
+ +
| Subclasses of BaseResourceDTO in com.openshift.internal.client.response | +|
|---|---|
+ class |
+ApplicationResourceDTO
+
++ The Class ApplicationDTO. |
+
+ class |
+CartridgeResourceDTO
+
++ |
+
+ class |
+DomainResourceDTO
+
++ |
+
+ class |
+EnvironmentVariableResourceDTO
+
++ The DTO for an environment variable |
+
+ class |
+GearGroupResourceDTO
+
++ The DTO for a gear groups |
+
+ class |
+GearResourceDTO
+
++ The Class ApplicationDTO. |
+
+ class |
+KeyResourceDTO
+
++ The Class KeyResourceDTO. |
+
+ class |
+UserResourceDTO
+
++ |
+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use CartridgeResourceDTO | +|
|---|---|
| com.openshift.internal.client | ++ |
| com.openshift.internal.client.response | ++ |
| +Uses of CartridgeResourceDTO in com.openshift.internal.client | +
|---|
+ +
| Methods in com.openshift.internal.client with parameters of type CartridgeResourceDTO | +|
|---|---|
+protected void |
+EmbeddedCartridgeResource.update(CartridgeResourceDTO dto)
+
++ |
+
+ +
| Constructors in com.openshift.internal.client with parameters of type CartridgeResourceDTO | +|
|---|---|
EmbeddedCartridgeResource(CartridgeResourceDTO dto,
+ ApplicationResource application)
+
++ |
+|
+ +
| Constructor parameters in com.openshift.internal.client with type arguments of type CartridgeResourceDTO | +|
|---|---|
ApplicationResource(String name,
+ String uuid,
+ String creationTime,
+ Messages messages,
+ String applicationUrl,
+ String sshUrl,
+ String gitUrl,
+ String initialGitUrl,
+ IGearProfile gearProfile,
+ ApplicationScale scale,
+ List<String> aliases,
+ Map<String,CartridgeResourceDTO> cartridgesByName,
+ Map<String,Link> links,
+ DomainResource domain)
+
++ Instantiates a new application. |
+|
GearGroupResource(String uuid,
+ String name,
+ Collection<GearResourceDTO> gearDTOs,
+ Map<String,CartridgeResourceDTO> cartridgeDTOs,
+ ApplicationResource application,
+ IRestService service)
+
++ Constructor. |
+|
| +Uses of CartridgeResourceDTO in com.openshift.internal.client.response | +
|---|
+ +
| Methods in com.openshift.internal.client.response that return CartridgeResourceDTO | +|
|---|---|
+ CartridgeResourceDTO |
+GearGroupResourceDTO.getCartridge(String name)
+
++ Returns the cartridge identified by the given name. |
+
+ +
| Methods in com.openshift.internal.client.response that return types with arguments of type CartridgeResourceDTO | +|
|---|---|
+ Map<String,CartridgeResourceDTO> |
+GearGroupResourceDTO.getCartridges()
+
++ Returns the cartridges within this gear group. |
+
+ Map<String,CartridgeResourceDTO> |
+ApplicationResourceDTO.getCartridges()
+
++ |
+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use CartridgeResourceProperties | +|
|---|---|
| com.openshift.client.cartridge | ++ |
| com.openshift.internal.client | ++ |
| com.openshift.internal.client.response | ++ |
| +Uses of CartridgeResourceProperties in com.openshift.client.cartridge | +
|---|
+ +
| Methods in com.openshift.client.cartridge that return CartridgeResourceProperties | +|
|---|---|
+ CartridgeResourceProperties |
+IEmbeddedCartridge.getProperties()
+
++ Returns the properties for this embedded cartridge |
+
| +Uses of CartridgeResourceProperties in com.openshift.internal.client | +
|---|
+ +
| Methods in com.openshift.internal.client that return CartridgeResourceProperties | +|
|---|---|
+ CartridgeResourceProperties |
+EmbeddedCartridgeResource.getProperties()
+
++ |
+
| +Uses of CartridgeResourceProperties in com.openshift.internal.client.response | +
|---|
+ +
| Methods in com.openshift.internal.client.response that return CartridgeResourceProperties | +|
|---|---|
+ CartridgeResourceProperties |
+CartridgeResourceDTO.getProperties()
+
++ |
+
+ +
| Constructors in com.openshift.internal.client.response with parameters of type CartridgeResourceProperties | +|
|---|---|
CartridgeResourceDTO(String name,
+ CartridgeType type,
+ CartridgeResourceProperties properties)
+
++ |
+|
CartridgeResourceDTO(String name,
+ String displayName,
+ String description,
+ String type,
+ URL url,
+ CartridgeResourceProperties properties,
+ Map<String,Link> links,
+ Messages messages)
+
++ |
+|
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use CartridgeResourceProperty | +|
|---|---|
| com.openshift.client.cartridge.selector | ++ |
| com.openshift.internal.client.response | ++ |
| +Uses of CartridgeResourceProperty in com.openshift.client.cartridge.selector | +
|---|
+ +
| Methods in com.openshift.client.cartridge.selector that return CartridgeResourceProperty | +|
|---|---|
+ CartridgeResourceProperty |
+UrlPropertyQuery.getMatchingProperty(IEmbeddedCartridge embeddedCartridge)
+
++ |
+
+abstract CartridgeResourceProperty |
+CartridgePropertyQuery.getMatchingProperty(IEmbeddedCartridge embeddedCartridge)
+
++ |
+
| +Uses of CartridgeResourceProperty in com.openshift.internal.client.response | +
|---|
+ +
| Methods in com.openshift.internal.client.response that return CartridgeResourceProperty | +|
|---|---|
+ CartridgeResourceProperty |
+CartridgeResourceProperties.getProperty(String name)
+
++ |
+
+ +
| Methods in com.openshift.internal.client.response that return types with arguments of type CartridgeResourceProperty | +|
|---|---|
+ List<CartridgeResourceProperty> |
+CartridgeResourceProperties.getAll()
+
++ |
+
+ +
| Methods in com.openshift.internal.client.response with parameters of type CartridgeResourceProperty | +|
|---|---|
+ void |
+CartridgeResourceProperties.add(String name,
+ CartridgeResourceProperty property)
+
++ |
+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use DomainResourceDTO | +|
|---|---|
| com.openshift.internal.client | ++ |
| +Uses of DomainResourceDTO in com.openshift.internal.client | +
|---|
+ +
| Constructors in com.openshift.internal.client with parameters of type DomainResourceDTO | +|
|---|---|
DomainResource(DomainResourceDTO domainDTO,
+ APIResource api)
+
++ |
+|
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use EnumDataType | +|
|---|---|
| com.openshift.internal.client.response | ++ |
| +Uses of EnumDataType in com.openshift.internal.client.response | +
|---|
+ +
| Methods in com.openshift.internal.client.response that return EnumDataType | +|
|---|---|
+ EnumDataType |
+RestResponse.getDataType()
+
++ Gets the data type. |
+
+static EnumDataType |
+EnumDataType.valueOf(String name)
+
++ Returns the enum constant of this type with the specified name. |
+
+static EnumDataType[] |
+EnumDataType.values()
+
++ Returns an array containing the constants of this enum type, in +the order they are declared. |
+
+ +
| Constructors in com.openshift.internal.client.response with parameters of type EnumDataType | +|
|---|---|
RestResponse(String status,
+ Messages messages,
+ Object data,
+ EnumDataType dataType)
+
++ Instantiates a new response. |
+|
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use EnvironmentVariableResourceDTO | +|
|---|---|
| com.openshift.internal.client | ++ |
| +Uses of EnvironmentVariableResourceDTO in com.openshift.internal.client | +
|---|
+ +
| Constructors in com.openshift.internal.client with parameters of type EnvironmentVariableResourceDTO | +|
|---|---|
EnvironmentVariableResource(EnvironmentVariableResourceDTO dto,
+ ApplicationResource application)
+
++ |
+|
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use GearGroupResourceDTO | +|
|---|---|
| com.openshift.internal.client | ++ |
| +Uses of GearGroupResourceDTO in com.openshift.internal.client | +
|---|
+ +
| Constructors in com.openshift.internal.client with parameters of type GearGroupResourceDTO | +|
|---|---|
GearGroupResource(GearGroupResourceDTO dto,
+ ApplicationResource application,
+ IRestService service)
+
++ Constructor. |
+|
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use GearResourceDTO | +|
|---|---|
| com.openshift.internal.client | ++ |
| com.openshift.internal.client.response | ++ |
| +Uses of GearResourceDTO in com.openshift.internal.client | +
|---|
+ +
| Constructor parameters in com.openshift.internal.client with type arguments of type GearResourceDTO | +|
|---|---|
GearGroupResource(String uuid,
+ String name,
+ Collection<GearResourceDTO> gearDTOs,
+ Map<String,CartridgeResourceDTO> cartridgeDTOs,
+ ApplicationResource application,
+ IRestService service)
+
++ Constructor. |
+|
| +Uses of GearResourceDTO in com.openshift.internal.client.response | +
|---|
+ +
| Methods in com.openshift.internal.client.response that return types with arguments of type GearResourceDTO | +|
|---|---|
+ Collection<GearResourceDTO> |
+GearGroupResourceDTO.getGears()
+
++ Returns the gears within this gear group. |
+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use IRestResponseFactory | +|
|---|---|
| com.openshift.internal.client | ++ |
| com.openshift.internal.client.response | ++ |
| +Uses of IRestResponseFactory in com.openshift.internal.client | +
|---|
+ +
| Constructors in com.openshift.internal.client with parameters of type IRestResponseFactory | +|
|---|---|
RestService(String server,
+ String clientId,
+ IMediaType defaultRequestMediaType,
+ String acceptedMediaType,
+ IRestResponseFactory factory,
+ IHttpClient client)
+
++ |
+|
RestService(String server,
+ String clientId,
+ IMediaType defaultRequestMediaType,
+ String acceptedMediaType,
+ IRestResponseFactory factory,
+ IHttpClient client,
+ RestServiceProperties properties)
+
++ |
+|
RestService(String server,
+ String clientId,
+ String protocolVersion,
+ IMediaType defaultRequestMediaType,
+ String acceptedMediaType,
+ IRestResponseFactory factory,
+ IHttpClient client,
+ RestServiceProperties properties)
+
++ |
+|
| +Uses of IRestResponseFactory in com.openshift.internal.client.response | +
|---|
+ +
| Classes in com.openshift.internal.client.response that implement IRestResponseFactory | +|
|---|---|
+ class |
+OpenShiftJsonDTOFactory
+
++ A factory for creating DTO objects. |
+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use KeyResourceDTO | +|
|---|---|
| com.openshift.internal.client | ++ |
| +Uses of KeyResourceDTO in com.openshift.internal.client | +
|---|
+ +
| Methods in com.openshift.internal.client with parameters of type KeyResourceDTO | +|
|---|---|
+protected void |
+SSHKeyResource.update(KeyResourceDTO dto)
+
++ |
+
+ +
| Constructors in com.openshift.internal.client with parameters of type KeyResourceDTO | +|
|---|---|
SSHKeyResource(KeyResourceDTO dto,
+ UserResource user)
+
++ |
+|
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use Link | +|
|---|---|
| com.openshift.internal.client | ++ |
| com.openshift.internal.client.response | ++ |
| +Uses of Link in com.openshift.internal.client | +
|---|
+ +
| Methods in com.openshift.internal.client that return Link | +|
|---|---|
+protected Link |
+AbstractOpenShiftResource.getLink(String linkName)
+
++ Gets the link for the given name. |
+
+ +
| Methods in com.openshift.internal.client with parameters of type Link | +|
|---|---|
+ RestResponse |
+RestService.request(Link link,
+ int timeout,
+ IMediaType requestMediaType,
+ Parameter... parameters)
+
++ |
+
+ RestResponse |
+IRestService.request(Link link,
+ int timeout,
+ IMediaType mediaType,
+ Parameter... parameters)
+
++ Requests the given link sending the given parameters while encoding the + parameters with the given media type and respecting the given timeout. |
+
+ RestResponse |
+RestService.request(Link link,
+ int timeout,
+ List<Parameter> urlParameters,
+ IMediaType requestMediaType,
+ Parameter... parameters)
+
++ |
+
+ RestResponse |
+IRestService.request(Link link,
+ int timeout,
+ List<Parameter> urlParameters,
+ IMediaType mediaType,
+ Parameter... parameters)
+
++ |
+
+ RestResponse |
+RestService.request(Link link,
+ int timeout,
+ List<Parameter> urlParameters,
+ Parameter... parameters)
+
++ |
+
+ RestResponse |
+IRestService.request(Link link,
+ int timeout,
+ List<Parameter> urlParameters,
+ Parameter... parameters)
+
++ |
+
+ RestResponse |
+RestService.request(Link link,
+ int timeout,
+ Parameter... parameters)
+
++ |
+
+ RestResponse |
+IRestService.request(Link link,
+ int timeout,
+ Parameter... parameters)
+
++ |
+
+ RestResponse |
+RestService.request(Link link,
+ List<Parameter> urlParameters,
+ Parameter... parameters)
+
++ |
+
+ RestResponse |
+IRestService.request(Link link,
+ List<Parameter> urlParameters,
+ Parameter... parameters)
+
++ |
+
+ RestResponse |
+RestService.request(Link link,
+ Parameter... parameters)
+
++ |
+
+ RestResponse |
+IRestService.request(Link link,
+ Parameter... parameters)
+
++ |
+
+ +
| Method parameters in com.openshift.internal.client with type arguments of type Link | +|
|---|---|
+protected void |
+AbstractOpenShiftResource.setLinks(Map<String,Link> links)
+
++ |
+
+ +
| Constructor parameters in com.openshift.internal.client with type arguments of type Link | +|
|---|---|
AbstractOpenShiftResource(IRestService service,
+ Map<String,Link> links,
+ Messages messages)
+
++ Instantiates a new abstract open shift resource. |
+|
APIResource(String login,
+ String password,
+ IRestService service,
+ Map<String,Link> links)
+
++ |
+|
ApplicationResource(String name,
+ String uuid,
+ String creationTime,
+ Messages messages,
+ String applicationUrl,
+ String sshUrl,
+ String gitUrl,
+ String initialGitUrl,
+ IGearProfile gearProfile,
+ ApplicationScale scale,
+ List<String> aliases,
+ Map<String,CartridgeResourceDTO> cartridgesByName,
+ Map<String,Link> links,
+ DomainResource domain)
+
++ Instantiates a new application. |
+|
DomainResource(String namespace,
+ String suffix,
+ Map<String,Link> links,
+ Messages messages,
+ APIResource api)
+
++ |
+|
EnvironmentVariableResource(String name,
+ String value,
+ Messages messages,
+ Map<String,Link> links,
+ ApplicationResource application)
+
++ |
+|
| +Uses of Link in com.openshift.internal.client.response | +
|---|
+ +
| Methods in com.openshift.internal.client.response that return Link | +|
|---|---|
+ Link |
+BaseResourceDTO.getLink(String name)
+
++ Gets the link. |
+
+ +
| Methods in com.openshift.internal.client.response that return types with arguments of type Link | +|
|---|---|
+ Map<String,Link> |
+BaseResourceDTO.getLinks()
+
++ Gets the links. |
+
+ +
| Constructor parameters in com.openshift.internal.client.response with type arguments of type Link | +|
|---|---|
BaseResourceDTO(Map<String,Link> links,
+ Messages messages)
+
++ Instantiates a new base resource dto. |
+|
CartridgeResourceDTO(String name,
+ String displayName,
+ String description,
+ String type,
+ URL url,
+ CartridgeResourceProperties properties,
+ Map<String,Link> links,
+ Messages messages)
+
++ |
+|
EnvironmentVariableResourceDTO(String name,
+ String value,
+ Map<String,Link> links,
+ Messages messages)
+
++ Instantiates a new environment variable resource dto. |
+|
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use LinkParameter | +|
|---|---|
| com.openshift.internal.client.response | ++ |
| +Uses of LinkParameter in com.openshift.internal.client.response | +
|---|
+ +
| Methods in com.openshift.internal.client.response that return types with arguments of type LinkParameter | +|
|---|---|
+ List<LinkParameter> |
+Link.getOptionalParams()
+
++ Gets the optional params. |
+
+ List<LinkParameter> |
+Link.getRequiredParams()
+
++ Gets the required params. |
+
+ +
| Constructor parameters in com.openshift.internal.client.response with type arguments of type LinkParameter | +|
|---|---|
Link(String rel,
+ String href,
+ HttpMethod httpMethod,
+ List<LinkParameter> requiredParams,
+ List<LinkParameter> optionalParams)
+
++ Instantiates a new Link object. |
+|
Link(String rel,
+ String href,
+ HttpMethod httpMethod,
+ List<LinkParameter> requiredParams,
+ List<LinkParameter> optionalParams)
+
++ Instantiates a new Link object. |
+|
Link(String rel,
+ String href,
+ String httpMethod,
+ List<LinkParameter> requiredParams,
+ List<LinkParameter> optionalParams)
+
++ |
+|
Link(String rel,
+ String href,
+ String httpMethod,
+ List<LinkParameter> requiredParams,
+ List<LinkParameter> optionalParams)
+
++ |
+|
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use LinkParameterType | +|
|---|---|
| com.openshift.internal.client.response | ++ |
| +Uses of LinkParameterType in com.openshift.internal.client.response | +
|---|
+ +
| Fields in com.openshift.internal.client.response declared as LinkParameterType | +|
|---|---|
+static LinkParameterType |
+LinkParameterType.ARRAY
+
++ |
+
+static LinkParameterType |
+LinkParameterType.BOOLEAN
+
++ |
+
+static LinkParameterType |
+LinkParameterType.INTEGER
+
++ |
+
+static LinkParameterType |
+LinkParameterType.STRING
+
++ |
+
+protected LinkParameterType |
+LinkParameter.type
+
++ |
+
+ +
| Methods in com.openshift.internal.client.response that return LinkParameterType | +|
|---|---|
+ LinkParameterType |
+LinkParameter.getType()
+
++ |
+
+ +
| Constructors in com.openshift.internal.client.response with parameters of type LinkParameterType | +|
|---|---|
LinkParameter(String name,
+ LinkParameterType type,
+ String defaultValue,
+ String description,
+ List<String> validOptions)
+
++ |
+|
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use RestResponse | +|
|---|---|
| com.openshift.client | ++ |
| com.openshift.internal.client | ++ |
| com.openshift.internal.client.response | ++ |
| +Uses of RestResponse in com.openshift.client | +
|---|
+ +
| Methods in com.openshift.client that return RestResponse | +|
|---|---|
+ RestResponse |
+OpenShiftEndpointException.getRestResponse()
+
++ |
+
+ +
| Constructors in com.openshift.client with parameters of type RestResponse | +|
|---|---|
InvalidCredentialsOpenShiftException(String url,
+ HttpClientException cause,
+ RestResponse restResponse)
+
++ |
+|
NotFoundOpenShiftException(String url,
+ HttpClientException e,
+ RestResponse restResponse)
+
++ |
+|
OpenShiftEndpointException(String url,
+ Throwable cause,
+ RestResponse response,
+ String message,
+ Object... arguments)
+
++ |
+|
| +Uses of RestResponse in com.openshift.internal.client | +
|---|
+ +
| Methods in com.openshift.internal.client that return RestResponse | +|
|---|---|
+ RestResponse |
+RestService.request(Link link,
+ int timeout,
+ IMediaType requestMediaType,
+ Parameter... parameters)
+
++ |
+
+ RestResponse |
+IRestService.request(Link link,
+ int timeout,
+ IMediaType mediaType,
+ Parameter... parameters)
+
++ Requests the given link sending the given parameters while encoding the + parameters with the given media type and respecting the given timeout. |
+
+ RestResponse |
+RestService.request(Link link,
+ int timeout,
+ List<Parameter> urlParameters,
+ IMediaType requestMediaType,
+ Parameter... parameters)
+
++ |
+
+ RestResponse |
+IRestService.request(Link link,
+ int timeout,
+ List<Parameter> urlParameters,
+ IMediaType mediaType,
+ Parameter... parameters)
+
++ |
+
+ RestResponse |
+RestService.request(Link link,
+ int timeout,
+ List<Parameter> urlParameters,
+ Parameter... parameters)
+
++ |
+
+ RestResponse |
+IRestService.request(Link link,
+ int timeout,
+ List<Parameter> urlParameters,
+ Parameter... parameters)
+
++ |
+
+ RestResponse |
+RestService.request(Link link,
+ int timeout,
+ Parameter... parameters)
+
++ |
+
+ RestResponse |
+IRestService.request(Link link,
+ int timeout,
+ Parameter... parameters)
+
++ |
+
+ RestResponse |
+RestService.request(Link link,
+ List<Parameter> urlParameters,
+ Parameter... parameters)
+
++ |
+
+ RestResponse |
+IRestService.request(Link link,
+ List<Parameter> urlParameters,
+ Parameter... parameters)
+
++ |
+
+ RestResponse |
+RestService.request(Link link,
+ Parameter... parameters)
+
++ |
+
+ RestResponse |
+IRestService.request(Link link,
+ Parameter... parameters)
+
++ |
+
+ +
| Methods in com.openshift.internal.client with parameters of type RestResponse | +||
|---|---|---|
+protected
+ |
+AbstractOpenShiftResource.ServiceRequest.getData(RestResponse response)
+
++ |
+|
| +Uses of RestResponse in com.openshift.internal.client.response | +
|---|
+ +
| Methods in com.openshift.internal.client.response that return RestResponse | +|
|---|---|
+ RestResponse |
+OpenShiftJsonDTOFactory.get(String json)
+
++ |
+
+ RestResponse |
+IRestResponseFactory.get(String restResponse)
+
++ Returns a RestResponse instance for a given rest response string. |
+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use UserResourceDTO | +|
|---|---|
| com.openshift.internal.client | ++ |
| +Uses of UserResourceDTO in com.openshift.internal.client | +
|---|
+ +
| Constructors in com.openshift.internal.client with parameters of type UserResourceDTO | +|
|---|---|
UserResource(APIResource api,
+ UserResourceDTO dto,
+ String password)
+
++ |
+|
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
|
+Interfaces
+
+ +IRestResponseFactory |
+
|
+Classes
+
+ +ApplicationResourceDTO + +BaseResourceDTO + +CartridgeResourceDTO + +CartridgeResourceProperties + +CartridgeResourceProperty + +DomainResourceDTO + +EnvironmentVariableResourceDTO + +GearGroupResourceDTO + +GearResourceDTO + +KeyResourceDTO + +Link + +LinkParameter + +LinkParameterType + +OpenShiftJsonDTOFactory + +RestResponse + +UserResourceDTO |
+
|
+Enums
+
+ +EnumDataType |
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Interface Summary | +|
|---|---|
| IRestResponseFactory | ++ |
+ +
| +Class Summary | +|
|---|---|
| ApplicationResourceDTO | +The Class ApplicationDTO. | +
| BaseResourceDTO | +The Class BaseResourceDTO. | +
| CartridgeResourceDTO | ++ |
| CartridgeResourceProperties | +Properties that hold informations available in cartridges | +
| CartridgeResourceProperty | ++ |
| DomainResourceDTO | ++ |
| EnvironmentVariableResourceDTO | +The DTO for an environment variable | +
| GearGroupResourceDTO | +The DTO for a gear groups | +
| GearResourceDTO | +The Class ApplicationDTO. | +
| KeyResourceDTO | +The Class KeyResourceDTO. | +
| Link | +The Class Link. | +
| LinkParameter | ++ |
| LinkParameterType | ++ |
| OpenShiftJsonDTOFactory | +A factory for creating DTO objects. | +
| RestResponse | +The Class Response. | +
| UserResourceDTO | ++ |
+ +
| +Enum Summary | +|
|---|---|
| EnumDataType | +The Enum EnumDataType. | +
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use com.openshift.internal.client.response | +|
|---|---|
| com.openshift.client | ++ |
| com.openshift.client.cartridge | ++ |
| com.openshift.client.cartridge.selector | ++ |
| com.openshift.internal.client | ++ |
| com.openshift.internal.client.response | ++ |
| +Classes in com.openshift.internal.client.response used by com.openshift.client | +|
|---|---|
| RestResponse
+
+ + The Class Response. |
+|
| +Classes in com.openshift.internal.client.response used by com.openshift.client.cartridge | +|
|---|---|
| CartridgeResourceProperties
+
+ + Properties that hold informations available in cartridges |
+|
| +Classes in com.openshift.internal.client.response used by com.openshift.client.cartridge.selector | +|
|---|---|
| CartridgeResourceProperty
+
+ + |
+|
| +Classes in com.openshift.internal.client.response used by com.openshift.internal.client | +|
|---|---|
| ApplicationResourceDTO
+
+ + The Class ApplicationDTO. |
+|
| CartridgeResourceDTO
+
+ + |
+|
| CartridgeResourceProperties
+
+ + Properties that hold informations available in cartridges |
+|
| DomainResourceDTO
+
+ + |
+|
| EnvironmentVariableResourceDTO
+
+ + The DTO for an environment variable |
+|
| GearGroupResourceDTO
+
+ + The DTO for a gear groups |
+|
| GearResourceDTO
+
+ + The Class ApplicationDTO. |
+|
| IRestResponseFactory
+
+ + |
+|
| KeyResourceDTO
+
+ + The Class KeyResourceDTO. |
+|
| Link
+
+ + The Class Link. |
+|
| RestResponse
+
+ + The Class Response. |
+|
| UserResourceDTO
+
+ + |
+|
| +Classes in com.openshift.internal.client.response used by com.openshift.internal.client.response | +|
|---|---|
| BaseResourceDTO
+
+ + The Class BaseResourceDTO. |
+|
| CartridgeResourceDTO
+
+ + |
+|
| CartridgeResourceProperties
+
+ + Properties that hold informations available in cartridges |
+|
| CartridgeResourceProperty
+
+ + |
+|
| EnumDataType
+
+ + The Enum EnumDataType. |
+|
| GearResourceDTO
+
+ + The Class ApplicationDTO. |
+|
| IRestResponseFactory
+
+ + |
+|
| Link
+
+ + The Class Link. |
+|
| LinkParameter
+
+ + |
+|
| LinkParameterType
+
+ + |
+|
| RestResponse
+
+ + The Class Response. |
+|
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.ssh.AbstractSSHKey +
public abstract class AbstractSSHKey
+
| +Constructor Summary | +|
|---|---|
+protected |
+AbstractSSHKey(SSHKeyType sshKeyType)
+
++ |
+
| +Method Summary | +|
|---|---|
+ boolean |
+equals(Object obj)
+
++ |
+
+ SSHKeyType |
+getKeyType()
+
++ Returns the type of the key (ssh-rsa or ssh-dss) |
+
+ int |
+hashCode()
+
++ |
+
+protected void |
+setKeyType(SSHKeyType keyType)
+
++ |
+
+protected void |
+setKeyType(String keyTypeId)
+
++ |
+
+ String |
+toString()
+
++ |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
+
| Methods inherited from interface com.openshift.client.ISSHPublicKey | +
|---|
getPublicKey |
+
| +Constructor Detail | +
|---|
+protected AbstractSSHKey(SSHKeyType sshKeyType)+
| +Method Detail | +
|---|
+public SSHKeyType getKeyType()+
ISSHPublicKey+
getKeyType in interface ISSHPublicKey+protected void setKeyType(String keyTypeId) + throws OpenShiftUnknonwSSHKeyTypeException+
OpenShiftUnknonwSSHKeyTypeException+protected void setKeyType(SSHKeyType keyType)+
+public int hashCode()+
hashCode in class Object+public boolean equals(Object obj)+
equals in class Object+public String toString()+
toString in class Object
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.ssh.ApplicationPortForwarding +
public class ApplicationPortForwarding
+
| +Constructor Summary | +|
|---|---|
ApplicationPortForwarding(IApplication application,
+ String name,
+ String remoteAddress,
+ int remotePort)
+
++ |
+|
| +Method Summary | +|
|---|---|
+protected IApplication |
+getApplication()
+
++ |
+
+ String |
+getLocalAddress()
+
++ |
+
+ int |
+getLocalPort()
+
++ |
+
+ String |
+getName()
+
++ |
+
+ String |
+getRemoteAddress()
+
++ |
+
+ int |
+getRemotePort()
+
++ |
+
+ boolean |
+isStarted(com.jcraft.jsch.Session session)
+
++ |
+
+ void |
+setLocalAddress(String localAddress)
+
++ |
+
+ void |
+setLocalPort(int localPort)
+
++ |
+
+ void |
+start(com.jcraft.jsch.Session session)
+
++ Start the binding, ie, open a SSH tunnel between local address:port and remote address:port. |
+
+ void |
+stop(com.jcraft.jsch.Session session)
+
++ Stop the SSH tunnel. |
+
+ String |
+toString()
+
++ |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public ApplicationPortForwarding(IApplication application, + String name, + String remoteAddress, + int remotePort)+
| +Method Detail | +
|---|
+public void start(com.jcraft.jsch.Session session) + throws OpenShiftSSHOperationException+
IApplicationPortForwarding+
start in interface IApplicationPortForwardingOpenShiftSSHOperationException+public void stop(com.jcraft.jsch.Session session) + throws OpenShiftSSHOperationException+
IApplicationPortForwarding+
stop in interface IApplicationPortForwardingOpenShiftSSHOperationException+public boolean isStarted(com.jcraft.jsch.Session session) + throws OpenShiftSSHOperationException+
isStarted in interface IApplicationPortForwardingOpenShiftSSHOperationException+protected final IApplication getApplication()+
+public final String getName()+
getName in interface IApplicationPortForwarding+public final String getLocalAddress()+
getLocalAddress in interface IApplicationPortForwarding+public final void setLocalAddress(String localAddress)+
setLocalAddress in interface IApplicationPortForwardinglocalAddress - the localAddress to set+public final int getLocalPort()+
getLocalPort in interface IApplicationPortForwarding+public final void setLocalPort(int localPort)+
setLocalPort in interface IApplicationPortForwardinglocalPort - the localPort to set+public final String getRemoteAddress()+
getRemoteAddress in interface IApplicationPortForwarding+public final int getRemotePort()+
getRemotePort in interface IApplicationPortForwarding+public String toString()+
toString in class Object
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use AbstractSSHKey | +|
|---|---|
| com.openshift.client | ++ |
| +Uses of AbstractSSHKey in com.openshift.client | +
|---|
+ +
| Subclasses of AbstractSSHKey in com.openshift.client | +|
|---|---|
+ class |
+SSHKeyPair
+
++ |
+
+ class |
+SSHPublicKey
+
++ |
+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
|
+Classes
+
+ +AbstractSSHKey + +ApplicationPortForwarding |
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Class Summary | +|
|---|---|
| AbstractSSHKey | ++ |
| ApplicationPortForwarding | ++ |
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages that use com.openshift.internal.client.ssh | +|
|---|---|
| com.openshift.client | ++ |
| +Classes in com.openshift.internal.client.ssh used by com.openshift.client | +|
|---|---|
| AbstractSSHKey
+
+ + |
+|
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++java.lang.Throwable +
java.lang.Exception +
java.lang.RuntimeException +
com.openshift.internal.client.utils.Assert.AssertionFailedException +
public static final class Assert.AssertionFailedException
+
| +Constructor Summary | +|
|---|---|
Assert.AssertionFailedException()
+
++ |
+|
| +Method Summary | +
|---|
| Methods inherited from class java.lang.Throwable | +
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public Assert.AssertionFailedException()+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.utils.Assert +
public class Assert
+
| +Nested Class Summary | +|
|---|---|
+static class |
+Assert.AssertionFailedException
+
++ |
+
| +Constructor Summary | +|
|---|---|
Assert()
+
++ |
+|
| +Method Summary | +||
|---|---|---|
+static void |
+isTrue(boolean assertion)
+
++ |
+|
+static void |
+notEmpty(String value)
+
++ |
+|
+static
+ |
+notNull(V value)
+
++ |
+|
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public Assert()+
| +Method Detail | +
|---|
+public static <V> V notNull(V value)+
+public static void notEmpty(String value)+
+public static void isTrue(boolean assertion)+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.utils.CollectionUtils +
public class CollectionUtils
+
| +Constructor Summary | +|
|---|---|
CollectionUtils()
+
++ |
+|
| +Method Summary | +||
|---|---|---|
+static
+ |
+toUnmodifiableCopy(Collection<T> collection)
+
++ |
+|
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public CollectionUtils()+
| +Method Detail | +
|---|
+public static <T> List<T> toUnmodifiableCopy(Collection<T> collection)+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.utils.IOpenShiftJsonConstants +
public class IOpenShiftJsonConstants
+
| +Field Summary | +|
|---|---|
+static String |
+PROPERTY_ACTION
+
++ |
+
+static String |
+PROPERTY_ALIAS
+
++ |
+
+static String |
+PROPERTY_ALIASES
+
++ |
+
+static String |
+PROPERTY_ALTER
+
++ |
+
+static String |
+PROPERTY_APP_INFO
+
++ |
+
+static String |
+PROPERTY_APP_NAME
+
++ |
+
+static String |
+PROPERTY_APP_URL
+
++ |
+
+static String |
+PROPERTY_CARTRIDGE
+
++ |
+
+static String |
+PROPERTY_CARTRIDGES
+
++ |
+
+static String |
+PROPERTY_CONSUMED_GEARS
+
++ |
+
+static String |
+PROPERTY_CONTENT
+
++ |
+
+static String |
+PROPERTY_CREATION_TIME
+
++ |
+
+static String |
+PROPERTY_DATA
+
++ |
+
+static String |
+PROPERTY_DEBUG
+
++ |
+
+static String |
+PROPERTY_DEFAULT_VALUE
+
++ |
+
+static String |
+PROPERTY_DELETE
+
++ |
+
+static String |
+PROPERTY_DESCRIPTION
+
++ |
+
+static String |
+PROPERTY_DISPLAY_NAME
+
++ |
+
+static String |
+PROPERTY_DOMAIN
+
++ |
+
+static String |
+PROPERTY_DOMAIN_ID
+
++ |
+
+static String |
+PROPERTY_DOMAINS
+
++ |
+
+static String |
+PROPERTY_EMBEDDED
+
++ |
+
+static String |
+PROPERTY_ENVIRONMENT_VARIABLES
+
++ |
+
+static String |
+PROPERTY_EVENT
+
++ |
+
+static String |
+PROPERTY_EXIT_CODE
+
++ |
+
+static String |
+PROPERTY_FIELD
+
++ |
+
+static String |
+PROPERTY_FORCE
+
++ |
+
+static String |
+PROPERTY_FRAMEWORK
+
++ |
+
+static String |
+PROPERTY_GEAR_PROFILE
+
++ |
+
+static String |
+PROPERTY_GEAR_STATE
+
++ |
+
+static String |
+PROPERTY_GEARS
+
++ |
+
+static String |
+PROPERTY_GIT_URL
+
++ |
+
+static String |
+PROPERTY_HEALTH_CHECK_PATH
+
++ |
+
+static String |
+PROPERTY_HREF
+
++ |
+
+static String |
+PROPERTY_ID
+
++ |
+
+static String |
+PROPERTY_INFO
+
++ |
+
+static String |
+PROPERTY_INITIAL_GIT_URL
+
++ |
+
+static String |
+PROPERTY_INTERNAL_PORT
+
++ |
+
+static String |
+PROPERTY_KEY
+
++ |
+
+static String |
+PROPERTY_KEY_TYPE
+
++ |
+
+static String |
+PROPERTY_KEYS
+
++ |
+
+static String |
+PROPERTY_LINKS
+
++ |
+
+static String |
+PROPERTY_LOGIN
+
++ |
+
+static String |
+PROPERTY_MAX_GEARS
+
++ |
+
+static String |
+PROPERTY_MESSAGES
+
++ |
+
+static String |
+PROPERTY_METHOD
+
++ |
+
+static String |
+PROPERTY_NAME
+
++ |
+
+static String |
+PROPERTY_OPTIONAL_PARAMS
+
++ |
+
+static String |
+PROPERTY_PROPERTIES
+
++ |
+
+static String |
+PROPERTY_PROPERTY
+
++ |
+
+static String |
+PROPERTY_PROXY_HOST
+
++ |
+
+static String |
+PROPERTY_PROXY_PORT
+
++ |
+
+static String |
+PROPERTY_REL
+
++ |
+
+static String |
+PROPERTY_REQUIRED_PARAMS
+
++ |
+
+static String |
+PROPERTY_RESULT
+
++ |
+
+static String |
+PROPERTY_RHC_DOMAIN
+
++ |
+
+static String |
+PROPERTY_RHLOGIN
+
++ |
+
+static String |
+PROPERTY_SCALABLE
+
++ |
+
+static String |
+PROPERTY_SCALE
+
++ |
+
+static String |
+PROPERTY_SEVERITY
+
++ |
+
+static String |
+PROPERTY_SSH
+
++ |
+
+static String |
+PROPERTY_SSH_KEY
+
++ |
+
+static String |
+PROPERTY_SSH_TYPE
+
++ |
+
+static String |
+PROPERTY_SSH_URL
+
++ |
+
+static String |
+PROPERTY_STATUS
+
++ |
+
+static String |
+PROPERTY_SUFFIX
+
++ |
+
+static String |
+PROPERTY_TEXT
+
++ |
+
+static String |
+PROPERTY_TYPE
+
++ |
+
+static String |
+PROPERTY_URL
+
++ |
+
+static String |
+PROPERTY_USER_INFO
+
++ |
+
+static String |
+PROPERTY_UUID
+
++ |
+
+static String |
+PROPERTY_VALID_OPTIONS
+
++ |
+
+static String |
+PROPERTY_VALUE
+
++ |
+
+static String |
+VALUE_ADD_ALIAS
+
++ |
+
+static String |
+VALUE_FORCESTOP
+
++ |
+
+static String |
+VALUE_REMOVE_ALIAS
+
++ |
+
+static String |
+VALUE_RESTART
+
++ |
+
+static String |
+VALUE_SCALE_DOWN
+
++ |
+
+static String |
+VALUE_SCALE_UP
+
++ |
+
+static String |
+VALUE_START
+
++ |
+
+static String |
+VALUE_STATUS
+
++ |
+
+static String |
+VALUE_STATUS_CREATED
+
++ |
+
+static String |
+VALUE_STATUS_OK
+
++ |
+
+static String |
+VALUE_STOP
+
++ |
+
| +Constructor Summary | +|
|---|---|
IOpenShiftJsonConstants()
+
++ |
+|
| +Method Summary | +
|---|
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Field Detail | +
|---|
+public static final String PROPERTY_ACTION+
+public static final String PROPERTY_ALIAS+
+public static final String PROPERTY_ALIASES+
+public static final String PROPERTY_ALTER+
+public static final String PROPERTY_APP_INFO+
+public static final String PROPERTY_APP_NAME+
+public static final String PROPERTY_APP_URL+
+public static final String PROPERTY_CREATION_TIME+
+public static final String PROPERTY_CARTRIDGE+
+public static final String PROPERTY_CARTRIDGES+
+public static final String PROPERTY_CONSUMED_GEARS+
+public static final String PROPERTY_CONTENT+
+public static final String PROPERTY_DATA+
+public static final String PROPERTY_DEBUG+
+public static final String PROPERTY_DEFAULT_VALUE+
+public static final String PROPERTY_DELETE+
+public static final String PROPERTY_DESCRIPTION+
+public static final String PROPERTY_DISPLAY_NAME+
+public static final String PROPERTY_DOMAIN+
+public static final String PROPERTY_DOMAINS+
+public static final String PROPERTY_DOMAIN_ID+
+public static final String PROPERTY_EMBEDDED+
+public static final String PROPERTY_EVENT+
+public static final String PROPERTY_EXIT_CODE+
+public static final String PROPERTY_FIELD+
+public static final String PROPERTY_FORCE+
+public static final String PROPERTY_FRAMEWORK+
+public static final String PROPERTY_GEARS+
+public static final String PROPERTY_GEAR_PROFILE+
+public static final String PROPERTY_GEAR_STATE+
+public static final String PROPERTY_GIT_URL+
+public static final String PROPERTY_HEALTH_CHECK_PATH+
+public static final String PROPERTY_HREF+
+public static final String PROPERTY_ID+
+public static final String PROPERTY_INFO+
+public static final String PROPERTY_INITIAL_GIT_URL+
+public static final String PROPERTY_INTERNAL_PORT+
+public static final String PROPERTY_KEY_TYPE+
+public static final String PROPERTY_KEYS+
+public static final String PROPERTY_KEY+
+public static final String PROPERTY_LOGIN+
+public static final String PROPERTY_LINKS+
+public static final String PROPERTY_MESSAGES+
+public static final String PROPERTY_METHOD+
+public static final String PROPERTY_MAX_GEARS+
+public static final String PROPERTY_NAME+
+public static final String PROPERTY_OPTIONAL_PARAMS+
+public static final String PROPERTY_PROPERTIES+
+public static final String PROPERTY_PROPERTY+
+public static final String PROPERTY_PROXY_PORT+
+public static final String PROPERTY_PROXY_HOST+
+public static final String PROPERTY_REL+
+public static final String PROPERTY_REQUIRED_PARAMS+
+public static final String PROPERTY_RESULT+
+public static final String PROPERTY_RHLOGIN+
+public static final String PROPERTY_RHC_DOMAIN+
+public static final String PROPERTY_SCALABLE+
+public static final String PROPERTY_SCALE+
+public static final String PROPERTY_SEVERITY+
+public static final String PROPERTY_SSH+
+public static final String PROPERTY_SSH_KEY+
+public static final String PROPERTY_SSH_TYPE+
+public static final String PROPERTY_SSH_URL+
+public static final String PROPERTY_STATUS+
+public static final String PROPERTY_SUFFIX+
+public static final String PROPERTY_TEXT+
+public static final String PROPERTY_TYPE+
+public static final String PROPERTY_URL+
+public static final String PROPERTY_USER_INFO+
+public static final String PROPERTY_UUID+
+public static final String PROPERTY_VALID_OPTIONS+
+public static final String PROPERTY_VALUE+
+public static final String PROPERTY_ENVIRONMENT_VARIABLES+
+public static final String VALUE_STATUS_OK+
+public static final String VALUE_STATUS_CREATED+
+public static final String VALUE_ADD_ALIAS+
+public static final String VALUE_FORCESTOP+
+public static final String VALUE_RESTART+
+public static final String VALUE_SCALE_DOWN+
+public static final String VALUE_SCALE_UP+
+public static final String VALUE_START+
+public static final String VALUE_STOP+
+public static final String VALUE_STATUS+
+public static final String VALUE_REMOVE_ALIAS+
| +Constructor Detail | +
|---|
+public IOpenShiftJsonConstants()+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.utils.IOpenShiftParameterConstants +
public class IOpenShiftParameterConstants
+
| +Field Summary | +|
|---|---|
+static String |
+PARAMETER_CARTRIDGES
+
++ |
+
+static String |
+PARAMETER_INCLUDE
+
++ |
+
| +Constructor Summary | +|
|---|---|
IOpenShiftParameterConstants()
+
++ |
+|
| +Method Summary | +
|---|
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Field Detail | +
|---|
+public static final String PARAMETER_INCLUDE+
+public static final String PARAMETER_CARTRIDGES+
| +Constructor Detail | +
|---|
+public IOpenShiftParameterConstants()+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.utils.StreamUtils +
public class StreamUtils
+
| +Constructor Summary | +|
|---|---|
StreamUtils()
+
++ |
+|
| +Method Summary | +|
|---|---|
+static void |
+close(InputStream inputStream)
+
++ |
+
+static void |
+close(OutputStream outputStream)
+
++ |
+
+static void |
+close(Reader reader)
+
++ |
+
+static void |
+close(Writer writer)
+
++ |
+
+static void |
+quietlyClose(InputStream inputStream)
+
++ |
+
+static void |
+quietlyClose(OutputStream outputStream)
+
++ |
+
+static void |
+quietlyClose(Reader reader)
+
++ |
+
+static void |
+quietlyClose(Writer writer)
+
++ |
+
+static String |
+readToString(InputStream inputStream)
+
++ |
+
+static String |
+readToString(Reader reader)
+
++ |
+
+static void |
+writeTo(byte[] data,
+ OutputStream outputStream)
+
++ Writes the given string to the given output stream. |
+
+static InputStream |
+writeTo(InputStream inputStream,
+ OutputStream outputStream)
+
++ Writes the content of the given input stream to the given output stream + and returns and input stream that may still be used to read from. |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public StreamUtils()+
| +Method Detail | +
|---|
+public static InputStream writeTo(InputStream inputStream, + OutputStream outputStream) + throws IOException+
+
outputStream - the output stream to write toinputStream - the input stream to read from
+IOException+public static String readToString(InputStream inputStream) + throws IOException+
IOException+public static String readToString(Reader reader) + throws IOException+
IOException+public static void writeTo(byte[] data, + OutputStream outputStream) + throws IOException+
+
data - the data to writeoutputStream - the stream to write to
+IOException+public static void close(InputStream inputStream) + throws IOException+
IOException+public static void quietlyClose(InputStream inputStream)+
+public static void close(OutputStream outputStream) + throws IOException+
IOException+public static void quietlyClose(OutputStream outputStream)+
+public static void close(Reader reader) + throws IOException+
IOException+public static void quietlyClose(Reader reader)+
+public static void close(Writer writer) + throws IOException+
IOException+public static void quietlyClose(Writer writer)+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.utils.StringUtils +
public class StringUtils
+
| +Constructor Summary | +|
|---|---|
StringUtils()
+
++ |
+|
| +Method Summary | +|
|---|---|
+static boolean |
+isEmpty(String string)
+
++ |
+
+static String |
+nullToEmptyString(String string)
+
++ |
+
+static String |
+prependIfNonEmpty(String prefix,
+ String string)
+
++ |
+
+static String |
+toLowerCase(Enum<?> aEnum)
+
++ |
+
+static String |
+toLowerCase(String message)
+
++ |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Constructor Detail | +
|---|
+public StringUtils()+
| +Method Detail | +
|---|
+public static String toLowerCase(String message)+
+public static String toLowerCase(Enum<?> aEnum)+
+public static boolean isEmpty(String string)+
+public static String prependIfNonEmpty(String prefix, + String string)+
+public static String nullToEmptyString(String string)+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+java.lang.Object ++com.openshift.internal.client.utils.UrlUtils +
public class UrlUtils
+
| +Field Summary | +|
|---|---|
+static String |
+SCHEME_HTTPS
+
++ |
+
+static char |
+USERNAME_SEPARATOR
+
++ |
+
| +Method Summary | +|
|---|---|
+static String |
+appendPath(String parent,
+ String child)
+
++ |
+
+static String |
+ensureStartsWithHttps(String url)
+
++ |
+
+static boolean |
+isUrl(String string)
+
++ |
+
+static String |
+toString(URL url)
+
++ |
+
| Methods inherited from class java.lang.Object | +
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
| +Field Detail | +
|---|
+public static final String SCHEME_HTTPS+
+public static final char USERNAME_SEPARATOR+
| +Method Detail | +
|---|
+public static String ensureStartsWithHttps(String url)+
+public static boolean isUrl(String string)+
+public static String appendPath(String parent, + String child)+
+public static String toString(URL url)+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| + SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
|
+Classes
+
+ +Assert + +CollectionUtils + +IOpenShiftJsonConstants + +IOpenShiftParameterConstants + +StreamUtils + +StringUtils + +UrlUtils |
+
|
+Exceptions
+
+ +Assert.AssertionFailedException |
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Class Summary | +|
|---|---|
| Assert | ++ |
| CollectionUtils | ++ |
| IOpenShiftJsonConstants | ++ |
| IOpenShiftParameterConstants | ++ |
| StreamUtils | ++ |
| StringUtils | ++ |
| UrlUtils | ++ |
+ +
| +Exception Summary | +|
|---|---|
| Assert.AssertionFailedException | ++ |
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +com.openshift.* | +
|---|
+ +
| com.openshift.client.IHttpClient | +||
|---|---|---|
+public static final char |
+AMPERSAND |
+38 |
+
+public static final String |
+AUTHORIZATION_BASIC |
+"Basic" |
+
+public static final char |
+COLON |
+58 |
+
+public static final char |
+COMMA |
+44 |
+
+public static final int |
+DEFAULT_CONNECT_TIMEOUT |
+10000 |
+
+public static final int |
+DEFAULT_READ_TIMEOUT |
+120000 |
+
+public static final char |
+EQUALS |
+61 |
+
+public static final String |
+HTTP |
+"http" |
+
+public static final String |
+MEDIATYPE_APPLICATION_FORMURLENCODED |
+"application/x-www-form-urlencoded" |
+
+public static final String |
+MEDIATYPE_APPLICATION_JSON |
+"application/json" |
+
+public static final String |
+MEDIATYPE_APPLICATION_XML |
+"application/xml" |
+
+public static final int |
+NO_TIMEOUT |
+0 |
+
+public static final String |
+PROPERTY_ACCEPT |
+"Accept" |
+
+public static final String |
+PROPERTY_AUTHIV |
+"broker_auth_iv" |
+
+public static final String |
+PROPERTY_AUTHKEY |
+"broker_auth_key" |
+
+public static final String |
+PROPERTY_AUTHORIZATION |
+"Authorization" |
+
+public static final String |
+PROPERTY_CONTENT_TYPE |
+"Content-Type" |
+
+public static final String |
+PROPERTY_USER_AGENT |
+"User-Agent" |
+
+public static final char |
+QUESTION_MARK |
+63 |
+
+public static final char |
+SEMICOLON |
+59 |
+
+public static final char |
+SLASH |
+47 |
+
+public static final char |
+SPACE |
+32 |
+
+public static final int |
+STATUS_BAD_REQUEST |
+400 |
+
+public static final int |
+STATUS_INTERNAL_SERVER_ERROR |
+500 |
+
+public static final int |
+STATUS_NOT_FOUND |
+404 |
+
+public static final int |
+STATUS_OK |
+200 |
+
+public static final int |
+STATUS_UNAUTHORIZED |
+401 |
+
+public static final String |
+SYSPROP_DEFAULT_CONNECT_TIMEOUT |
+"sun.net.client.defaultConnectTimeout" |
+
+public static final String |
+SYSPROP_DEFAULT_READ_TIMEOUT |
+"sun.net.client.defaultReadTimeout" |
+
+public static final String |
+SYSPROP_OPENSHIFT_CONNECT_TIMEOUT |
+"com.openshift.httpclient.connect.timeout" |
+
+public static final String |
+SYSPROP_OPENSHIFT_READ_TIMEOUT |
+"com.openshift.httpclient.read.timeout" |
+
+public static final String |
+VERSION |
+"version" |
+
+ +
+ +
| com.openshift.client.IUser | +||
|---|---|---|
+public static final String |
+ID |
+"com.openshift.client" |
+
+ +
+ +
| com.openshift.client.cartridge.ICartridge | +||
|---|---|---|
+public static final char |
+NAME_VERSION_DELIMITER |
+45 |
+
+ +
+ +
| com.openshift.client.cartridge.IEmbeddableCartridge | +||
|---|---|---|
+public static final String |
+NAME_10GEN_MMS_AGENT |
+"10gen-mms-agent" |
+
+public static final String |
+NAME_CRON |
+"cron" |
+
+public static final String |
+NAME_HAPROXY |
+"haproxy" |
+
+public static final String |
+NAME_JENKINS_CLIENT |
+"jenkins-client" |
+
+public static final String |
+NAME_METRICS |
+"metrics" |
+
+public static final String |
+NAME_MONGODB |
+"mongodb" |
+
+public static final String |
+NAME_MYSQL |
+"mysql" |
+
+public static final String |
+NAME_PHPMYADMIN |
+"phpmyadmin" |
+
+public static final String |
+NAME_POSTGRESQL |
+"postgresql" |
+
+public static final String |
+NAME_ROCKMONGO |
+"rockmongo" |
+
+public static final String |
+NAME_SWITCHYARD |
+"switchyard" |
+
+ +
+ +
| com.openshift.client.cartridge.IStandaloneCartridge | +||
|---|---|---|
+public static final String |
+NAME_JBOSSAS |
+"jbossas" |
+
+public static final String |
+NAME_JBOSSEAP |
+"jbosseap" |
+
+public static final String |
+NAME_JBOSSEWS |
+"jbossews" |
+
+public static final String |
+NAME_JENKINS |
+"jenkins" |
+
+public static final String |
+NAME_PERL |
+"perl" |
+
+public static final String |
+NAME_PHP |
+"php" |
+
+public static final String |
+NAME_PYTHON |
+"python" |
+
+public static final String |
+NAME_RUBY |
+"ruby" |
+
+public static final String |
+NAME_ZEND |
+"zend" |
+
+ +
+ +
| com.openshift.client.configuration.AbstractOpenshiftConfiguration | +||
|---|---|---|
+protected static final String |
+KEY_CLIENT_ID |
+"client_id" |
+
+protected static final String |
+KEY_LIBRA_DOMAIN |
+"libra_domain" |
+
+protected static final String |
+KEY_LIBRA_SERVER |
+"libra_server" |
+
+protected static final String |
+KEY_PASSWORD |
+"rhpassword" |
+
+protected static final String |
+KEY_RHLOGIN |
+"default_rhlogin" |
+
+ +
+ +
| com.openshift.client.configuration.DefaultConfiguration | +||
|---|---|---|
+public static final String |
+LIBRA_DOMAIN |
+"rhcloud.com" |
+
+public static final String |
+LIBRA_SERVER |
+"openshift.redhat.com" |
+
+ +
+ +
| com.openshift.internal.client.IRestService | +||
|---|---|---|
+public static final String |
+SERVICE_PATH |
+"/broker/rest/" |
+
+public static final String |
+SERVICE_VERSION |
+"1.2" |
+
+ +
+ +
| com.openshift.internal.client.response.CartridgeResourceProperties | +||
|---|---|---|
+public static final String |
+CONNECTION_URL |
+"connection_url" |
+
+public static final String |
+DATABASE_NAME |
+"database_name" |
+
+public static final String |
+JOB_URL |
+"job_url" |
+
+public static final String |
+PASSWORD |
+"password" |
+
+public static final String |
+USERNAME |
+"username" |
+
+ +
+ +
| com.openshift.internal.client.utils.IOpenShiftJsonConstants | +||
|---|---|---|
+public static final String |
+PROPERTY_ACTION |
+"action" |
+
+public static final String |
+PROPERTY_ALIAS |
+"alias" |
+
+public static final String |
+PROPERTY_ALIASES |
+"aliases" |
+
+public static final String |
+PROPERTY_ALTER |
+"alter" |
+
+public static final String |
+PROPERTY_APP_INFO |
+"app_info" |
+
+public static final String |
+PROPERTY_APP_NAME |
+"app_name" |
+
+public static final String |
+PROPERTY_APP_URL |
+"app_url" |
+
+public static final String |
+PROPERTY_CARTRIDGE |
+"cartridge" |
+
+public static final String |
+PROPERTY_CARTRIDGES |
+"cartridges" |
+
+public static final String |
+PROPERTY_CONSUMED_GEARS |
+"consumed_gears" |
+
+public static final String |
+PROPERTY_CONTENT |
+"content" |
+
+public static final String |
+PROPERTY_CREATION_TIME |
+"creation_time" |
+
+public static final String |
+PROPERTY_DATA |
+"data" |
+
+public static final String |
+PROPERTY_DEBUG |
+"debug" |
+
+public static final String |
+PROPERTY_DEFAULT_VALUE |
+"default_value" |
+
+public static final String |
+PROPERTY_DELETE |
+"delete" |
+
+public static final String |
+PROPERTY_DESCRIPTION |
+"description" |
+
+public static final String |
+PROPERTY_DISPLAY_NAME |
+"display_name" |
+
+public static final String |
+PROPERTY_DOMAIN |
+"domain" |
+
+public static final String |
+PROPERTY_DOMAIN_ID |
+"domain_id" |
+
+public static final String |
+PROPERTY_DOMAINS |
+"domains" |
+
+public static final String |
+PROPERTY_EMBEDDED |
+"embedded" |
+
+public static final String |
+PROPERTY_ENVIRONMENT_VARIABLES |
+"environment_variables" |
+
+public static final String |
+PROPERTY_EVENT |
+"event" |
+
+public static final String |
+PROPERTY_EXIT_CODE |
+"exit_code" |
+
+public static final String |
+PROPERTY_FIELD |
+"field" |
+
+public static final String |
+PROPERTY_FORCE |
+"force" |
+
+public static final String |
+PROPERTY_FRAMEWORK |
+"framework" |
+
+public static final String |
+PROPERTY_GEAR_PROFILE |
+"gear_profile" |
+
+public static final String |
+PROPERTY_GEAR_STATE |
+"state" |
+
+public static final String |
+PROPERTY_GEARS |
+"gears" |
+
+public static final String |
+PROPERTY_GIT_URL |
+"git_url" |
+
+public static final String |
+PROPERTY_HEALTH_CHECK_PATH |
+"health_check_path" |
+
+public static final String |
+PROPERTY_HREF |
+"href" |
+
+public static final String |
+PROPERTY_ID |
+"id" |
+
+public static final String |
+PROPERTY_INFO |
+"info" |
+
+public static final String |
+PROPERTY_INITIAL_GIT_URL |
+"initial_git_url" |
+
+public static final String |
+PROPERTY_INTERNAL_PORT |
+"internal_port" |
+
+public static final String |
+PROPERTY_KEY |
+"key" |
+
+public static final String |
+PROPERTY_KEY_TYPE |
+"key_type" |
+
+public static final String |
+PROPERTY_KEYS |
+"keys" |
+
+public static final String |
+PROPERTY_LINKS |
+"links" |
+
+public static final String |
+PROPERTY_LOGIN |
+"login" |
+
+public static final String |
+PROPERTY_MAX_GEARS |
+"max_gears" |
+
+public static final String |
+PROPERTY_MESSAGES |
+"messages" |
+
+public static final String |
+PROPERTY_METHOD |
+"method" |
+
+public static final String |
+PROPERTY_NAME |
+"name" |
+
+public static final String |
+PROPERTY_OPTIONAL_PARAMS |
+"optional_params" |
+
+public static final String |
+PROPERTY_PROPERTIES |
+"properties" |
+
+public static final String |
+PROPERTY_PROPERTY |
+"property" |
+
+public static final String |
+PROPERTY_PROXY_HOST |
+"proxy_host" |
+
+public static final String |
+PROPERTY_PROXY_PORT |
+"proxy_port" |
+
+public static final String |
+PROPERTY_REL |
+"rel" |
+
+public static final String |
+PROPERTY_REQUIRED_PARAMS |
+"required_params" |
+
+public static final String |
+PROPERTY_RESULT |
+"result" |
+
+public static final String |
+PROPERTY_RHC_DOMAIN |
+"rhc_domain" |
+
+public static final String |
+PROPERTY_RHLOGIN |
+"rhlogin" |
+
+public static final String |
+PROPERTY_SCALABLE |
+"scalable" |
+
+public static final String |
+PROPERTY_SCALE |
+"scale" |
+
+public static final String |
+PROPERTY_SEVERITY |
+"severity" |
+
+public static final String |
+PROPERTY_SSH |
+"ssh" |
+
+public static final String |
+PROPERTY_SSH_KEY |
+"ssh_key" |
+
+public static final String |
+PROPERTY_SSH_TYPE |
+"ssh_type" |
+
+public static final String |
+PROPERTY_SSH_URL |
+"ssh_url" |
+
+public static final String |
+PROPERTY_STATUS |
+"status" |
+
+public static final String |
+PROPERTY_SUFFIX |
+"suffix" |
+
+public static final String |
+PROPERTY_TEXT |
+"text" |
+
+public static final String |
+PROPERTY_TYPE |
+"type" |
+
+public static final String |
+PROPERTY_URL |
+"url" |
+
+public static final String |
+PROPERTY_USER_INFO |
+"user_info" |
+
+public static final String |
+PROPERTY_UUID |
+"uuid" |
+
+public static final String |
+PROPERTY_VALID_OPTIONS |
+"valid_options" |
+
+public static final String |
+PROPERTY_VALUE |
+"value" |
+
+public static final String |
+VALUE_ADD_ALIAS |
+"add-alias" |
+
+public static final String |
+VALUE_FORCESTOP |
+"force-stop" |
+
+public static final String |
+VALUE_REMOVE_ALIAS |
+"remove-alias" |
+
+public static final String |
+VALUE_RESTART |
+"restart" |
+
+public static final String |
+VALUE_SCALE_DOWN |
+"scale-down" |
+
+public static final String |
+VALUE_SCALE_UP |
+"scale-up" |
+
+public static final String |
+VALUE_START |
+"start" |
+
+public static final String |
+VALUE_STATUS |
+"status" |
+
+public static final String |
+VALUE_STATUS_CREATED |
+"created" |
+
+public static final String |
+VALUE_STATUS_OK |
+"ok" |
+
+public static final String |
+VALUE_STOP |
+"stop" |
+
+ +
+ +
| com.openshift.internal.client.utils.IOpenShiftParameterConstants | +||
|---|---|---|
+public static final String |
+PARAMETER_CARTRIDGES |
+"cartridges" |
+
+public static final String |
+PARAMETER_INCLUDE |
+"include" |
+
+ +
+ +
| com.openshift.internal.client.utils.UrlUtils | +||
|---|---|---|
+public static final String |
+SCHEME_HTTPS |
+"https://" |
+
+public static final char |
+USERNAME_SEPARATOR |
+64 |
+
+ +
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ +++The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.
+ +++Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain four categories:
+
+- Interfaces (italic)
- Classes
- Enums
- Exceptions
- Errors
- Annotation Types
+ ++ ++Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.- Class inheritance diagram
- Direct Subclasses
- All Known Subinterfaces
- All Known Implementing Classes
- Class/interface declaration
- Class/interface description +
+
- Nested Class Summary
- Field Summary
- Constructor Summary
- Method Summary +
+
- Field Detail
- Constructor Detail
- Method Detail
+ ++ ++Each annotation type has its own separate page with the following sections:
+
+- Annotation Type declaration
- Annotation Type description
- Required Element Summary
- Optional Element Summary
- Element Detail
+ +++Each enum has its own separate page with the following sections:
+
+- Enum declaration
- Enum description
- Enum Constant Summary
- Enum Constant Detail
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.+
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with+java.lang.Object. The interfaces do not inherit fromjava.lang.Object.+
+- When viewing the Overview page, clicking on "Tree" displays the hierarchy for all packages.
- When viewing a particular package, class or interface page, clicking "Tree" displays the hierarchy for only that package.
+The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.+
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.+
+
+
+
+
+This help file applies to API documentation generated using the standard doclet.
+
+
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
true if this domain can create application with environment variables.
+RestResponse instance for a given rest response string.
+ssh://<username>@<host>
+true if there is log about the creation of this resource.
+- hasCreationLog() -
+Method in class com.openshift.internal.client.AbstractOpenShiftResource
+
-
+
- hasDomain() -
+Method in interface com.openshift.client.IUser
+
-
+
- hasDomain(String) -
+Method in interface com.openshift.client.IUser
+
-
+
- hasDomain(String) -
+Method in class com.openshift.internal.client.APIResource
+
-
+
- hasDomain() -
+Method in class com.openshift.internal.client.UserResource
+
-
+
- hasDomain(String) -
+Method in class com.openshift.internal.client.UserResource
+
-
+
- hasEmbeddedCartridge(IEmbeddableCartridge) -
+Method in interface com.openshift.client.IApplication
+
- Returns
true if this application has an embedded cartridge.
+ - hasEmbeddedCartridge(String) -
+Method in interface com.openshift.client.IApplication
+
- Returns
true if this application has an embedded cartridge.
+ - hasEmbeddedCartridge(String) -
+Method in class com.openshift.internal.client.ApplicationResource
+
-
+
- hasEmbeddedCartridge(IEmbeddableCartridge) -
+Method in class com.openshift.internal.client.ApplicationResource
+
-
+
- hasEnvironmentVariable(String) -
+Method in interface com.openshift.client.IApplication
+
- Checks if the environment variable is present in the application.
+
- hasEnvironmentVariable(String) -
+Method in class com.openshift.internal.client.ApplicationResource
+
-
+
- hashCode() -
+Method in class com.openshift.client.cartridge.selector.LatestVersionQuery
+
-
+
- hashCode() -
+Method in class com.openshift.internal.client.ApplicationResource
+
-
+
- hashCode() -
+Method in class com.openshift.internal.client.cartridge.BaseCartridge
+
-
+
- hashCode() -
+Method in class com.openshift.internal.client.DomainResource
+
-
+
- hashCode() -
+Method in class com.openshift.internal.client.EmbeddedCartridgeResource
+
-
+
- hashCode() -
+Method in class com.openshift.internal.client.Field
+
-
+
- hashCode() -
+Method in class com.openshift.internal.client.GearProfile
+
-
+
- hashCode() -
+Method in class com.openshift.internal.client.httpclient.request.Parameter
+
-
+
- hashCode() -
+Method in class com.openshift.internal.client.httpclient.request.ParameterValue
+
-
+
- hashCode() -
+Method in class com.openshift.internal.client.response.LinkParameterType
+
-
+
- hashCode() -
+Method in class com.openshift.internal.client.Severity
+
-
+
- hashCode() -
+Method in class com.openshift.internal.client.ssh.AbstractSSHKey
+
-
+
- hasMessages() -
+Method in class com.openshift.client.Messages
+
-
+
- hasParameter(String) -
+Method in class com.openshift.internal.client.response.Link
+
-
+
- hasSSHKeyName(String) -
+Method in interface com.openshift.client.IUser
+
-
+
- hasSSHKeyName(String) -
+Method in class com.openshift.internal.client.UserResource
+
-
+
- hasSSHPublicKey(String) -
+Method in interface com.openshift.client.IUser
+
-
+
- hasSSHPublicKey(String) -
+Method in class com.openshift.internal.client.UserResource
+
-
+
- hasSSHSession() -
+Method in interface com.openshift.client.IApplication
+
- Returns true if the application was already provided with an SSH session,
+ and this session is still valid (connected).
+
- hasSSHSession() -
+Method in class com.openshift.internal.client.ApplicationResource
+
-
+
- hasVersion() -
+Method in class com.openshift.client.cartridge.selector.LatestVersionQuery.VersionedName
+
-
+
- head(URL, int) -
+Method in interface com.openshift.client.IHttpClient
+
-
+
- head(URL, int) -
+Method in class com.openshift.internal.client.httpclient.UrlConnectionHttpClient
+
-
+
- HostUtils - Class in com.openshift.client.utils
-
- HostUtils() -
+Constructor for class com.openshift.client.utils.HostUtils
+
-
+
- HTTP -
+Static variable in interface com.openshift.client.IHttpClient
+
-
+
- HttpClientException - Exception in com.openshift.internal.client.httpclient
-
- HttpClientException(String, Throwable) -
+Constructor for exception com.openshift.internal.client.httpclient.HttpClientException
+
-
+
- HttpClientException(String) -
+Constructor for exception com.openshift.internal.client.httpclient.HttpClientException
+
-
+
- HttpClientException(Throwable) -
+Constructor for exception com.openshift.internal.client.httpclient.HttpClientException
+
-
+
- HttpMethod - Enum in com.openshift.client
-
true if this is a downloadable cartridge whose code
+ may be downloaded at the url returned by ICartridge.getUrl() (cartridge
+ code will get downloaded upon creation).
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +OpenShift Java Client 2.5.0.Final | +
|---|
+ + + diff --git a/documentation/overview-summary.html b/documentation/overview-summary.html new file mode 100644 index 00000000..b9149a24 --- /dev/null +++ b/documentation/overview-summary.html @@ -0,0 +1,201 @@ + + + +
+ + +
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Packages | +|
|---|---|
| com.openshift.client | ++ |
| com.openshift.client.cartridge | ++ |
| com.openshift.client.cartridge.selector | ++ |
| com.openshift.client.configuration | ++ |
| com.openshift.client.utils | ++ |
| com.openshift.internal.client | ++ |
| com.openshift.internal.client.cartridge | ++ |
| com.openshift.internal.client.httpclient | ++ |
| com.openshift.internal.client.httpclient.request | ++ |
| com.openshift.internal.client.response | ++ |
| com.openshift.internal.client.ssh | ++ |
| com.openshift.internal.client.utils | ++ |
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
| +Package com.openshift.client | +
|---|
| +Class com.openshift.client.InvalidCredentialsOpenShiftException extends OpenShiftEndpointException implements Serializable | +
|---|
+serialVersionUID: 1L + +
+ +
| +Class com.openshift.client.InvalidNameOpenShiftException extends OpenShiftException implements Serializable | +
|---|
+serialVersionUID: 1L + +
+ +
| +Class com.openshift.client.NotFoundOpenShiftException extends OpenShiftEndpointException implements Serializable | +
|---|
+serialVersionUID: 1L + +
+ +
| +Class com.openshift.client.OpenShiftApplicationNotAvailableException extends OpenShiftException implements Serializable | +
|---|
+serialVersionUID: 1L + +
+ +
| +Class com.openshift.client.OpenShiftEndpointException extends OpenShiftException implements Serializable | +
|---|
+serialVersionUID: 8251533839480636815L + +
| +Serialized Fields | +
|---|
+String url+
+RestResponse response+
| +Class com.openshift.client.OpenShiftException extends RuntimeException implements Serializable | +
|---|
+serialVersionUID: 1L + +
+ +
| +Class com.openshift.client.OpenShiftRequestException extends OpenShiftException implements Serializable | +
|---|
+serialVersionUID: 1L + +
+ +
| +Class com.openshift.client.OpenShiftSSHKeyException extends OpenShiftException implements Serializable | +
|---|
+serialVersionUID: 1L + +
+ +
| +Class com.openshift.client.OpenShiftSSHOperationException extends OpenShiftException implements Serializable | +
|---|
+serialVersionUID: -1058021959768485317L + +
+ +
| +Class com.openshift.client.OpenShiftTimeoutException extends OpenShiftEndpointException implements Serializable | +
|---|
+serialVersionUID: 1L + +
+ +
| +Class com.openshift.client.OpenShiftUnknonwSSHKeyTypeException extends OpenShiftException implements Serializable | +
|---|
+serialVersionUID: 1L + +
+
| +Package com.openshift.internal.client.httpclient | +
|---|
| +Class com.openshift.internal.client.httpclient.BadRequestException extends HttpClientException implements Serializable | +
|---|
+serialVersionUID: 1L + +
+ +
| +Class com.openshift.internal.client.httpclient.EncodingException extends HttpClientException implements Serializable | +
|---|
+serialVersionUID: 1L + +
+ +
| +Class com.openshift.internal.client.httpclient.HttpClientException extends RuntimeException implements Serializable | +
|---|
+serialVersionUID: 1L + +
+ +
| +Class com.openshift.internal.client.httpclient.InternalServerErrorException extends HttpClientException implements Serializable | +
|---|
+serialVersionUID: 1L + +
+ +
| +Class com.openshift.internal.client.httpclient.NotFoundException extends HttpClientException implements Serializable | +
|---|
+serialVersionUID: 1L + +
+ +
| +Class com.openshift.internal.client.httpclient.UnauthorizedException extends HttpClientException implements Serializable | +
|---|
+serialVersionUID: 1L + +
+
| +Package com.openshift.internal.client.utils | +
|---|
| +Class com.openshift.internal.client.utils.Assert.AssertionFailedException extends RuntimeException implements Serializable | +
|---|
+serialVersionUID: 1L + +
+ +
+
+
+
|
++OpenShift Java Client 2.5.0.Final + | +|||||||||
| + PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE -PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR -DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS -AGREEMENT.
- -1. DEFINITIONS
- -"Contribution" means:
- -a) in the case of the initial Contributor, the initial -code and documentation distributed under this Agreement, and
-b) in the case of each subsequent Contributor:
-i) changes to the Program, and
-ii) additions to the Program;
-where such changes and/or additions to the Program -originate from and are distributed by that particular Contributor. A -Contribution 'originates' from a Contributor if it was added to the -Program by such Contributor itself or anyone acting on such -Contributor's behalf. Contributions do not include additions to the -Program which: (i) are separate modules of software distributed in -conjunction with the Program under their own license agreement, and (ii) -are not derivative works of the Program.
- -"Contributor" means any person or entity that distributes -the Program.
- -"Licensed Patents" mean patent claims licensable by a -Contributor which are necessarily infringed by the use or sale of its -Contribution alone or when combined with the Program.
- -"Program" means the Contributions distributed in accordance -with this Agreement.
- -"Recipient" means anyone who receives the Program under -this Agreement, including all Contributors.
- -2. GRANT OF RIGHTS
- -a) Subject to the terms of this Agreement, each -Contributor hereby grants Recipient a non-exclusive, worldwide, -royalty-free copyright license to reproduce, prepare derivative works -of, publicly display, publicly perform, distribute and sublicense the -Contribution of such Contributor, if any, and such derivative works, in -source code and object code form.
- -b) Subject to the terms of this Agreement, each -Contributor hereby grants Recipient a non-exclusive, worldwide, -royalty-free patent license under Licensed Patents to make, use, sell, -offer to sell, import and otherwise transfer the Contribution of such -Contributor, if any, in source code and object code form. This patent -license shall apply to the combination of the Contribution and the -Program if, at the time the Contribution is added by the Contributor, -such addition of the Contribution causes such combination to be covered -by the Licensed Patents. The patent license shall not apply to any other -combinations which include the Contribution. No hardware per se is -licensed hereunder.
- -c) Recipient understands that although each Contributor -grants the licenses to its Contributions set forth herein, no assurances -are provided by any Contributor that the Program does not infringe the -patent or other intellectual property rights of any other entity. Each -Contributor disclaims any liability to Recipient for claims brought by -any other entity based on infringement of intellectual property rights -or otherwise. As a condition to exercising the rights and licenses -granted hereunder, each Recipient hereby assumes sole responsibility to -secure any other intellectual property rights needed, if any. For -example, if a third party patent license is required to allow Recipient -to distribute the Program, it is Recipient's responsibility to acquire -that license before distributing the Program.
- -d) Each Contributor represents that to its knowledge it -has sufficient copyright rights in its Contribution, if any, to grant -the copyright license set forth in this Agreement.
- -3. REQUIREMENTS
- -A Contributor may choose to distribute the Program in object code -form under its own license agreement, provided that:
- -a) it complies with the terms and conditions of this -Agreement; and
- -b) its license agreement:
- -i) effectively disclaims on behalf of all Contributors -all warranties and conditions, express and implied, including warranties -or conditions of title and non-infringement, and implied warranties or -conditions of merchantability and fitness for a particular purpose;
- -ii) effectively excludes on behalf of all Contributors -all liability for damages, including direct, indirect, special, -incidental and consequential damages, such as lost profits;
- -iii) states that any provisions which differ from this -Agreement are offered by that Contributor alone and not by any other -party; and
- -iv) states that source code for the Program is available -from such Contributor, and informs licensees how to obtain it in a -reasonable manner on or through a medium customarily used for software -exchange.
- -When the Program is made available in source code form:
- -a) it must be made available under this Agreement; and
- -b) a copy of this Agreement must be included with each -copy of the Program.
- -Contributors may not remove or alter any copyright notices contained -within the Program.
- -Each Contributor must identify itself as the originator of its -Contribution, if any, in a manner that reasonably allows subsequent -Recipients to identify the originator of the Contribution.
- -4. COMMERCIAL DISTRIBUTION
- -Commercial distributors of software may accept certain -responsibilities with respect to end users, business partners and the -like. While this license is intended to facilitate the commercial use of -the Program, the Contributor who includes the Program in a commercial -product offering should do so in a manner which does not create -potential liability for other Contributors. Therefore, if a Contributor -includes the Program in a commercial product offering, such Contributor -("Commercial Contributor") hereby agrees to defend and -indemnify every other Contributor ("Indemnified Contributor") -against any losses, damages and costs (collectively "Losses") -arising from claims, lawsuits and other legal actions brought by a third -party against the Indemnified Contributor to the extent caused by the -acts or omissions of such Commercial Contributor in connection with its -distribution of the Program in a commercial product offering. The -obligations in this section do not apply to any claims or Losses -relating to any actual or alleged intellectual property infringement. In -order to qualify, an Indemnified Contributor must: a) promptly notify -the Commercial Contributor in writing of such claim, and b) allow the -Commercial Contributor to control, and cooperate with the Commercial -Contributor in, the defense and any related settlement negotiations. The -Indemnified Contributor may participate in any such claim at its own -expense.
- -For example, a Contributor might include the Program in a commercial -product offering, Product X. That Contributor is then a Commercial -Contributor. If that Commercial Contributor then makes performance -claims, or offers warranties related to Product X, those performance -claims and warranties are such Commercial Contributor's responsibility -alone. Under this section, the Commercial Contributor would have to -defend claims against the other Contributors related to those -performance claims and warranties, and if a court requires any other -Contributor to pay any damages as a result, the Commercial Contributor -must pay those damages.
- -5. NO WARRANTY
- -EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS -PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS -OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, -ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY -OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely -responsible for determining the appropriateness of using and -distributing the Program and assumes all risks associated with its -exercise of rights under this Agreement , including but not limited to -the risks and costs of program errors, compliance with applicable laws, -damage to or loss of data, programs or equipment, and unavailability or -interruption of operations.
- -6. DISCLAIMER OF LIABILITY
- -EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT -NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, -INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING -WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF -LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR -DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED -HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
- -7. GENERAL
- -If any provision of this Agreement is invalid or unenforceable under -applicable law, it shall not affect the validity or enforceability of -the remainder of the terms of this Agreement, and without further action -by the parties hereto, such provision shall be reformed to the minimum -extent necessary to make such provision valid and enforceable.
- -If Recipient institutes patent litigation against any entity -(including a cross-claim or counterclaim in a lawsuit) alleging that the -Program itself (excluding combinations of the Program with other -software or hardware) infringes such Recipient's patent(s), then such -Recipient's rights granted under Section 2(b) shall terminate as of the -date such litigation is filed.
- -All Recipient's rights under this Agreement shall terminate if it -fails to comply with any of the material terms or conditions of this -Agreement and does not cure such failure in a reasonable period of time -after becoming aware of such noncompliance. If all Recipient's rights -under this Agreement terminate, Recipient agrees to cease use and -distribution of the Program as soon as reasonably practicable. However, -Recipient's obligations under this Agreement and any licenses granted by -Recipient relating to the Program shall continue and survive.
- -Everyone is permitted to copy and distribute copies of this -Agreement, but in order to avoid inconsistency the Agreement is -copyrighted and may only be modified in the following manner. The -Agreement Steward reserves the right to publish new versions (including -revisions) of this Agreement from time to time. No one other than the -Agreement Steward has the right to modify this Agreement. The Eclipse -Foundation is the initial Agreement Steward. The Eclipse Foundation may -assign the responsibility to serve as the Agreement Steward to a -suitable separate entity. Each new version of the Agreement will be -given a distinguishing version number. The Program (including -Contributions) may always be distributed subject to the version of the -Agreement under which it was received. In addition, after a new version -of the Agreement is published, Contributor may elect to distribute the -Program (including its Contributions) under the new version. Except as -expressly stated in Sections 2(a) and 2(b) above, Recipient receives no -rights or licenses to the intellectual property of any Contributor under -this Agreement, whether expressly, by implication, estoppel or -otherwise. All rights in the Program not expressly granted under this -Agreement are reserved.
- -This Agreement is governed by the laws of the State of New York and -the intellectual property laws of the United States of America. No party -to this Agreement will bring a legal action under this Agreement more -than one year after the cause of action arose. Each party waives its -rights to a jury trial in any resulting litigation.
- - - - \ No newline at end of file diff --git a/fonts/bootstrap/glyphicons-halflings-regular.eot b/fonts/bootstrap/glyphicons-halflings-regular.eot new file mode 100644 index 00000000..4a4ca865 Binary files /dev/null and b/fonts/bootstrap/glyphicons-halflings-regular.eot differ diff --git a/fonts/bootstrap/glyphicons-halflings-regular.svg b/fonts/bootstrap/glyphicons-halflings-regular.svg new file mode 100644 index 00000000..e3e2dc73 --- /dev/null +++ b/fonts/bootstrap/glyphicons-halflings-regular.svg @@ -0,0 +1,229 @@ + + + \ No newline at end of file diff --git a/fonts/bootstrap/glyphicons-halflings-regular.ttf b/fonts/bootstrap/glyphicons-halflings-regular.ttf new file mode 100644 index 00000000..67fa00bf Binary files /dev/null and b/fonts/bootstrap/glyphicons-halflings-regular.ttf differ diff --git a/fonts/bootstrap/glyphicons-halflings-regular.woff b/fonts/bootstrap/glyphicons-halflings-regular.woff new file mode 100644 index 00000000..8c54182a Binary files /dev/null and b/fonts/bootstrap/glyphicons-halflings-regular.woff differ diff --git a/gethelp/index.html.haml b/gethelp/index.html.haml new file mode 100644 index 00000000..2c9187ea --- /dev/null +++ b/gethelp/index.html.haml @@ -0,0 +1,23 @@ +--- +layout: default +title: Get Help +page_name: gethelp +--- +%h1 Get Help! +%p Everyone needs a little help sometimes, from n00bs to veteran Java programmers. Keep reading below to find out where you can get help using the OpenShift Java Client, and contributing to this awesome project. + +%h3 Where can I chat in real time with people about the OpenShift Java Client? +%p + Excellent question! If you want to chat in real time with people about this library, whether it is questions about using it in your own applications, or how you can contribute to this project, then you should join one (or both) of the following channels on Freenode IRC. + %ul + %li Join the #openshift-dev channel on the irc.freenode.net IRC server + %li Join the #jbosstools channel on the irc.freenode.net IRC server +%h3 Where can I file bug reports, feature requests, and track the status of the project? +%p The best way to file bug reports, feature requests, and generally keep up to date on the project is to create an account at JBoss.org and then check out the OpenShift Java Client Project. This is especially important if you plan on becoming a contributor. + +%h3 Where can I ask questions and get responses while I work on something else? +%p Sometimes you want to reach a larger audience with your question in hopes of receiving responses from experts in different technologies, have people vote your question up or down, and let the community decide what the best answer to your question is. Does this sound familiar? It should. stackoverflow to the rescue! +%p Sign up for an account at stackoverflow and post your question! Make sure that you add the openshift tag, which is monitored by contributors to this project, along with many other projects that have to do with OpenShift, and any other tags that you feel are appropriate to get your question in front of the people that will be able to help you out. + +%h3 I'm old school, is there a mailing list? +%p Of course there is a mailing list! You can join the OpenShift Developer Mailing List to post questions, help answer others questions, and keep up to date on what is going on with OpenShift and it's associated tools and sub-projects. This mailing list is not specific to the OpenShift Java Client, but there are contributors subscribed to it. \ No newline at end of file diff --git a/getstarted/index.html.haml b/getstarted/index.html.haml new file mode 100644 index 00000000..c2b2b0ce --- /dev/null +++ b/getstarted/index.html.haml @@ -0,0 +1,98 @@ +--- +layout: default +title: Get Started +page_name: getstarted +--- + +%h1 Getting Started again +%p There are three main ways to obtain the OpenShift Java Client library for use in your applications. + +%h3 Download the Pre-Compiled JAR File +%p If you are not using an Apache Maven based project, or not familiar with building Maven Based projects from source, the easiest way to use this library would be to download the pre-compiled JAR file. +%p To do this you can visit the Maven Central Repository and do a search for "openshift-java-client", or you can click this link and then look for the version that you are interested in using and click on the "jar" link under the Download header on the right side of the page. +%p Next you will need to add the JAR file that you have downloaded to your project. This can be accomplished by placing the JAR file in the appropriate folder within your application, and then adding it as a dependency within your IDE. +%p In Eclipse this can be accomplished by going to Project Properties->Libraries->Add Jar, and then selecting the JAR file that you downloaded previously and placed within your project structure. Make sure that you select the correct options when you compile your project so that the JAR file will be bundled as a dependency within your application. + +%h3 Add to pom.xml as a Dependency +%p If you are using a Maven based project, the easiest way to use this library in your application is to add it as a dependency in your pom.xml file. +%p To do this, you need to visit the Maven Central Repository and pick which version you want to use from this page. Once you have chosen a version, click on the version number that is displayed under the "Latest Version" heading. +%p On the left side of the page, under "Dependency Information" you will see a box with the heading of "Apache Maven". You will need to copy the xml that is provided in that box and add it into the dependencies section of your pom.xml file. Sample XML code is provided below for the 2.5.0.Final version. +:plain ++ <dependencies> + <dependency> + <groupId>com.openshift</groupId> + <artifactId>openshift-java-client</artifactId> + <version>2.5.0.Final</version> + </dependency> + </dependencies> ++%p Once you have added the dependency you can build your project and the OpenShift Java Client will be downloaded and installed. + +%h3 Build the Library Using Maven and Use Within a Non-Maven Based Project +%p The last and most exciting way to get the OpenShift Java Client library is to download the source code and build it yourself. While adding it to your pom.xml file is the easiest and best way if you are using a Maven based project, building it yourself will give you a certain level of satisfaction and accomplishment. +%p First, make sure that you have Apache Maven installed by visiting the download page. We recommend using the newest stable version that is available. If you are using OS X you can use Macports or Homebrew to install it, or if you are using Linux use your included package manager such as YUM, APT. +%p The next step is to get the code. The best way to get it would be to fork the repository on github and then clone it to your workstation. Please see the Join Us section of the website for help updating your local working copy with upstream changes. Alternatively you can also download a zip file from github. +%p Once you have Maven installed and the source code downloaded you will need to open up a terminal and cd (change directory) to the location in which the source code resides. You will then need to type the command
mvn clean package. This will clean the project (if you have issued the command before and have leftovers) and then build the project, including downloading any dependencies that are defined in the pom.xml file.
+%p Maven will also run a few unit-tests to make sure that everything works after building the project. This is a basic set of functional tests and should not take very long to complete. Once it is finished you should have a new directory called target. If you cd (change directory) into the new target directory and run ls -lah you will see something similar to the below files:
+:plain
+ + total 680 + drwxr-xr-x 10 user staff 340B Jan 28 23:02 . + drwxr-xr-x 10 user staff 340B Jan 28 23:01 .. + drwxr-xr-x 4 user staff 136B Jan 28 23:01 classes + drwxr-xr-x 4 user staff 136B Jan 28 23:01 generated-sources + drwxr-xr-x 3 user staff 102B Jan 28 23:02 maven-archiver + -rw-r--r-- 1 user staff 134K Jan 28 23:02 openshift-java-client-2.5.0.Final-sources.jar + -rw-r--r-- 1 user staff 204K Jan 28 23:02 openshift-java-client-2.5.0.Final.jar + drwxr-xr-x 2 user staff 68B Jan 28 23:02 surefire + drwxr-xr-x 4 user staff 136B Jan 28 23:02 surefire-reports + drwxr-xr-x 6 user staff 204B Jan 28 23:01 test-classe ++%p The file with the .jar extension, that is not -sources.jar is the one that you want to use. The version will be whatever the version of code that you downloaded or checked out is, and is defined in the pom.xml file of the project in the "Artifact Information" section as seen below: +:plain +
+ <!-- Artifact Information --> + <groupId>com.openshift</groupId> + <artifactId>openshift-java-client</artifactId> + <version>2.5.0.Final</version> + <packaging>jar</packaging> + <name>OpenShift Java Client</name> + <url>http://openshift.redhat.com</url> + <description>OpenShift Java Client</description> ++ +%p Lastly you will need to add the JAR file that you have downloaded to your project. This can be accomplished by viewing your projects properties in your favorite IDE and adding this file as a dependency, or sometimes by placing it in a "libs" directory inside of your project. +%p If you would like to run the full integration tests you can run the command
mvn clean verify -Pintegration-tests, it will take quite awhile so be patient, but remember that it is not required to build and use the library. It is covered more in the Join Us section of this website.
+
+%h3 Build the Library Using Maven and Use Within a Maven Based Project
+%p The last and most exciting way to get the OpenShift Java Client library is to download the source code and build it yourself. While adding it to your pom.xml file is the easiest and best way if you are using a Maven based project, building it yourself will give you a certain level of satisfaction and accomplishment.
+%p First, make sure that you have Apache Maven installed by visiting the download page. We recommend using the newest stable version that is available. If you are using OS X you can use Macports or Homebrew to install it, or if you are using Linux use your included package manager such as YUM, APT.
+%p The next step is to get the code. The best way to get it would be to fork the repository on github and then clone it to your workstation. Please see the Join Us section of the website for help updating your local working copy with upstream changes. Alternatively you can also download a zip file from github.
+%p Once you have Maven installed and the source code downloaded you will need to open up a terminal and cd (change directory) to the location in which the source code and the pom.xml resides. You will then need to type the command mvn clean install. This will clean the project, build the project, including downloading any dependencies that are defined in the pom.xml file, and then install it into your local Maven repository usually located at ~/.m2.
+%p Once the package is installed, you can use it by inserting the following dependency in your projects pom.xml file.
+:plain
+ + <dependencies> + <dependency> + <groupId>com.openshift</groupId> + <artifactId>openshift-java-client</artifactId> + <version>2.5.0.Final</version> + </dependency> + </dependencies> ++%p Where 2.5.0 is the version that was built and installed. If you make any changes to the source code you should increment the minor or major version, depending on the depth of the change that you have made. It is also a Maven convention to use version-SNAPSHOT for any non-finalized version of the library. So the dependency you add in your local project's pom.xml file when testing updated version of the library may look more like this: +:plain +
+ <dependencies> + <dependency> + <groupId>com.openshift</groupId> + <artifactId>openshift-java-client</artifactId> + <version>2.5.1-SNAPSHOT</version> + </dependency> + </dependencies> ++ +%p Maven will also run a few unit-tests to make sure that everything works after building the project. This is a basic set of functional tests and should not take very long to complete. Once it is finished you should have the library installed in your ~/.m2 directory as stated above. + +%p If you would like to run the full integration tests you can run the command
mvn clean verify -Pintegration-tests, it will take quite awhile so be patient, but remember that it is not required to build and use the library. It is covered more in the Join Us section of this website.
diff --git a/images/favicon.png b/images/favicon.png
new file mode 100644
index 00000000..3cf000bd
Binary files /dev/null and b/images/favicon.png differ
diff --git a/index.html.haml b/index.html.haml
new file mode 100644
index 00000000..ec09a454
--- /dev/null
+++ b/index.html.haml
@@ -0,0 +1,47 @@
+---
+layout: landing
+title: Home
+---
+.jumbotron
+ .container
+ %h1.brand OpenShift Java Client
+ %p A Java library for interacting with the OpenShift API. It offers most of the features that are currently available in the rhc command line tools (create/rename a domain, create/destroy applications, list all existing applications, available cartridges, embed cartridges, etc.). This library is also used in the Eclipse JBoss Tools Plugin for OpenShift.
+.container
+ .row
+ .col-md-4
+ %h2 Get Started
+ %p.fixedheight
+ Instructions on how to get the source code and build the library using Maven, or use the pre-built artifact from the Maven Central Repository.
+ %p
+ %a.btn.btn-default{:href=>"getstarted", :role=>"button"} Read More »
+ .col-md-4
+ %h2 Documentation
+ %p.fixedheight
+ Learn how to interact with the OpenShift API in your own applications. The code is well documented and the Javadocs are available here.
+ %p
+ %a.btn.btn-default{ :href=>"documentation", :target=>"_blank", :role=>"button"}Read More »
+ .col-md-4
+ %h2 Sample Code
+ %p.fixedheight
+ How about some example code to help you get going using this library? Click the link below and view basic and advanced code samples.
+ %p
+ %a.btn.btn-default{:href=>"samplecode", :role=>"button"}Read More »
+ .row
+ .col-md-4
+ %h2 Get Help
+ %p.fixedheight
+ Find out where you can read the documentation, ask questions, log bug reports, and who you can contact if all else fails.
+ %p
+ %a.btn.btn-default{:href=>"gethelp", :role=>"button"}Read More »
+ .col-md-4
+ %h2 Source Code
+ %p.fixedheight
+ View the source code on github, fork it, and send a pull request, after you read the Contribute section of course.
+ %p
+ %a.btn.btn-default{:target=>"_blank", :href=>"https://github.com/openshift/openshift-java-client", :role=>"button"}View on github »
+ .col-md-4
+ %h2 Join Us
+ %p.fixedheight
+ Learn how to setup your favorite IDE, install the Maven dependencies, run the tests, and build the library. Also included are tips on indentation, merging your changes in git, squashing commits, and sending pull requests.
+ %p
+ %a.btn.btn-default{:href=>"joinus", :role=>"button"}Read More »
\ No newline at end of file
diff --git a/joinus/index.html.haml b/joinus/index.html.haml
new file mode 100644
index 00000000..5543899a
--- /dev/null
+++ b/joinus/index.html.haml
@@ -0,0 +1,192 @@
+---
+layout: default
+title: Join Us
+page_name: joinus
+---
+%h1 Join Us
+%h3 Why Should I Help?
+%p You're already reading this page so we can assume that you are a.) using this library for something and b.) interested in contributing somehow. Great!
+%p Open Source projects like this one can't survive without you, the user. We love working on this project, and absolutely want to provide every update and fix that you, our users, want. But we are a small team and can use all the help we can get.
+%p Even if you don't have the time to hack away on this project, there are lots of things you can do to help. Please read through the list in the next section and I am sure you can find something that you have the time to help with.
+%h3 Ok, You Convinced Me. How Can I Help?
+%p Great, glad you made it to this section. There are lots of ways that you can help:
+%ul
+ %li Spread the word about the OpenShift Java Client library. If you have friends or co-workers who are interested in both Java and OpenShift, and looking for an Open Source project to work on, this could be a great match!
+ %li Use the library and file Bug Reports on the JIRA Issue Tracker
+ %li Think up great new ideas for this library, and create a Feature Request on the JIRA Issue Tracker
+ %li Help keep this website, and the documenation for the OpenShift Java Client up to date by fixing spelling/grammatical errors, documenting methods, or adding code samples. Just for this repository on github and checkout the gh-pages branch. It uses Jekyll and is written in HTML/CSS using Bootstrap.
+ %li Review the list of Feature Requests and Bug Reports on the JIRA Issue Tracker and see if there is anything that you would like to work on. Make sure that you sign up for an account on the JBoss Community Site so that you can take ownership of issues and comment on them.
+
+%p If you have any other ideas of how you can contribute feel free to run them by us using the contact information on the Get Help page.
+
+%h3 Project Best Practices
+
+%strong Communication
+%p Communication is the key to keeping any good project rolling in the right direction. Anything that is being worked on, Bugs, Feature Requests, Documenation efforts, are all tracked in the JIRA Issue Tracker. This makes sure that everyone is on the same page and that there are no duplication of efforts.
+%p If you want to work on an existing Bug or Feature request, please check the JIRA issue for it and make sure that no one else has already claimed it. Also comment letting everyone know that you want to work on it and ask that the issue be assigned to you (or assign it to yourself if you have the correct permissions).
+%p If you would like to work on an Bug or Enhancement that you have come up with, please log it in the JIRA Issue Tracker and get some feedback first. This make sure that no one else is working on the issue without coordinating on it, and that the issue can be properly tracked and prioritized within the project.
+%p If you have any questions at all please don't hesitate to ask them on the JIRA issue, or using any of the methods listed on the Get Help page. We want to make it as easy as possible to help with the project and also keep the project moving in the right direction.
+
+%strong Javadoc
+%p We are strong proponents of well documented code and use Javadoc extensively. The documentation section of this website is built by running the Javadoc tool against this code using the command mvn javadoc:javadoc. Please document any new classes or methods, and make sure to update the comments for any existing code that you update.
+
+%h3 Getting The Code and git Best Practices
+%ol
+ %li Create an account on github if you don't already have one at github.com.
+ %li Fork the OpenShift java Client project to your github account.
+ %li
+ Clone your newly forked repository into your local workspace
+ :plain
+ + User$ git clone git@github.com:[your user]/openshift-java-client.git + Cloning into 'openshift-java-client'... + remote: Reusing existing pack: 4745, done. + remote: Total 4745 (delta 0), reused 0 (delta 0) + Receiving objects: 100% (4745/4745), 1.92 MiB | 1.52 MiB/s, done. + Resolving deltas: 100% (1475/1475), done. + Checking connectivity... done ++ + %li + Add a remote ref to upstream for pulling future updates + :plain +
+ git remote add upstream https://github.com/openshift/openshift-java-client.git ++ + %li + As a precaution, disable merge commits to your master branch + :plain +
+ git config branch.master.mergeoptions --ff-only ++ + %li + To pull later updates from the upstream + :plain +
+ git pull --rebase upstream master ++ (--rebase will automatically move your local commits, if you have any, on top of the latest branch you pull from, you can leave it off if you do not). + + Please note that --rebase is very important if you do have commits. What happens is that when git pull can't fast forward, it does a merge commit, and a merge commit puts the sucked in changes ON TOP of yours whereas a rebase puts them BELOW yours. In other words a merge commit makes the history a graph, and we prefer a cleaner, easier to follow linear history (hence the rebasing). Further once you do a merge commit it will be difficult to rebase the history before that commit (say you want to combine two commits to one later) as described in point 13. Luckily the option set in step 5 will prevent this from happening. + + %li + Push the pulled updates to your fork of openshift-java-client on github + :plain +
+ git push ++ + %li Make sure there is a JIRA logged for your Bug Fix or Feature Request that you are working on here. + %li + Create a simple topic branch to isolate that work (just a recommendation) + :plain +
+ git checkout -b my_cool_feature ++ + %li + Make the changes and commit one or more times (Don't forget to push) + :plain +
+ git commit -m 'OSJC-XXXX Making this awesome new feature' + git commit -m 'OSJC-YYYY Fixing this really bad bug' + git push origin my_cool_feature ++ + %li + Rebase your branch against the latest master (applies your patches on top of master) + :plain +
+ git fetch upstream + git rebase -i upstream/master + # if you have conflicts fix them and rerun rebase + # The -f, forces the push, alters history, see note below + git push -f origin my_cool_feature ++ The -i triggers an interactive update which also allows you to combine commits, alter commit messages etc. It's a good idea to make the commit log very nice for external consumption. Note that this alters history, which while great for making a clean patch, is unfriendly to anyone who has forked your branch. Therefore you want to make sure that you either work in a branch that you don't share, or if you do share it, tell them you are about to revise the branch history (and thus, they will then need to rebase on top of your branch once you push it out). + + %li + Get your changes merged into upstream + %ol + %li Make sure your repo is in sync with other unrelated changes in upstream before requesting your changes be merged into upstream by repeating step 11. + %li Send a github pull request, by clicking the pull request link while in your repo's fork + %li As part of the review you may see an automated test run comment on your request. Currently this link can only be viewed by Red Hat employees, but if you request a copy we can send you one. In the future we hope to make this public + %li After review a maintainer will merge your patch, update/resolve issues by request, and reply when complete + %li + Don't forget to switch back to master and pull the updates + :plain +
+ git checkout master + git pull --ff-only upstream master ++ + %li + To update the master branch of your github repository (otherwise you will see a message like 'Your branch is ahead of 'origin/master' by XXX commits.' + :plain + if you are use 'git status' on your local master branch. +
git push origin master+ +%h3 Setting Up Your IDE + +%p If you are using Eclipse or IntelliJ IDEA to work on this project, you will need to create a Maven project, or import an existing Maven project. This will allow the IDE to download the required dependencies, build the project (so that you don't get any nasty errors), and show you the test code coverage if applicable. + +%h3 Writing Tests +%p All tests must pass before a pull request will be merged. We also require that all new code, such as Feature Requests be covered by tests. Tests are written using the junit 4.x framework and are located in the src/test/java directory. We also use the fest assertions (https://code.google.com/p/fest/) to take advantage of more expressive verification-(assertion) statements. We have both unit tests and integration tests. The unit tests do no remoting, they use pre-recorded answers that you may find in src/test/resources/samples/. To fake server responses we use mockito and mock the http-client we're using in the openshift-java-client (HttpClientMockDirector): +:plain +
+ public HttpClientMockDirector mockGetAny(String response) throws
+ SocketTimeoutException, HttpClientException {
+ when(client.get(any(URL.class), anyInt())).thenReturn(response);
+ return this;
+ }
+
+%p The tests are all in src/test/java. We name unit tests XXXTest.java and integration tests XXXIntegrationTest.java so that one immediately knows if the test is talking to the backend or not.
+
+%h3 Running the Tests
+%p You can either run the tests using your IDE or run the mvn clean verify -Pintegration-tests command in your terminal inside of the project directory that you cloned with git. The integration tests take quite awhile to run so be patient.
+%p You can also run mvn clean verify -DshowTestTimes or mvn clean verify -Pintegration-tests -DshowTestTimes to show the name of each test and how many milliseconds it took to run.
+%p
+ If you would like to single out a specific test to run (maybe one you are currently working on writing) you can do the following:
+ %ul
+ %li Running a single test class: mvn -Dtest=APIResourceTest test
+ %li Running a single method in a test class: mvn -Dtest=APIResourceTest#shouldLoadListOfStandaloneCartridges test
+ %li You can also combine this with the -DshowTestTimes like this: mvn -Dtest=APIResourceTest test -DshowTestTimes
+
+%p You can read more about running specific tests here.
+%h3 Building the Library
+%p To build the library, run the mvn clean package command in your terminal inside of the project directory that you cloned with git. This will create a new directory called target that will contain all of the compiled class files along with a JAR file, and a sources.JAR file for use in your projects.
+%p You can also run the command mvn clean install which will install the library in your ~/.m2 directory. You can then include the library in your project by adding the correct configuration to your pom.xml such as:
+:plain
+ + <dependencies> + <dependency> + <groupId>com.openshift</groupId> + <artifactId>openshift-java-client</artifactId> + <version>2.5.1-SNAPSHOT</version> + </dependency> + </dependencies> ++%p When you are testing locally it is Maven convention to use version-SNAPSHOT for any non-finalized versions. Also remember to increment the minor or major version depending on the scale of the changes you have made to the source code. + +%h3 Updating this website and adding documentation +%p + Just as important as adding new features and fixing bugs is helping others figure out how to use this library in their own projects. That is where this website and the documentation section comes into play. If you notice an error on this website or have some knowledge that would be useful to others? Have some extra time to document a method? + %ul + %li Fork the repository on github + %li Checkout the gh-pages-awestruct branch + %li Read the README.md for that branch + %li Add your fix or new information + %li Commit your change locally + %li Push your change to your repo on github + %li Do a pull request + + Now just sit back, relax, and give yourself a high five while we review your change and merge it. We'll let you know if we have any questions or something in your change needs to be corrected. + +%p We use Awestruct for this website and the documentation. Most of it is static HTML/CSS with Awestruct handling the templates (header, footer, navigation, etc). + +%h3 Thanks +%p +A special thanks to the WildFly team for putting together this page which was the inspiration for the git tips listed here. + diff --git a/js/alignbuttons.js b/js/alignbuttons.js new file mode 100644 index 00000000..93c5b52c --- /dev/null +++ b/js/alignbuttons.js @@ -0,0 +1,21 @@ +function fixheight() { + var maxheight = 0 + $(".fixedheight").each(function(){ + $(this).height('auto'); + }) + $(".fixedheight").each(function(){ + var height = $(this).height(); + if (height > maxheight) { + maxheight = height; + } + }) + $(".fixedheight").each(function(){ + $(this).height(maxheight); + }) +} +$(function(){ + fixheight(); +}); +$(window).resize(function(){ + fixheight(); +}); \ No newline at end of file diff --git a/js/bootstrap.min.js b/js/bootstrap.min.js new file mode 100644 index 00000000..1a6258ef --- /dev/null +++ b/js/bootstrap.min.js @@ -0,0 +1,7 @@ +/*! + * Bootstrap v3.0.3 (http://getbootstrap.com) + * Copyright 2013 Twitter, Inc. + * Licensed under http://www.apache.org/licenses/LICENSE-2.0 + */ + +if("undefined"==typeof jQuery)throw new Error("Bootstrap requires jQuery");+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]}}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one(a.support.transition.end,function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b()})}(jQuery),+function(a){"use strict";var b='[data-dismiss="alert"]',c=function(c){a(c).on("click",b,this.close)};c.prototype.close=function(b){function c(){f.trigger("closed.bs.alert").remove()}var d=a(this),e=d.attr("data-target");e||(e=d.attr("href"),e=e&&e.replace(/.*(?=#[^\s]*$)/,""));var f=a(e);b&&b.preventDefault(),f.length||(f=d.hasClass("alert")?d:d.parent()),f.trigger(b=a.Event("close.bs.alert")),b.isDefaultPrevented()||(f.removeClass("in"),a.support.transition&&f.hasClass("fade")?f.one(a.support.transition.end,c).emulateTransitionEnd(150):c())};var d=a.fn.alert;a.fn.alert=function(b){return this.each(function(){var d=a(this),e=d.data("bs.alert");e||d.data("bs.alert",e=new c(this)),"string"==typeof b&&e[b].call(d)})},a.fn.alert.Constructor=c,a.fn.alert.noConflict=function(){return a.fn.alert=d,this},a(document).on("click.bs.alert.data-api",b,c.prototype.close)}(jQuery),+function(a){"use strict";var b=function(c,d){this.$element=a(c),this.options=a.extend({},b.DEFAULTS,d)};b.DEFAULTS={loadingText:"loading..."},b.prototype.setState=function(a){var b="disabled",c=this.$element,d=c.is("input")?"val":"html",e=c.data();a+="Text",e.resetText||c.data("resetText",c[d]()),c[d](e[a]||this.options[a]),setTimeout(function(){"loadingText"==a?c.addClass(b).attr(b,b):c.removeClass(b).removeAttr(b)},0)},b.prototype.toggle=function(){var a=this.$element.closest('[data-toggle="buttons"]'),b=!0;if(a.length){var c=this.$element.find("input");"radio"===c.prop("type")&&(c.prop("checked")&&this.$element.hasClass("active")?b=!1:a.find(".active").removeClass("active")),b&&c.prop("checked",!this.$element.hasClass("active")).trigger("change")}b&&this.$element.toggleClass("active")};var c=a.fn.button;a.fn.button=function(c){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof c&&c;e||d.data("bs.button",e=new b(this,f)),"toggle"==c?e.toggle():c&&e.setState(c)})},a.fn.button.Constructor=b,a.fn.button.noConflict=function(){return a.fn.button=c,this},a(document).on("click.bs.button.data-api","[data-toggle^=button]",function(b){var c=a(b.target);c.hasClass("btn")||(c=c.closest(".btn")),c.button("toggle"),b.preventDefault()})}(jQuery),+function(a){"use strict";var b=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=this.sliding=this.interval=this.$active=this.$items=null,"hover"==this.options.pause&&this.$element.on("mouseenter",a.proxy(this.pause,this)).on("mouseleave",a.proxy(this.cycle,this))};b.DEFAULTS={interval:5e3,pause:"hover",wrap:!0},b.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},b.prototype.getActiveIndex=function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)},b.prototype.to=function(b){var c=this,d=this.getActiveIndex();return b>this.$items.length-1||0>b?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){c.to(b)}):d==b?this.pause().cycle():this.slide(b>d?"next":"prev",a(this.$items[b]))},b.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition.end&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},b.prototype.next=function(){return this.sliding?void 0:this.slide("next")},b.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},b.prototype.slide=function(b,c){var d=this.$element.find(".item.active"),e=c||d[b](),f=this.interval,g="next"==b?"left":"right",h="next"==b?"first":"last",i=this;if(!e.length){if(!this.options.wrap)return;e=this.$element.find(".item")[h]()}this.sliding=!0,f&&this.pause();var j=a.Event("slide.bs.carousel",{relatedTarget:e[0],direction:g});if(!e.hasClass("active")){if(this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),this.$element.one("slid.bs.carousel",function(){var b=a(i.$indicators.children()[i.getActiveIndex()]);b&&b.addClass("active")})),a.support.transition&&this.$element.hasClass("slide")){if(this.$element.trigger(j),j.isDefaultPrevented())return;e.addClass(b),e[0].offsetWidth,d.addClass(g),e.addClass(g),d.one(a.support.transition.end,function(){e.removeClass([b,g].join(" ")).addClass("active"),d.removeClass(["active",g].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger("slid.bs.carousel")},0)}).emulateTransitionEnd(600)}else{if(this.$element.trigger(j),j.isDefaultPrevented())return;d.removeClass("active"),e.addClass("active"),this.sliding=!1,this.$element.trigger("slid.bs.carousel")}return f&&this.cycle(),this}};var c=a.fn.carousel;a.fn.carousel=function(c){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},b.DEFAULTS,d.data(),"object"==typeof c&&c),g="string"==typeof c?c:f.slide;e||d.data("bs.carousel",e=new b(this,f)),"number"==typeof c?e.to(c):g?e[g]():f.interval&&e.pause().cycle()})},a.fn.carousel.Constructor=b,a.fn.carousel.noConflict=function(){return a.fn.carousel=c,this},a(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(b){var c,d=a(this),e=a(d.attr("data-target")||(c=d.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"")),f=a.extend({},e.data(),d.data()),g=d.attr("data-slide-to");g&&(f.interval=!1),e.carousel(f),(g=d.attr("data-slide-to"))&&e.data("bs.carousel").to(g),b.preventDefault()}),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var b=a(this);b.carousel(b.data())})})}(jQuery),+function(a){"use strict";var b=function(c,d){this.$element=a(c),this.options=a.extend({},b.DEFAULTS,d),this.transitioning=null,this.options.parent&&(this.$parent=a(this.options.parent)),this.options.toggle&&this.toggle()};b.DEFAULTS={toggle:!0},b.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},b.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var b=a.Event("show.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.$parent&&this.$parent.find("> .panel > .in");if(c&&c.length){var d=c.data("bs.collapse");if(d&&d.transitioning)return;c.collapse("hide"),d||c.data("bs.collapse",null)}var e=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[e](0),this.transitioning=1;var f=function(){this.$element.removeClass("collapsing").addClass("in")[e]("auto"),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return f.call(this);var g=a.camelCase(["scroll",e].join("-"));this.$element.one(a.support.transition.end,a.proxy(f,this)).emulateTransitionEnd(350)[e](this.$element[0][g])}}},b.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var b=a.Event("hide.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1;var d=function(){this.transitioning=0,this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")};return a.support.transition?(this.$element[c](0).one(a.support.transition.end,a.proxy(d,this)).emulateTransitionEnd(350),void 0):d.call(this)}}},b.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var c=a.fn.collapse;a.fn.collapse=function(c){return this.each(function(){var d=a(this),e=d.data("bs.collapse"),f=a.extend({},b.DEFAULTS,d.data(),"object"==typeof c&&c);e||d.data("bs.collapse",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.collapse.Constructor=b,a.fn.collapse.noConflict=function(){return a.fn.collapse=c,this},a(document).on("click.bs.collapse.data-api","[data-toggle=collapse]",function(b){var c,d=a(this),e=d.attr("data-target")||b.preventDefault()||(c=d.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,""),f=a(e),g=f.data("bs.collapse"),h=g?"toggle":d.data(),i=d.attr("data-parent"),j=i&&a(i);g&&g.transitioning||(j&&j.find('[data-toggle=collapse][data-parent="'+i+'"]').not(d).addClass("collapsed"),d[f.hasClass("in")?"addClass":"removeClass"]("collapsed")),f.collapse(h)})}(jQuery),+function(a){"use strict";function b(){a(d).remove(),a(e).each(function(b){var d=c(a(this));d.hasClass("open")&&(d.trigger(b=a.Event("hide.bs.dropdown")),b.isDefaultPrevented()||d.removeClass("open").trigger("hidden.bs.dropdown"))})}function c(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d=c&&a(c);return d&&d.length?d:b.parent()}var d=".dropdown-backdrop",e="[data-toggle=dropdown]",f=function(b){a(b).on("click.bs.dropdown",this.toggle)};f.prototype.toggle=function(d){var e=a(this);if(!e.is(".disabled, :disabled")){var f=c(e),g=f.hasClass("open");if(b(),!g){if("ontouchstart"in document.documentElement&&!f.closest(".navbar-nav").length&&a('').insertAfter(a(this)).on("click",b),f.trigger(d=a.Event("show.bs.dropdown")),d.isDefaultPrevented())return;f.toggleClass("open").trigger("shown.bs.dropdown"),e.focus()}return!1}},f.prototype.keydown=function(b){if(/(38|40|27)/.test(b.keyCode)){var d=a(this);if(b.preventDefault(),b.stopPropagation(),!d.is(".disabled, :disabled")){var f=c(d),g=f.hasClass("open");if(!g||g&&27==b.keyCode)return 27==b.which&&f.find(e).focus(),d.click();var h=a("[role=menu] li:not(.divider):visible a",f);if(h.length){var i=h.index(h.filter(":focus"));38==b.keyCode&&i>0&&i--,40==b.keyCode&&i
| t |
dp.SyntaxHighlighter Version: {V}©2004-2007 Alex Gorbatchev. |
+ IOpenShiftConnection connection = new OpenShiftConnectionFactory().getConnection("my_user_application", "user", "password");
+
+
+%hr
+%h3 Interacting with User objects
+%h4 Get the user information
+:plain
+
+ IUser user = connection.getUser();
+ System.out.println("RHLogin:\t" + user.getRhlogin());
+
+%hr
+
+%h3 Interacting with Domain objects
+%h4 Create a new domain
+:plain
+
+ IUser user = connection.getUser();
+ IDomain domain = user.createDomain("myDomain");
+
+
+%h4 Get the default domain
+:plain
+
+ IDomain domain = user.getDefaultDomain();
+ System.out.println("Namespace:\t" + domain.getId());
+
+%hr
+
+%h3 Interacting with Application objects
+%h4 Create a new application within a domain
+:plain
+
+ IApplication as7Application = domain.createApplication("myApplication", LatestVersionOf.jbossAs().get(user));
+
+
+%h4 Get application information
+:plain
+
+ for (IApplication application : domain.getApplications()) {
+ System.out.println(application.getName());
+ System.out.println("\tFramework:\t" + application.getCartridge().getName());
+ System.out.println("\tCreation:\t" + application.getCreationTime());
+ System.out.println("\tUUID:\t\t" + application.getUUID());
+ System.out.println("\tGit URL:\t" + application.getGitUrl());
+ System.out.println("\tPublic URL:\t" + application.getApplicationUrl() + "\n");
+ }
+
+%hr
+
+%h3 Interacting with Cartridge objects
+%h4 Add the latest version of of the MySQL cartridge
+:plain
+ + IEmbeddedCartridge mySqlCartridge = as7Application.addEmbeddableCartridge(LatestVersionOf.mySQL().get(user)); ++ +%h4 Get embedded cartridge information +:plain +
+ for(IEmbeddedCartridge cartridge : application.getEmbeddedCartridges()) {
+ System.out.println("\t" + cartridge.getName() + " - URL:" + cartridge.getUrl());
+ }
+
+
+%h4 Get the MySQL cartridge's connection URL
+:plain
+ + String mySqlConnectionUrl = mySqlCartridge.getUrl(); ++%hr + +%h3 Interacting with SSHPublicKey objects +%h4 Add a public SSH key +:plain +
+ ISSHPublicKey key = new SSHPublicKey(SSH_PUBLIC_KEY);
+ IOpenShiftSSHKey addedKey = user.getSSHKeyByPublicKey(key.getPublicKey());
+ if (addedKey == null) {
+ user.putSSHKey(String.valueOf(System.currentTimeMillis()), key);
+ }
+
+
+%hr
+%p
+Special thanks to the following articles for supplying some of the above sample code:true if this application has an embedded cartridge.
- * Returns false otherwise.
- *
- * @param the
- * name of the cartridge to look for
- * @return true if there's an embedded cartridge with the given name
- * @throws OpenShiftException
- *
- * @see IEmbeddedCartridge
- * @see #addEmbeddableCartridge(IEmbeddedCartridge)
- * @see #removeEmbeddedCartridge(IEmbeddedCartridge)
- */
- public boolean hasEmbeddedCartridge(IEmbeddableCartridge cartridge) throws OpenShiftException;
-
- /**
- * Returns true if this application has an embedded cartridge.
- * Returns false otherwise.
- *
- * @param the
- * name of the cartridge to look for
- * @return true if there's an embedded cartridge with the given name
- * @throws OpenShiftException
- *
- * @see IEmbeddedCartridge
- * @see #addEmbeddableCartridge(IEmbeddedCartridge)
- * @see #removeEmbeddedCartridge(IEmbeddedCartridge)
- */
- public boolean hasEmbeddedCartridge(String cartridgeName) throws OpenShiftException;
-
- /**
- * Returns the embedded cartridge given its name. Returns null
- * if none was found.
- *
- * @param cartridgeName
- * @return the embedded cartridge with the given name
- * @throws OpenShiftException
- */
- public IEmbeddedCartridge getEmbeddedCartridge(String cartridgeName)
- throws OpenShiftException;
-
- /**
- * Returns the embedded cartridge in this application. Returns null if none was
- * found.
- *
- * @param cartridge
- * @return the embedded cartridge
- * @throws OpenShiftException
- */
-
- public IEmbeddedCartridge getEmbeddedCartridge(IEmbeddableCartridge cartridge)
- throws OpenShiftException;
-
- /**
- * Removes the given embedded cartridge that is equal to the given
- * embeddable cartridge. Does nothing if the cartridge is not present in
- * this application.
- *
- * @param cartridge
- * the cartridge that shall be removed
- * @throws OpenShiftException
- */
- public void removeEmbeddedCartridge(IEmbeddableCartridge cartridge) throws OpenShiftException;
-
- /**
- * Removes the given embedded cartridges in this application that are equal to the
- * given IEmbeddableCartridge. Does nothing if the cartridge is not present
- * in this application.
- *
- * @param cartridges the cartridges that shall get removed
- * @throws OpenShiftException
- */
- public void removeEmbeddedCartridges(Collectiontrue if the current instance has IEnvironmentVariables to return false if the current instance has no IEnvironmentVariables to return
- * @throws OpenShiftSSHOperationException
- */
- public boolean hasEnvironmentVariable(String name) throws OpenShiftException;
-
- /**
- * Adds an environment variable to this application.
- *
- * @param name key associated with the variable to add
- * @param value value of the new variable
- * @throws OpenShiftSSHOperationException - if the variable already exists
- */
- public IEnvironmentVariable addEnvironmentVariable(String name, String value) throws OpenShiftException;
-
- /**
- * Updates an environment variable to this application.
- *
- * @param name key associated with the variable to update
- * @param value value of the new variable
- * @throws OpenShiftSSHOperationException - if the variable already exists
- */
- public IEnvironmentVariable updateEnvironmentVariable(String name, String value) throws OpenShiftException;
-
-
- /**
- * Adds a map of environment variables to the application
- *
- * @param environmentVariables Maptrue if this application can list its environment variables. false if it cannot. Internally this translates to the presence of the link to list environment variables.
- *
- * @see #getEnvironmentVariablesMap()
- * @see #getEnvironmentVariable(String)
- * @see ApplicationResource#LINK_LIST_ENVIRONMENT_VARIABLES
- */
- public boolean canGetEnvironmentVariables();
-
- /**
- * Used to determine if the current instance is able to update environment variables.
- *
- * @return Returns true if this application can augment its environment variables.false if it cannot. true if this domain can create application with environment variables. Returns false otherwise.
- *
- * @return true if can create an application with environment variables
- *
- * @see IApplication#getEnvironmentVariables()
- */
- public boolean canCreateApplicationWithEnvironmentVariables();
-
- public IApplication createApplication(String name, IStandaloneCartridge cartridge)
- throws OpenShiftException;
-
- public IApplication createApplication(String name, IStandaloneCartridge cartridge, String initialGitUrl)
- throws OpenShiftException;
-
- public IApplication createApplication(String name, IStandaloneCartridge cartridge, ApplicationScale scale)
- throws OpenShiftException;
-
- public IApplication createApplication(String name, IStandaloneCartridge cartridge, IGearProfile gearProfile)
- throws OpenShiftException;
-
- public IApplication createApplication(String name, IStandaloneCartridge cartridge, ApplicationScale scale,
- IGearProfile gearProfile)
- throws OpenShiftException;
-
- /**
- * Creates a new application with the given name and the given
- * cartridge/framework. Optionally, adds scalability and a specific gear
- * profile and a git url to use for the initial template.
- *
- * @param name
- * the name of the application
- * @param cartridge
- * the cartridge (the application type, ex. jbossas-7,
- * jbossews-2, php.5.2, etc.
- * @param scale
- * or null (will use default on openshift, ie, false)
- * @param gearProfile
- * available gear sizes from openshift api or
- * null (will use default on openshift, ie, 'small')
- * @param initialGitUrl
- * the git url for the initial template app to be used
- * @return
- * @throws OpenShiftException
- */
- public IApplication createApplication(String name, IStandaloneCartridge cartridge, ApplicationScale scale,
- IGearProfile gearProfile, String initialGitUrl)
- throws OpenShiftException;
-
- /**
- * Creates a new application with the given name and the given
- * cartridge/framework. Optionally, adds scalability, a specific gear
- * profile, a git url to use for the initial template, the timeout value and
- * the embeddable (add-on) cartridges for it.
- *
- * @param name
- * the name of the application
- * @param cartridge
- * the cartridge (the application type, ex. jbossas-7,
- * jbossews-2, php.5.2, etc.
- * @param scale
- * or null (will use default on openshift, ie, false)
- * @param gearProfile
- * available gear sizes from openshift api or
- * null (will use default on openshift, ie, 'small')
- * @param initialGitUrl
- * the git url for the initial template app to be used
- * @param timeout
- * the timeout value in milliseconds
- * @param cartridges
- * the embeddable cartridges that shall get added to the new
- * application (the add-on cartridges mysql, mongodb, postgresql,
- * etc.)
- *
- * @return IApplication created
- * @throws OpenShiftException
- */
- public IApplication createApplication(String name, IStandaloneCartridge cartridge, ApplicationScale scale,
- IGearProfile gearProfile, String initialGitUrl, int timeout, IEmbeddableCartridge... cartridges)
- throws OpenShiftException;
-
- /**
- * Creates a new application with the given name and the given
- * cartridge/framework. Optionally, adds scalability, a specific gear
- * profile, a git url to use for the initial template, the timeout value,
- * environment variables and
- * the embeddable (add-on) cartridges for it.
- *
- * @param name
- * the name of the application
- * @param cartridge
- * the cartridge (the application type, ex. jbossas-7,
- * jbossews-2, php.5.2, etc.
- * @param scale
- * or null (will use default on openshift, ie, false)
- * @param gearProfile
- * available gear sizes from openshift api or
- * null (will use default on openshift, ie, 'small')
- * @param initialGitUrl
- * the git url for the initial template app to be used
- * @param timeout
- * the timeout value in milliseconds
- * @param environmentVariable
- * the environment variables to be added to the application
- * @param cartridges
- * the embeddable cartridges that shall get added to the new
- * application (the add-on cartridges mysql, mongodb, postgresql,
- * etc.)
- *
- * @return IApplication created
- * @throws OpenShiftException
- */
- public IApplication createApplication(String name, IStandaloneCartridge cartridge, ApplicationScale scale,
- IGearProfile gearProfile, String initialGitUrl, int timeout,Maptrue if there is log about the creation of this resource.
- * Creation logs are only available at creation time. So resources that were retrieved
- * while they already existed wont have a creation log.
- *
- * @return true if there's cretion log for this resource
- */
- public boolean hasCreationLog();
-
- /**
- * Returns the log that was created when the resource was created.
- *
- * @return the log which reported the creation of this resource
- */
- public String getCreationLog();
-
- /**
- * Returns all the (creation log) messages. These messages only exist at
- * creation time. Existing cartridges, that were added in a prior session
- * dont have any messages any more.
- *
- * @return all messages by field
- *
- * @see #getCreationLog()
- */
- public Messages getMessages();
-
- /**
- * Refresh the resource and its list of children resources that were
- * previously loaded
- *
- * @throws OpenShiftException
- */
- public void refresh() throws OpenShiftException;
-
-}
\ No newline at end of file
diff --git a/src/main/java/com/openshift/client/IOpenShiftSSHKey.java b/src/main/java/com/openshift/client/IOpenShiftSSHKey.java
deleted file mode 100644
index af69dae5..00000000
--- a/src/main/java/com/openshift/client/IOpenShiftSSHKey.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2012 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.client;
-
-
-/**
- * @author Andre Dietisheim
- */
-public interface IOpenShiftSSHKey extends ISSHPublicKey {
-
- /**
- * Returns the name that is used to store this key on OpenShift.
- *
- * @return
- */
- public String getName();
-
- /**
- * Sets the public key portion of this ssh key to the OpenShift PaaS.
- *
- * @param publicKey the new public key porition of this key
- * @throws OpenShiftException
- */
- public void setPublicKey(String publicKey) throws OpenShiftException;
-
- /**
- * Sets the new type and public key of this ssh key to the OpenShift PaaS
- * @param type
- * @throws OpenShiftException
- */
- public void setKeyType(SSHKeyType type, String publicKey) throws OpenShiftException;
-
- public void destroy() throws OpenShiftException;
-}
\ No newline at end of file
diff --git a/src/main/java/com/openshift/client/ISSHPublicKey.java b/src/main/java/com/openshift/client/ISSHPublicKey.java
deleted file mode 100644
index 395b0c0d..00000000
--- a/src/main/java/com/openshift/client/ISSHPublicKey.java
+++ /dev/null
@@ -1,36 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2011 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.client;
-
-/**
- * @author André Dietisheim
- */
-public interface ISSHPublicKey {
-
- /**
- * Returns the content of the public key (key content without ssh-rsa
- * identifier nor comment) of the ssh key
- *
- * @return the content of the public key (without signature, without
- * comment)
- * @throws OpenShiftException
- */
- public String getPublicKey();
-
- /**
- * Returns the type of the key (ssh-rsa or ssh-dss)
- *
- * @return the type of key, either ssh-rsa or ssh-dss
- * @throws OpenShiftException
- */
- public SSHKeyType getKeyType();
-
-}
diff --git a/src/main/java/com/openshift/client/ISeverity.java b/src/main/java/com/openshift/client/ISeverity.java
deleted file mode 100644
index b6c8af2c..00000000
--- a/src/main/java/com/openshift/client/ISeverity.java
+++ /dev/null
@@ -1,26 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2012 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.client;
-
-import com.openshift.internal.client.Severity;
-
-/**
- * @author Andre Dietisheim
- */
-public interface ISeverity {
-
- public static final ISeverity INFO = new Severity("info");
- public static final ISeverity DEBUG = new Severity("debug");
- public static final ISeverity ERROR = new Severity("error");
- public static final ISeverity RESULT = new Severity("result");
-
- public String getValue();
-}
diff --git a/src/main/java/com/openshift/client/IUser.java b/src/main/java/com/openshift/client/IUser.java
deleted file mode 100755
index f92f2bfc..00000000
--- a/src/main/java/com/openshift/client/IUser.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2011 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.client;
-
-import java.util.List;
-
-
-/**
- * @author André Dietisheim
- */
-public interface IUser extends IOpenShiftResource {
-
- public static final String ID = "com.openshift.client";
-
- public String getRhlogin();
-
- public String getPassword();
-
- public String getServer();
-
- public IOpenShiftConnection getConnection();
-
- public IDomain createDomain(String id) throws OpenShiftException;
-
- public List getDomains() throws OpenShiftException;
-
- public IDomain getDefaultDomain() throws OpenShiftException;
-
- public IDomain getDomain(String id) throws OpenShiftException;
-
- public boolean hasDomain() throws OpenShiftException;
-
- public boolean hasDomain(String id) throws OpenShiftException;
-
- public List getSSHKeys() throws OpenShiftException;
-
- public IOpenShiftSSHKey putSSHKey(String name, ISSHPublicKey key) throws OpenShiftException;
-
- public IOpenShiftSSHKey getSSHKeyByName(String name) throws OpenShiftUnknonwSSHKeyTypeException, OpenShiftException;
-
- public IOpenShiftSSHKey getSSHKeyByPublicKey(String publicKey) throws OpenShiftUnknonwSSHKeyTypeException, OpenShiftException;
-
- public boolean hasSSHKeyName(String name) throws OpenShiftUnknonwSSHKeyTypeException, OpenShiftException;
-
- public boolean hasSSHPublicKey(String publicKey) throws OpenShiftUnknonwSSHKeyTypeException, OpenShiftException;
-
- public void deleteKey(String name);
-
- public int getMaxGears();
-
- public int getConsumedGears();
-
-}
\ No newline at end of file
diff --git a/src/main/java/com/openshift/client/InvalidCredentialsOpenShiftException.java b/src/main/java/com/openshift/client/InvalidCredentialsOpenShiftException.java
deleted file mode 100644
index fd6757b0..00000000
--- a/src/main/java/com/openshift/client/InvalidCredentialsOpenShiftException.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2011 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.client;
-
-import com.openshift.internal.client.httpclient.HttpClientException;
-import com.openshift.internal.client.response.RestResponse;
-
-
-/**
- * @author André Dietisheim
- */
-public class InvalidCredentialsOpenShiftException extends OpenShiftEndpointException {
-
- private static final long serialVersionUID = 1L;
-
- public InvalidCredentialsOpenShiftException(String url, HttpClientException cause, RestResponse restResponse) throws OpenShiftException {
- super(url, cause, restResponse, "Your credentials are not authorized to access \"{0}\"", (Object) url);
- }
-}
diff --git a/src/main/java/com/openshift/client/InvalidNameOpenShiftException.java b/src/main/java/com/openshift/client/InvalidNameOpenShiftException.java
deleted file mode 100644
index d5d761ae..00000000
--- a/src/main/java/com/openshift/client/InvalidNameOpenShiftException.java
+++ /dev/null
@@ -1,23 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2011 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.client;
-
-/**
- * @author Andre Dietisheim
- */
-public class InvalidNameOpenShiftException extends OpenShiftException {
-
- private static final long serialVersionUID = 1L;
-
- public InvalidNameOpenShiftException(String message, Object... arguments) {
- super(message, arguments);
- }
-}
diff --git a/src/main/java/com/openshift/client/Message.java b/src/main/java/com/openshift/client/Message.java
deleted file mode 100644
index b8553526..00000000
--- a/src/main/java/com/openshift/client/Message.java
+++ /dev/null
@@ -1,84 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2013 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.client;
-
-import java.text.MessageFormat;
-
-import com.openshift.internal.client.Field;
-import com.openshift.internal.client.Severity;
-import com.openshift.internal.client.utils.StringUtils;
-
-/**
- * @author Andre Dietisheim
- */
-public class Message {
-
- private String text;
- private ISeverity severity;
- private IField field;
- private int exitCode;
-
- public Message(String text, String field, String severity, int exitCode) {
- this.text = text;
- this.severity = new Severity(severity);
- this.field = new Field(field);
- this.exitCode = exitCode;
- }
-
- public IField getField() {
- return field;
- }
-
- public String getText() {
- return text;
- }
-
- public ISeverity getSeverity() {
- return severity;
- }
-
- public int getExitCode() {
- return exitCode;
- }
-
- @Override
- public String toString() {
- StringBuilder builder = new StringBuilder(getOperationState());
-
- if (!StringUtils.isEmpty(field.getValue())) {
- builder.append(" on field \"{0}\",");
- }
- if (!StringUtils.isEmpty(severity.getValue())) {
- builder.append(" severity \"{1}\"");
- }
- if (exitCode != -1) {
- builder.append(" with exit code \"{2}\"");
- }
- builder.append('.');
- if (!StringUtils.isEmpty(text)) {
- builder.append(" Reason given: \"{3}\"");
- }
-
- return MessageFormat.format(builder.toString(), field, severity.getValue(), exitCode, text);
- }
-
- private String getOperationState() {
- if (ISeverity.INFO.equals(severity.getValue())
- || ISeverity.DEBUG.equals(severity.getValue())
- || ISeverity.RESULT.equals(severity.getValue())) {
- return "Operation succeeded";
- } else if (ISeverity.ERROR.equals(severity.getValue())) {
- return "Operation failed";
- } else {
- return "Operation state is " + severity.getValue();
- }
- }
-}
diff --git a/src/main/java/com/openshift/client/Messages.java b/src/main/java/com/openshift/client/Messages.java
deleted file mode 100644
index fcc282ff..00000000
--- a/src/main/java/com/openshift/client/Messages.java
+++ /dev/null
@@ -1,154 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2013 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.client;
-
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Map;
-
-/**
- * @author Andre Dietisheim
- */
-public class Messages {
-
- private Map> messagesByField;
-
- /**
- * Instantiates a new abstract open shift resource.
- *
- * @param service
- * the service
- * @param links
- * the links
- */
- public Messages(final Map> messages) {
- this.messagesByField = messages;
- }
-
- public List getAll() {
- List allMessages = new ArrayList();
- for (List messages : messagesByField.values()) {
- for (Message message : messages) {
- allMessages.add(message);
- }
- }
- return allMessages;
- }
-
- /**
- * Returns the first message of the given field type and severity. The messages only exist
- * at creation time. See {@link #getCreationLog()} for further details.
- *
- * @param field the field type
- * @param severity the severity
- * @return
- *
- * @see Message#FIELD_APPINFO
- * @see Message#FIELD_RESULT
- * @see ISeverity
- */
- public Message getFirstBy(IField field, ISeverity severity) {
- List messages = getBy(field, severity);
- if (messages == null
- || messages.size() == 0) {
- return null;
- }
-
- return messages.get(0);
- }
-
- /**
- * Returns the messages of the given field type and severity. These messages only exist
- * at creation time. See {@link #getCreationLog()} for further details.
- *
- * @param field the field type
- * @param severity the severity
- * @return
- *
- * @see Message#FIELD_APPINFO
- * @see Message#FIELD_RESULT
- * @see ISeverity
- */
- public List getBy(IField field, ISeverity severity) {
- List messages = getBy(field);
- if (messages == null
- || messages.size() == 0) {
- return null;
- }
- List matchingMessages = new ArrayList();
- for (Message message : messages) {
- if (severity == null
- || severity.equals(message.getSeverity())) {
- matchingMessages.add(message);
- }
- }
- return matchingMessages;
- }
-
- /**
- * Returns the first message of the given field type. The messages only exist
- * at creation time. See {@link #getCreationLog()} for further details.
- *
- * @param field the field type
- * @return
- *
- * @see Message#FIELD_APPINFO
- * @see Message#FIELD_RESULT
- */
- public Message getFirstBy(IField field) {
- List messages = getBy(field);
- if (messages == null
- || messages.size() == 0) {
- return null;
- }
- return messages.get(0);
- }
-
- /**
- * Returns all the message of the given field type. The messages only exist
- * at creation time. See {@link #getCreationLog()} for further details.
- *
- * @param field the field type
- * @return
- *
- * @see Message#FIELD_APPINFO
- * @see Message#FIELD_RESULT
- */
- public List getBy(IField field) {
- if (messagesByField == null) {
- return null;
- }
- return messagesByField.get(field);
- }
-
- public boolean hasMessages() {
- for (List messages : messagesByField.values()) {
- if (messages.size() > 0) {
- return true;
- }
- }
- return false;
- }
-
- public int size() {
- return getAll().size();
- }
-
- @Override
- public String toString() {
- StringBuilder builder = new StringBuilder();
- for (Message message : getAll()) {
- builder.append(message.getText()).append('\n');
- }
- return builder.toString();
- }
-
-}
diff --git a/src/main/java/com/openshift/client/NoopSSLCertificateCallback.java b/src/main/java/com/openshift/client/NoopSSLCertificateCallback.java
deleted file mode 100644
index a6488684..00000000
--- a/src/main/java/com/openshift/client/NoopSSLCertificateCallback.java
+++ /dev/null
@@ -1,34 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2014 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.client;
-
-import java.security.cert.X509Certificate;
-
-import javax.net.ssl.SSLSession;
-
-import com.openshift.client.IHttpClient.ISSLCertificateCallback;
-
-/**
- * @author Andre Dietisheim
- */
-public class NoopSSLCertificateCallback implements ISSLCertificateCallback {
-
- @Override
- public boolean allowCertificate(X509Certificate[] chain) {
- return true;
- }
-
- @Override
- public boolean allowHostname(String hostname, SSLSession session) {
- return true;
- }
-
-}
diff --git a/src/main/java/com/openshift/client/NotFoundOpenShiftException.java b/src/main/java/com/openshift/client/NotFoundOpenShiftException.java
deleted file mode 100755
index 469d48d9..00000000
--- a/src/main/java/com/openshift/client/NotFoundOpenShiftException.java
+++ /dev/null
@@ -1,26 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2011 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.client;
-
-import com.openshift.internal.client.httpclient.HttpClientException;
-import com.openshift.internal.client.response.RestResponse;
-
-/**
- * @author André Dietisheim
- */
-public class NotFoundOpenShiftException extends OpenShiftEndpointException {
-
- private static final long serialVersionUID = 1L;
-
- public NotFoundOpenShiftException(String url, HttpClientException e, RestResponse restResponse) throws OpenShiftException {
- super(url, e, restResponse, "Could not find any OpenShift resource at \"{0}\"", url);
- }
-}
diff --git a/src/main/java/com/openshift/client/OpenShiftApplicationNotAvailableException.java b/src/main/java/com/openshift/client/OpenShiftApplicationNotAvailableException.java
deleted file mode 100755
index 7a17f5c3..00000000
--- a/src/main/java/com/openshift/client/OpenShiftApplicationNotAvailableException.java
+++ /dev/null
@@ -1,25 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2011 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.client;
-
-/**
- * @author Xavier Coulon
- */
-public class OpenShiftApplicationNotAvailableException extends OpenShiftException {
-
- private static final long serialVersionUID = 1L;
-
-
- public OpenShiftApplicationNotAvailableException(final String message) {
- super(message);
- }
-
-}
diff --git a/src/main/java/com/openshift/client/OpenShiftConnectionFactory.java b/src/main/java/com/openshift/client/OpenShiftConnectionFactory.java
deleted file mode 100755
index 451e604b..00000000
--- a/src/main/java/com/openshift/client/OpenShiftConnectionFactory.java
+++ /dev/null
@@ -1,174 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2012 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.client;
-
-import java.io.FileNotFoundException;
-import java.io.IOException;
-
-import com.openshift.client.IHttpClient.ISSLCertificateCallback;
-import com.openshift.client.configuration.IOpenShiftConfiguration;
-import com.openshift.client.configuration.OpenShiftConfiguration;
-import com.openshift.internal.client.AbstractOpenShiftConnectionFactory;
-import com.openshift.internal.client.IRestService;
-import com.openshift.internal.client.RestService;
-import com.openshift.internal.client.httpclient.UrlConnectionHttpClientBuilder;
-import com.openshift.internal.client.httpclient.request.JsonMediaType;
-import com.openshift.internal.client.response.OpenShiftJsonDTOFactory;
-import com.openshift.internal.client.utils.Assert;
-
-/**
- * Connection Factory, used to establish a connection and retrieve a user.
- *
- * @author Xavier Coulon
- * @author Andre Dietisheim
- * @author Corey Daley
- *
- */
-public class OpenShiftConnectionFactory extends AbstractOpenShiftConnectionFactory {
- private IOpenShiftConfiguration configuration = null;
- /**
- * Establish a connection with the clientId along with user's password.
- * User's login and Server URL are retrieved from the local configuration
- * file (in see $USER_HOME/.openshift/express.conf)
- *
- * @param clientId
- * http client id
- * @param password
- * user's password
- * @return a valid connection
- * @throws FileNotFoundException
- * @throws IOException
- * @throws OpenShiftException
- */
- public IOpenShiftConnection getConnection(final String clientId, final String password) throws OpenShiftException {
- try {
- configuration = new OpenShiftConfiguration();
- } catch (IOException e) {
- throw new OpenShiftException(e, "Failed to load OpenShift configuration file.");
- }
- return getConnection(clientId, configuration.getRhlogin(), password, configuration.getLibraServer());
- }
-
- /**
- * Establish a connection with the clientId along with user's login and
- * password. Server URL is retrieved from the local configuration file (in
- * see $USER_HOME/.openshift/express.conf)
- *
- * @param clientId
- * http client id
- * @param username
- * user's login
- * @param password
- * user's password
- * @return a valid connection
- * @throws FileNotFoundException
- * @throws IOException
- * @throws OpenShiftException
- */
- public IOpenShiftConnection getConnection(final String clientId, final String username, final String password)
- throws OpenShiftException {
- try {
- configuration = new OpenShiftConfiguration();
- } catch (IOException e) {
- throw new OpenShiftException(e, "Failed to load OpenShift configuration file.");
- }
- return getConnection(clientId, username, password, configuration.getLibraServer());
- }
-
- /**
- * Establish a connection with the clientId along with user's login and
- * password.
- *
- * @param clientId
- * http client id
- * @param username
- * user's login.
- * @param password
- * user's password.
- * @param serverUrl
- * the server url.
- * @return a valid connection
- * @throws FileNotFoundException
- * @throws IOException
- * @throws OpenShiftException
- */
- public IOpenShiftConnection getConnection(final String clientId, final String username, final String password,
- final String serverUrl) throws OpenShiftException {
- return getConnection(clientId, username, password, serverUrl, (ISSLCertificateCallback) null);
- }
-
- public IOpenShiftConnection getConnection(final String clientId, final String username, final String password,
- final String serverUrl, ISSLCertificateCallback sslCallback) throws OpenShiftException {
- return getConnection(clientId, username, password, null, null, serverUrl, sslCallback);
- }
-
- public IOpenShiftConnection getConnection(final String clientId, final String username, final String password,
- final String authKey, final String authIV, final String serverUrl) throws OpenShiftException {
- return getConnection(clientId, username, password, null, null, serverUrl, null);
- }
-
- /**
- * Establish a connection with the clientId along with user's login and
- * password.
- *
- * @param clientId
- * http client id
- * @param username
- * user's login.
- * @param password
- * user's password.
- * @param serverUrl
- * the server url.
- * @return a valid connection
- * @throws FileNotFoundException
- * @throws IOException
- * @throws OpenShiftException
- */
- public IOpenShiftConnection getConnection(final String clientId, final String username, final String password,
- final String authKey, final String authIV, final String serverUrl,
- final ISSLCertificateCallback sslCertificateCallback) throws OpenShiftException {
- if (configuration == null) {
- try {
- configuration = new OpenShiftConfiguration();
- } catch (IOException e) {
- throw new OpenShiftException(e, "Failed to load OpenShift configuration file.");
- }
- }
-
- Assert.notNull(clientId);
- Assert.notNull(username);
- Assert.notNull(password);
- Assert.notNull(serverUrl);
-
- try {
- IHttpClient httpClient =
- new UrlConnectionHttpClientBuilder()
- .setCredentials(username, password, authKey, authIV)
- .setSSLCertificateCallback(sslCertificateCallback)
- .setConfigTimeout(configuration.getTimeout())
- .client();
- return getConnection(clientId, username, password, serverUrl, httpClient);
- } catch (IOException e) {
- throw new OpenShiftException(e, "Failed to establish connection for user ''{0}}''", username);
- }
- }
-
- protected IOpenShiftConnection getConnection(final String clientId, final String username, final String password,
- final String serverUrl, IHttpClient httpClient) throws OpenShiftException, IOException {
- Assert.notNull(clientId);
- Assert.notNull(serverUrl);
- Assert.notNull(httpClient);
-
- IRestService service = new RestService(serverUrl, clientId, new JsonMediaType(),
- IHttpClient.MEDIATYPE_APPLICATION_JSON, new OpenShiftJsonDTOFactory(), httpClient);
- return getConnection(service, username, password);
- }
-}
diff --git a/src/main/java/com/openshift/client/OpenShiftEndpointException.java b/src/main/java/com/openshift/client/OpenShiftEndpointException.java
deleted file mode 100644
index e78a4f59..00000000
--- a/src/main/java/com/openshift/client/OpenShiftEndpointException.java
+++ /dev/null
@@ -1,72 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2011 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.client;
-
-import java.util.List;
-
-import com.openshift.internal.client.response.RestResponse;
-
-/**
- * @author André Dietisheim
- */
-public class OpenShiftEndpointException extends OpenShiftException {
-
- private static final long serialVersionUID = 8251533839480636815L;
-
- private final String url;
- private final RestResponse response;
-
- public OpenShiftEndpointException(final String url, final Throwable cause, RestResponse response, final String message, final Object... arguments) {
- super(cause, message, arguments);
- this.url = url;
- this.response = response;
- }
-
- /**
- * @return the server response after converting it into a {@link RestResponse}.
- * @throws OpenShiftException if the unmarshalling fails
- */
- public RestResponse getRestResponse() throws OpenShiftException {
- return response;
- }
-
- /**
- * @return the server response messages after converting the response into a {@link RestResponse}. If the unmarshalling fails, the returned list is null.
- */
- public Messages getRestResponseMessages() {
- if (response == null) {
- return null;
- }
- return response.getMessages();
- }
-
- /**
- * Returns the message for the given field. Returns null otherwise.
- *
- * @param field
- * @return the message for the given field
- *
- * @see Message#FIELD_DEFAULT
- * @see Message#FIELD_APPINFO
- * @see Message#FIELD_RESULT
- */
- public List getRestResponseMessage(IField field) {
- Messages messages = getRestResponseMessages();
- if (messages == null) {
- return null;
- }
- return messages.getBy(field);
- }
-
- protected String getUrl() {
- return url;
- }
-}
diff --git a/src/main/java/com/openshift/client/OpenShiftException.java b/src/main/java/com/openshift/client/OpenShiftException.java
deleted file mode 100644
index dd914c3d..00000000
--- a/src/main/java/com/openshift/client/OpenShiftException.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2011 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.client;
-
-import java.text.MessageFormat;
-
-/**
- * @author André Dietisheim
- */
-public class OpenShiftException extends RuntimeException {
-
- private static final long serialVersionUID = 1L;
-
- public OpenShiftException(Throwable cause, String message, Object... arguments) {
- super(MessageFormat.format(message, arguments), cause);
- }
-
- public OpenShiftException(String message, Object... arguments) {
- super(MessageFormat.format(message, arguments));
- }
-}
diff --git a/src/main/java/com/openshift/client/OpenShiftRequestException.java b/src/main/java/com/openshift/client/OpenShiftRequestException.java
deleted file mode 100644
index 99dc4a0d..00000000
--- a/src/main/java/com/openshift/client/OpenShiftRequestException.java
+++ /dev/null
@@ -1,25 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2012 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.client;
-
-
-/**
- * @author Andre Dietisheim
- */
-public class OpenShiftRequestException extends OpenShiftException {
-
- private static final long serialVersionUID = 1L;
-
- public OpenShiftRequestException(String message, Object... arguments) {
- super(message, arguments);
- }
-
-}
diff --git a/src/main/java/com/openshift/client/OpenShiftSSHKeyException.java b/src/main/java/com/openshift/client/OpenShiftSSHKeyException.java
deleted file mode 100644
index d59f1d3d..00000000
--- a/src/main/java/com/openshift/client/OpenShiftSSHKeyException.java
+++ /dev/null
@@ -1,23 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2011 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.client;
-
-/**
- * @author Andre Dietisheim
- */
-public class OpenShiftSSHKeyException extends OpenShiftException {
-
- private static final long serialVersionUID = 1L;
-
- public OpenShiftSSHKeyException(String message, Object... arguments) {
- super(message, arguments);
- }
-}
diff --git a/src/main/java/com/openshift/client/OpenShiftSSHOperationException.java b/src/main/java/com/openshift/client/OpenShiftSSHOperationException.java
deleted file mode 100644
index 178319ca..00000000
--- a/src/main/java/com/openshift/client/OpenShiftSSHOperationException.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2012 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.client;
-
-/**
- * OpenShift Exception that encapsulates an underlying exception that occurred during an SSH operation.
- * @author Xavier Coulon
- *
- */
-public class OpenShiftSSHOperationException extends OpenShiftException {
-
- private static final long serialVersionUID = -1058021959768485317L;
-
- public OpenShiftSSHOperationException(Throwable cause, String message, Object... arguments) {
- super(cause, message, arguments);
- }
-
- public OpenShiftSSHOperationException(String message, Object... arguments) {
- super(message, arguments);
- }
-}
diff --git a/src/main/java/com/openshift/client/OpenShiftTimeoutException.java b/src/main/java/com/openshift/client/OpenShiftTimeoutException.java
deleted file mode 100644
index da4ab1ed..00000000
--- a/src/main/java/com/openshift/client/OpenShiftTimeoutException.java
+++ /dev/null
@@ -1,24 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2013 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.client;
-
-/**
- * @author Andre Dietisheim
- */
-public class OpenShiftTimeoutException extends OpenShiftEndpointException {
-
- private static final long serialVersionUID = 1L;
-
- public OpenShiftTimeoutException(String url, Throwable e, String message, Object... arguments) {
- super(url, e, null, message, arguments);
- }
-
-}
diff --git a/src/main/java/com/openshift/client/OpenShiftUnknonwSSHKeyTypeException.java b/src/main/java/com/openshift/client/OpenShiftUnknonwSSHKeyTypeException.java
deleted file mode 100644
index c50d1c26..00000000
--- a/src/main/java/com/openshift/client/OpenShiftUnknonwSSHKeyTypeException.java
+++ /dev/null
@@ -1,23 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2011 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.client;
-
-/**
- * @author Andre Dietisheim
- */
-public class OpenShiftUnknonwSSHKeyTypeException extends OpenShiftException {
-
- private static final long serialVersionUID = 1L;
-
- public OpenShiftUnknonwSSHKeyTypeException(String message, Object... arguments) {
- super(message, arguments);
- }
-}
diff --git a/src/main/java/com/openshift/client/SSHKeyPair.java b/src/main/java/com/openshift/client/SSHKeyPair.java
deleted file mode 100644
index 30f6a4d2..00000000
--- a/src/main/java/com/openshift/client/SSHKeyPair.java
+++ /dev/null
@@ -1,119 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2012 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.client;
-
-import com.jcraft.jsch.JSch;
-import com.jcraft.jsch.JSchException;
-import com.jcraft.jsch.KeyPair;
-import com.openshift.client.utils.Base64Coder;
-import com.openshift.internal.client.ssh.AbstractSSHKey;
-import com.openshift.internal.client.utils.Assert;
-
-/**
- * @author André Dietisheim
- */
-public class SSHKeyPair extends AbstractSSHKey {
-
- /**
- * the length of the key that is created when using #create. ssh-keygen uses
- * a default of 2048
- *
- * @see #create(String, String, String)
- * @see http://en.wikipedia.org/wiki/Ssh-keygen
- */
- private static final int KEYLENGTH = 2048;
-
- private static final String ID = "com.openshift.client.rest";
-
- private KeyPair keyPair;
- private String privateKeyPath;
- private String publicKeyPath;
-
- private SSHKeyPair(KeyPair keyPair, String privateKeyPath, String publicKeyPath, String keyTypeId)
- throws OpenShiftException {
- this(keyPair, privateKeyPath, publicKeyPath, SSHKeyType.getByTypeId(keyTypeId));
- }
-
- private SSHKeyPair(KeyPair keyPair, String privateKeyPath, String publicKeyPath, SSHKeyType sshKeyType)
- throws OpenShiftException {
- super(sshKeyType);
- this.keyPair = keyPair;
- this.privateKeyPath = privateKeyPath;
- this.publicKeyPath = publicKeyPath;
- }
-
- public static SSHKeyPair create(String passPhrase, String privateKeyPath, String publicKeyPath)
- throws OpenShiftException {
- Assert.notNull(privateKeyPath);
- Assert.notNull(publicKeyPath);
-
- return create(SSHKeyType.SSH_RSA, passPhrase, privateKeyPath, publicKeyPath);
- }
-
- /**
- * Creates private and public ssh-rsa keys and stores them to the given
- * paths. The key is created while using the given pass phrase.
- *
- * @param passPhrase
- * the pass phrase to set to the new key
- * @param privateKeyPath
- * the path where the new private key gets stored
- * @param publicKeyPath
- * the path where the new public key gets stored
- * @return
- * @throws OpenShiftException
- * if the key could not be created
- */
- public static SSHKeyPair create(SSHKeyType type, String passPhrase, String privateKeyPath, String publicKeyPath)
- throws OpenShiftException {
- try {
- KeyPair keyPair = KeyPair.genKeyPair(new JSch(), KeyPair.RSA, KEYLENGTH);
- keyPair.setPassphrase(passPhrase);
- keyPair.writePublicKey(publicKeyPath, "created by " + ID);
- keyPair.writePrivateKey(privateKeyPath);
- return new SSHKeyPair(keyPair, privateKeyPath, publicKeyPath, SSHKeyType.SSH_RSA);
- } catch (Exception e) {
- throw new OpenShiftException(e, "Could not create new rsa key", e);
- }
- }
-
- /**
- * Loads existing private and public ssh key from the given paths.
- *
- * @param privateKeyPath
- * the path to the private key
- * @param publicKeyPath
- * the path to the public key
- * @return
- * @throws OpenShiftException
- */
- public static SSHKeyPair load(String privateKeyPath, String publicKeyPath)
- throws OpenShiftException {
- try {
- KeyPair keyPair = KeyPair.load(new JSch(), privateKeyPath, publicKeyPath);
- return new SSHKeyPair(keyPair, privateKeyPath, publicKeyPath, SSHKeyType.getByJSchKeyType(keyPair));
- } catch (JSchException e) {
- throw new OpenShiftException(e, "Could not create new ssh key");
- }
- }
-
- public String getPublicKey() {
- return Base64Coder.encode(keyPair.getPublicKeyBlob());
- }
-
- public String getPrivateKeyPath() {
- return privateKeyPath;
- }
-
- public String getPublicKeyPath() {
- return publicKeyPath;
- }
-}
diff --git a/src/main/java/com/openshift/client/SSHKeyType.java b/src/main/java/com/openshift/client/SSHKeyType.java
deleted file mode 100644
index e3852d26..00000000
--- a/src/main/java/com/openshift/client/SSHKeyType.java
+++ /dev/null
@@ -1,78 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2011 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.client;
-
-import com.jcraft.jsch.KeyPair;
-import com.openshift.internal.client.utils.Assert;
-
-/**
- * @author Andre Dietisheim
- */
-public enum SSHKeyType {
-
- SSH_RSA("ssh-rsa"), SSH_DSA("ssh-dss");
-
- private final String typeId;
-
- SSHKeyType(String typeId) {
- this.typeId = typeId;
- }
-
- public String getTypeId() {
- return typeId;
- }
-
- /**
- * Returns the JSch key pair constant for a given SSHKeyType.
- *
- * @param type
- * the SSHKeyType that the JSch KeyPair constant will get
- * returned for
- * @return
- */
- public int toJSchKeyType() {
- switch (this) {
- case SSH_RSA:
- return KeyPair.RSA;
- case SSH_DSA:
- return KeyPair.DSA;
- default:
- return KeyPair.UNKNOWN;
- }
- }
-
- public static SSHKeyType getByTypeId(String keyTypeId) throws OpenShiftUnknonwSSHKeyTypeException {
- Assert.notNull(keyTypeId);
-
- for (SSHKeyType sSHKeyType : values()) {
- if (keyTypeId.equals(sSHKeyType.getTypeId())) {
- return sSHKeyType;
- }
- }
- throw new OpenShiftUnknonwSSHKeyTypeException("OpenShift does not support keys of type \"{0}\"", keyTypeId);
- }
-
- public static SSHKeyType getByJSchKeyType(KeyPair keyPair) throws OpenShiftUnknonwSSHKeyTypeException {
- Assert.notNull(keyPair);
-
- return getByJSchKeyType(keyPair.getKeyType());
- }
-
- public static SSHKeyType getByJSchKeyType(int jschKeyType) throws OpenShiftUnknonwSSHKeyTypeException {
- if (jschKeyType == KeyPair.RSA) {
- return SSH_RSA;
- } else if (jschKeyType == KeyPair.DSA) {
- return SSH_DSA;
- } else {
- throw new OpenShiftUnknonwSSHKeyTypeException("Unknown jsch key type \"{0}\"", jschKeyType);
- }
- }
-}
diff --git a/src/main/java/com/openshift/client/SSHPublicKey.java b/src/main/java/com/openshift/client/SSHPublicKey.java
deleted file mode 100644
index 7d96363d..00000000
--- a/src/main/java/com/openshift/client/SSHPublicKey.java
+++ /dev/null
@@ -1,57 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2011 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.client;
-
-import java.io.File;
-import java.io.FileNotFoundException;
-import java.io.FileReader;
-import java.io.IOException;
-import java.util.regex.Matcher;
-import java.util.regex.Pattern;
-
-import com.openshift.internal.client.ssh.AbstractSSHKey;
-import com.openshift.internal.client.utils.StreamUtils;
-
-/**
- * @author André Dietisheim
- */
-public class SSHPublicKey extends AbstractSSHKey {
-
- private static final Pattern PUBLICKEY_PATTERN = Pattern.compile("([^ ]+) ([^ ]+)( .+)*");
-
- private String publicKey;
-
- public SSHPublicKey(String publicKeyFilePath) throws FileNotFoundException, OpenShiftException, IOException {
- this(new File(publicKeyFilePath));
- }
-
- public SSHPublicKey(File publicKeyFile) throws FileNotFoundException, OpenShiftException, IOException {
- super(null);
- init(publicKeyFile);
- }
-
- public String getPublicKey() {
- return publicKey;
- }
-
- private void init(File publicKeyFile) throws OpenShiftException, FileNotFoundException, IOException {
- String keyWithIdAndComment = StreamUtils.readToString(new FileReader(publicKeyFile));
- Matcher matcher = PUBLICKEY_PATTERN.matcher(keyWithIdAndComment);
- if (!matcher.find()
- || matcher.groupCount() < 1) {
- throw new OpenShiftException("Could not load public key from file \"{0}\"", publicKeyFile.getAbsolutePath());
- }
-
- setKeyType(matcher.group(1));
- this.publicKey = matcher.group(2);
- }
-
-}
diff --git a/src/main/java/com/openshift/client/cartridge/EmbeddableCartridge.java b/src/main/java/com/openshift/client/cartridge/EmbeddableCartridge.java
deleted file mode 100644
index 2cdc06b1..00000000
--- a/src/main/java/com/openshift/client/cartridge/EmbeddableCartridge.java
+++ /dev/null
@@ -1,82 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2012 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.client.cartridge;
-
-import java.net.URL;
-
-import com.openshift.internal.client.APIResource;
-import com.openshift.internal.client.cartridge.BaseCartridge;
-
-/**
- * An cartridge that may be embedded (added) into an application. Add-on
- * cartridge is an equivalent name for embedded cartridge.
- *
- * @author Xavier Coulon
- *
- * @see IEmbeddableCartridge for cartridges that have already been added and
- * configured to an application.
- */
-public class EmbeddableCartridge extends BaseCartridge implements IEmbeddableCartridge {
-
- public EmbeddableCartridge(final String name) {
- super(name);
- }
-
- public EmbeddableCartridge(final URL url) {
- super(url);
- }
-
- public EmbeddableCartridge(final String name, final URL url) {
- super(name, url);
- }
-
- /**
- * Constructor used when available cartridges are loaded from OpenShift
- *
- * @see APIResource#getEmbeddableCartridges()
- */
- public EmbeddableCartridge(final String name, String displayName, String description) {
- super(name, displayName, description);
- }
-
- @Override
- public boolean equals(Object obj) {
- if (this == obj) {
- return true;
- }
- if (obj == null) {
- return false;
- }
- if (!(obj instanceof IEmbeddableCartridge)) {
- return false;
- }
- IEmbeddableCartridge other = (IEmbeddableCartridge) obj;
- // shortcut: downloadable cartridges get their name only when
- // they're deployed thus should equal on url only
- if (isDownloadable()) {
- if (other.isDownloadable()) {
- if (getUrl() == null) {
- return other.getUrl() == null;
- }
- return getUrl().equals(other.getUrl());
- }
- }
- if (getName() == null) {
- if (other.getName() != null) {
- return false;
- }
- } else if (!getName().equals(other.getName())) {
- return false;
- }
- return true;
- }
-
-}
diff --git a/src/main/java/com/openshift/client/cartridge/ICartridge.java b/src/main/java/com/openshift/client/cartridge/ICartridge.java
deleted file mode 100755
index 62ae932b..00000000
--- a/src/main/java/com/openshift/client/cartridge/ICartridge.java
+++ /dev/null
@@ -1,72 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2011 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.client.cartridge;
-
-import java.net.URL;
-
-/**
- * @author André Dietisheim
- */
-public interface ICartridge {
-
- public static final char NAME_VERSION_DELIMITER = '-';
-
- /**
- * Returns the name of this cartridge
- *
- * @return the name
- */
- public abstract String getName();
-
- /**
- * Returns a (human readable, nice) display name for this cartridge
- *
- * @return the display name
- */
- public String getDisplayName();
-
- /**
- * Returns a description for this cartridge
- *
- * @return the description
- */
- public String getDescription();
-
-
- /**
- * Returns true if this is a downloadable cartridge whose code
- * may be downloaded at the url returned by {@link #getUrl()} (cartridge
- * code will get downloaded upon creation).
- * Examples:
- *
- * - go standalone cartridge (https://github.com/smarterclayton/openshift-go-cart)
- * - redis embedded cartridge (https://github.com/smarterclayton/openshift-redis-cart)
- * - foreman embedded cartridge (https://github.com/ncdc/openshift-foreman-cartridge)
- *
- *
- * @return true if this is a downloadable cartridge
- *
- * @see #getUrl()
- */
- public boolean isDownloadable();
-
- /**
- * Returns the url at which the code for this cartridge may get downloaded.
- * Returns null if this is not a downloadable cartridge.
- *
- * @return the url if downloadable cartridge or null
- *
- * @see #isDownloadable()
- */
- public URL getUrl();
-
-
-}
\ No newline at end of file
diff --git a/src/main/java/com/openshift/client/cartridge/IEmbeddableCartridge.java b/src/main/java/com/openshift/client/cartridge/IEmbeddableCartridge.java
deleted file mode 100644
index 85a63517..00000000
--- a/src/main/java/com/openshift/client/cartridge/IEmbeddableCartridge.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2012 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.client.cartridge;
-
-
-
-/**
- * @author Xavier Coulon
- * @author Andre Dietisheim
- */
-public interface IEmbeddableCartridge extends ICartridge {
-
- public static final String NAME_10GEN_MMS_AGENT = "10gen-mms-agent";
- public static final String NAME_CRON = "cron";
- public static final String NAME_HAPROXY = "haproxy";
- public static final String NAME_JENKINS_CLIENT = "jenkins-client";
- public static final String NAME_METRICS = "metrics";
- public static final String NAME_MONGODB = "mongodb";
- public static final String NAME_PHPMYADMIN = "phpmyadmin";
- public static final String NAME_POSTGRESQL = "postgresql";
- public static final String NAME_MYSQL = "mysql";
- public static final String NAME_ROCKMONGO = "rockmongo";
- public static final String NAME_SWITCHYARD = "switchyard";
-}
diff --git a/src/main/java/com/openshift/client/cartridge/IEmbeddedCartridge.java b/src/main/java/com/openshift/client/cartridge/IEmbeddedCartridge.java
deleted file mode 100755
index 9f71ccbc..00000000
--- a/src/main/java/com/openshift/client/cartridge/IEmbeddedCartridge.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2011 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.client.cartridge;
-
-import java.net.URL;
-
-import com.openshift.client.IApplication;
-import com.openshift.client.IOpenShiftResource;
-import com.openshift.client.OpenShiftException;
-import com.openshift.internal.client.response.CartridgeResourceProperties;
-
-/**
- * Interface to designate a cartridge that has been added and configured
- * @author André Dietisheim
- */
-public interface IEmbeddedCartridge extends IOpenShiftResource, IEmbeddableCartridge {
-
- /**
- * The url at which this cartridge may be reached
- *
- * @return the url for this cartridge
- * @throws OpenShiftException
- */
- public URL getUrl() throws OpenShiftException;
-
- /**
- * Destroys this cartridge (and removes it from the list of existing cartridges)
- *
- * @throws OpenShiftException
- */
- public void destroy() throws OpenShiftException;
-
-
- /**
- * Returns the application this cartridge is embedded into.
- *
- * @return application this is embedded into
- */
- public IApplication getApplication();
-
- /**
- * Returns the properties for this embedded cartridge
- *
- * @return the resource properties
- */
- public CartridgeResourceProperties getProperties();
-}
\ No newline at end of file
diff --git a/src/main/java/com/openshift/client/cartridge/IStandaloneCartridge.java b/src/main/java/com/openshift/client/cartridge/IStandaloneCartridge.java
deleted file mode 100644
index 61181faf..00000000
--- a/src/main/java/com/openshift/client/cartridge/IStandaloneCartridge.java
+++ /dev/null
@@ -1,28 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2011 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.client.cartridge;
-
-/**
- * @author André Dietisheim
- */
-public interface IStandaloneCartridge extends ICartridge {
-
- public static final String NAME_JBOSSEWS = "jbossews";
- public static final String NAME_JBOSSAS = "jbossas";
- public static final String NAME_JBOSSEAP = "jbosseap";
- public static final String NAME_JENKINS = "jenkins";
- public static final String NAME_PERL = "perl";
- public static final String NAME_PHP = "php";
- public static final String NAME_PYTHON = "python";
- public static final String NAME_RUBY = "ruby";
- public static final String NAME_ZEND = "zend";
-
-}
\ No newline at end of file
diff --git a/src/main/java/com/openshift/client/cartridge/StandaloneCartridge.java b/src/main/java/com/openshift/client/cartridge/StandaloneCartridge.java
deleted file mode 100755
index a003955b..00000000
--- a/src/main/java/com/openshift/client/cartridge/StandaloneCartridge.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2011 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.client.cartridge;
-
-import java.net.URL;
-
-import com.openshift.internal.client.cartridge.BaseCartridge;
-
-
-/**
- * A cartridge that is available on the openshift server. This class is no enum
- * since we dont know all available types and they may change at any time.
- *
- * @author André Dietisheim
- */
-public class StandaloneCartridge extends BaseCartridge implements IStandaloneCartridge {
-
- public StandaloneCartridge(String name) {
- super(name);
- }
-
- public StandaloneCartridge(URL url) {
- super(url);
- }
-
- public StandaloneCartridge(String name, URL url) {
- super(name, url);
- }
-
- public StandaloneCartridge(String name, String displayName, String description) {
- super(name, null, displayName, description);
- }
-
- public StandaloneCartridge(String name, URL url, String displayName, String description) {
- super(name, url, displayName, description);
- }
-}
\ No newline at end of file
diff --git a/src/main/java/com/openshift/client/cartridge/selector/CartridgePropertyQuery.java b/src/main/java/com/openshift/client/cartridge/selector/CartridgePropertyQuery.java
deleted file mode 100644
index df3896a2..00000000
--- a/src/main/java/com/openshift/client/cartridge/selector/CartridgePropertyQuery.java
+++ /dev/null
@@ -1,23 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2013 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.client.cartridge.selector;
-
-import com.openshift.client.cartridge.IEmbeddedCartridge;
-import com.openshift.internal.client.response.CartridgeResourceProperty;
-
-/**
- * @author André Dietisheim
- */
-public abstract class CartridgePropertyQuery {
-
- public abstract CartridgeResourceProperty getMatchingProperty(IEmbeddedCartridge embeddedCartridge);
-
-}
\ No newline at end of file
diff --git a/src/main/java/com/openshift/client/cartridge/selector/LatestEmbeddableCartridge.java b/src/main/java/com/openshift/client/cartridge/selector/LatestEmbeddableCartridge.java
deleted file mode 100644
index 44b4f259..00000000
--- a/src/main/java/com/openshift/client/cartridge/selector/LatestEmbeddableCartridge.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2012 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.client.cartridge.selector;
-
-import com.openshift.client.IApplication;
-import com.openshift.client.IUser;
-import com.openshift.client.cartridge.IEmbeddableCartridge;
-import com.openshift.internal.client.utils.Assert;
-
-/**
- * A selector that shall select the latest version of an embedded cartidge that's given by name.
- *
- * @author Andre Dietisheim
- *
- * @see IEmbeddableCartridge
- */
-public class LatestEmbeddableCartridge extends LatestVersionQuery {
-
- public LatestEmbeddableCartridge(final String name) {
- super(name);
- }
-
- public IEmbeddableCartridge get(IApplication application) {
- return get(getConnection(application).getEmbeddableCartridges());
- }
-
- public IEmbeddableCartridge get(IUser user) {
- Assert.notNull(user);
- return get(user.getConnection().getEmbeddableCartridges());
- }
-}
diff --git a/src/main/java/com/openshift/client/cartridge/selector/LatestStandaloneCartridge.java b/src/main/java/com/openshift/client/cartridge/selector/LatestStandaloneCartridge.java
deleted file mode 100644
index 44a29745..00000000
--- a/src/main/java/com/openshift/client/cartridge/selector/LatestStandaloneCartridge.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2012 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.client.cartridge.selector;
-
-import com.openshift.client.IApplication;
-import com.openshift.client.IUser;
-import com.openshift.client.cartridge.IStandaloneCartridge;
-import com.openshift.internal.client.utils.Assert;
-
-/**
- * A selector that shall select the latest version of a standalone cartidge that's given by name.
- *
- * @author Andre Dietisheim
- *
- * @see IStandaloneCartridge
- */
-public class LatestStandaloneCartridge extends LatestVersionQuery {
-
- public LatestStandaloneCartridge(final String name) {
- super(name);
- }
-
- public IStandaloneCartridge get(IApplication application) {
- return get(getConnection(application).getStandaloneCartridges());
- }
-
- public IStandaloneCartridge get(IUser user) {
- Assert.notNull(user);
- return get(user.getConnection().getStandaloneCartridges());
- }
-}
diff --git a/src/main/java/com/openshift/client/cartridge/selector/LatestVersionOf.java b/src/main/java/com/openshift/client/cartridge/selector/LatestVersionOf.java
deleted file mode 100644
index 719e8455..00000000
--- a/src/main/java/com/openshift/client/cartridge/selector/LatestVersionOf.java
+++ /dev/null
@@ -1,102 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2013 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.client.cartridge.selector;
-
-import com.openshift.client.cartridge.IEmbeddableCartridge;
-import com.openshift.client.cartridge.IStandaloneCartridge;
-
-
-/**
- * @author Andre Dietisheim
- *
- */
-public class LatestVersionOf {
-
- public static LatestEmbeddableCartridge mmsAgent() {
- return new LatestEmbeddableCartridge(IEmbeddableCartridge.NAME_10GEN_MMS_AGENT);
- }
-
- public static LatestEmbeddableCartridge cron() {
- return new LatestEmbeddableCartridge(IEmbeddableCartridge.NAME_CRON);
- }
-
- public static LatestEmbeddableCartridge haProxy() {
- return new LatestEmbeddableCartridge(IEmbeddableCartridge.NAME_HAPROXY);
- }
-
- public static LatestEmbeddableCartridge jenkinsClient() {
- return new LatestEmbeddableCartridge(IEmbeddableCartridge.NAME_JENKINS_CLIENT);
- }
-
- public static LatestEmbeddableCartridge metrics() {
- return new LatestEmbeddableCartridge(IEmbeddableCartridge.NAME_METRICS);
- }
-
- public static LatestEmbeddableCartridge mongoDB() {
- return new LatestEmbeddableCartridge(IEmbeddableCartridge.NAME_MONGODB);
- }
-
- public static LatestEmbeddableCartridge phpMyAdmin() {
- return new LatestEmbeddableCartridge(IEmbeddableCartridge.NAME_PHPMYADMIN);
- }
-
- public static LatestEmbeddableCartridge postgreSQL() {
- return new LatestEmbeddableCartridge(IEmbeddableCartridge.NAME_POSTGRESQL);
- }
-
- public static LatestEmbeddableCartridge mySQL() {
- return new LatestEmbeddableCartridge(IEmbeddableCartridge.NAME_MYSQL);
- }
-
- public static LatestEmbeddableCartridge rockMongo() {
- return new LatestEmbeddableCartridge(IEmbeddableCartridge.NAME_ROCKMONGO);
- }
-
- public static LatestEmbeddableCartridge switchyard(){
- return new LatestEmbeddableCartridge(IEmbeddableCartridge.NAME_SWITCHYARD);
- }
-
- public static LatestStandaloneCartridge jbossEws(){
- return new LatestStandaloneCartridge(IStandaloneCartridge.NAME_JBOSSEWS);
- }
-
- public static LatestStandaloneCartridge jbossEap(){
- return new LatestStandaloneCartridge(IStandaloneCartridge.NAME_JBOSSEAP);
- }
-
- public static LatestStandaloneCartridge jbossAs(){
- return new LatestStandaloneCartridge(IStandaloneCartridge.NAME_JBOSSAS);
- }
-
- public static LatestStandaloneCartridge jenkins(){
- return new LatestStandaloneCartridge(IStandaloneCartridge.NAME_JENKINS);
- }
-
- public static LatestStandaloneCartridge perl(){
- return new LatestStandaloneCartridge(IStandaloneCartridge.NAME_PERL);
- }
-
- public static LatestStandaloneCartridge php(){
- return new LatestStandaloneCartridge(IStandaloneCartridge.NAME_PHP);
- }
-
- public static LatestStandaloneCartridge python(){
- return new LatestStandaloneCartridge(IStandaloneCartridge.NAME_PYTHON);
- }
-
- public static LatestStandaloneCartridge ruby(){
- return new LatestStandaloneCartridge(IStandaloneCartridge.NAME_RUBY);
- }
-
- public static LatestStandaloneCartridge zend(){
- return new LatestStandaloneCartridge(IStandaloneCartridge.NAME_ZEND);
- }
-}
diff --git a/src/main/java/com/openshift/client/cartridge/selector/LatestVersionQuery.java b/src/main/java/com/openshift/client/cartridge/selector/LatestVersionQuery.java
deleted file mode 100644
index b2250c24..00000000
--- a/src/main/java/com/openshift/client/cartridge/selector/LatestVersionQuery.java
+++ /dev/null
@@ -1,184 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2012 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.client.cartridge.selector;
-
-import java.text.Collator;
-import java.util.Collection;
-import java.util.Collections;
-import java.util.Iterator;
-import java.util.regex.Matcher;
-import java.util.regex.Pattern;
-
-import com.openshift.client.IApplication;
-import com.openshift.client.cartridge.ICartridge;
-import com.openshift.client.cartridge.IEmbeddableCartridge;
-import com.openshift.client.cartridge.IStandaloneCartridge;
-import com.openshift.internal.client.cartridge.AbstractCartridgeQuery;
-import com.openshift.internal.client.utils.Assert;
-
-/**
- * A constraint that shall match available embeddable and standalone cartridges by name. Among
- * several matching ones, the one with the highest version is chosen.
- *
- * @author Andre Dietisheim
- *
- * @see IEmbeddableCartridge for cartridges that have already been added and
- * configured to an application.
- */
-public class LatestVersionQuery extends AbstractCartridgeQuery {
-
- private final String nameConstraint;
-
- public LatestVersionQuery(final String name) {
- Assert.isTrue(name != null);
- this.nameConstraint = name;
- }
-
- public String getNameConstraint() {
- return nameConstraint;
- }
-
- @Override
- public Collection getAll(Collection cartridges) {
- return Collections.singleton(getLatest(super.getAll(cartridges)));
- }
-
- @Override
- public C get(Collection cartridges) {
- return getLatest(super.getAll(cartridges));
- }
-
- public boolean matches(C cartridge) {
- String name = cartridge.getName();
- int delimiterIndex = name.lastIndexOf(ICartridge.NAME_VERSION_DELIMITER);
- if (delimiterIndex == -1) {
- return false;
- }
- return nameConstraint.equals(name.substring(0, delimiterIndex));
- }
-
- protected C getLatest(Collection matchingCartridges) {
- Iterator it = matchingCartridges.iterator();
- if (!it.hasNext()) {
- return null;
- }
- C latest = it.next();
- while (it.hasNext()) {
- C cartridge = it.next();
- VersionedName latestName = new VersionedName(latest.getName());
- VersionedName cartridgeName = new VersionedName(cartridge.getName());
- switch (latestName.compareTo(cartridgeName)) {
- case 0:
- case 1:
- break;
- case -1:
- latest = cartridge;
- break;
- }
- }
- return latest;
- }
-
- protected class VersionedName implements Comparable {
-
- private Pattern versionPattern = Pattern.compile(
- "(([^" + ICartridge.NAME_VERSION_DELIMITER + " ]+" + ICartridge.NAME_VERSION_DELIMITER + ")*([^"
- + ICartridge.NAME_VERSION_DELIMITER + "]+))" + ICartridge.NAME_VERSION_DELIMITER
- + "([0-9a-zA-Z]+)\\.{0,1}([0-9a-zA-Z]*)");
- private Collator collator = Collator.getInstance();
-
- private String name;
- private String major;
- private String minor;
-
- protected VersionedName(String name) {
- Matcher matcher = versionPattern.matcher(name);
- if (!matcher.matches()) {
- this.name = name;
- return;
- }
-
- this.name = matcher.group(1);
- if (matcher.groupCount() >= 4) {
- this.major = matcher.group(4);
- if (matcher.groupCount() >= 5) {
- this.minor = matcher.group(5);
- }
- }
- }
-
- public String getName() {
- return name;
- }
-
- public boolean hasVersion() {
- return major != null;
- }
-
- public String getMajor() {
- return major;
- }
-
- public String getMinor() {
- return minor;
- }
-
- @Override
- public int compareTo(VersionedName other) {
- int result = collator.compare(getName(), other.getName());
- if (result != 0) {
- return result;
- }
-
- result = collator.compare(major, other.getMajor());
- if (result != 0) {
- return result;
- }
-
- return collator.compare(minor, other.getMinor());
- }
- }
-
- public Collection allStandaloneCartridges(IApplication application) {
- Assert.notNull(application);
- return getConnection(application).getStandaloneCartridges();
- }
-
- @Override
- public int hashCode() {
- final int prime = 31;
- int result = 1;
- result = prime * result + ((nameConstraint == null) ? 0 : nameConstraint.hashCode());
- return result;
- }
-
- @Override
- public boolean equals(Object obj) {
- if (this == obj) {
- return true;
- }
- if (obj == null) {
- return false;
- }
- if (!(obj instanceof LatestVersionQuery)) {
- return false;
- }
- LatestVersionQuery other = (LatestVersionQuery) obj;
- if (nameConstraint == null) {
- if (other.nameConstraint != null) {
- return false;
- }
- } else if (!nameConstraint.equals(other.nameConstraint)) {
- return false;
- }
- return true;
- }
-}
diff --git a/src/main/java/com/openshift/client/cartridge/selector/StringPropertyQuery.java b/src/main/java/com/openshift/client/cartridge/selector/StringPropertyQuery.java
deleted file mode 100644
index 07af556c..00000000
--- a/src/main/java/com/openshift/client/cartridge/selector/StringPropertyQuery.java
+++ /dev/null
@@ -1,58 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2012 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.client.cartridge.selector;
-
-import java.util.regex.Pattern;
-
-import com.openshift.client.cartridge.ICartridge;
-import com.openshift.client.cartridge.IEmbeddableCartridge;
-import com.openshift.client.cartridge.IStandaloneCartridge;
-import com.openshift.internal.client.cartridge.AbstractCartridgeQuery;
-import com.openshift.internal.client.utils.Assert;
-
-/**
- * A constraint that shall match available cartridges by url.
- *
- * @author Andre Dietisheim
- *
- * @see IEmbeddableCartridge
- * @see IStandaloneCartridge
- */
-public abstract class StringPropertyQuery extends AbstractCartridgeQuery {
-
- private final Pattern namePattern;
-
- public StringPropertyQuery(final String propertyPattern) {
- Assert.isTrue(propertyPattern != null);
- this.namePattern = Pattern.compile(propertyPattern);
- }
-
-
-
- public StringPropertyQuery(Pattern pattern) {
- Assert.isTrue(pattern != null);
- this.namePattern = pattern;
- }
-
- @Override
- public boolean matches(C cartridge) {
- if (cartridge == null) {
- return false;
- }
- String propertyValue = getProperty(cartridge);
- if (propertyValue == null) {
- return namePattern == null;
- }
- return namePattern.matcher(propertyValue).matches();
- }
-
- protected abstract String getProperty(C cartridge);
-}
diff --git a/src/main/java/com/openshift/client/cartridge/selector/UrlPropertyQuery.java b/src/main/java/com/openshift/client/cartridge/selector/UrlPropertyQuery.java
deleted file mode 100644
index 93e9523e..00000000
--- a/src/main/java/com/openshift/client/cartridge/selector/UrlPropertyQuery.java
+++ /dev/null
@@ -1,34 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2013 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.client.cartridge.selector;
-
-import java.util.regex.Pattern;
-
-import com.openshift.client.cartridge.IEmbeddedCartridge;
-import com.openshift.internal.client.response.CartridgeResourceProperty;
-
-/**
- * @author André Dietisheim
- */
-public class UrlPropertyQuery extends CartridgePropertyQuery {
-
- private static final Pattern NAME_URL_PATTERN = Pattern.compile("url", Pattern.CASE_INSENSITIVE);
-
- @Override
- public CartridgeResourceProperty getMatchingProperty(IEmbeddedCartridge embeddedCartridge) {
- for (CartridgeResourceProperty property : embeddedCartridge.getProperties().getAll()) {
- if (NAME_URL_PATTERN.matcher(property.getName()).find()) {
- return property;
- }
- }
- return null;
- }
-}
\ No newline at end of file
diff --git a/src/main/java/com/openshift/client/configuration/AbstractOpenshiftConfiguration.java b/src/main/java/com/openshift/client/configuration/AbstractOpenshiftConfiguration.java
deleted file mode 100755
index bd0fe743..00000000
--- a/src/main/java/com/openshift/client/configuration/AbstractOpenshiftConfiguration.java
+++ /dev/null
@@ -1,197 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2011 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.client.configuration;
-
-import java.io.File;
-import java.io.FileNotFoundException;
-import java.io.FileReader;
-import java.io.FileWriter;
-import java.io.IOException;
-import java.io.Writer;
-import java.util.Properties;
-import java.util.regex.Matcher;
-import java.util.regex.Pattern;
-
-import com.openshift.internal.client.utils.StreamUtils;
-import com.openshift.internal.client.utils.UrlUtils;
-
-/**
- * @author André Dietisheim
- * @author Corey Daley
- */
-public abstract class AbstractOpenshiftConfiguration implements IOpenShiftConfiguration {
-
- protected static final String KEY_RHLOGIN = "default_rhlogin";
- protected static final String KEY_LIBRA_SERVER = "libra_server";
- protected static final String KEY_LIBRA_DOMAIN = "libra_domain";
-
-
- protected static final String KEY_PASSWORD = "rhpassword";
- protected static final String KEY_CLIENT_ID = "client_id";
-
- protected static final String KEY_TIMEOUT = "timeout";
- protected static final String DEFAULT_OPENSHIFT_TIMEOUT = "180000"; //3 minutes
-
- private static final Pattern QUOTED_REGEX = Pattern.compile("['\"]*([^'\"]+)['\"]*");
- private static final char SINGLEQUOTE = '\'';
-
- private static final String SYSPROPERTY_PROXY_PORT = "proxyPort";
- private static final String SYSPROPERTY_PROXY_HOST = "proxyHost";
- private static final String SYSPROPERTY_PROXY_SET = "proxySet";
-
- private Properties properties;
- private File file;
-
- // TODO: implement
- private boolean doSSLChecks = false;
-
- protected AbstractOpenshiftConfiguration() throws FileNotFoundException, IOException {
- this(null, null);
- }
-
- protected AbstractOpenshiftConfiguration(IOpenShiftConfiguration parentConfiguration) throws FileNotFoundException,
- IOException {
- this(null, parentConfiguration);
- }
-
- protected AbstractOpenshiftConfiguration(File file, IOpenShiftConfiguration parentConfiguration)
- throws FileNotFoundException, IOException {
- initProperties(file, parentConfiguration == null ? null : parentConfiguration.getProperties());
- }
-
- protected void initProperties(File file) throws FileNotFoundException, IOException {
- initProperties(file, null);
- }
-
- protected void initProperties(Properties defaultProperties) throws FileNotFoundException, IOException {
- initProperties(null, defaultProperties);
- }
-
- protected void initProperties(File file, Properties defaultProperties) throws FileNotFoundException, IOException {
- this.file = file;
- this.properties = getProperties(file, defaultProperties);
- }
-
- protected Properties getProperties(File file, Properties defaultProperties)
- throws FileNotFoundException, IOException {
-
- if (file == null
- || !file.canRead()) {
- return new Properties(defaultProperties);
- }
-
- FileReader reader = null;
- try {
- Properties properties = new Properties(defaultProperties);
- reader = new FileReader(file);
- properties.load(reader);
- return properties;
- } finally {
- StreamUtils.close(reader);
- }
- }
-
- protected File getFile() {
- return file;
- }
-
- public Properties getProperties() {
- return properties;
- }
-
- public void save() throws IOException {
- if (file == null) {
- return;
- }
- Writer writer = null;
- try {
- writer = new FileWriter(file);
- properties.store(writer, "");
- } finally {
- StreamUtils.close(writer);
- }
- }
-
- public void setRhlogin(String rhlogin) {
- properties.put(KEY_RHLOGIN, rhlogin);
- }
-
- public String getRhlogin() {
- return removeQuotes(properties.getProperty(KEY_RHLOGIN));
- }
-
- public void setLibraServer(String libraServer) {
- properties.put(KEY_LIBRA_SERVER, ensureIsSingleQuoted(libraServer));
- }
-
- public String getLibraServer() {
- return UrlUtils.ensureStartsWithHttps(removeQuotes(properties.getProperty(KEY_LIBRA_SERVER)));
- }
-
- public void setLibraDomain(String libraDomain) {
- properties.put(KEY_LIBRA_DOMAIN, ensureIsSingleQuoted(libraDomain));
- }
-
- public String getLibraDomain() {
- return removeQuotes(properties.getProperty(KEY_LIBRA_DOMAIN));
- }
-
- public Integer getTimeout() {
- return Integer.parseInt(properties.getProperty(KEY_TIMEOUT));
- }
-
- protected String ensureIsSingleQuoted(String value) {
- return SINGLEQUOTE + removeQuotes(value) + SINGLEQUOTE;
- }
-
- protected String removeQuotes(String value) {
- if (value == null) {
- return null;
- }
- Matcher matcher = QUOTED_REGEX.matcher(value);
- if (matcher.find()
- && matcher.groupCount() == 1) {
- return matcher.group(1);
- } else {
- return value;
- }
- }
-
- public String getPassword() {
- return properties.getProperty(KEY_PASSWORD);
- }
-
- public String getClientId() {
- return properties.getProperty(KEY_CLIENT_ID);
- }
-
- public void setEnableSSLCertChecks(boolean doSSLChecks) {
- this.doSSLChecks = doSSLChecks;
- }
-
- public boolean getProxySet() {
- String set = properties.getProperty(SYSPROPERTY_PROXY_SET);
-
- if (set != null)
- return Boolean.parseBoolean(removeQuotes(set));
- else
- return false;
- }
-
- public String getProxyHost() {
- return removeQuotes(properties.getProperty(SYSPROPERTY_PROXY_HOST));
- }
-
- public String getProxyPort() {
- return removeQuotes(properties.getProperty(SYSPROPERTY_PROXY_PORT));
- }
-
-}
diff --git a/src/main/java/com/openshift/client/configuration/DefaultConfiguration.java b/src/main/java/com/openshift/client/configuration/DefaultConfiguration.java
deleted file mode 100755
index 693b9189..00000000
--- a/src/main/java/com/openshift/client/configuration/DefaultConfiguration.java
+++ /dev/null
@@ -1,41 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2011 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.client.configuration;
-
-import java.io.File;
-import java.io.IOException;
-import java.util.Properties;
-
-import com.openshift.client.IHttpClient;
-import com.openshift.client.OpenShiftException;
-
-/**
- * @author André Dietisheim
- * @author Corey Daley
- */
-public class DefaultConfiguration extends AbstractOpenshiftConfiguration {
-
- public static final String LIBRA_SERVER = "openshift.redhat.com";
- public static final String LIBRA_DOMAIN = "rhcloud.com";
-
- public DefaultConfiguration() throws OpenShiftException, IOException {
- super();
- }
-
- @Override
- protected Properties getProperties(File file, Properties defaultProperties) {
- Properties properties = new Properties();
- properties.put(KEY_LIBRA_SERVER, LIBRA_SERVER);
- properties.put(KEY_LIBRA_DOMAIN, LIBRA_DOMAIN);
- properties.put(KEY_TIMEOUT, DEFAULT_OPENSHIFT_TIMEOUT);
- return properties;
- }
-}
diff --git a/src/main/java/com/openshift/client/configuration/IOpenShiftConfiguration.java b/src/main/java/com/openshift/client/configuration/IOpenShiftConfiguration.java
deleted file mode 100644
index d94304b0..00000000
--- a/src/main/java/com/openshift/client/configuration/IOpenShiftConfiguration.java
+++ /dev/null
@@ -1,36 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2011 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.client.configuration;
-
-import java.util.Properties;
-
-/**
- * @author André Dietisheim
- * @author Corey Daley
- */
-public interface IOpenShiftConfiguration {
-
- public abstract String getRhlogin();
-
- public abstract void setRhlogin(String rhlogin);
-
- public abstract String getLibraServer();
-
- public abstract void setLibraServer(String libraServer);
-
- public abstract String getLibraDomain();
-
- public Integer getTimeout();
-
- public abstract void setLibraDomain(String libraDomain);
-
- public Properties getProperties();
-}
\ No newline at end of file
diff --git a/src/main/java/com/openshift/client/configuration/OpenShiftConfiguration.java b/src/main/java/com/openshift/client/configuration/OpenShiftConfiguration.java
deleted file mode 100644
index 3a63a8c1..00000000
--- a/src/main/java/com/openshift/client/configuration/OpenShiftConfiguration.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2011 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.client.configuration;
-
-import java.io.FileNotFoundException;
-import java.io.IOException;
-
-import com.openshift.client.OpenShiftException;
-
-/**
- * @author André Dietisheim
- */
-public class OpenShiftConfiguration extends AbstractOpenshiftConfiguration {
-
- public OpenShiftConfiguration() throws FileNotFoundException, IOException, OpenShiftException {
- super(new SystemProperties(
- new UserConfiguration(
- new SystemConfiguration(
- new DefaultConfiguration()))));
- }
-}
diff --git a/src/main/java/com/openshift/client/configuration/SystemConfiguration.java b/src/main/java/com/openshift/client/configuration/SystemConfiguration.java
deleted file mode 100644
index 0c065c25..00000000
--- a/src/main/java/com/openshift/client/configuration/SystemConfiguration.java
+++ /dev/null
@@ -1,31 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2011 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.client.configuration;
-
-import java.io.File;
-import java.io.IOException;
-
-import com.openshift.client.OpenShiftException;
-
-/**
- * The system wide OpenShift configuration that is at /etc/express.conf
- *
- * @author André Dietisheim
- */
-public class SystemConfiguration extends AbstractOpenshiftConfiguration {
-
- private static final String CONFIGURATION_FOLDER = File.separatorChar + "etc" + File.separatorChar + "openshift";
- private static final String CONFIGURATION_FILE = "express.conf";
-
- public SystemConfiguration(IOpenShiftConfiguration parentConfiguration) throws OpenShiftException, IOException {
- super(new File(CONFIGURATION_FOLDER, CONFIGURATION_FILE), parentConfiguration);
- }
-}
diff --git a/src/main/java/com/openshift/client/configuration/SystemProperties.java b/src/main/java/com/openshift/client/configuration/SystemProperties.java
deleted file mode 100644
index d123b618..00000000
--- a/src/main/java/com/openshift/client/configuration/SystemProperties.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2011 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.client.configuration;
-
-import java.io.File;
-import java.io.IOException;
-import java.util.Properties;
-
-import com.openshift.client.OpenShiftException;
-
-/**
- * @author André Dietisheim
- * @author Corey Daley
- */
-public class SystemProperties extends AbstractOpenshiftConfiguration {
-
- protected static final String KEY_OPENSHIFT_TIMEOUT = "express.timeout";
-
- public SystemProperties(IOpenShiftConfiguration parentConfiguration) throws OpenShiftException, IOException {
- super(parentConfiguration);
- }
-
- @Override
- protected Properties getProperties(File file, Properties defaultProperties) {
- Properties properties = new Properties(defaultProperties);
- copySystemProperty(KEY_LIBRA_DOMAIN, properties);
- copySystemProperty(KEY_LIBRA_SERVER, properties);
- copySystemProperty(KEY_RHLOGIN, properties);
- copySystemProperty(KEY_PASSWORD, properties);
- copySystemProperty(KEY_CLIENT_ID, properties);
- copySystemProperty(KEY_OPENSHIFT_TIMEOUT, properties);
- return properties;
- }
-
- private void copySystemProperty(String key, Properties properties) {
- Object value = System.getProperties().get(key);
- if (key.equals(KEY_OPENSHIFT_TIMEOUT) && value != null) {
- properties.put(KEY_TIMEOUT, value);
- } else if (value != null) {
- properties.put(key, value);
- }
- }
-}
diff --git a/src/main/java/com/openshift/client/configuration/UserConfiguration.java b/src/main/java/com/openshift/client/configuration/UserConfiguration.java
deleted file mode 100644
index d61e9342..00000000
--- a/src/main/java/com/openshift/client/configuration/UserConfiguration.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2011 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.client.configuration;
-
-import java.io.File;
-import java.io.IOException;
-
-import com.openshift.client.OpenShiftException;
-
-/**
- * @author André Dietisheim
- */
-public class UserConfiguration extends AbstractOpenshiftConfiguration {
-
- private static final String CONFIGURATION_FOLDER = ".openshift";
- private static final String CONFIGURATION_FILE = "express.conf";
- private static final String PROPERTY_USERHOME = "user.home";
-
- public UserConfiguration(SystemConfiguration systemConfiguration) throws OpenShiftException, IOException {
- super(new File(System.getProperty(PROPERTY_USERHOME) + File.separatorChar + CONFIGURATION_FOLDER, CONFIGURATION_FILE), systemConfiguration);
- }
-}
diff --git a/src/main/java/com/openshift/client/utils/Base64Coder.java b/src/main/java/com/openshift/client/utils/Base64Coder.java
deleted file mode 100644
index 630e1da6..00000000
--- a/src/main/java/com/openshift/client/utils/Base64Coder.java
+++ /dev/null
@@ -1,83 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2013 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.client.utils;
-
-import javax.xml.bind.DatatypeConverter;
-
-import com.openshift.internal.client.utils.StringUtils;
-
-/**
- * A utility class that offers methods to encode and decode strings from and to
- * base64
- *
- * @author Andre Dietisheim
- */
-public class Base64Coder {
-
- private Base64Coder() {
- // inhibit instantiation
- }
-
- /**
- * Encodes the given byte array to a base64 encoded String
- *
- * @param unencoded
- * the array of unencoded bytes that shall get encoded
- * @return the encoded string
- */
- public static String encode(byte[] unencoded) {
- if (unencoded == null) {
- return null;
- } else if (unencoded.length == 0) {
- return new String();
- }
- return DatatypeConverter.printBase64Binary(unencoded);
- }
-
- /**
- * Encodes the given string to a base64 encoded string. Returns
- * null if the given string is null.
- *
- * @param unencoded
- * @return
- */
- public static String encode(String unencoded) {
- if (StringUtils.isEmpty(unencoded)) {
- return unencoded;
- }
- return encode(unencoded.getBytes());
- }
-
- public static String decode(byte[] encoded) {
- if (encoded == null
- || encoded.length == 0) {
- return new String();
- }
- return decode(new String(encoded));
- }
-
- /**
- * Decodes the given base64 encoded string. Returns null if the
- * given string is null.
- *
- * @param encoded
- * the base64 encoded string
- * @return the decoded string
- */
- public static String decode(String encoded) {
- if (StringUtils.isEmpty(encoded)) {
- return encoded;
- }
- byte[] encodedBytes = DatatypeConverter.parseBase64Binary(encoded);
- return new String(encodedBytes);
- }
-
-}
diff --git a/src/main/java/com/openshift/client/utils/HostUtils.java b/src/main/java/com/openshift/client/utils/HostUtils.java
deleted file mode 100644
index 073c5cd6..00000000
--- a/src/main/java/com/openshift/client/utils/HostUtils.java
+++ /dev/null
@@ -1,33 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2011 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.client.utils;
-
-import java.net.InetAddress;
-import java.net.MalformedURLException;
-import java.net.URL;
-import java.net.UnknownHostException;
-
-/**
- * @author Andre Dietisheim
- */
-public class HostUtils {
-
- public static boolean canResolv(String urlString) throws MalformedURLException {
- try {
- URL url = new URL(urlString);
- String host = url.getHost();
- return InetAddress.getByName(host) != null;
- } catch (UnknownHostException e) {
- return false;
- }
- }
-
-}
diff --git a/src/main/java/com/openshift/client/utils/OpenShiftResourceUtils.java b/src/main/java/com/openshift/client/utils/OpenShiftResourceUtils.java
deleted file mode 100644
index 92040a66..00000000
--- a/src/main/java/com/openshift/client/utils/OpenShiftResourceUtils.java
+++ /dev/null
@@ -1,36 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2013 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.client.utils;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import com.openshift.client.cartridge.ICartridge;
-
-/**
- * @author Andre Dietisheim
- */
-public class OpenShiftResourceUtils {
-
- public static List toNames(ICartridge... cartridges) {
- List cartridgeNames = new ArrayList();
- if (cartridges == null) {
- return cartridgeNames;
- }
- for (ICartridge cartridge : cartridges) {
- if (cartridge == null) {
- continue;
- }
- cartridgeNames.add(cartridge.getName());
- }
- return cartridgeNames;
- }
-}
diff --git a/src/main/java/com/openshift/client/utils/RFC822DateUtils.java b/src/main/java/com/openshift/client/utils/RFC822DateUtils.java
deleted file mode 100644
index e95e5f22..00000000
--- a/src/main/java/com/openshift/client/utils/RFC822DateUtils.java
+++ /dev/null
@@ -1,66 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2011 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.client.utils;
-
-import java.util.Date;
-import java.util.GregorianCalendar;
-
-import javax.xml.datatype.DatatypeConfigurationException;
-import javax.xml.datatype.DatatypeFactory;
-
-/**
- * @author André Dietisheim
- */
-public class RFC822DateUtils {
-
- /**
- * Returns a date instance for a given timestamp string that complies to the
- * RFC 822 standard
- *
- * @param rfc822DateString
- * @return
- * @throws DatatypeConfigurationException
- */
- public static Date getDate(String rfc822DateString) throws DatatypeConfigurationException {
- // SimpleDateFormat can't handle RFC822 (-04:00 instead of GMT-04:00)
- // date formats
- //
- // SimpleDateFormat dateFormat = new
- // SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ");
- // return dateFormat.parse(propertyNode.asString());
- GregorianCalendar calendar =
- DatatypeFactory.newInstance()
- .newXMLGregorianCalendar(rfc822DateString)
- .toGregorianCalendar();
- return calendar.getTime();
- }
-
- /**
- * Returns a date instance for a given timestamp string that complies to the
- * RFC 822 standard. If an error occurrs, null is returned an
- * no exception is thrown.
- *
- * @param rfc822DateString
- * @return
- */
- public static Date safeGetDate(String rfc822DateString) {
- try {
- return getDate(rfc822DateString);
- } catch (DatatypeConfigurationException e) {
- return null;
- }
- }
-
- public static String getString(Date date) throws DatatypeConfigurationException {
- GregorianCalendar calendar = (GregorianCalendar) GregorianCalendar.getInstance();
- return DatatypeFactory.newInstance().newXMLGregorianCalendar(calendar).toXMLFormat();
- }
-}
diff --git a/src/main/java/com/openshift/internal/client/APIResource.java b/src/main/java/com/openshift/internal/client/APIResource.java
deleted file mode 100755
index 2eff16ee..00000000
--- a/src/main/java/com/openshift/internal/client/APIResource.java
+++ /dev/null
@@ -1,288 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2012 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.internal.client;
-
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.List;
-import java.util.Map;
-import java.util.concurrent.ExecutorService;
-import java.util.concurrent.Executors;
-
-import com.openshift.client.IDomain;
-import com.openshift.client.IHttpClient;
-import com.openshift.client.IOpenShiftConnection;
-import com.openshift.client.IUser;
-import com.openshift.client.OpenShiftException;
-import com.openshift.client.cartridge.EmbeddableCartridge;
-import com.openshift.client.cartridge.IEmbeddableCartridge;
-import com.openshift.client.cartridge.IStandaloneCartridge;
-import com.openshift.client.cartridge.StandaloneCartridge;
-import com.openshift.internal.client.httpclient.request.Parameter;
-import com.openshift.internal.client.httpclient.request.StringParameter;
-import com.openshift.internal.client.response.CartridgeResourceDTO;
-import com.openshift.internal.client.response.DomainResourceDTO;
-import com.openshift.internal.client.response.Link;
-import com.openshift.internal.client.response.UserResourceDTO;
-import com.openshift.internal.client.utils.Assert;
-import com.openshift.internal.client.utils.CollectionUtils;
-import com.openshift.internal.client.utils.IOpenShiftJsonConstants;
-
-/**
- * @author Andre Dietisheim
- * @author Xavier Coulon
- */
-public class APIResource extends AbstractOpenShiftResource implements IOpenShiftConnection {
-
- private static final String SYSPROPERTY_PROXY_PORT = "proxyPort";
- private static final String SYSPROPERTY_PROXY_HOST = "proxyHost";
- private static final String SYSPROPERTY_PROXY_SET = "proxySet";
-
- private final String login;
- private final String password;
- private List domains;
- private UserResource user;
- //TODO: implement switch that allows to turn ssl checks on/off
- private boolean doSSLChecks = false;
- private final List standaloneCartridgeNames = new ArrayList();
- private final List embeddedCartridgeNames = new ArrayList();
- private final ExecutorService executorService;
-
- protected APIResource(final String login, final String password, final IRestService service,
- final Map links) {
- super(service, links, null);
- this.login = login;
- this.password = password;
- this.executorService = Executors.newFixedThreadPool(10);
- }
-
- protected final String getLogin() {
- return login;
- }
-
- protected final String getPassword() {
- return password;
- }
-
- public String getServer() {
- return getService().getPlatformUrl();
- }
-
- public void setEnableSSLCertChecks(boolean doSSLChecks) {
- this.doSSLChecks = doSSLChecks;
- }
-
- @Deprecated
- public void setProxySet(boolean proxySet) {
- if (proxySet) {
- System.setProperty(SYSPROPERTY_PROXY_SET, "true");
- } else {
- System.setProperty(SYSPROPERTY_PROXY_SET, "false");
- }
- }
-
- @Deprecated
- public void setProxyHost(String proxyHost) {
- System.setProperty(SYSPROPERTY_PROXY_HOST, proxyHost);
- }
-
- @Deprecated
- public void setProxyPort(String proxyPort) {
- Assert.notNull(proxyPort);
-
- System.setProperty(SYSPROPERTY_PROXY_PORT, proxyPort);
- }
-
- public IUser getUser() throws OpenShiftException {
- if (user == null) {
- this.user = new UserResource(this, new GetUserRequest().execute(), this.password);
- }
- return this.user;
- }
-
- public List getDomains() throws OpenShiftException {
- if (domains == null) {
- this.domains = loadDomains();
- }
- return CollectionUtils.toUnmodifiableCopy(this.domains);
- }
-
- private List loadDomains() throws OpenShiftException {
- List domains = new ArrayList();
- for (DomainResourceDTO domainDTO : new ListDomainsRequest().execute()) {
- domains.add(new DomainResource(domainDTO, this));
- }
- return domains;
- }
-
- public IDomain getDomain(String id) throws OpenShiftException {
- Assert.notNull(id);
-
- for (IDomain domain : getDomains()) {
- if (domain.getId().equals(id)) {
- return domain;
- }
- }
- return null;
- }
-
- public IDomain getDefaultDomain() {
- final List domains = getDomains();
- if (domains.size() > 0) {
- return domains.get(0);
- }
- return null;
- }
-
- public IDomain createDomain(String id) throws OpenShiftException {
- Assert.notNull(id);
-
- if (hasDomain(id)) {
- throw new OpenShiftException("Domain {0} already exists", id);
- }
-
- final DomainResourceDTO domainDTO = new AddDomainRequest().execute(id);
- final IDomain domain = new DomainResource(domainDTO, this);
- this.domains.add(domain);
- return domain;
- }
-
- public IDomain showDomain(String id) throws OpenShiftException {
- Assert.notNull(id);
-
- final DomainResourceDTO domainDTO = new ShowDomainRequest().execute(id);
- final IDomain domain = new DomainResource(domainDTO, this);
- // TODO: implement caching
- return domain;
- }
-
- public List getStandaloneCartridges() throws OpenShiftException {
- if (standaloneCartridgeNames.isEmpty()) {
- retrieveCartridges();
- }
- return standaloneCartridgeNames;
- }
-
- public List getEmbeddableCartridges() throws OpenShiftException {
- if (embeddedCartridgeNames.isEmpty()) {
- retrieveCartridges();
- }
- return CollectionUtils.toUnmodifiableCopy(embeddedCartridgeNames);
- }
-
- private void retrieveCartridges() throws OpenShiftException {
- final Map cartridgeDTOsByName = new GetCartridgesRequest().execute();
- for (CartridgeResourceDTO cartridgeDTO : cartridgeDTOsByName.values()) {
- // TODO replace by enum (standalone, embedded)
- switch (cartridgeDTO.getType()) {
- case STANDALONE:
- this.standaloneCartridgeNames.add(
- new StandaloneCartridge(
- cartridgeDTO.getName(), cartridgeDTO.getDisplayName(), cartridgeDTO.getDescription()));
- break;
- case EMBEDDED:
- this.embeddedCartridgeNames.add(
- new EmbeddableCartridge(
- cartridgeDTO.getName(), cartridgeDTO.getDisplayName(), cartridgeDTO.getDescription()));
- break;
- default:
- }
- }
- }
-
- @Override
- public void refresh() throws OpenShiftException {
- this.domains = null;
- }
-
- /**
- * Called after a domain has been destroyed
- *
- * @param domain
- * the domain to remove from the API's domains list.
- */
- protected void removeDomain(final IDomain domain) {
- this.domains.remove(domain);
- }
-
- protected boolean hasDomain(String name) throws OpenShiftException {
- return getDomain(name) != null;
- }
-
- public ExecutorService getExecutorService() {
- return executorService;
- }
-
- public void disconnect() {
- standaloneCartridgeNames.clear();
- embeddedCartridgeNames.clear();
- domains = null;
- executorService.shutdownNow();
- }
-
- private class AddDomainRequest extends ServiceRequest {
-
- private AddDomainRequest() throws OpenShiftException {
- super("ADD_DOMAIN");
- }
-
- private DomainResourceDTO execute(String namespace) throws OpenShiftException {
- return execute(new StringParameter(IOpenShiftJsonConstants.PROPERTY_ID, namespace));
- }
- }
-
- private class ListDomainsRequest extends ServiceRequest {
-
- private ListDomainsRequest() throws OpenShiftException {
- super("LIST_DOMAINS");
- }
-
- protected List execute() throws OpenShiftException {
- return super.execute();
- }
- }
-
- private class GetUserRequest extends ServiceRequest {
-
- private GetUserRequest() throws OpenShiftException {
- super("GET_USER");
- }
-
- protected UserResourceDTO execute() throws OpenShiftException {
- return super.execute();
- }
- }
-
- private class GetCartridgesRequest extends ServiceRequest {
-
- private GetCartridgesRequest() throws OpenShiftException {
- super("LIST_CARTRIDGES");
- }
-
- protected Map execute() throws OpenShiftException {
- return super.execute();
- }
- }
-
- private class ShowDomainRequest extends ServiceRequest {
-
- private ShowDomainRequest() throws OpenShiftException {
- super("SHOW_DOMAIN");
- }
-
- protected DomainResourceDTO execute(String id) throws OpenShiftException {
- List urlPathParameter = new Parameters().add("name", id).toList();
- return super.execute(IHttpClient.NO_TIMEOUT,
- urlPathParameter, // url path parameter
- Collections.emptyList()); // request body parameter
- }
- }
-}
diff --git a/src/main/java/com/openshift/internal/client/AbstractOpenShiftConnectionFactory.java b/src/main/java/com/openshift/internal/client/AbstractOpenShiftConnectionFactory.java
deleted file mode 100755
index bf9eeb7a..00000000
--- a/src/main/java/com/openshift/internal/client/AbstractOpenShiftConnectionFactory.java
+++ /dev/null
@@ -1,38 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2012 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.internal.client;
-
-import java.io.IOException;
-import java.util.Map;
-
-import com.openshift.client.HttpMethod;
-import com.openshift.client.IOpenShiftConnection;
-import com.openshift.client.OpenShiftException;
-import com.openshift.internal.client.response.Link;
-import com.openshift.internal.client.response.RestResponse;
-
-/**
- * Connection Factory, used to establish a connection and retrieve a user.
- *
- * @author Xavier Coulon
- * @author Andre Dietisheim
- *
- */
-public abstract class AbstractOpenShiftConnectionFactory {
-
- @SuppressWarnings("unchecked")
- protected IOpenShiftConnection getConnection(IRestService service, final String login, final String password) throws IOException, OpenShiftException {
- RestResponse response =
- (RestResponse) service.request(new Link("Get API", "/api", HttpMethod.GET));
- return new APIResource(login, password, service, (Map) response.getData());
- }
-
-}
diff --git a/src/main/java/com/openshift/internal/client/AbstractOpenShiftResource.java b/src/main/java/com/openshift/internal/client/AbstractOpenShiftResource.java
deleted file mode 100755
index 78d0fe23..00000000
--- a/src/main/java/com/openshift/internal/client/AbstractOpenShiftResource.java
+++ /dev/null
@@ -1,332 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2012 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.internal.client;
-
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Map;
-
-import com.openshift.client.ApplicationScale;
-import com.openshift.client.IGearProfile;
-import com.openshift.client.IOpenShiftResource;
-import com.openshift.client.Message;
-import com.openshift.client.Messages;
-import com.openshift.client.OpenShiftException;
-import com.openshift.client.OpenShiftRequestException;
-import com.openshift.client.cartridge.ICartridge;
-import com.openshift.client.cartridge.IEmbeddableCartridge;
-import com.openshift.client.cartridge.IStandaloneCartridge;
-import com.openshift.internal.client.httpclient.request.IMediaType;
-import com.openshift.internal.client.httpclient.request.Parameter;
-import com.openshift.internal.client.httpclient.request.ParameterValueArray;
-import com.openshift.internal.client.httpclient.request.ParameterValueMap;
-import com.openshift.internal.client.httpclient.request.StringParameter;
-import com.openshift.internal.client.response.Link;
-import com.openshift.internal.client.response.RestResponse;
-import com.openshift.internal.client.utils.IOpenShiftJsonConstants;
-import com.openshift.internal.client.utils.IOpenShiftParameterConstants;
-import com.openshift.internal.client.utils.StringUtils;
-import com.openshift.internal.client.utils.UrlUtils;
-
-/**
- * The Class AbstractOpenShiftResource.
- *
- * @author Xavier Coulon
- * @author Andre Dietisheim
- * @author Syed Iqbal
- */
-public abstract class AbstractOpenShiftResource implements IOpenShiftResource {
-
- /** The links. Null means collection is not loaded yet. */
- private Map links;
-
-
-
- /** The service. */
- private final IRestService service;
-
- private Messages messages;
-
- /**
- * Instantiates a new abstract open shift resource.
- *
- * @param service
- * the service
- */
- protected AbstractOpenShiftResource(final IRestService service) {
- this(service, null, null);
- }
-
- /**
- * Instantiates a new abstract open shift resource.
- *
- * @param service
- * the service
- * @param links
- * the links
- */
- protected AbstractOpenShiftResource(final IRestService service, final Map links, final Messages messages) {
- this.service = service;
- this.links = links;
- this.messages = messages;
- }
-
- protected void setLinks(Map links) {
- this.links = links;
- }
-
- /**
- * Gets the links.
- *
- * @return the links
- * @throws OpenShiftException
- */
- Map getLinks() throws OpenShiftException {
- return links;
- }
-
- /**
- * Gets the service.
- *
- * @return the service
- */
- IRestService getService() {
- return service;
- }
-
- /**
- * Gets the link for the given name. Throws OpenShiftRequestException if no
- * link with this name exists within this resource.
- *
- * This method is protected for testing purposes only.
- *
- * @param linkName
- * the name of the link that shall get retrieved
- * @return the link with the given name
- * @throws OpenShiftException
- * thrown if no link with the given name exists
- */
- protected Link getLink(String linkName) throws OpenShiftException {
- Link link = null;
- if (getLinks() != null) {
- link = getLinks().get(linkName);
- }
- if (link == null) {
- throw new OpenShiftRequestException(
- "Could not find link \"{0}\" in resource \"{1}\"", linkName, getClass().getSimpleName());
- }
- return link;
- }
-
- boolean areLinksLoaded() {
- return links != null;
- }
-
- protected class ServiceRequest {
-
- protected final String linkName;
-
- protected ServiceRequest(final String linkName) {
- this.linkName = linkName;
- }
-
- protected DTO execute(final Parameter... parameters) throws OpenShiftException {
- return getData(getService().request(getLink(linkName), parameters));
- }
-
- protected DTO execute(final int timeout, final Parameter... parameters) throws OpenShiftException {
- return getData(getService().request(getLink(linkName), timeout, parameters));
- }
-
- protected DTO execute(final int timeout, final IMediaType mediaType, final Parameter... parameters)
- throws OpenShiftException {
- return getData(getService().request(getLink(linkName), timeout, mediaType, parameters));
- }
-
- protected DTO execute(final List urlParameters, final Parameter... parameters) throws OpenShiftException {
- return getData(getService().request(getLink(linkName), urlParameters, parameters));
- }
-
- protected DTO execute(final int timeout, List urlParameters, final Parameter... parameters) throws OpenShiftException {
- return getData(getService().request(getLink(linkName), timeout, urlParameters, parameters));
- }
-
- protected DTO execute(final int timeout, List urlPathParameters, List urlParameters, final Parameter... parameters) throws OpenShiftException {
- return getData(getService().request(getLink(linkName), timeout, urlPathParameters, urlParameters, parameters));
- }
-
- protected DTO execute(final int timeout, final IMediaType mediaType, List urlParameter, final Parameter... parameters) throws OpenShiftException {
- return getData(getService().request(getLink(linkName), timeout, mediaType, urlParameter, parameters));
- }
-
- protected DTO execute(final int timeout, final IMediaType mediaType, List urlPathParameter, List urlParameter, final Parameter... parameters) throws OpenShiftException {
- return getData(getService().request(getLink(linkName), timeout, mediaType, urlPathParameter, urlParameter, parameters));
- }
-
- protected DTO getData(RestResponse response) {
- // in some cases, there is not response body, just a return code to
- // indicate that the operation was successful (e.g.: delete domain)
- if (response == null) {
- return null;
- }
-
- return response.getData();
- }
-
- }
-
- protected static class Parameters {
-
- private List parameters = new ArrayList();
-
- protected Parameters addCartridge(IEmbeddableCartridge embeddable) {
- ParameterValueMap parameter = createCartridgeParameter(embeddable);
- return add(new Parameter(IOpenShiftJsonConstants.PROPERTY_CARTRIDGE, parameter));
- }
-
- protected Parameters addCartridges(IStandaloneCartridge standalone, IEmbeddableCartridge[] embeddables) {
- ParameterValueArray parameters = new ParameterValueArray();
- if (standalone != null) {
- parameters.add(createCartridgeParameter(standalone));
- }
- if (embeddables != null
- && embeddables.length > 0) {
- parameters.addAll(createCartridgeParameters(embeddables));
- }
-
- return add(new Parameter(IOpenShiftJsonConstants.PROPERTY_CARTRIDGES, parameters));
- }
-
- protected Parameters addEnvironmentVariables(Map environmentVariables){
- if (environmentVariables == null
- || environmentVariables.isEmpty()) {
- return this;
- }
-
- ParameterValueArray parameters = new ParameterValueArray()
- .addAll(createEnvironmentVariableParameters(environmentVariables));
- return add(new Parameter(IOpenShiftJsonConstants.PROPERTY_ENVIRONMENT_VARIABLES, parameters));
- }
-
-
- private List createEnvironmentVariableParameters(Map environmentVariables){
- List parameters = new ArrayList();
- if(environmentVariables==null ||environmentVariables.isEmpty()){
- return parameters;
- }
- for(Map.Entry environmentVariable : environmentVariables.entrySet()){
- parameters.add(createEnvironmentVariableParameter(environmentVariable.getKey(),environmentVariable.getValue()));
- }
- return parameters;
- }
- private ParameterValueMap createEnvironmentVariableParameter(String name,String value){
- ParameterValueMap parameters = new ParameterValueMap();
- parameters.add(IOpenShiftJsonConstants.PROPERTY_NAME,name)
- .add(IOpenShiftJsonConstants.PROPERTY_VALUE, value);
- return parameters;
- }
-
- /**
- * Returns a map parameter for a given cartridge.
- * @param cartridge the cartridge that a request parameter shall get created for
- * @return the parameter
- */
- private ParameterValueMap createCartridgeParameter(ICartridge cartridge) {
- if (cartridge.isDownloadable()) {
- return new ParameterValueMap().add(IOpenShiftJsonConstants.PROPERTY_URL, UrlUtils.toString(cartridge.getUrl()));
- } else {
- return new ParameterValueMap().add(IOpenShiftJsonConstants.PROPERTY_NAME, cartridge.getName());
- }
- }
-
- private List createCartridgeParameters(ICartridge[] cartridges) {
- List parameters = new ArrayList();
- if (cartridges == null
- || cartridges.length == 0) {
- return parameters;
- }
-
- for (ICartridge cartridge : cartridges) {
- ParameterValueMap parameter = createCartridgeParameter(cartridge);
- if (parameter != null) {
- parameters.add(parameter);
- }
- }
-
- return parameters;
- }
-
- protected Parameters scale(ApplicationScale scale) {
- if (scale == null) {
- return this;
- }
- return add(new StringParameter(IOpenShiftJsonConstants.PROPERTY_SCALE, scale.getValue()));
- }
-
- protected Parameters gearProfile(IGearProfile gearProfile) {
- if (gearProfile == null) {
- return this;
- }
- return add(new StringParameter(IOpenShiftJsonConstants.PROPERTY_GEAR_PROFILE, gearProfile.getName()));
- }
-
- protected Parameters include(String includedResource) {
- add(IOpenShiftParameterConstants.PARAMETER_INCLUDE, includedResource);
- return this;
- }
-
- protected Parameters add(String name, String value) {
- if (StringUtils.isEmpty(value)) {
- return this;
- }
- return add(new StringParameter(name, value));
- }
-
- protected Parameters add(Parameter parameter) {
- if (parameter == null
- || StringUtils.isEmpty(parameter.getName())
- || parameter.getValue() == null
- || parameter.getValue().getValue() == null) {
- return this;
- }
-
- parameters.add(parameter);
- return this;
- }
-
- protected Parameter[] toArray() {
- return parameters.toArray(new Parameter[parameters.size()]);
- }
-
- protected List toList() {
- return parameters;
- }
- }
-
- public boolean hasCreationLog() {
- return messages.hasMessages();
- }
-
- public String getCreationLog() {
- if (!hasCreationLog()) {
- return null;
- }
- StringBuilder builder = new StringBuilder();
- for (Message message : messages.getAll()) {
- builder.append(message.getText());
- }
- return builder.toString();
- }
-
- public Messages getMessages() {
- return messages;
- }
-}
diff --git a/src/main/java/com/openshift/internal/client/ApplicationResource.java b/src/main/java/com/openshift/internal/client/ApplicationResource.java
deleted file mode 100755
index 86ea2a6d..00000000
--- a/src/main/java/com/openshift/internal/client/ApplicationResource.java
+++ /dev/null
@@ -1,1165 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2011 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.internal.client;
-
-import java.io.BufferedReader;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.InputStreamReader;
-import java.net.MalformedURLException;
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Collections;
-import java.util.Date;
-import java.util.HashMap;
-import java.util.LinkedHashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.concurrent.Callable;
-import java.util.concurrent.Future;
-import java.util.regex.Matcher;
-import java.util.regex.Pattern;
-
-import javax.xml.datatype.DatatypeConfigurationException;
-
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-import com.jcraft.jsch.Channel;
-import com.jcraft.jsch.ChannelExec;
-import com.jcraft.jsch.JSchException;
-import com.jcraft.jsch.Session;
-import com.openshift.client.ApplicationScale;
-import com.openshift.client.IApplication;
-import com.openshift.client.IApplicationPortForwarding;
-import com.openshift.client.IDomain;
-import com.openshift.client.IEnvironmentVariable;
-import com.openshift.client.IGearGroup;
-import com.openshift.client.IGearProfile;
-import com.openshift.client.IOpenShiftConnection;
-import com.openshift.client.Messages;
-import com.openshift.client.OpenShiftException;
-import com.openshift.client.OpenShiftSSHOperationException;
-import com.openshift.client.cartridge.ICartridge;
-import com.openshift.client.cartridge.IEmbeddableCartridge;
-import com.openshift.client.cartridge.IEmbeddedCartridge;
-import com.openshift.client.cartridge.IStandaloneCartridge;
-import com.openshift.client.cartridge.StandaloneCartridge;
-import com.openshift.client.utils.HostUtils;
-import com.openshift.client.utils.RFC822DateUtils;
-import com.openshift.internal.client.httpclient.request.StringParameter;
-import com.openshift.internal.client.response.ApplicationResourceDTO;
-import com.openshift.internal.client.response.CartridgeResourceDTO;
-import com.openshift.internal.client.response.EnvironmentVariableResourceDTO;
-import com.openshift.internal.client.response.GearGroupResourceDTO;
-import com.openshift.internal.client.response.Link;
-import com.openshift.internal.client.ssh.ApplicationPortForwarding;
-import com.openshift.internal.client.utils.Assert;
-import com.openshift.internal.client.utils.IOpenShiftJsonConstants;
-import com.openshift.internal.client.utils.StringUtils;
-
-/**
- * The ApplicationResource object is an implementation of com.openshift.client.IApplication, and provides
- * a runtime model for the real application that resides on the OpenShift platform being accessed.
- *
- * @author André Dietisheim
- * @author Syed Iqbal
- * @author Martes G Wigglesworth
- */
-public class ApplicationResource extends AbstractOpenShiftResource implements IApplication {
-
- private static final long APPLICATION_WAIT_RETRY_DELAY = 2 * 1024;
- private static final Logger LOGGER = LoggerFactory.getLogger(ApplicationResource.class);
-
- private static final String LINK_DELETE_APPLICATION = "DELETE";
- private static final String LINK_START_APPLICATION = "START";
- private static final String LINK_STOP_APPLICATION = "STOP";
- private static final String LINK_FORCE_STOP_APPLICATION = "FORCE_STOP";
- private static final String LINK_RESTART_APPLICATION = "RESTART";
- private static final String LINK_SCALE_UP = "SCALE_UP";
- private static final String LINK_SCALE_DOWN = "SCALE_DOWN";
- private static final String LINK_ADD_ALIAS = "ADD_ALIAS";
- private static final String LINK_REMOVE_ALIAS = "REMOVE_ALIAS";
- private static final String LINK_ADD_CARTRIDGE = "ADD_CARTRIDGE";
- private static final String LINK_LIST_CARTRIDGES = "LIST_CARTRIDGES";
- private static final String LINK_GET_GEAR_GROUPS = "GET_GEAR_GROUPS";
- private static final String LINK_LIST_ENVIRONMENT_VARIABLES = "LIST_ENVIRONMENT_VARIABLES";
- private static final String LINK_SET_UNSET_ENVIRONMENT_VARIABLES = "SET_UNSET_ENVIRONMENT_VARIABLES";
- private static final Pattern REGEX_FORWARDED_PORT = Pattern.compile("([^ ]+) -> ([^:]+):(\\d+)");
-
- /** The (unique) uuid of this application. */
- private String uuid;
-
- /** The name of this application. */
- private String name;
-
- /** The time at which this application was created. */
- private Date creationTime;
-
- /** The cartridge (application type/framework) of this application. */
- private IStandaloneCartridge cartridge;
-
- /** The scalability enablement. */
- private ApplicationScale scale;
-
- /** The application gear profile. */
- private IGearProfile gearProfile;
-
- /** The domain this application belongs to. */
- private final DomainResource domain;
-
- /** The url of this application. */
- private String applicationUrl;
-
- /** The url to use to connect with ssh.*/
- private String sshUrl;
-
- /** The url at which the git repo of this application may be reached. */
- private String gitUrl;
-
- /** the git url for the initial code and configuration for the application */
- private String initialGitUrl;
-
- /** The aliases of this application. */
- private List aliases;
-
- /**
- * Map of configured embedded cartridges.
- */
- private Map embeddedCartridgesByName = new LinkedHashMap();
-
- /**
- * SSH Fowardable ports for the current application.
- */
- private List ports = null;
-
- /**
- * SSH Session used to perform port-forwarding and other ssh-based
- * operations.
- */
- private Session session;
-
- private Collection gearGroups;
- /**
- * The environment variables for this application
- */
- private Map environmentVariablesMap;
-
-
- protected ApplicationResource(ApplicationResourceDTO dto, DomainResource domain) {
- this(dto.getName(), dto.getUuid(), dto.getCreationTime(), dto.getMessages(), dto.getApplicationUrl(),
- dto.getSshUrl(), dto.getGitUrl(), dto.getInitialGitUrl(), dto.getGearProfile(), dto.getApplicationScale(),
- dto.getAliases(), dto.getCartridges(), dto.getLinks(), domain);
- }
-
- /**
- * Instantiates a new application.
- *
- * @param name
- * the name
- * @param uuid
- * the uuid
- * @param creationTime
- * the creation time
- * @param messages
- * the creation log
- * @param applicationUrl
- * the application url
- * @param gitUrl
- * the git url
- * @param sshUrl
- * the ssh url
- * @param cartridge
- * the cartridge (type/framework)
- * @param aliases
- * the aliases
- * @param links
- * the links
- * @param domain
- * the domain this application belongs to
- * @throws DatatypeConfigurationException
- */
- protected ApplicationResource(final String name, final String uuid, final String creationTime,
- final Messages messages, final String applicationUrl, final String sshUrl, final String gitUrl,
- final String initialGitUrl, final IGearProfile gearProfile, final ApplicationScale scale, final List aliases,
- final Map cartridgesByName, final Map links,
- final DomainResource domain) {
- super(domain.getService(), links, messages);
- this.name = name;
- this.uuid = uuid;
- this.creationTime = RFC822DateUtils.safeGetDate(creationTime);
- this.scale = scale;
- this.gearProfile = gearProfile;
- this.applicationUrl = applicationUrl;
- this.sshUrl = sshUrl;
- this.gitUrl = gitUrl;
- this.initialGitUrl = initialGitUrl;
- this.domain = domain;
- this.aliases = aliases;
- updateCartridges(cartridgesByName);
- environmentVariablesMap = new HashMap();
- }
-
- public String getName() {
- return name;
- }
-
- @Override
- public ApplicationScale getApplicationScale() {
- return scale;
- }
-
- @Override
- public IGearProfile getGearProfile() {
- return gearProfile;
- }
-
- public String getUUID() {
- return uuid;
- }
-
- public IStandaloneCartridge getCartridge() {
- return cartridge;
- }
-
- /**
- * Returns the main (standalone) cartrige or one of the embedded cartridges
- * whose name matches the given param.
- * @param cartridgeName the name of the cartridge to look for.
- * @return the cartridge or null if none has this name.
- */
- protected ICartridge getCartridge(String cartridgeName) {
- if(cartridgeName == null) {
- return null;
- }
- if(this.cartridge != null && cartridgeName.equals(this.cartridge.getName())) {
- return this.cartridge;
- }
- return getEmbeddedCartridge(cartridgeName);
- }
-
-
- public Date getCreationTime() {
- return creationTime;
- }
-
- public IDomain getDomain() {
- return this.domain;
- }
-
- public void destroy() throws OpenShiftException {
- new DeleteApplicationRequest().execute();
- domain.removeApplication(this);
- }
-
- public void start() throws OpenShiftException {
- new StartApplicationRequest().execute();
- }
-
- public void restart() throws OpenShiftException {
- new RestartApplicationRequest().execute();
- }
-
- public void stop() throws OpenShiftException {
- stop(false);
- }
-
- public void stop(boolean force) throws OpenShiftException {
- if (force) {
- new ForceStopApplicationRequest().execute();
- } else {
- new StopApplicationRequest().execute();
- }
- }
-
- public void getDescriptor() {
- throw new UnsupportedOperationException();
- }
-
- public void scaleDown() throws OpenShiftException {
- new ScaleDownRequest().execute();
- }
-
- public void scaleUp() throws OpenShiftException {
- new ScaleUpRequest().execute();
- }
-
- public void addAlias(String alias) throws OpenShiftException {
- Assert.notNull(alias);
-
- ApplicationResourceDTO applicationDTO = new AddAliasRequest().execute(alias);
- updateAliases(applicationDTO);
-
- }
-
- private void updateAliases(ApplicationResourceDTO applicationDTO) {
- Assert.notNull(applicationDTO);
-
- this.aliases.clear();
- this.aliases.addAll(applicationDTO.getAliases());
- }
-
- public List getAliases() {
- return Collections.unmodifiableList(this.aliases);
- }
-
- public boolean hasAlias(String name) {
- Assert.notNull(name);
-
- return aliases.contains(name);
- }
-
- public void removeAlias(String alias) throws OpenShiftException {
- Assert.notNull(alias);
-
- ApplicationResourceDTO applicationDTO = new RemoveAliasRequest().execute(alias);
- updateAliases(applicationDTO);
- }
-
- public String getGitUrl() {
- return gitUrl;
- }
-
- public String getInitialGitUrl() {
- return initialGitUrl;
- }
-
- /**
- * @return the sshUrl
- */
- public String getSshUrl() {
- return sshUrl;
- }
-
- public String getApplicationUrl() {
- return applicationUrl;
- }
-
- /**
- * Adds the given embedded cartridge to this application.
- *
- * @param cartridge
- * the embeddable cartridge that shall be added to this
- * application
- */
- public IEmbeddedCartridge addEmbeddableCartridge(IEmbeddableCartridge cartridge) throws OpenShiftException {
- Assert.notNull(cartridge);
-
- final CartridgeResourceDTO embeddedCartridgeDTO =
- new AddEmbeddedCartridgeRequest().execute(cartridge);
- final EmbeddedCartridgeResource embeddedCartridge = new EmbeddedCartridgeResource(embeddedCartridgeDTO, this);
- this.embeddedCartridgesByName.put(embeddedCartridge.getName(), embeddedCartridge);
- return embeddedCartridge;
- }
-
- public List addEmbeddableCartridges(Collection cartridges)
- throws OpenShiftException {
- Assert.notNull(cartridges);
-
- final List addedCartridge = new ArrayList();
- for (IEmbeddableCartridge cartridge : cartridges) {
- // TODO: catch exceptions when removing cartridges, contine removing
- // and report the exceptions that occurred
- addedCartridge.add(addEmbeddableCartridge(cartridge));
- }
- return addedCartridge;
- }
-
- /**
- * "callback" from the embeddedCartridge once it has been destroyed.
- *
- * @param embeddedCartridge
- * @throws OpenShiftException
- */
- protected void removeEmbeddedCartridge(IEmbeddedCartridge embeddedCartridge) throws OpenShiftException {
- Assert.notNull(embeddedCartridge);
-
- this.embeddedCartridgesByName.remove(embeddedCartridge.getName());
- }
-
- /**
- * Queries the backend to list the embedded cartridges and adds the new ones
- * & update the ones that are already present
- *
- * @throws OpenShiftException
- */
- protected void refreshEmbeddedCartridges() throws OpenShiftException {
- // load collection if necessary
- Map cartridgeDTOByName = new ListCartridgesRequest().execute();
- updateCartridges(cartridgeDTOByName);
- removeCartridges(cartridgeDTOByName);
- }
-
- private void updateCartridges(Map cartridgeDTOByName) {
- for (CartridgeResourceDTO cartridgeDTO : cartridgeDTOByName.values()) {
- switch(cartridgeDTO.getType()) {
- case STANDALONE:
- createStandaloneCartrdige(cartridgeDTO);
- break;
- case EMBEDDED:
- addOrUpdateEmbeddedCartridge(cartridgeDTO.getName(), cartridgeDTO);
- }
- }
- }
-
- private void createStandaloneCartrdige(CartridgeResourceDTO cartridgeDTO) {
- this.cartridge = new StandaloneCartridge(
- cartridgeDTO.getName(),
- cartridgeDTO.getUrl(),
- cartridgeDTO.getDisplayName(),
- cartridgeDTO.getDescription());
- }
-
- private void addOrUpdateEmbeddedCartridge(String name, CartridgeResourceDTO cartridgeDTO) {
- EmbeddedCartridgeResource embeddedCartridge = embeddedCartridgesByName.get(name);
- if (embeddedCartridge != null) {
- embeddedCartridge.update(cartridgeDTO);
- } else {
- embeddedCartridgesByName.put(name, new EmbeddedCartridgeResource(cartridgeDTO, this));
- }
- }
-
- private void removeCartridges(Map cartridgeDTOsByName) {
- List cartridges = new ArrayList(embeddedCartridgesByName.values());
- for (EmbeddedCartridgeResource cartridge : cartridges) {
- String name = cartridge.getName();
- if (!cartridgeDTOsByName.containsKey(name)) {
- // not present in updated collection
- embeddedCartridgesByName.remove(name);
- }
- }
- }
-
- public List getEmbeddedCartridges() throws OpenShiftException {
- return Collections.unmodifiableList(new ArrayList(this.embeddedCartridgesByName.values()));
- }
-
- public boolean hasEmbeddedCartridge(String cartridgeName) throws OpenShiftException {
- Assert.notNull(cartridgeName);
-
- return getEmbeddedCartridge(cartridgeName) != null;
- }
-
- public boolean hasEmbeddedCartridge(IEmbeddableCartridge cartridge) throws OpenShiftException {
- return getEmbeddedCartridge(cartridge) != null;
- }
-
- public IEmbeddedCartridge getEmbeddedCartridge(IEmbeddableCartridge cartridge) throws OpenShiftException {
- Assert.notNull(cartridge);
-
- for (IEmbeddedCartridge embeddedCartridge : getEmbeddedCartridges()) {
- if (cartridge.equals(embeddedCartridge)) {
- return embeddedCartridge;
- }
- }
- return null;
- }
-
- public IEmbeddedCartridge getEmbeddedCartridge(String cartridgeName) throws OpenShiftException {
- Assert.notNull(cartridgeName);
-
- for (IEmbeddedCartridge embeddedCartridge : getEmbeddedCartridges()) {
- if (cartridgeName.equals(embeddedCartridge.getName())) {
- return embeddedCartridge;
- }
- }
- return null;
- }
-
- public void removeEmbeddedCartridge(IEmbeddableCartridge cartridge) throws OpenShiftException {
- Assert.notNull(cartridge);
-
- IEmbeddedCartridge embeddedCartridge = getEmbeddedCartridge(cartridge);
- if (embeddedCartridge != null) {
- embeddedCartridge.destroy();
- }
- }
-
- public void removeEmbeddedCartridges(Collection cartridges) throws OpenShiftException {
- Assert.notNull(cartridges);
-
- for(IEmbeddableCartridge cartridge : cartridges) {
- // TODO: catch exceptions when removing cartridges, contine removing
- // and report the exceptions that occurred
- removeEmbeddedCartridge(cartridge);
- }
- }
-
- public Collection getGearGroups() throws OpenShiftException {
- // this collection is not cached so we always have the latest info
- // about the gear groups consumed by this application.
- loadGearGroups();
- return gearGroups;
- }
-
- private Collection loadGearGroups() throws OpenShiftException {
- List gearGroups = new ArrayList();
- Collection dtos = new GetGearGroupsRequest().execute();
- for(GearGroupResourceDTO dto : dtos) {
- gearGroups.add(new GearGroupResource(dto, this, getService()));
- }
-
- return this.gearGroups = gearGroups;
- }
-
- public boolean waitForAccessible(long timeout) throws OpenShiftException {
- try {
- return waitForResolved(timeout, System.currentTimeMillis());
- } catch (InterruptedException e) {
- return false;
- }
- }
-
- public Future waitForAccessibleAsync(final long timeout) throws OpenShiftException {
- IOpenShiftConnection connection = getConnection();
- return connection.getExecutorService().submit(new Callable() {
-
- public Boolean call() throws Exception {
- return waitForAccessible(timeout);
- }
- });
- }
-
- protected IOpenShiftConnection getConnection() {
- return getDomain().getUser().getConnection();
- }
-
- private boolean waitForResolved(long timeout, long startTime) throws OpenShiftException, InterruptedException {
- try {
- while (!canResolv(applicationUrl)
- && !isTimeouted(timeout, startTime)) {
- Thread.sleep(APPLICATION_WAIT_RETRY_DELAY);
- }
- return canResolv(applicationUrl);
- } catch (MalformedURLException e) {
- throw new OpenShiftException(e,
- "Could not wait for application {0} to become accessible, it has an invalid URL \"{1}\": {2}",
- name, applicationUrl, e.getMessage());
- }
- }
-
- protected boolean canResolv(String url) throws MalformedURLException {
- return HostUtils.canResolv(url);
- }
-
- private boolean isTimeouted(long timeout, long startTime) {
- return !(System.currentTimeMillis() < (startTime + timeout));
- }
-
- @Override
- public void refresh() throws OpenShiftException {
- refreshEmbeddedCartridges();
- if (this.gearGroups != null) {
- this.gearGroups = loadGearGroups();
- }
- if (this.ports != null) {
- this.ports = loadPorts();
- }
- updateEnvironmentVariables();
- }
-
- public void setSSHSession(final Session session) {
- this.session = session;
- }
-
- public Session getSSHSession() {
- return this.session;
- }
-
- public boolean hasSSHSession() {
- return this.session != null && this.session.isConnected();
- }
-
- public boolean isPortFowardingStarted() throws OpenShiftSSHOperationException {
- try {
- return this.session != null && this.session.isConnected() && this.session.getPortForwardingL().length > 0;
- } catch (JSchException e) {
- throw new OpenShiftSSHOperationException(e,
- "Unable to verify if port-forwarding has been started for application \"{0}\"", this.getName());
- }
- }
-
- public List refreshForwardablePorts() throws OpenShiftSSHOperationException {
- this.ports = loadPorts();
- return this.ports;
- }
-
- public List getForwardablePorts() throws OpenShiftSSHOperationException {
- if (ports == null) {
- this.ports = loadPorts();
- }
- return ports;
- }
-
- @Override
- public List getEnvironmentProperties() throws OpenShiftSSHOperationException {
- List openshiftProps = new ArrayList();
- List allEnvProps = sshExecCmd("set", SshStreams.INPUT);
- for (String line : allEnvProps) {
- openshiftProps.add(line);
- }
- return openshiftProps;
- }
-
- @Override
- public Map getEnvironmentVariables() throws OpenShiftException {
- return Collections.unmodifiableMap(new LinkedHashMap(getOrLoadEnvironmentVariables()));
- }
-
-
- protected Map getOrLoadEnvironmentVariables() throws OpenShiftException {
- if(environmentVariablesMap.isEmpty())
- environmentVariablesMap = loadEnvironmentVariables();
- return environmentVariablesMap;
- }
-
- private Map loadEnvironmentVariables() throws OpenShiftException {
- List environmentVariableDTOs = new ListEnvironmentVariablesRequest().execute();
- if (environmentVariableDTOs == null) {
- return new LinkedHashMap();
- }
-
- for (EnvironmentVariableResourceDTO environmentVariableResourceDTO : environmentVariableDTOs) {
- final IEnvironmentVariable environmentVariable =
- new EnvironmentVariableResource(environmentVariableResourceDTO, this);
-
- environmentVariablesMap.put(environmentVariable.getName(),environmentVariable);
-
- }
- return environmentVariablesMap;
- }
-
- @Override
- public IEnvironmentVariable addEnvironmentVariable(String name, String value) throws OpenShiftException {
- if (name == null) {
- throw new OpenShiftException("Environment variable name is mandatory but none was given.");
- }
- if (value == null) {
- throw new OpenShiftException("Value for environment variable \"{0}\" not given.", name);
- }
- if (hasEnvironmentVariable(name)) {
- throw new OpenShiftException("Environment variable with name \"{0}\" already exists.", name);
- }
-
- EnvironmentVariableResourceDTO environmentVariableResourceDTO =
- new AddEnvironmentVariableRequest().execute(name, value);
- IEnvironmentVariable environmentVariable = new EnvironmentVariableResource(environmentVariableResourceDTO, this);
-
- environmentVariablesMap.put(environmentVariable.getName(), environmentVariable);
-
- return environmentVariable;
- }
-
- @Override
- public IEnvironmentVariable updateEnvironmentVariable(String name, String value) throws OpenShiftException {
- if (name == null) {
- throw new OpenShiftException("Environment variable name is mandatory but none was given.");
- }
- if (value == null) {
- throw new OpenShiftException("Value for environment variable \"{0}\" not given.", name);
- }
- if (!hasEnvironmentVariable(name)) {
- throw new OpenShiftException("Environment variable with name \"{0}\" does not exist.", name);
- }
-
- IEnvironmentVariable environmentVariable = getEnvironmentVariable(name);
- environmentVariable.update(value);
-
- environmentVariablesMap.put(environmentVariable.getName(), environmentVariable);
-
- return environmentVariable;
- }
-
- @Override
- public Map addEnvironmentVariables(Map environmentVariables)
- throws OpenShiftException {
-
- MapvariablesCandidateMap = new HashMap();
- for(String varCandidateName:environmentVariables.keySet()){
- IEnvironmentVariable tempVar = environmentVariablesMap.get(varCandidateName);
- if(tempVar != null)
- { if(tempVar.getValue() == environmentVariables.get(varCandidateName))
- variablesCandidateMap.put(varCandidateName,environmentVariables.get(varCandidateName));
- }
- else
- variablesCandidateMap.put(varCandidateName, environmentVariables.get(varCandidateName));
- }
- List environmentVariableResourceDTOs = new AddEnvironmentVariablesRequest()
- .execute(variablesCandidateMap);
-
- for (EnvironmentVariableResourceDTO dto : environmentVariableResourceDTOs) {
- IEnvironmentVariable environmentVariable = new EnvironmentVariableResource(dto, this);
- environmentVariablesMap.put(environmentVariable.getName(), environmentVariable);
- }
-
- return environmentVariablesMap;
- }
- /*
- * (non-Javadoc)
- * @see com.openshift.client.IApplication#removeEnvironmentVariable(java.lang.String)
- */
- @Override
- public void removeEnvironmentVariable(String targetName) {
- removeEnvironmentVariable(getEnvironmentVariable(targetName));
- }
-
- /* (non-Javadoc)
- * @see com.openshift.client.IApplication#removeEnvironmentVariable(com.openshift.client.IEnvironmentVariable)
- */
- @Override
- public void removeEnvironmentVariable(IEnvironmentVariable environmentVariable){
- if(getEnvironmentVariable(environmentVariable.getName()) == null)
- throw new OpenShiftException("IEnvironmentVariable with supplied name does not exist.");
- environmentVariable.destroy();
- environmentVariablesMap.remove(environmentVariable.getName());
-
- }
-
-
- /*
- * (non-Javadoc)
- * @see com.openshift.client.IApplication#hasEnvironmentVariable(java.lang.String)
- */
- @Override
- public boolean hasEnvironmentVariable(String name) throws OpenShiftException {
- if (StringUtils.isEmpty(name)) {
- throw new OpenShiftException("Environment variable name is mandatory but none was given.");
- }
- return getEnvironmentVariable(name) != null;
-
- }
-
- protected void updateEnvironmentVariables() throws OpenShiftException {
- if (!canGetEnvironmentVariables())
- return;
- else
- {
- environmentVariablesMap.clear();
- environmentVariablesMap = loadEnvironmentVariables();
- }
-
- }
-
- /*
- * (non-Javadoc)
- * @see com.openshift.client.IApplication#getEnvironmentVariable(java.lang.String)
- */
- @Override
- public IEnvironmentVariable getEnvironmentVariable(String name) {
- return getEnvironmentVariables().get(name);
- }
-
- /*
- * (non-Javadoc)
- * @see com.openshift.client.IApplication#getEnvironmentVariableValue(java.lang.String)
- */
- @Override
- public String getEnvironmentVariableValue(String name) {
- return environmentVariablesMap.get(name).getValue();
- }
-
- @Override
- public boolean canGetEnvironmentVariables() {
- try {
- return getLink(LINK_LIST_ENVIRONMENT_VARIABLES) != null;
- } catch (OpenShiftException e) {
- return false;
- }
- }
-
- /*
- * (non-Javadoc)
- * @see com.openshift.client.IApplication#canUpdateEnvironmentVariables()
- */
- @Override
- public boolean canUpdateEnvironmentVariables() {
- try {
- return getLink(LINK_SET_UNSET_ENVIRONMENT_VARIABLES) != null;
- } catch (OpenShiftException e) {
- return false;
- }
- }
-
- /**
- * List all forwardable ports for a given application.
- *
- * @param application
- * @return the forwardable ports in an unmodifiable collection
- * @throws JSchException
- * @throws OpenShiftSSHOperationException
- */
- private List loadPorts() throws OpenShiftSSHOperationException {
- this.ports = new ArrayList();
- List lines = sshExecCmd("rhc-list-ports", SshStreams.EXT_INPUT);
- for (String line : lines) {
- ApplicationPortForwarding port = extractForwardablePortFrom(line);
- if (port != null) {
- ports.add(port);
- }
- }
- return ports;
- }
-
- /**
- *
- * @param command
- * @return
- * @throws OpenShiftSSHOperationException
- */
- protected List sshExecCmd(final String command, final SshStreams sshStream)
- throws OpenShiftSSHOperationException {
- final Session session = getSSHSession();
- if (session == null) {
- throw new OpenShiftSSHOperationException("No SSH session available for application ''{0}''", this.getName());
- }
- Channel channel = null;
- BufferedReader reader = null;
- try {
- session.openChannel("exec");
- channel = session.openChannel("exec");
- ((ChannelExec) channel).setCommand(command);
- channel.connect();
- return sshStream.getLines(channel);
- } catch (JSchException e) {
- throw new OpenShiftSSHOperationException(e, "Failed to execute remote ssh command \"{0}\"",
- this.getName());
- } catch (IOException e) {
- throw new OpenShiftSSHOperationException(e, "Failed to execute remote ssh command \"{0}\"",
- this.getName());
- } finally {
-
- if (reader != null) {
- try {
- reader.close();
- } catch (IOException e) {
- LOGGER.error("Failed to close SSH error stream reader", e);
- }
- }
-
- if (channel != null && channel.isConnected()) {
- channel.disconnect();
- }
- }
- }
-
- /**
- * Extract the named forwardable port from the 'rhc-list-ports' command
- * result line, with the following format:
- * java -> 127.10.187.1:4447.
- *
- * @param portValue
- * @return the forwardable port.
- */
- private ApplicationPortForwarding extractForwardablePortFrom(final String portValue) {
- Matcher matcher = REGEX_FORWARDED_PORT.matcher(portValue);
- if (!matcher.find()
- || matcher.groupCount() != 3) {
- return null;
- }
- try {
- final String name = matcher.group(1);
- final String host = matcher.group(2);
- final int remotePort = Integer.parseInt(matcher.group(3));
- return new ApplicationPortForwarding(this, name, host, remotePort);
- } catch(NumberFormatException e) {
- throw new OpenShiftSSHOperationException(e,
- "Couild not determine forwarded port in application {0}", getName());
- }
- }
-
- public List startPortForwarding() throws OpenShiftSSHOperationException {
- if (!hasSSHSession()) {
- throw new OpenShiftSSHOperationException(
- "SSH session for application \"{0}\" is closed or null. Cannot start port forwarding",
- getName());
- }
- for (IApplicationPortForwarding port : ports) {
- try {
- port.start(session);
- } catch (OpenShiftSSHOperationException oss) {
- /*
- * ignore for now
- * FIXME: should store this error on the forward to let user
- * know why it could not start/stop
- */
- }
- }
- return ports;
- }
-
- public List stopPortForwarding() throws OpenShiftSSHOperationException {
- for (IApplicationPortForwarding port : ports) {
- try {
- port.stop(session);
- } catch (OpenShiftSSHOperationException oss) {
- /* ignore for now
- * should store this error on the forward to let user know why
- * it could not start/stop
- */
- }
- }
- // make sure port forwarding is stopped by closing session...
- session.disconnect();
- return ports;
- }
-
- protected void update(ApplicationResourceDTO dto) {
- this.name = dto.getName();
- this.uuid = dto.getUuid();
- this.creationTime = RFC822DateUtils.safeGetDate(dto.getCreationTime());
- this.scale = dto.getApplicationScale();
- this.gearProfile = dto.getGearProfile();
- this.applicationUrl = dto.getApplicationUrl();
- this.sshUrl = dto.getSshUrl();
- this.gitUrl = dto.getGitUrl();
- this.initialGitUrl = dto.getInitialGitUrl();
- this.aliases = dto.getAliases();
- updateCartridges(dto.getCartridges());
- }
-
- @Override
- public int hashCode() {
- final int prime = 31;
- int result = 1;
- result = prime * result + ((uuid == null) ? 0 : uuid.hashCode());
- return result;
- }
-
- @Override
- public boolean equals(Object object) {
- if (this == object)
- return true;
- if (object == null)
- return false;
- if (getClass() != object.getClass())
- return false;
- ApplicationResource other = (ApplicationResource) object;
- if (uuid == null) {
- if (other.uuid != null)
- return false;
- } else if (!uuid.equals(other.uuid))
- return false;
- return true;
- }
-
-
- @Override
- public String toString() {
- return "ApplicationResource ["
- + "uuid=" + uuid
- + ", name=" + name
- + ", creationTime=" + creationTime
- + ", cartridge=" + cartridge
- + ", scale=" + scale
- + ", gearProfile=" + gearProfile
- + ", domain=" + domain
- + ", applicationUrl=" + applicationUrl
- + ", gitUrl=" + gitUrl
- + ", initialGitUrl=" + initialGitUrl
- + ", aliases=" + aliases
- + ", gearGroups=" + gearGroups
- + "]";
- }
-
- protected enum SshStreams {
- EXT_INPUT {
- protected InputStream getInputStream(Channel channel) throws IOException {
- return channel.getExtInputStream();
- }
-
- }, INPUT {
- protected InputStream getInputStream(Channel channel) throws IOException {
- return channel.getInputStream();
- }
- };
-
- public List getLines(Channel channel) throws IOException {
- BufferedReader reader = new BufferedReader(new InputStreamReader(getInputStream(channel)));
- List lines = new ArrayList();
- String line = null;
- // Read File Line By Line
- while ((line = reader.readLine()) != null) {
- lines.add(line);
- }
- return lines;
- }
-
- protected abstract InputStream getInputStream(Channel channel) throws IOException;
-
- }
-
- private class DeleteApplicationRequest extends ServiceRequest {
-
- private DeleteApplicationRequest() {
- super(LINK_DELETE_APPLICATION);
- }
- }
-
- private class StartApplicationRequest extends ServiceRequest {
-
- private StartApplicationRequest() {
- super(LINK_START_APPLICATION);
- }
-
- protected DTO execute() throws OpenShiftException {
- return super.execute(
- new StringParameter(IOpenShiftJsonConstants.PROPERTY_EVENT, IOpenShiftJsonConstants.VALUE_START));
- }
- }
-
- private class StopApplicationRequest extends ServiceRequest {
-
- private StopApplicationRequest() {
- super(LINK_STOP_APPLICATION);
- }
-
- protected DTO execute() throws OpenShiftException {
- return super.execute(
- new StringParameter(IOpenShiftJsonConstants.PROPERTY_EVENT, IOpenShiftJsonConstants.VALUE_STOP));
- }
- }
-
- private class ForceStopApplicationRequest extends ServiceRequest {
-
- private ForceStopApplicationRequest() {
- super(LINK_FORCE_STOP_APPLICATION);
- }
-
- protected DTO execute() throws OpenShiftException {
- return super.execute(
- new StringParameter(IOpenShiftJsonConstants.PROPERTY_EVENT, IOpenShiftJsonConstants.VALUE_FORCESTOP));
- }
- }
-
- private class RestartApplicationRequest extends ServiceRequest {
-
- private RestartApplicationRequest() {
- super(LINK_RESTART_APPLICATION);
- }
-
- protected DTO execute() throws OpenShiftException {
- return super.execute(new StringParameter(IOpenShiftJsonConstants.PROPERTY_EVENT,
- IOpenShiftJsonConstants.VALUE_RESTART));
- }
- }
-
- private class ScaleUpRequest extends ServiceRequest {
-
- private ScaleUpRequest() {
- super(LINK_SCALE_UP);
- }
-
- protected DTO execute() throws OpenShiftException {
- return super.execute(new StringParameter(IOpenShiftJsonConstants.PROPERTY_EVENT,
- IOpenShiftJsonConstants.VALUE_SCALE_UP));
- }
- }
-
- private class ScaleDownRequest extends ServiceRequest {
-
- private ScaleDownRequest() {
- super(LINK_SCALE_DOWN);
- }
-
- protected DTO execute() throws OpenShiftException {
- return super.execute(new StringParameter(IOpenShiftJsonConstants.PROPERTY_EVENT,
- IOpenShiftJsonConstants.VALUE_SCALE_DOWN));
- }
- }
-
- private class AddAliasRequest extends ServiceRequest {
-
- private AddAliasRequest() {
- super(LINK_ADD_ALIAS);
- }
-
- protected DTO execute(String alias) throws OpenShiftException {
- return super.execute(
- new StringParameter(IOpenShiftJsonConstants.PROPERTY_EVENT, IOpenShiftJsonConstants.VALUE_ADD_ALIAS),
- new StringParameter(IOpenShiftJsonConstants.PROPERTY_ALIAS, alias));
- }
- }
-
- private class RemoveAliasRequest extends ServiceRequest {
-
- private RemoveAliasRequest() {
- super(LINK_REMOVE_ALIAS);
- }
-
- protected DTO execute(String alias) throws OpenShiftException {
- return super.execute(
- new StringParameter(IOpenShiftJsonConstants.PROPERTY_EVENT, IOpenShiftJsonConstants.VALUE_REMOVE_ALIAS),
- new StringParameter(IOpenShiftJsonConstants.PROPERTY_ALIAS, alias));
- }
- }
-
- private class AddEmbeddedCartridgeRequest extends ServiceRequest {
-
- private AddEmbeddedCartridgeRequest() {
- super(LINK_ADD_CARTRIDGE);
- }
-
- protected DTO execute(IEmbeddableCartridge embeddable) throws OpenShiftException {
- return super.execute(new Parameters().addCartridge(embeddable).toArray());
- }
- }
-
- private class ListCartridgesRequest extends ServiceRequest {
-
- private ListCartridgesRequest() {
- super(LINK_LIST_CARTRIDGES);
- }
-
- protected Map execute() throws OpenShiftException {
- return super.execute();
- }
- }
-
- private class GetGearGroupsRequest extends ServiceRequest {
-
- private GetGearGroupsRequest() {
- super(LINK_GET_GEAR_GROUPS);
- }
- }
-
- private class ListEnvironmentVariablesRequest extends ServiceRequest {
- protected ListEnvironmentVariablesRequest() {
- super(LINK_LIST_ENVIRONMENT_VARIABLES);
- }
- }
-
- private class AddEnvironmentVariableRequest extends ServiceRequest {
- protected AddEnvironmentVariableRequest() {
- super(LINK_SET_UNSET_ENVIRONMENT_VARIABLES);
- }
-
- protected EnvironmentVariableResourceDTO execute(String name, String value) throws OpenShiftException {
- Parameters parameters = new Parameters()
- .add(IOpenShiftJsonConstants.PROPERTY_NAME, name)
- .add(IOpenShiftJsonConstants.PROPERTY_VALUE, value);
- return super.execute(parameters.toArray());
- }
- }
-
- private class AddEnvironmentVariablesRequest extends ServiceRequest {
- protected AddEnvironmentVariablesRequest() {
- super(LINK_SET_UNSET_ENVIRONMENT_VARIABLES);
- }
-
- protected List execute(Map environmentVariables)
- throws OpenShiftException {
- Parameters parameters = new Parameters()
- .addEnvironmentVariables(environmentVariables);
- return super.execute(parameters.toArray());
- }
- }
-
- }
diff --git a/src/main/java/com/openshift/internal/client/CartridgeType.java b/src/main/java/com/openshift/internal/client/CartridgeType.java
deleted file mode 100644
index 3957a2a9..00000000
--- a/src/main/java/com/openshift/internal/client/CartridgeType.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2011 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.internal.client;
-
-
-public enum CartridgeType {
-
- EMBEDDED, STANDALONE;
-
- public static CartridgeType safeValueOf(String type) {
- try {
- if (type == null) {
- return null;
- }
- return valueOf(type.toUpperCase());
- } catch(IllegalArgumentException e) {
- return null;
- }
- }
-
-}
diff --git a/src/main/java/com/openshift/internal/client/DomainResource.java b/src/main/java/com/openshift/internal/client/DomainResource.java
deleted file mode 100755
index 8688c95f..00000000
--- a/src/main/java/com/openshift/internal/client/DomainResource.java
+++ /dev/null
@@ -1,502 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2011 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.internal.client;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.List;
-import java.util.ListIterator;
-import java.util.Map;
-
-import com.openshift.client.ApplicationScale;
-import com.openshift.client.IApplication;
-import com.openshift.client.IDomain;
-import com.openshift.client.IGearProfile;
-import com.openshift.client.IHttpClient;
-import com.openshift.client.IUser;
-import com.openshift.client.Messages;
-import com.openshift.client.OpenShiftException;
-import com.openshift.client.OpenShiftRequestException;
-import com.openshift.client.cartridge.IEmbeddableCartridge;
-import com.openshift.client.cartridge.IStandaloneCartridge;
-import com.openshift.internal.client.httpclient.request.StringParameter;
-import com.openshift.internal.client.response.ApplicationResourceDTO;
-import com.openshift.internal.client.response.DomainResourceDTO;
-import com.openshift.internal.client.response.Link;
-import com.openshift.internal.client.response.LinkParameter;
-import com.openshift.internal.client.utils.Assert;
-import com.openshift.internal.client.utils.CollectionUtils;
-import com.openshift.internal.client.utils.IOpenShiftJsonConstants;
-import com.openshift.internal.client.utils.IOpenShiftParameterConstants;
-
-/**
- * @author André Dietisheim
- * @author Nicolas Spano
- */
-public class DomainResource extends AbstractOpenShiftResource implements IDomain {
-
- private static final String LINK_GET = "GET";
- private static final String LINK_LIST_APPLICATIONS = "LIST_APPLICATIONS";
- private static final String LINK_ADD_APPLICATION = "ADD_APPLICATION";
- private static final String LINK_UPDATE = "UPDATE";
- private static final String LINK_DELETE = "DELETE";
-
- private String id;
- private String suffix;
-
- private final APIResource connectionResource;
- /** Applications for the domain. */
- // TODO: replace by a map indexed by application names ?
- private List applications = null;
-
- protected DomainResource(final String namespace, final String suffix, final Map links,
- final Messages messages, final APIResource api) {
- super(api.getService(), links, messages);
- this.id = namespace;
- this.suffix = suffix;
- this.connectionResource = api;
- }
-
- protected DomainResource(DomainResourceDTO domainDTO, final APIResource api) {
- this(domainDTO.getId(), domainDTO.getSuffix(), domainDTO.getLinks(), domainDTO.getMessages(), api);
- }
-
- @Override
- public String getId() {
- return id;
- }
-
- @Override
- public String getSuffix() {
- return suffix;
- }
-
- @Override
- public void rename(String id) throws OpenShiftException {
- Assert.notNull(id);
-
- DomainResourceDTO domainDTO = new UpdateDomainRequest().execute(id);
- this.id = domainDTO.getId();
- this.suffix = domainDTO.getSuffix();
- this.getLinks().clear();
- this.getLinks().putAll(domainDTO.getLinks());
- }
-
- @Override
- public IUser getUser() throws OpenShiftException {
- return connectionResource.getUser();
- }
-
- @Override
- public IApplication createApplication(final String name, final IStandaloneCartridge cartridge)
- throws OpenShiftException {
- return createApplication(name, cartridge, (String) null);
- }
-
- @Override
- public IApplication createApplication(final String name, final IStandaloneCartridge cartridge,
- final ApplicationScale scale) throws OpenShiftException {
- return createApplication(name, cartridge, scale, null, null);
- }
-
- @Override
- public IApplication createApplication(final String name, final IStandaloneCartridge cartridge, String initialGitUrl)
- throws OpenShiftException {
- return createApplication(name, cartridge, null, null, initialGitUrl);
- }
-
- public IApplication createApplication(final String name, final IStandaloneCartridge cartridge,
- final ApplicationScale scale, String initialGitUrl) throws OpenShiftException {
- return createApplication(name, cartridge, scale, null, initialGitUrl);
- }
-
- @Override
- public IApplication createApplication(final String name, final IStandaloneCartridge cartridge,
- final IGearProfile gearProfile) throws OpenShiftException {
- return createApplication(name, cartridge, null, gearProfile);
- }
-
- public IApplication createApplication(final String name, final IStandaloneCartridge cartridge,
- final IGearProfile gearProfile, String initialGitUrl) throws OpenShiftException {
- return createApplication(name, cartridge, null, gearProfile, initialGitUrl);
- }
-
- @Override
- public IApplication createApplication(final String name, final IStandaloneCartridge cartridge,
- final ApplicationScale scale, final IGearProfile gearProfile) throws OpenShiftException {
- return createApplication(name, cartridge, scale, gearProfile, null);
- }
-
- @Override
- public IApplication createApplication(final String name, final IStandaloneCartridge cartridge,
- final ApplicationScale scale, final IGearProfile gearProfile, String initialGitUrl)
- throws OpenShiftException {
- return createApplication(name, cartridge, scale, gearProfile, initialGitUrl, IHttpClient.NO_TIMEOUT);
- }
-
- @Override
- public IApplication createApplication(final String name, final IStandaloneCartridge cartridge,
- final ApplicationScale scale, final IGearProfile gearProfile, String initialGitUrl, int timeout,
- IEmbeddableCartridge... cartridges)
- throws OpenShiftException {
- if (name == null) {
- throw new OpenShiftException("Application name is mandatory but none was given.");
- }
- // this would trigger lazy loading list of available applications.
- // this is needed anyhow since we're adding the new app to the list of
- // available apps
- if (hasApplicationByName(name)) {
- throw new OpenShiftException("Application with name \"{0}\" already exists.", name);
- }
-
- ApplicationResourceDTO applicationDTO =
- new CreateApplicationRequest().execute(name, cartridge, scale, gearProfile, initialGitUrl, timeout,
- null, cartridges);
- IApplication application = new ApplicationResource(applicationDTO, this);
-
- getOrLoadApplications().add(application);
- return application;
- }
-
- @Override
- public IApplication createApplication(final String name, final IStandaloneCartridge cartridge,
- final ApplicationScale scale, final IGearProfile gearProfile, String initialGitUrl, int timeout,
- Map environmentVariables, IEmbeddableCartridge... cartridges)
- throws OpenShiftException {
- if (name == null) {
- throw new OpenShiftException("Application name is mandatory but none was given.");
- }
- // this would trigger lazy loading list of available applications.
- // this is needed anyhow since we're adding the new app to the list of
- // available apps
- if (hasApplicationByName(name)) {
- throw new OpenShiftException("Application with name \"{0}\" already exists.", name);
- }
-
- ApplicationResourceDTO applicationDTO =
- new CreateApplicationRequest().execute(
- name, cartridge, scale, gearProfile, initialGitUrl, timeout, environmentVariables, cartridges);
- IApplication application = new ApplicationResource(applicationDTO, this);
-
- getOrLoadApplications().add(application);
- return application;
- }
-
- @Override
- public boolean hasApplicationByName(String name) throws OpenShiftException {
- return getApplicationByName(name) != null;
- }
-
- @Override
- public IApplication getApplicationByName(String name) throws OpenShiftException {
- Assert.notNull(name);
- return getApplicationByName(name, getApplications());
- }
-
- private IApplication getApplicationByName(String name, Collection applications)
- throws OpenShiftException {
- Assert.notNull(name);
-
- if (applications == null) {
- return null;
- }
-
- IApplication matchingApplication = null;
- for (IApplication application : applications) {
- if (application.getName().equalsIgnoreCase(name)) {
- matchingApplication = application;
- break;
- }
- }
- return matchingApplication;
- }
-
- @Override
- public List getApplicationsByCartridge(IStandaloneCartridge cartridge) throws OpenShiftException {
- List matchingApplications = new ArrayList();
- for (IApplication application : getApplications()) {
- if (cartridge.equals(application.getCartridge())) {
- matchingApplications.add(application);
- }
- }
- return matchingApplications;
- }
-
- @Override
- public boolean hasApplicationByCartridge(IStandaloneCartridge cartridge) throws OpenShiftException {
- return getApplicationsByCartridge(cartridge).size() > 0;
- }
-
- @Override
- public boolean canCreateApplicationWithEnvironmentVariables() {
- try {
- Link link = getLink(LINK_ADD_APPLICATION);
- return link.hasParameter(IOpenShiftJsonConstants.PROPERTY_ENVIRONMENT_VARIABLES);
- } catch (OpenShiftRequestException e) {
- return false;
- }
- }
-
- @Override
- public void destroy() throws OpenShiftException {
- destroy(false);
- }
-
- @Override
- public void destroy(boolean force) throws OpenShiftException {
- new DeleteDomainRequest().execute(force);
- connectionResource.removeDomain(this);
- }
-
- @Override
- public List getApplications() throws OpenShiftException {
- return CollectionUtils.toUnmodifiableCopy(getOrLoadApplications());
- }
-
- protected List getOrLoadApplications() throws OpenShiftException {
- if (applications == null) {
- this.applications = loadApplications();
- }
- return applications;
- }
-
- /**
- * Requests the list of application from the backend.
- *
- * @return all applications that are known to the backend for this domain
- * @throws OpenShiftException
- */
- private List loadApplications() throws OpenShiftException {
- List applications = new ArrayList();
- List applicationDTOs = new ListApplicationsRequest().execute();
- for (ApplicationResourceDTO dto : applicationDTOs) {
- applications.add(new ApplicationResource(dto, this));
- }
- return applications;
- }
-
- /**
- * Updates the list of applications in this domain. It adds new
- * applications, updates the existing ones and removes the ones that were
- * removed in the backend.
- *
- * @param applications
- * @return
- * @return
- * @throws OpenShiftException
- */
- private List updateApplications() throws OpenShiftException {
- List applicationDTOs = new ListApplicationsRequest().execute();
- addOrUpdateApplications(applicationDTOs, applications);
- removeApplications(applicationDTOs, applications);
- return applications;
- }
-
- private List addOrUpdateApplications(List dtos,
- List applications) throws OpenShiftException {
- for (ApplicationResourceDTO dto : dtos) {
- addOrUpdateApplication(dto, applications);
- }
- return applications;
- }
-
- private void addOrUpdateApplication(ApplicationResourceDTO applicationDTO, List applications) {
- ApplicationResource application = (ApplicationResource) getApplicationByName(applicationDTO.getName(),
- applications);
- if (application == null) {
- final IApplication newApplication = new ApplicationResource(applicationDTO, this);
- applications.add(newApplication);
- } else {
- application.update(applicationDTO);
- }
- }
-
- private List removeApplications(List dtos, List applications) {
- for (ListIterator it = applications.listIterator(); it.hasNext();) {
- IApplication application = it.next();
- if (!hasApplicationDTOByName(application.getName(), dtos)) {
- it.remove();
- }
- }
- return applications;
- }
-
- private boolean hasApplicationDTOByName(String name, List dtos) {
- for (ApplicationResourceDTO dto : dtos) {
- if (name.equals(dto.getName())) {
- return true;
- }
- }
- return false;
- }
-
- protected void removeApplication(IApplication application) {
- // TODO: can this collection be a null ?
- this.applications.remove(application);
- }
-
- @Override
- public List getAvailableCartridgeNames() throws OpenShiftException {
- final List cartridges = new ArrayList();
- for (LinkParameter param : getLink(LINK_ADD_APPLICATION).getRequiredParams()) {
- if (param.getName().equals(IOpenShiftJsonConstants.PROPERTY_CARTRIDGE)) {
- for (String option : param.getValidOptions()) {
- cartridges.add(option);
- }
- }
- }
- return cartridges;
- }
-
- @Override
- public List getAvailableGearProfiles() throws OpenShiftException {
- final List gearSizes = new ArrayList();
- for (LinkParameter param : getLink(LINK_ADD_APPLICATION).getOptionalParams()) {
- if (param.getName().equals(IOpenShiftJsonConstants.PROPERTY_GEAR_PROFILE)) {
- for (String option : param.getValidOptions()) {
- gearSizes.add(new GearProfile(option));
- }
- }
- }
- return gearSizes;
- }
-
- @Override
- public void refresh() throws OpenShiftException {
- final DomainResourceDTO domainResourceDTO = new GetDomainRequest().execute();
- this.id = domainResourceDTO.getId();
- this.suffix = domainResourceDTO.getSuffix();
- if (applications == null) {
- // not loaded yet
- loadApplications();
- } else {
- updateApplications();
- }
- }
-
- @Override
- public int hashCode() {
- final int prime = 31;
- int result = 1;
- result = prime * result + ((id == null) ? 0 : id.hashCode());
- result = prime * result + ((suffix == null) ? 0 : suffix.hashCode());
- return result;
- }
-
- @Override
- public boolean equals(Object obj) {
- if (this == obj)
- return true;
- if (obj == null)
- return false;
- if (getClass() != obj.getClass())
- return false;
- DomainResource other = (DomainResource) obj;
- if (id == null) {
- if (other.id != null)
- return false;
- } else if (!id.equals(other.id))
- return false;
- if (suffix == null) {
- if (other.suffix != null)
- return false;
- } else if (!suffix.equals(other.suffix))
- return false;
- return true;
- }
-
- @Override
- public String toString() {
- return "Domain ["
- + "id=" + id + ", "
- + "suffix=" + suffix
- + "]";
- }
-
- private class GetDomainRequest extends ServiceRequest {
-
- private GetDomainRequest() throws OpenShiftException {
- super(LINK_GET);
- }
-
- protected DomainResourceDTO execute() throws OpenShiftException {
- return (DomainResourceDTO) super.execute();
- }
- }
-
- private class ListApplicationsRequest extends ServiceRequest {
-
- private ListApplicationsRequest() throws OpenShiftException {
- super(LINK_LIST_APPLICATIONS);
- }
-
- protected DTO execute() throws OpenShiftException {
- // ?include=cartridges
- Parameters urlParameters = new Parameters()
- .include(IOpenShiftParameterConstants.PARAMETER_CARTRIDGES);
-
- return super.execute(urlParameters.toList());
- }
- }
-
- private class CreateApplicationRequest extends ServiceRequest {
-
- private CreateApplicationRequest() throws OpenShiftException {
- super(LINK_ADD_APPLICATION);
- }
-
- protected ApplicationResourceDTO execute(final String name, IStandaloneCartridge cartridge,
- final ApplicationScale scale, final IGearProfile gearProfile, final String initialGitUrl,
- final int timeout, Map environmentVariables,
- final IEmbeddableCartridge... embeddableCartridges)
- throws OpenShiftException {
- if (cartridge == null) {
- throw new OpenShiftException("Application cartridge is mandatory but was not given.");
- }
-
- Parameters parameters = new Parameters()
- .add(IOpenShiftJsonConstants.PROPERTY_NAME, name)
- .addCartridges(cartridge, embeddableCartridges)
- .scale(scale)
- .gearProfile(gearProfile)
- .add(IOpenShiftJsonConstants.PROPERTY_INITIAL_GIT_URL, initialGitUrl)
- .addEnvironmentVariables(environmentVariables);
-
- // ?include=cartridges
- Parameters urlParameters = new Parameters()
- .include(IOpenShiftParameterConstants.PARAMETER_CARTRIDGES);
-
- return execute(timeout, urlParameters.toList(), parameters.toArray());
- }
- }
-
- private class UpdateDomainRequest extends ServiceRequest {
-
- private UpdateDomainRequest() throws OpenShiftException {
- super(LINK_UPDATE);
- }
-
- protected DomainResourceDTO execute(String namespace) throws OpenShiftException {
- return super.execute(new StringParameter(IOpenShiftJsonConstants.PROPERTY_ID, namespace));
- }
- }
-
- private class DeleteDomainRequest extends ServiceRequest {
-
- private DeleteDomainRequest() throws OpenShiftException {
- super(LINK_DELETE);
- }
-
- protected void execute(boolean force) throws OpenShiftException {
- super.execute(new StringParameter(IOpenShiftJsonConstants.PROPERTY_FORCE, String.valueOf(force)));
- }
- }
-}
diff --git a/src/main/java/com/openshift/internal/client/EmbeddedCartridgeResource.java b/src/main/java/com/openshift/internal/client/EmbeddedCartridgeResource.java
deleted file mode 100755
index cad4a624..00000000
--- a/src/main/java/com/openshift/internal/client/EmbeddedCartridgeResource.java
+++ /dev/null
@@ -1,159 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2011 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.internal.client;
-
-import java.net.URL;
-
-import com.openshift.client.IApplication;
-import com.openshift.client.OpenShiftException;
-import com.openshift.client.cartridge.EmbeddableCartridge;
-import com.openshift.client.cartridge.IEmbeddableCartridge;
-import com.openshift.client.cartridge.IEmbeddedCartridge;
-import com.openshift.internal.client.response.CartridgeResourceDTO;
-import com.openshift.internal.client.response.CartridgeResourceProperties;
-
-/**
- * A cartridge that is embedded into an application.
- *
- * @author André Dietisheim
- */
-public class EmbeddedCartridgeResource extends AbstractOpenShiftResource implements IEmbeddedCartridge {
-
- private static final String LINK_DELETE_CARTRIDGE = "DELETE";
-
- private final String name;
- private String displayName;
- private String description;
- private final CartridgeType type;
- private URL url;
- private final ApplicationResource application;
- private CartridgeResourceProperties properties;
-
- protected EmbeddedCartridgeResource(final CartridgeResourceDTO dto, final ApplicationResource application) {
- super(application.getService(), dto.getLinks(), dto.getMessages());
- this.name = dto.getName();
- this.displayName = dto.getDisplayName();
- this.description = dto.getDescription();
- this.type = CartridgeType.EMBEDDED;
- this.url = dto.getUrl();
- this.properties = dto.getProperties();
- this.application = application;
- }
-
- public String getName() {
- return name;
- }
-
- public String getDisplayName() {
- return displayName;
- }
-
- public String getDescription() {
- return description;
- }
-
- protected CartridgeType getType() {
- return type;
- }
-
- public URL getUrl() {
- return url;
- }
-
- public boolean isDownloadable() {
- return url != null;
- }
-
- public IApplication getApplication() {
- return application;
- }
-
- protected void update(CartridgeResourceDTO dto) {
- this.description = dto.getDescription();
- this.displayName = dto.getDisplayName();
- this.url = dto.getUrl();
- this.properties = dto.getProperties();
- setLinks(dto.getLinks());
- }
-
- /**
- * Refreshes the content of this embedded cartridge. Causes all embedded
- * cartridges of the same application to get updated.
- *
- * @see #update(CartridgeResourceDTO)
- * @see ApplicationResource#refreshEmbeddedCartridges()
- */
- @Override
- public void refresh() throws OpenShiftException {
- // tell application to refresh all embedded cartridges
- application.refreshEmbeddedCartridges();
- }
-
- public void destroy() throws OpenShiftException {
- new DeleteCartridgeRequest().execute();
- application.removeEmbeddedCartridge(this);
- }
-
- @Override
- public CartridgeResourceProperties getProperties() {
- return properties;
- }
-
- private class DeleteCartridgeRequest extends ServiceRequest {
-
- private DeleteCartridgeRequest() {
- super(LINK_DELETE_CARTRIDGE);
- }
- }
-
- @Override
- public int hashCode() {
- final int prime = 31;
- int result = 1;
- result = prime * result + ((name == null) ? 0 : name.hashCode());
- return result;
- }
-
- /**
- * TODO: implement fully correct #equals and #hashcode. The current
- * implementation only ensures that {@link EmbeddedCartridgeResource} may be
- * compared to {@link EmbeddableCartridge}.
- */
- @Override
- public boolean equals(Object obj) {
- if (this == obj)
- return true;
- if (obj == null)
- return false;
- if (!(IEmbeddableCartridge.class.isAssignableFrom(obj.getClass())))
- return false;
- IEmbeddableCartridge other = (IEmbeddableCartridge) obj;
- if (name == null) {
- if (other.getName() != null)
- return false;
- } else if (!name.equals(other.getName()))
- return false;
- return true;
- }
-
- @Override
- public String toString() {
- return "EmbeddedCartridgeResource [" +
- "name=" + name
- + "url=" + url
- + ", displayName=" + displayName
- + ", description=" + description
- + ", type=" + type
- + ", application=" + application.getName()
- + "]";
- }
-
-}
\ No newline at end of file
diff --git a/src/main/java/com/openshift/internal/client/EnvironmentVariableResource.java b/src/main/java/com/openshift/internal/client/EnvironmentVariableResource.java
deleted file mode 100644
index fd2d2eb1..00000000
--- a/src/main/java/com/openshift/internal/client/EnvironmentVariableResource.java
+++ /dev/null
@@ -1,137 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2013 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.internal.client;
-
-import java.util.Map;
-
-import com.openshift.client.IApplication;
-import com.openshift.client.IEnvironmentVariable;
-import com.openshift.client.Messages;
-import com.openshift.client.OpenShiftException;
-import com.openshift.internal.client.response.EnvironmentVariableResourceDTO;
-import com.openshift.internal.client.response.Link;
-import com.openshift.internal.client.utils.IOpenShiftJsonConstants;
-
-/**
- * @author Syed Iqbal
- */
-public class EnvironmentVariableResource extends AbstractOpenShiftResource implements IEnvironmentVariable {
-
- private static final String LINK_GET = "GET";
- private static final String LINK_UPDATE = "UPDATE";
- private static final String LINK_DELETE = "DELETE";
-
- /** The name of the environment variable */
- private String name;
-
- /** The value of the environment variable */
- private String value;
-
- /** The application this environment variable belongs to */
- private ApplicationResource application;
-
- protected EnvironmentVariableResource(EnvironmentVariableResourceDTO dto, ApplicationResource application) {
- this(dto.getName(), dto.getValue(), dto.getMessages(), dto.getLinks(), application);
- }
-
- protected EnvironmentVariableResource(final String name, final String value, final Messages messages,
- final Map links, final ApplicationResource application) {
- super(application.getService(), links, messages);
- this.name = name;
- this.value = value;
- this.application = application;
- }
-
- @Override
- public String getName() {
- return name;
- }
-
- @Override
- public String getValue() {
- return value;
- }
-
- @Override
- @Deprecated
- public void update(String newValue) throws OpenShiftException {
- if (newValue == null) {
- throw new OpenShiftException("Value for environment variable \"{0}\" not given.", name);
- }
- EnvironmentVariableResourceDTO environmentVariableResourceDTO =
- new UpdateEnvironmentVariableRequest().execute(newValue);
- updateEnvironmentVariable(environmentVariableResourceDTO);
- /*
- * This should be done in the IApplication, to break up this dependency
- * on the entity, i.e. IEnvironmentVariable, on something that is
- * outside of itself, such as the implementation of IApplication.
- * @author Martes G Wigglesworth
- */
- application.updateEnvironmentVariables();
-
-
- }
-
- private void updateEnvironmentVariable(EnvironmentVariableResourceDTO dto) {
- this.name = dto.getName();
- this.value = dto.getValue();
- this.getLinks().clear();
- this.getLinks().putAll(dto.getLinks());
- }
-
- @Override
- @Deprecated
- public void destroy() throws OpenShiftException {
- new DeleteEnvironmentVariableRequest().execute();
-
- }
-
- @Override
- public void refresh() throws OpenShiftException {
- EnvironmentVariableResourceDTO environmentVariableResourceDTO = new GetEnvironmentVariableRequest().execute();
- updateEnvironmentVariable(environmentVariableResourceDTO);
- }
-
- private class UpdateEnvironmentVariableRequest extends ServiceRequest {
- protected UpdateEnvironmentVariableRequest() {
- super(LINK_UPDATE);
- }
-
- protected EnvironmentVariableResourceDTO execute(String value) throws OpenShiftException {
- Parameters parameters = new Parameters()
- .add(IOpenShiftJsonConstants.PROPERTY_VALUE, value);
- return super.execute(parameters.toArray());
- }
- }
-
- private class GetEnvironmentVariableRequest extends ServiceRequest {
- protected GetEnvironmentVariableRequest() {
- super(LINK_GET);
- }
- }
-
- private class DeleteEnvironmentVariableRequest extends ServiceRequest {
- protected DeleteEnvironmentVariableRequest() {
- super(LINK_DELETE);
- }
- }
-
- @Override
- public IApplication getApplication() {
- return application;
- }
-
- public String toString(){
- return new String(
- "Name:"+this.name+",Value:"+value
- );
- }
-}
diff --git a/src/main/java/com/openshift/internal/client/Field.java b/src/main/java/com/openshift/internal/client/Field.java
deleted file mode 100644
index a6d0af93..00000000
--- a/src/main/java/com/openshift/internal/client/Field.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2013 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.internal.client;
-
-import com.openshift.client.IField;
-
-/**
- * @author Andre Dietisheim
- */
-public class Field implements IField {
-
- private final String field;
-
- public Field(String field) {
- this.field = field;
- }
-
- public String getValue() {
- return field;
- }
-
- @Override
- public int hashCode() {
- final int prime = 31;
- int result = 1;
- result = prime * result + ((field == null) ? 0 : field.hashCode());
- return result;
- }
-
- @Override
- public boolean equals(Object obj) {
- if (this == obj)
- return true;
- if (obj == null)
- return false;
- if (getClass() != obj.getClass())
- return false;
- Field other = (Field) obj;
- if (field == null) {
- if (other.field != null)
- return false;
- } else if (!field.equals(other.field))
- return false;
- return true;
- }
-}
\ No newline at end of file
diff --git a/src/main/java/com/openshift/internal/client/Gear.java b/src/main/java/com/openshift/internal/client/Gear.java
deleted file mode 100644
index 6324faaa..00000000
--- a/src/main/java/com/openshift/internal/client/Gear.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2013 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.internal.client;
-
-import com.openshift.client.GearState;
-import com.openshift.client.IGear;
-
-
-/**
- * A gear that a cartridge is running on.
- *
- * @author Andre Dietisheim
- */
-public class Gear implements IGear {
-
- private final String id;
- private GearState state;
- private final String sshUrl;
-
- public Gear(String id, GearState state, String sshUrl) {
- this.id = id;
- this.state = state;
- this.sshUrl = sshUrl;
- }
-
- public String getId() {
- return id;
- }
-
- public GearState getState() {
- return state;
- }
-
- /**
- * @return the sshUrl
- */
- public String getSshUrl() {
- return sshUrl;
- }
-
- public String toString() {
- return "Gear [id=" + id + ", state=" + state + "]";
- }
-}
\ No newline at end of file
diff --git a/src/main/java/com/openshift/internal/client/GearGroupResource.java b/src/main/java/com/openshift/internal/client/GearGroupResource.java
deleted file mode 100755
index 38d93ce6..00000000
--- a/src/main/java/com/openshift/internal/client/GearGroupResource.java
+++ /dev/null
@@ -1,111 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2013 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.internal.client;
-
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Collections;
-import java.util.Iterator;
-import java.util.Map;
-import java.util.Map.Entry;
-
-import com.openshift.client.GearState;
-import com.openshift.client.IGear;
-import com.openshift.client.IGearGroup;
-import com.openshift.client.OpenShiftException;
-import com.openshift.client.cartridge.ICartridge;
-import com.openshift.internal.client.response.CartridgeResourceDTO;
-import com.openshift.internal.client.response.GearGroupResourceDTO;
-import com.openshift.internal.client.response.GearResourceDTO;
-
-/**
- * @author Andre Dietisheim
- * @author Xavier Coulon
- */
-public class GearGroupResource extends AbstractOpenShiftResource implements IGearGroup {
-
- /** The uuid of this gear group. */
- private final String uuid;
-
- /** the name of this gear group */
- private final String name;
-
- /** the gears of this gear group resource */
- private final Collection gears;
-
- /** the cartridges in this gear group resource */
- private final Collection cartridges;
-
- /**
- * Constructor.
- *
- * @param uuid the gear group's UUID
- * @param name the gear group's name
- * @param gearDTOs the gear group's gears
- * @param cartridgeDTOs the gear group's cartridges, indexed by their name
- * @param application the gear group's parent application
- * @param service the underlying REST Service
- */
- protected GearGroupResource(final String uuid, final String name, final Collection gearDTOs,
- final Map cartridgeDTOs, final ApplicationResource application, final IRestService service) {
- super(service);
- this.uuid = uuid;
- this.name = name;
- this.gears = new ArrayList();
- for(GearResourceDTO dto : gearDTOs) {
- this.gears.add(new Gear(dto.getUuid(), new GearState(dto.getState()), dto.getSshUrl()));
- }
- this.cartridges = new ArrayList();
- for(Iterator> iterator = cartridgeDTOs.entrySet().iterator(); iterator.hasNext();) {
- final String cartridgeName = iterator.next().getKey();
- final ICartridge cartridge = application.getCartridge(cartridgeName);
- if(cartridge != null) {
- cartridges.add(cartridge);
- }
- }
- }
-
- /**
- * Constructor.
- *
- * @param dto the associated {@link GearGroupResourceDTO}
- * @param application the parent application
- * @param servicethe underlying REST Service
- */
- protected GearGroupResource(final GearGroupResourceDTO dto, final ApplicationResource application, final IRestService service) {
- this(dto.getUuid(), dto.getName(), dto.getGears(), dto.getCartridges(), application, service);
- }
-
- public final String getUUID() {
- return uuid;
- }
-
- public final String getName() {
- return name;
- }
-
- public Collection getGears() {
- return Collections.unmodifiableCollection(gears);
- }
-
- /**
- * @return the cartridges
- */
- public Collection getCartridges() {
- return cartridges;
- }
-
- @Override
- public void refresh() throws OpenShiftException {
- }
-
-}
diff --git a/src/main/java/com/openshift/internal/client/GearProfile.java b/src/main/java/com/openshift/internal/client/GearProfile.java
deleted file mode 100644
index de756978..00000000
--- a/src/main/java/com/openshift/internal/client/GearProfile.java
+++ /dev/null
@@ -1,62 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2012 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.internal.client;
-
-import com.openshift.client.IGearProfile;
-import com.openshift.internal.client.utils.Assert;
-
-/**
- * @author Andre Dietisheim
- */
-public class GearProfile implements IGearProfile {
-
- private String name;
-
- public GearProfile(String name) {
- Assert.notNull(name);
-
- this.name = name;
- }
-
- public String getName() {
- return name;
- }
-
- @Override
- public int hashCode() {
- final int prime = 31;
- int result = 1;
- result = prime * result + ((name == null) ? 0 : name.hashCode());
- return result;
- }
-
- @Override
- public boolean equals(Object obj) {
- if (this == obj)
- return true;
- if (obj == null)
- return false;
- if (getClass() != obj.getClass())
- return false;
- GearProfile other = (GearProfile) obj;
- if (name == null) {
- if (other.name != null)
- return false;
- } else if (!name.equals(other.name))
- return false;
- return true;
- }
-
- @Override
- public String toString() {
- return "GearProfile [name=" + name + "]";
- }
-}
diff --git a/src/main/java/com/openshift/internal/client/IRestService.java b/src/main/java/com/openshift/internal/client/IRestService.java
deleted file mode 100755
index d1879e4e..00000000
--- a/src/main/java/com/openshift/internal/client/IRestService.java
+++ /dev/null
@@ -1,108 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2012 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.internal.client;
-
-import java.util.List;
-
-import com.openshift.client.IHttpClient;
-import com.openshift.client.OpenShiftException;
-import com.openshift.internal.client.httpclient.request.IMediaType;
-import com.openshift.internal.client.httpclient.request.Parameter;
-import com.openshift.internal.client.response.Link;
-import com.openshift.internal.client.response.RestResponse;
-
-/**
- * A rest service that executes request against the OpenShift server
- *
- * @author Andre Dietisheim
- */
-public interface IRestService {
-
- public static final String SERVICE_VERSION = "1.2";
-
- public static final String SERVICE_PATH = "/broker/rest/";
-
- public RestResponse request(Link link, Parameter... parameters) throws OpenShiftException;
-
- public RestResponse request(Link link, int timeout, Parameter... parameters) throws OpenShiftException;
-
- public RestResponse request(Link link, int timeout, IMediaType mediaType, Parameter... parameters)
- throws OpenShiftException;
-
- public RestResponse request(Link link, List urlParameters, Parameter... parameters)
- throws OpenShiftException;
-
- public RestResponse request(Link link, int timeout, List urlParameters, Parameter... parameters)
- throws OpenShiftException;
-
- public RestResponse request(Link link, int timeout, List urlPathParameters, List urlParameters, Parameter... parameters)
- throws OpenShiftException;
-
- public RestResponse request(Link link, int timeout, IMediaType mediaType, List urlParameters, Parameter... parameters)
- throws OpenShiftException;
-
- /**
- * Requests the given link sending the given parameters while encoding the
- * parameters with the given media type and respecting the given timeout.
- * Parameters are supported in 3 different forms:
- *
- * -
- * in the request body (ignored for GET requests)
- * -
- * in the url (url-parameters: ?parameter=value)
- * -
- * in the url path (url-path-parameters: /applications/:application)
- *
- *
- * @param link
- * the link to use
- * @param timeout
- * the timeout in millis (or {@link IHttpClient#NO_TIMEOUT})
- * @param urlPathParameters
- * the parameters in the url ("/applications/:applicationname")
- * @param urlParameters
- * the url parameters ("?parameter=value")
- * @param parameters
- * the body parameters (ingnored for GET requests)
- * @param parameters
- * the parameters to send
- * @return the rest response
- * @throws OpenShiftException
- *
- * @see Link
- * @see Parameter
- * @see IMediaType
- * @see IHttpClient#NO_TIMEOUT
- * @see IHttpClient#SYSPROP_DEFAULT_CONNECT_TIMEOUT
- * @see IHttpClient#SYSPROP_DEFAULT_READ_TIMEOUT
- * @see IHttpClient#SYSPROP_OPENSHIFT_CONNECT_TIMEOUT
- * @see IHttpClient#DEFAULT_READ_TIMEOUT
- */
- public RestResponse request(Link link, int timeout, IMediaType mediaType, List urlPathParameters,
- List urlParameters, Parameter... parameters)
- throws OpenShiftException;
-
- /**
- * Returns the url for the OpenShift service, the endpoint which this rest
- * service class is talking to.
- *
- * @return the url of the OpenShift service
- */
- public String getServiceUrl();
-
- /**
- * Returns the OpenShift server.
- *
- * @return
- */
- public String getPlatformUrl();
-
-}
\ No newline at end of file
diff --git a/src/main/java/com/openshift/internal/client/RestService.java b/src/main/java/com/openshift/internal/client/RestService.java
deleted file mode 100755
index 1968a363..00000000
--- a/src/main/java/com/openshift/internal/client/RestService.java
+++ /dev/null
@@ -1,211 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2011 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.internal.client;
-
-import java.net.MalformedURLException;
-import java.net.SocketTimeoutException;
-import java.net.URL;
-import java.util.Collections;
-import java.util.List;
-
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-import com.openshift.client.HttpMethod;
-import com.openshift.client.IHttpClient;
-import com.openshift.client.InvalidCredentialsOpenShiftException;
-import com.openshift.client.Messages;
-import com.openshift.client.NotFoundOpenShiftException;
-import com.openshift.client.OpenShiftEndpointException;
-import com.openshift.client.OpenShiftException;
-import com.openshift.client.OpenShiftTimeoutException;
-import com.openshift.internal.client.httpclient.EncodingException;
-import com.openshift.internal.client.httpclient.HttpClientException;
-import com.openshift.internal.client.httpclient.NotFoundException;
-import com.openshift.internal.client.httpclient.UnauthorizedException;
-import com.openshift.internal.client.httpclient.request.IMediaType;
-import com.openshift.internal.client.httpclient.request.Parameter;
-import com.openshift.internal.client.response.IRestResponseFactory;
-import com.openshift.internal.client.response.Link;
-import com.openshift.internal.client.response.RestResponse;
-import com.openshift.internal.client.utils.Assert;
-import com.openshift.internal.client.utils.StringUtils;
-import com.openshift.internal.client.utils.UrlUtils;
-
-/**
- * @author André Dietisheim
- */
-public class RestService implements IRestService {
-
- private static final Logger LOGGER = LoggerFactory.getLogger(RestService.class);
-
- private String server;
- private IMediaType defaultRequestMediaType;
- private IHttpClient client;
- private IRestResponseFactory factory;
-
- public RestService(String server, String clientId, IMediaType defaultRequestMediaType, String acceptedMediaType,
- IRestResponseFactory factory, IHttpClient client) {
- this(server, clientId, defaultRequestMediaType, acceptedMediaType, factory, client, new RestServiceProperties());
- }
-
- protected RestService(String server, String clientId, IMediaType defaultRequestMediaType, String acceptedMediaType,
- IRestResponseFactory factory, IHttpClient client, RestServiceProperties properties) {
- this(server, clientId, null, defaultRequestMediaType, acceptedMediaType, factory, client, properties);
- }
-
- protected RestService(String server, String clientId, String protocolVersion, IMediaType defaultRequestMediaType,
- String acceptedMediaType, IRestResponseFactory factory, IHttpClient client, RestServiceProperties properties) {
- Assert.notEmpty(server);
- Assert.notNull(defaultRequestMediaType);
- Assert.notEmpty(acceptedMediaType);
- Assert.notNull(factory);
- Assert.notNull(properties);
- Assert.notNull(client);
-
- this.server = UrlUtils.ensureStartsWithHttps(server);
- this.defaultRequestMediaType = defaultRequestMediaType;
- this.factory = factory;
- this.client = client;
- setupClient(properties.getUseragent(clientId), protocolVersion, acceptedMediaType, client);
- }
-
- private void setupClient(String userAgent, String protocolVersion, String acceptedMediaType, IHttpClient client) {
- if (StringUtils.isEmpty(protocolVersion)) {
- protocolVersion = SERVICE_VERSION;
- }
- client.setAcceptedMediaType(acceptedMediaType);
- client.setAcceptVersion(protocolVersion);
- client.setUserAgent(userAgent);
- }
-
- @Override
- public RestResponse request(Link link, Parameter... parameters) throws OpenShiftException {
- return request(link, IHttpClient.NO_TIMEOUT, defaultRequestMediaType, parameters);
- }
-
- @Override
- public RestResponse request(Link link, int timeout, Parameter... parameters) throws OpenShiftException {
- return request(link, timeout, defaultRequestMediaType, parameters);
- }
-
- @Override
- public RestResponse request(Link link, List urlParameters, Parameter... parameters)
- throws OpenShiftException {
- return request(link, IHttpClient.NO_TIMEOUT, defaultRequestMediaType, urlParameters, parameters);
- }
-
- @Override
- public RestResponse request(Link link, int timeout, IMediaType requestMediaType, Parameter... parameters)
- throws OpenShiftException {
- return request(link, timeout, requestMediaType, Collections.emptyList(), parameters);
- }
-
- @Override
- public RestResponse request(Link link, int timeout, List urlParameters, Parameter... parameters)
- throws OpenShiftException {
- return request(link, timeout, defaultRequestMediaType, Collections.emptyList(), urlParameters, parameters);
- }
-
- @Override
- public RestResponse request(Link link, int timeout, List urlPathParameters, List urlParameters, Parameter... parameters) throws OpenShiftException {
- return request(link, timeout, defaultRequestMediaType, urlPathParameters, urlParameters, parameters);
- }
-
- @Override
- public RestResponse request(Link link, int timeout, IMediaType requestMediaType, List urlParameters, Parameter... parameters) throws OpenShiftException {
- return request(link, timeout, requestMediaType, Collections.emptyList(), urlParameters, parameters);
- }
-
- @Override
- public RestResponse request(Link link, int timeout, IMediaType requestMediaType, List urlPathParameter,
- List urlParameters, Parameter... parameters) throws OpenShiftException {
- // link.validateParameters(parameters);
- String url = link.getHref(server, SERVICE_PATH, urlPathParameter, urlParameters);
- try {
- String response = request(new URL(url), link.getHttpMethod(), requestMediaType, timeout, parameters);
- return factory.get(response);
- } catch (EncodingException e) {
- throw new OpenShiftException(e, e.getMessage());
- } catch (MalformedURLException e) {
- throw new OpenShiftException(e, e.getMessage());
- } catch (UnauthorizedException e) {
- throw new InvalidCredentialsOpenShiftException(url, e, getRestResponse(e));
- } catch (NotFoundException e) {
- throw new NotFoundOpenShiftException(url, e, getRestResponse(e));
- } catch (HttpClientException e) {
- RestResponse restResponse = getRestResponse(e);
- String message = getMessage(restResponse, e);
- throw new OpenShiftEndpointException(
- url.toString(), e, restResponse, "Could not request {0}: {1}", url, message);
- } catch (SocketTimeoutException e) {
- throw new OpenShiftTimeoutException(url, e,
- "Could not request url {0}, connection timed out", url);
- }
- }
-
- private RestResponse getRestResponse(HttpClientException clientException) {
- try {
- return factory.get(clientException.getMessage());
- } catch (OpenShiftException e) {
- // unexpected json content
- LOGGER.error(e.getMessage());
- return null;
- } catch(IllegalArgumentException e) {
- // not json
- return null;
- }
- }
-
- private String getMessage(RestResponse restResponse, HttpClientException e) {
- if (restResponse == null) {
- return e.getMessage();
- }
- Messages messages = restResponse.getMessages();
- if (messages == null) {
- return "";
- }
- return messages.toString();
- }
-
- private String request(URL url, HttpMethod httpMethod, IMediaType mediaType, int timeout, Parameter... parameters)
- throws HttpClientException, SocketTimeoutException, OpenShiftException, EncodingException {
- LOGGER.info("Requesting {} with protocol {} on {}",
- new Object[] { httpMethod.name(), SERVICE_VERSION, url });
-
- switch (httpMethod) {
- case GET:
- return client.get(url, timeout);
- case HEAD:
- return client.head(url, timeout);
- case POST:
- return client.post(url, mediaType, timeout, parameters);
- case PUT:
- return client.put(url, mediaType,timeout, parameters);
- case DELETE:
- return client.delete(url, mediaType, timeout, parameters);
- case PATCH:
- return client.patch(url, mediaType, timeout, parameters);
- default:
- throw new OpenShiftException("Unexpected HTTP method {0}", httpMethod.toString());
- }
-
-
- }
-
- public String getServiceUrl() {
- return server + SERVICE_PATH;
- }
-
- public String getPlatformUrl() {
- return server;
- }
-}
diff --git a/src/main/java/com/openshift/internal/client/RestServiceProperties.java b/src/main/java/com/openshift/internal/client/RestServiceProperties.java
deleted file mode 100755
index 3950954b..00000000
--- a/src/main/java/com/openshift/internal/client/RestServiceProperties.java
+++ /dev/null
@@ -1,99 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2012 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.internal.client;
-
-import java.io.FileNotFoundException;
-import java.io.IOException;
-import java.io.InputStream;
-import java.text.MessageFormat;
-import java.util.Properties;
-
-import com.openshift.internal.client.utils.StreamUtils;
-import com.openshift.internal.client.utils.StringUtils;
-
-/**
- * @author Andre Dietisheim
- */
-public class RestServiceProperties {
-
- private static final String PROPERTIES_FILE = "restservice.properties";
-
- static final String KEY_USERAGENTPATTERN = "useragent";
- static final String KEY_VERSION = "version";
- static final String KEY_CLIENTID = "clientid";
-
- private String version;
- private String userAgent;
- private String clientId;
-
- private Properties properties;
-
- public String getVersion() {
- if (version == null) {
- version = getStringProperty(KEY_VERSION);
- }
- return version;
- }
-
- private String getStringProperty(String key) {
- try {
- return getProperties().getProperty(key);
- } catch (IOException e) {
- return null;
- }
- }
-
- public String getUseragent(String clientId) {
- String userAgent = null;
- String version = getVersion();
- String useragentPattern = getUseragentPattern();
- if (!StringUtils.isEmpty(useragentPattern)) {
- userAgent = MessageFormat.format(useragentPattern,
- StringUtils.nullToEmptyString(version),
- StringUtils.nullToEmptyString(clientId));
- }
- return userAgent;
- }
-
- protected String getUseragentPattern() {
- if (userAgent == null) {
- userAgent = getStringProperty(KEY_USERAGENTPATTERN);
- }
-
- return userAgent;
- }
-
- public String getClientId() {
- if (clientId == null) {
- clientId = getStringProperty(KEY_CLIENTID);
- }
-
- return clientId;
- }
-
- protected Properties getProperties() throws IOException {
- if (properties == null) {
- InputStream in = null;
- try {
- properties = new Properties();
- in = getClass().getResourceAsStream("/" + PROPERTIES_FILE);
- if (in == null) {
- throw new FileNotFoundException(
- MessageFormat.format("Could not load properties file {0}", PROPERTIES_FILE));
- }
- properties.load(in);
- } finally {
- StreamUtils.quietlyClose(in);
- }
- }
- return properties;
- }
-}
diff --git a/src/main/java/com/openshift/internal/client/SSHKeyResource.java b/src/main/java/com/openshift/internal/client/SSHKeyResource.java
deleted file mode 100644
index 96f82101..00000000
--- a/src/main/java/com/openshift/internal/client/SSHKeyResource.java
+++ /dev/null
@@ -1,121 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2012 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.internal.client;
-
-import com.openshift.client.IOpenShiftSSHKey;
-import com.openshift.client.OpenShiftException;
-import com.openshift.client.OpenShiftUnknonwSSHKeyTypeException;
-import com.openshift.client.SSHKeyType;
-import com.openshift.internal.client.httpclient.request.StringParameter;
-import com.openshift.internal.client.response.KeyResourceDTO;
-import com.openshift.internal.client.utils.Assert;
-import com.openshift.internal.client.utils.IOpenShiftJsonConstants;
-
-/**
- * @author Andre Dietisheim
- */
-public class SSHKeyResource extends AbstractOpenShiftResource implements IOpenShiftSSHKey {
-
- private String name;
- private SSHKeyType type;
- private String publicKey;
- private UserResource user;
-
- protected SSHKeyResource(KeyResourceDTO dto, UserResource user) throws OpenShiftUnknonwSSHKeyTypeException {
- super(user.getService(), dto.getLinks(), dto.getMessages());
- this.name = dto.getName();
- this.type = SSHKeyType.getByTypeId(dto.getType());
- this.publicKey = dto.getContent();
- this.user = user;
- }
-
- public void setKeyType(SSHKeyType type, String publicKey) throws OpenShiftException {
- Assert.notNull(type);
- Assert.notNull(publicKey);
-
- KeyResourceDTO dto = new UpdateKeyRequest().execute(type, publicKey);
- update(dto);
- }
-
- public String getName() {
- return name;
- }
-
- public SSHKeyType getKeyType() {
- return type;
- }
-
- public void setPublicKey(String publicKey) throws OpenShiftException {
- Assert.notNull(publicKey);
-
- KeyResourceDTO dto = new UpdateKeyRequest().execute(getKeyType(), publicKey);
- update(dto);
- }
-
- public String getPublicKey() {
- return publicKey;
- }
-
- @Override
- public void refresh() throws OpenShiftException {
- //TODO: implement
- }
-
- public void destroy() throws OpenShiftException {
- new DeleteKeyRequest().execute();
- user.removeSSHKey(this);
- this.name = null;
- this.type = null;
- this.publicKey = null;
- }
-
- protected void update(KeyResourceDTO dto) throws OpenShiftUnknonwSSHKeyTypeException {
- if (dto == null) {
- return;
- }
- this.type = SSHKeyType.getByTypeId(dto.getType());
- this.publicKey = dto.getContent();
- }
-
- private class UpdateKeyRequest extends ServiceRequest {
-
- private UpdateKeyRequest() {
- super("UPDATE");
- }
-
- protected KeyResourceDTO execute(SSHKeyType type, String publicKey) throws OpenShiftException {
- return execute(
- new StringParameter(IOpenShiftJsonConstants.PROPERTY_CONTENT, publicKey),
- new StringParameter(IOpenShiftJsonConstants.PROPERTY_TYPE, type.getTypeId()));
- }
- }
-
- @Override
- public String toString() {
- return "SSHKeyResource ["
- + "name=" + name
- + ", type=" + type
- + ", publicKey=" + publicKey
- + "]";
- }
-
- private class DeleteKeyRequest extends ServiceRequest {
-
- private DeleteKeyRequest() {
- super("DELETE");
- }
-
- protected void execute() throws OpenShiftException {
- super.execute();
- }
- }
-
-}
diff --git a/src/main/java/com/openshift/internal/client/Severity.java b/src/main/java/com/openshift/internal/client/Severity.java
deleted file mode 100644
index 3eebd36d..00000000
--- a/src/main/java/com/openshift/internal/client/Severity.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2013 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.internal.client;
-
-import com.openshift.client.ISeverity;
-
-/**
- * @author Andre Dietisheim
- */
-public class Severity implements ISeverity {
-
- private final String severity;
-
- public Severity(String severity) {
- this.severity = severity;
- }
-
- public String getValue() {
- return severity;
- }
-
- @Override
- public int hashCode() {
- final int prime = 31;
- int result = 1;
- result = prime * result + ((severity == null) ? 0 : severity.hashCode());
- return result;
- }
-
- @Override
- public boolean equals(Object obj) {
- if (this == obj)
- return true;
- if (obj == null)
- return false;
- if (getClass() != obj.getClass())
- return false;
- Severity other = (Severity) obj;
- if (severity == null) {
- if (other.severity != null)
- return false;
- } else if (!severity.equals(other.severity))
- return false;
- return true;
- }
-}
\ No newline at end of file
diff --git a/src/main/java/com/openshift/internal/client/UserResource.java b/src/main/java/com/openshift/internal/client/UserResource.java
deleted file mode 100755
index 29dfea26..00000000
--- a/src/main/java/com/openshift/internal/client/UserResource.java
+++ /dev/null
@@ -1,272 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2011 Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package com.openshift.internal.client;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import com.openshift.client.IDomain;
-import com.openshift.client.IOpenShiftConnection;
-import com.openshift.client.IOpenShiftSSHKey;
-import com.openshift.client.ISSHPublicKey;
-import com.openshift.client.IUser;
-import com.openshift.client.OpenShiftException;
-import com.openshift.client.OpenShiftSSHKeyException;
-import com.openshift.client.OpenShiftUnknonwSSHKeyTypeException;
-import com.openshift.client.SSHKeyType;
-import com.openshift.internal.client.httpclient.request.StringParameter;
-import com.openshift.internal.client.response.KeyResourceDTO;
-import com.openshift.internal.client.response.UserResourceDTO;
-import com.openshift.internal.client.utils.Assert;
-import com.openshift.internal.client.utils.CollectionUtils;
-import com.openshift.internal.client.utils.IOpenShiftJsonConstants;
-
-/**
- * @author André Dietisheim
- */
-public class UserResource extends AbstractOpenShiftResource implements IUser {
-
- private final APIResource api;
- private final String rhLogin;
- private final String password;
- private final int maxGears;
- private final int consumedGears;
-
- private List