From bd6dbdeb646f1355ade9617edbfa5a585659266b Mon Sep 17 00:00:00 2001 From: Corey Daley Date: Fri, 21 Mar 2014 12:19:31 -0400 Subject: [PATCH 1/4] initial awestruct commit --- .gitignore | 5 +- README.md | 35 +- epl-v10.html | 261 -- license | 10 - pom.xml | 295 -- .../openshift/client/ApplicationBuilder.java | 62 - .../openshift/client/ApplicationScale.java | 43 - .../java/com/openshift/client/GearState.java | 74 - .../java/com/openshift/client/HttpMethod.java | 18 - .../com/openshift/client/IApplication.java | 530 --- .../client/IApplicationPortForwarding.java | 64 - .../java/com/openshift/client/IDomain.java | 222 -- .../client/IEnvironmentVariable.java | 58 - .../java/com/openshift/client/IField.java | 25 - src/main/java/com/openshift/client/IGear.java | 36 - .../java/com/openshift/client/IGearGroup.java | 46 - .../com/openshift/client/IGearProfile.java | 22 - .../java/com/openshift/client/IGearState.java | 31 - .../com/openshift/client/IHttpClient.java | 99 - .../client/IOpenShiftConnection.java | 113 - .../openshift/client/IOpenShiftResource.java | 42 - .../openshift/client/IOpenShiftSSHKey.java | 42 - .../com/openshift/client/ISSHPublicKey.java | 36 - .../java/com/openshift/client/ISeverity.java | 26 - src/main/java/com/openshift/client/IUser.java | 61 - .../InvalidCredentialsOpenShiftException.java | 27 - .../client/InvalidNameOpenShiftException.java | 23 - .../java/com/openshift/client/Message.java | 84 - .../java/com/openshift/client/Messages.java | 154 - .../client/NoopSSLCertificateCallback.java | 34 - .../client/NotFoundOpenShiftException.java | 26 - ...ShiftApplicationNotAvailableException.java | 25 - .../client/OpenShiftConnectionFactory.java | 174 - .../client/OpenShiftEndpointException.java | 72 - .../openshift/client/OpenShiftException.java | 29 - .../client/OpenShiftRequestException.java | 25 - .../client/OpenShiftSSHKeyException.java | 23 - .../OpenShiftSSHOperationException.java | 29 - .../client/OpenShiftTimeoutException.java | 24 - .../OpenShiftUnknonwSSHKeyTypeException.java | 23 - .../java/com/openshift/client/SSHKeyPair.java | 119 - .../java/com/openshift/client/SSHKeyType.java | 78 - .../com/openshift/client/SSHPublicKey.java | 57 - .../client/cartridge/EmbeddableCartridge.java | 82 - .../client/cartridge/ICartridge.java | 72 - .../cartridge/IEmbeddableCartridge.java | 32 - .../client/cartridge/IEmbeddedCartridge.java | 55 - .../cartridge/IStandaloneCartridge.java | 28 - .../client/cartridge/StandaloneCartridge.java | 45 - .../selector/CartridgePropertyQuery.java | 23 - .../selector/LatestEmbeddableCartridge.java | 39 - .../selector/LatestStandaloneCartridge.java | 39 - .../cartridge/selector/LatestVersionOf.java | 102 - .../selector/LatestVersionQuery.java | 184 - .../selector/StringPropertyQuery.java | 58 - .../cartridge/selector/UrlPropertyQuery.java | 34 - .../AbstractOpenshiftConfiguration.java | 197 - .../configuration/DefaultConfiguration.java | 41 - .../IOpenShiftConfiguration.java | 36 - .../configuration/OpenShiftConfiguration.java | 29 - .../configuration/SystemConfiguration.java | 31 - .../configuration/SystemProperties.java | 51 - .../configuration/UserConfiguration.java | 30 - .../openshift/client/utils/Base64Coder.java | 83 - .../com/openshift/client/utils/HostUtils.java | 33 - .../client/utils/OpenShiftResourceUtils.java | 36 - .../client/utils/RFC822DateUtils.java | 66 - .../internal/client/APIResource.java | 288 -- .../AbstractOpenShiftConnectionFactory.java | 38 - .../client/AbstractOpenShiftResource.java | 332 -- .../internal/client/ApplicationResource.java | 1165 ------ .../internal/client/CartridgeType.java | 29 - .../internal/client/DomainResource.java | 502 --- .../client/EmbeddedCartridgeResource.java | 159 - .../client/EnvironmentVariableResource.java | 137 - .../com/openshift/internal/client/Field.java | 54 - .../com/openshift/internal/client/Gear.java | 52 - .../internal/client/GearGroupResource.java | 111 - .../internal/client/GearProfile.java | 62 - .../internal/client/IRestService.java | 108 - .../internal/client/RestService.java | 211 -- .../client/RestServiceProperties.java | 99 - .../internal/client/SSHKeyResource.java | 121 - .../openshift/internal/client/Severity.java | 54 - .../internal/client/UserResource.java | 272 -- .../cartridge/AbstractCartridgeQuery.java | 72 - .../client/cartridge/BaseCartridge.java | 133 - .../httpclient/BadRequestException.java | 27 - .../httpclient/CallbackTrustManager.java | 62 - .../client/httpclient/EncodingException.java | 24 - .../httpclient/HttpClientException.java | 32 - .../InternalServerErrorException.java | 27 - .../client/httpclient/NotFoundException.java | 27 - .../httpclient/UnauthorizedException.java | 28 - .../httpclient/UrlConnectionHttpClient.java | 411 -- .../UrlConnectionHttpClientBuilder.java | 72 - .../request/FormUrlEncodedMediaType.java | 121 - .../client/httpclient/request/IMediaType.java | 35 - .../httpclient/request/JsonMediaType.java | 101 - .../client/httpclient/request/Parameter.java | 75 - .../httpclient/request/ParameterValue.java | 60 - .../request/ParameterValueArray.java | 50 - .../httpclient/request/ParameterValueMap.java | 95 - .../httpclient/request/StringParameter.java | 31 - .../httpclient/request/StringValue.java | 29 - .../response/ApplicationResourceDTO.java | 203 - .../client/response/BaseResourceDTO.java | 75 - .../client/response/CartridgeResourceDTO.java | 89 - .../response/CartridgeResourceProperties.java | 65 - .../response/CartridgeResourceProperty.java | 90 - .../client/response/DomainResourceDTO.java | 44 - .../client/response/EnumDataType.java | 63 - .../EnvironmentVariableResourceDTO.java | 62 - .../client/response/GearGroupResourceDTO.java | 99 - .../client/response/GearResourceDTO.java | 64 - .../client/response/IRestResponseFactory.java | 27 - .../client/response/KeyResourceDTO.java | 86 - .../internal/client/response/Link.java | 325 -- .../client/response/LinkParameter.java | 75 - .../client/response/LinkParameterType.java | 56 - .../response/OpenShiftJsonDTOFactory.java | 728 ---- .../client/response/RestResponse.java | 87 - .../client/response/UserResourceDTO.java | 52 - .../internal/client/ssh/AbstractSSHKey.java | 67 - .../client/ssh/ApplicationPortForwarding.java | 136 - .../internal/client/utils/Assert.java | 47 - .../client/utils/CollectionUtils.java | 26 - .../client/utils/IOpenShiftJsonConstants.java | 104 - .../utils/IOpenShiftParameterConstants.java | 22 - .../internal/client/utils/StreamUtils.java | 147 - .../internal/client/utils/StringUtils.java | 53 - .../internal/client/utils/UrlUtils.java | 76 - .../com/redhat/openshift/examples/.gitignore | 1 - src/main/resources/restservice.properties | 2 - .../fakes/DefaultConfigurationFake.java | 29 - .../fakes/EmptySystemPropertiesFake.java | 36 - .../client/fakes/HttpServerFake.java | 206 - .../client/fakes/HttpsServerFake.java | 95 - .../fakes/OpenShiftConfigurationFake.java | 60 - .../fakes/PayLoadReturningHttpClientFake.java | 63 - .../client/fakes/SystemConfigurationFake.java | 43 - .../client/fakes/SystemPropertiesFake.java | 16 - .../openshift/client/fakes/TestSSHKey.java | 68 - .../client/fakes/UserConfigurationFake.java | 79 - .../client/fakes/WaitingHttpServerFake.java | 38 - .../portforwarding/PortForwardingL.java | 156 - .../client/utils/ApplicationAssert.java | 301 -- .../client/utils/ApplicationTestUtils.java | 238 -- .../client/utils/CartridgeAssert.java | 102 - .../client/utils/CartridgeAsserts.java | 37 - .../openshift/client/utils/Cartridges.java | 92 - .../openshift/client/utils/DomainAssert.java | 52 - .../client/utils/DomainTestUtils.java | 71 - .../client/utils/EmbeddedCartridgeAssert.java | 109 - .../utils/EmbeddedCartridgeTestUtils.java | 113 - .../client/utils/ExceptionCauseMatcher.java | 37 - .../com/openshift/client/utils/FileUtils.java | 57 - .../client/utils/GearGroupAssert.java | 142 - .../client/utils/GearGroupsAssert.java | 80 - .../client/utils/GearProfileTestUtils.java | 22 - .../openshift/client/utils/MessageAssert.java | 58 - .../utils/OpenShiftTestConfiguration.java | 84 - .../client/utils/ParametersMatcher.java | 77 - .../client/utils/ResourcePropertyAssert.java | 50 - .../client/utils/SSHKeyTestUtils.java | 126 - .../com/openshift/client/utils/Samples.java | 99 - .../utils/StandaloneCartridgeAssert.java | 23 - .../openshift/client/utils/StateVerifier.java | 28 - .../openshift/client/utils/StringUtils.java | 22 - .../client/utils/TestConnectionFactory.java | 58 - .../client/utils/UrlEndsWithMatcher.java | 56 - .../client/APIResourceIntegrationTest.java | 125 - .../internal/client/APIResourceTest.java | 76 - .../ApplicationResourceIntegrationTest.java | 460 --- .../client/ApplicationResourceTest.java | 792 ---- .../client/CertTrustIntegrationTest.java | 60 - .../internal/client/ConfigurationTest.java | 261 -- .../client/DomainResourceIntegrationTest.java | 443 --- .../internal/client/DomainResourceTest.java | 664 ---- .../client/EmbeddableCartridgeTest.java | 102 - ...eddedCartridgeResourceIntegrationTest.java | 502 --- .../client/EmbeddedCartridgeResourceTest.java | 286 -- ...onmentVariableResourceIntegrationTest.java | 79 - .../EnvironmentVariableResourceTest.java | 91 - .../client/GearGroupsResourceTest.java | 73 - .../openshift/internal/client/GearTest.java | 57 - .../client/HttpClientMockDirector.java | 539 --- .../LatestVersionQueryIntegrationTest.java | 190 - .../internal/client/LinkRetriever.java | 59 - .../client/OpenShiftExceptionTest.java | 110 - .../client/OpenShiftIntegrationTestSuite.java | 33 - .../internal/client/OpenShiftTestSuite.java | 51 - .../openshift/internal/client/QueryTest.java | 447 --- .../client/RestServicePropertiesTest.java | 72 - .../internal/client/RestServiceTest.java | 430 --- .../client/SSHKeyIntegrationTest.java | 234 -- .../openshift/internal/client/SSHKeyTest.java | 307 -- .../client/StandaloneCartridgeTest.java | 106 - .../StandaloneCartridgesIntegrationTest.java | 70 - .../openshift/internal/client/TestTimer.java | 42 - .../client/UserResourceIntegrationTest.java | 188 - .../openshift/internal/client/UserTest.java | 74 - .../client/httpclient/HttpClientTest.java | 703 ---- .../request/FormUrlEncodedMediaTypeTest.java | 132 - .../httpclient/request/JsonMediaTypeTest.java | 115 - .../response/OpenShiftJsonDTOFactoryTest.java | 452 --- src/test/resources/integrationTest.properties | 21 - src/test/resources/log4j.xml | 20 - .../samples/delete-domains-foobar_ko.json | 24 - .../samples/delete-domains-foobarz.json | 0 ...elete-domains-foobarz_ko-existingapps.json | 24 - .../resources/samples/delete-user-key-ko.json | 14 - src/test/resources/samples/get-api.json | 328 -- .../resources/samples/get-cartridges.json | 737 ---- .../get-domains-foobar_ko-notfound.json | 21 - .../samples/get-domains-foobars.json | 260 -- ...foobarz-applications-downloadablecart.json | 1079 ------ ...plications-springeap6-cartidges-mysql.json | 243 -- ...tions-springeap6-cartridges_1embedded.json | 466 --- ...tions-springeap6-cartridges_2embedded.json | 676 ---- ...tions-springeap6-cartridges_3embedded.json | 825 ---- ...rz-applications-springeap6-geargroups.json | 149 - ...oobarz-applications-springeap6_0alias.json | 432 --- ...arz-applications-springeap6_1embedded.json | 948 ----- ...oobarz-applications-springeap6_2alias.json | 434 --- ...arz-applications-springeap6_2embedded.json | 1165 ------ ...omains-foobarz-applications_1embedded.json | 1841 --------- ...omains-foobarz-applications_2embedded.json | 2058 ---------- ...omains-foobarz-applications_3embedded.json | 2247 ----------- ...t-domains-foobarz-applications_noapps.json | 18 - ...omains-foobarz-applications_noenvvars.json | 1727 --------- ...s_springeap_scalable_downloadablecart.json | 3308 ----------------- .../samples/get-domains-foobarz.json | 260 -- src/test/resources/samples/get-domains.json | 594 --- .../resources/samples/get-domains_empty.json | 18 - .../resources/samples/get-user-keys_1key.json | 89 - .../samples/get-user-keys_2keys.json | 161 - .../resources/samples/get-user-keys_none.json | 18 - src/test/resources/samples/get-user.json | 99 - ...ironment_variables_foobarz_springeap6.json | 26 - ...ironment_variables_foobarz_springeap6.json | 73 - ...ironment_variables_foobarz_springeap6.json | 221 -- ...vironment_variabls_foobarz_springeap6.json | 1 - .../links-unknown-linkparametertype.json | 26 - .../samples/post-foobar-domains_ko-inuse.json | 24 - ...t-jekyll-domains-foobarz-applications.json | 448 --- ...rz-applications-springeap6-cartridges.json | 243 -- ...scalable-domains-foobarz-applications.json | 446 --- ...oobarz-applications-springeap6-events.json | 580 --- ...nment_variables_to_foobarz_springeap6.json | 123 - ...nt_variable_foo_to_foobarz_springeap6.json | 71 - .../put-bbcc-dsa-user-keys-somekey.json | 95 - ...vironment_variable_foobarz_springeap6.json | 72 - src/test/resources/server-keystore.jks | Bin 2114 -> 0 bytes 254 files changed, 9 insertions(+), 47177 deletions(-) mode change 100755 => 100644 README.md delete mode 100644 epl-v10.html delete mode 100755 license delete mode 100755 pom.xml delete mode 100644 src/main/java/com/openshift/client/ApplicationBuilder.java delete mode 100644 src/main/java/com/openshift/client/ApplicationScale.java delete mode 100644 src/main/java/com/openshift/client/GearState.java delete mode 100644 src/main/java/com/openshift/client/HttpMethod.java delete mode 100755 src/main/java/com/openshift/client/IApplication.java delete mode 100644 src/main/java/com/openshift/client/IApplicationPortForwarding.java delete mode 100755 src/main/java/com/openshift/client/IDomain.java delete mode 100644 src/main/java/com/openshift/client/IEnvironmentVariable.java delete mode 100644 src/main/java/com/openshift/client/IField.java delete mode 100755 src/main/java/com/openshift/client/IGear.java delete mode 100755 src/main/java/com/openshift/client/IGearGroup.java delete mode 100644 src/main/java/com/openshift/client/IGearProfile.java delete mode 100644 src/main/java/com/openshift/client/IGearState.java delete mode 100755 src/main/java/com/openshift/client/IHttpClient.java delete mode 100755 src/main/java/com/openshift/client/IOpenShiftConnection.java delete mode 100644 src/main/java/com/openshift/client/IOpenShiftResource.java delete mode 100644 src/main/java/com/openshift/client/IOpenShiftSSHKey.java delete mode 100644 src/main/java/com/openshift/client/ISSHPublicKey.java delete mode 100644 src/main/java/com/openshift/client/ISeverity.java delete mode 100755 src/main/java/com/openshift/client/IUser.java delete mode 100644 src/main/java/com/openshift/client/InvalidCredentialsOpenShiftException.java delete mode 100644 src/main/java/com/openshift/client/InvalidNameOpenShiftException.java delete mode 100644 src/main/java/com/openshift/client/Message.java delete mode 100644 src/main/java/com/openshift/client/Messages.java delete mode 100644 src/main/java/com/openshift/client/NoopSSLCertificateCallback.java delete mode 100755 src/main/java/com/openshift/client/NotFoundOpenShiftException.java delete mode 100755 src/main/java/com/openshift/client/OpenShiftApplicationNotAvailableException.java delete mode 100755 src/main/java/com/openshift/client/OpenShiftConnectionFactory.java delete mode 100644 src/main/java/com/openshift/client/OpenShiftEndpointException.java delete mode 100644 src/main/java/com/openshift/client/OpenShiftException.java delete mode 100644 src/main/java/com/openshift/client/OpenShiftRequestException.java delete mode 100644 src/main/java/com/openshift/client/OpenShiftSSHKeyException.java delete mode 100644 src/main/java/com/openshift/client/OpenShiftSSHOperationException.java delete mode 100644 src/main/java/com/openshift/client/OpenShiftTimeoutException.java delete mode 100644 src/main/java/com/openshift/client/OpenShiftUnknonwSSHKeyTypeException.java delete mode 100644 src/main/java/com/openshift/client/SSHKeyPair.java delete mode 100644 src/main/java/com/openshift/client/SSHKeyType.java delete mode 100644 src/main/java/com/openshift/client/SSHPublicKey.java delete mode 100644 src/main/java/com/openshift/client/cartridge/EmbeddableCartridge.java delete mode 100755 src/main/java/com/openshift/client/cartridge/ICartridge.java delete mode 100644 src/main/java/com/openshift/client/cartridge/IEmbeddableCartridge.java delete mode 100755 src/main/java/com/openshift/client/cartridge/IEmbeddedCartridge.java delete mode 100644 src/main/java/com/openshift/client/cartridge/IStandaloneCartridge.java delete mode 100755 src/main/java/com/openshift/client/cartridge/StandaloneCartridge.java delete mode 100644 src/main/java/com/openshift/client/cartridge/selector/CartridgePropertyQuery.java delete mode 100644 src/main/java/com/openshift/client/cartridge/selector/LatestEmbeddableCartridge.java delete mode 100644 src/main/java/com/openshift/client/cartridge/selector/LatestStandaloneCartridge.java delete mode 100644 src/main/java/com/openshift/client/cartridge/selector/LatestVersionOf.java delete mode 100644 src/main/java/com/openshift/client/cartridge/selector/LatestVersionQuery.java delete mode 100644 src/main/java/com/openshift/client/cartridge/selector/StringPropertyQuery.java delete mode 100644 src/main/java/com/openshift/client/cartridge/selector/UrlPropertyQuery.java delete mode 100755 src/main/java/com/openshift/client/configuration/AbstractOpenshiftConfiguration.java delete mode 100755 src/main/java/com/openshift/client/configuration/DefaultConfiguration.java delete mode 100644 src/main/java/com/openshift/client/configuration/IOpenShiftConfiguration.java delete mode 100644 src/main/java/com/openshift/client/configuration/OpenShiftConfiguration.java delete mode 100644 src/main/java/com/openshift/client/configuration/SystemConfiguration.java delete mode 100644 src/main/java/com/openshift/client/configuration/SystemProperties.java delete mode 100644 src/main/java/com/openshift/client/configuration/UserConfiguration.java delete mode 100644 src/main/java/com/openshift/client/utils/Base64Coder.java delete mode 100644 src/main/java/com/openshift/client/utils/HostUtils.java delete mode 100644 src/main/java/com/openshift/client/utils/OpenShiftResourceUtils.java delete mode 100644 src/main/java/com/openshift/client/utils/RFC822DateUtils.java delete mode 100755 src/main/java/com/openshift/internal/client/APIResource.java delete mode 100755 src/main/java/com/openshift/internal/client/AbstractOpenShiftConnectionFactory.java delete mode 100755 src/main/java/com/openshift/internal/client/AbstractOpenShiftResource.java delete mode 100755 src/main/java/com/openshift/internal/client/ApplicationResource.java delete mode 100644 src/main/java/com/openshift/internal/client/CartridgeType.java delete mode 100755 src/main/java/com/openshift/internal/client/DomainResource.java delete mode 100755 src/main/java/com/openshift/internal/client/EmbeddedCartridgeResource.java delete mode 100644 src/main/java/com/openshift/internal/client/EnvironmentVariableResource.java delete mode 100644 src/main/java/com/openshift/internal/client/Field.java delete mode 100644 src/main/java/com/openshift/internal/client/Gear.java delete mode 100755 src/main/java/com/openshift/internal/client/GearGroupResource.java delete mode 100644 src/main/java/com/openshift/internal/client/GearProfile.java delete mode 100755 src/main/java/com/openshift/internal/client/IRestService.java delete mode 100755 src/main/java/com/openshift/internal/client/RestService.java delete mode 100755 src/main/java/com/openshift/internal/client/RestServiceProperties.java delete mode 100644 src/main/java/com/openshift/internal/client/SSHKeyResource.java delete mode 100644 src/main/java/com/openshift/internal/client/Severity.java delete mode 100755 src/main/java/com/openshift/internal/client/UserResource.java delete mode 100644 src/main/java/com/openshift/internal/client/cartridge/AbstractCartridgeQuery.java delete mode 100644 src/main/java/com/openshift/internal/client/cartridge/BaseCartridge.java delete mode 100644 src/main/java/com/openshift/internal/client/httpclient/BadRequestException.java delete mode 100644 src/main/java/com/openshift/internal/client/httpclient/CallbackTrustManager.java delete mode 100644 src/main/java/com/openshift/internal/client/httpclient/EncodingException.java delete mode 100644 src/main/java/com/openshift/internal/client/httpclient/HttpClientException.java delete mode 100644 src/main/java/com/openshift/internal/client/httpclient/InternalServerErrorException.java delete mode 100644 src/main/java/com/openshift/internal/client/httpclient/NotFoundException.java delete mode 100644 src/main/java/com/openshift/internal/client/httpclient/UnauthorizedException.java delete mode 100755 src/main/java/com/openshift/internal/client/httpclient/UrlConnectionHttpClient.java delete mode 100755 src/main/java/com/openshift/internal/client/httpclient/UrlConnectionHttpClientBuilder.java delete mode 100644 src/main/java/com/openshift/internal/client/httpclient/request/FormUrlEncodedMediaType.java delete mode 100644 src/main/java/com/openshift/internal/client/httpclient/request/IMediaType.java delete mode 100644 src/main/java/com/openshift/internal/client/httpclient/request/JsonMediaType.java delete mode 100644 src/main/java/com/openshift/internal/client/httpclient/request/Parameter.java delete mode 100644 src/main/java/com/openshift/internal/client/httpclient/request/ParameterValue.java delete mode 100644 src/main/java/com/openshift/internal/client/httpclient/request/ParameterValueArray.java delete mode 100644 src/main/java/com/openshift/internal/client/httpclient/request/ParameterValueMap.java delete mode 100644 src/main/java/com/openshift/internal/client/httpclient/request/StringParameter.java delete mode 100644 src/main/java/com/openshift/internal/client/httpclient/request/StringValue.java delete mode 100755 src/main/java/com/openshift/internal/client/response/ApplicationResourceDTO.java delete mode 100644 src/main/java/com/openshift/internal/client/response/BaseResourceDTO.java delete mode 100755 src/main/java/com/openshift/internal/client/response/CartridgeResourceDTO.java delete mode 100644 src/main/java/com/openshift/internal/client/response/CartridgeResourceProperties.java delete mode 100644 src/main/java/com/openshift/internal/client/response/CartridgeResourceProperty.java delete mode 100644 src/main/java/com/openshift/internal/client/response/DomainResourceDTO.java delete mode 100755 src/main/java/com/openshift/internal/client/response/EnumDataType.java delete mode 100644 src/main/java/com/openshift/internal/client/response/EnvironmentVariableResourceDTO.java delete mode 100644 src/main/java/com/openshift/internal/client/response/GearGroupResourceDTO.java delete mode 100755 src/main/java/com/openshift/internal/client/response/GearResourceDTO.java delete mode 100644 src/main/java/com/openshift/internal/client/response/IRestResponseFactory.java delete mode 100644 src/main/java/com/openshift/internal/client/response/KeyResourceDTO.java delete mode 100755 src/main/java/com/openshift/internal/client/response/Link.java delete mode 100644 src/main/java/com/openshift/internal/client/response/LinkParameter.java delete mode 100755 src/main/java/com/openshift/internal/client/response/LinkParameterType.java delete mode 100755 src/main/java/com/openshift/internal/client/response/OpenShiftJsonDTOFactory.java delete mode 100755 src/main/java/com/openshift/internal/client/response/RestResponse.java delete mode 100755 src/main/java/com/openshift/internal/client/response/UserResourceDTO.java delete mode 100644 src/main/java/com/openshift/internal/client/ssh/AbstractSSHKey.java delete mode 100644 src/main/java/com/openshift/internal/client/ssh/ApplicationPortForwarding.java delete mode 100644 src/main/java/com/openshift/internal/client/utils/Assert.java delete mode 100644 src/main/java/com/openshift/internal/client/utils/CollectionUtils.java delete mode 100755 src/main/java/com/openshift/internal/client/utils/IOpenShiftJsonConstants.java delete mode 100644 src/main/java/com/openshift/internal/client/utils/IOpenShiftParameterConstants.java delete mode 100644 src/main/java/com/openshift/internal/client/utils/StreamUtils.java delete mode 100644 src/main/java/com/openshift/internal/client/utils/StringUtils.java delete mode 100644 src/main/java/com/openshift/internal/client/utils/UrlUtils.java delete mode 100644 src/main/java/com/redhat/openshift/examples/.gitignore delete mode 100644 src/main/resources/restservice.properties delete mode 100644 src/test/java/com/openshift/client/fakes/DefaultConfigurationFake.java delete mode 100644 src/test/java/com/openshift/client/fakes/EmptySystemPropertiesFake.java delete mode 100644 src/test/java/com/openshift/client/fakes/HttpServerFake.java delete mode 100644 src/test/java/com/openshift/client/fakes/HttpsServerFake.java delete mode 100644 src/test/java/com/openshift/client/fakes/OpenShiftConfigurationFake.java delete mode 100644 src/test/java/com/openshift/client/fakes/PayLoadReturningHttpClientFake.java delete mode 100644 src/test/java/com/openshift/client/fakes/SystemConfigurationFake.java delete mode 100644 src/test/java/com/openshift/client/fakes/SystemPropertiesFake.java delete mode 100644 src/test/java/com/openshift/client/fakes/TestSSHKey.java delete mode 100644 src/test/java/com/openshift/client/fakes/UserConfigurationFake.java delete mode 100644 src/test/java/com/openshift/client/fakes/WaitingHttpServerFake.java delete mode 100644 src/test/java/com/openshift/client/portforwarding/PortForwardingL.java delete mode 100644 src/test/java/com/openshift/client/utils/ApplicationAssert.java delete mode 100755 src/test/java/com/openshift/client/utils/ApplicationTestUtils.java delete mode 100644 src/test/java/com/openshift/client/utils/CartridgeAssert.java delete mode 100644 src/test/java/com/openshift/client/utils/CartridgeAsserts.java delete mode 100644 src/test/java/com/openshift/client/utils/Cartridges.java delete mode 100644 src/test/java/com/openshift/client/utils/DomainAssert.java delete mode 100644 src/test/java/com/openshift/client/utils/DomainTestUtils.java delete mode 100644 src/test/java/com/openshift/client/utils/EmbeddedCartridgeAssert.java delete mode 100644 src/test/java/com/openshift/client/utils/EmbeddedCartridgeTestUtils.java delete mode 100644 src/test/java/com/openshift/client/utils/ExceptionCauseMatcher.java delete mode 100644 src/test/java/com/openshift/client/utils/FileUtils.java delete mode 100644 src/test/java/com/openshift/client/utils/GearGroupAssert.java delete mode 100644 src/test/java/com/openshift/client/utils/GearGroupsAssert.java delete mode 100644 src/test/java/com/openshift/client/utils/GearProfileTestUtils.java delete mode 100644 src/test/java/com/openshift/client/utils/MessageAssert.java delete mode 100644 src/test/java/com/openshift/client/utils/OpenShiftTestConfiguration.java delete mode 100644 src/test/java/com/openshift/client/utils/ParametersMatcher.java delete mode 100644 src/test/java/com/openshift/client/utils/ResourcePropertyAssert.java delete mode 100644 src/test/java/com/openshift/client/utils/SSHKeyTestUtils.java delete mode 100644 src/test/java/com/openshift/client/utils/Samples.java delete mode 100644 src/test/java/com/openshift/client/utils/StandaloneCartridgeAssert.java delete mode 100644 src/test/java/com/openshift/client/utils/StateVerifier.java delete mode 100644 src/test/java/com/openshift/client/utils/StringUtils.java delete mode 100644 src/test/java/com/openshift/client/utils/TestConnectionFactory.java delete mode 100644 src/test/java/com/openshift/client/utils/UrlEndsWithMatcher.java delete mode 100644 src/test/java/com/openshift/internal/client/APIResourceIntegrationTest.java delete mode 100644 src/test/java/com/openshift/internal/client/APIResourceTest.java delete mode 100755 src/test/java/com/openshift/internal/client/ApplicationResourceIntegrationTest.java delete mode 100644 src/test/java/com/openshift/internal/client/ApplicationResourceTest.java delete mode 100755 src/test/java/com/openshift/internal/client/CertTrustIntegrationTest.java delete mode 100644 src/test/java/com/openshift/internal/client/ConfigurationTest.java delete mode 100755 src/test/java/com/openshift/internal/client/DomainResourceIntegrationTest.java delete mode 100644 src/test/java/com/openshift/internal/client/DomainResourceTest.java delete mode 100644 src/test/java/com/openshift/internal/client/EmbeddableCartridgeTest.java delete mode 100755 src/test/java/com/openshift/internal/client/EmbeddedCartridgeResourceIntegrationTest.java delete mode 100644 src/test/java/com/openshift/internal/client/EmbeddedCartridgeResourceTest.java delete mode 100644 src/test/java/com/openshift/internal/client/EnvironmentVariableResourceIntegrationTest.java delete mode 100644 src/test/java/com/openshift/internal/client/EnvironmentVariableResourceTest.java delete mode 100644 src/test/java/com/openshift/internal/client/GearGroupsResourceTest.java delete mode 100644 src/test/java/com/openshift/internal/client/GearTest.java delete mode 100644 src/test/java/com/openshift/internal/client/HttpClientMockDirector.java delete mode 100644 src/test/java/com/openshift/internal/client/LatestVersionQueryIntegrationTest.java delete mode 100644 src/test/java/com/openshift/internal/client/LinkRetriever.java delete mode 100644 src/test/java/com/openshift/internal/client/OpenShiftExceptionTest.java delete mode 100755 src/test/java/com/openshift/internal/client/OpenShiftIntegrationTestSuite.java delete mode 100755 src/test/java/com/openshift/internal/client/OpenShiftTestSuite.java delete mode 100644 src/test/java/com/openshift/internal/client/QueryTest.java delete mode 100644 src/test/java/com/openshift/internal/client/RestServicePropertiesTest.java delete mode 100644 src/test/java/com/openshift/internal/client/RestServiceTest.java delete mode 100644 src/test/java/com/openshift/internal/client/SSHKeyIntegrationTest.java delete mode 100644 src/test/java/com/openshift/internal/client/SSHKeyTest.java delete mode 100644 src/test/java/com/openshift/internal/client/StandaloneCartridgeTest.java delete mode 100755 src/test/java/com/openshift/internal/client/StandaloneCartridgesIntegrationTest.java delete mode 100644 src/test/java/com/openshift/internal/client/TestTimer.java delete mode 100755 src/test/java/com/openshift/internal/client/UserResourceIntegrationTest.java delete mode 100644 src/test/java/com/openshift/internal/client/UserTest.java delete mode 100755 src/test/java/com/openshift/internal/client/httpclient/HttpClientTest.java delete mode 100644 src/test/java/com/openshift/internal/client/httpclient/request/FormUrlEncodedMediaTypeTest.java delete mode 100644 src/test/java/com/openshift/internal/client/httpclient/request/JsonMediaTypeTest.java delete mode 100755 src/test/java/com/openshift/internal/client/response/OpenShiftJsonDTOFactoryTest.java delete mode 100755 src/test/resources/integrationTest.properties delete mode 100644 src/test/resources/log4j.xml delete mode 100644 src/test/resources/samples/delete-domains-foobar_ko.json delete mode 100644 src/test/resources/samples/delete-domains-foobarz.json delete mode 100644 src/test/resources/samples/delete-domains-foobarz_ko-existingapps.json delete mode 100644 src/test/resources/samples/delete-user-key-ko.json delete mode 100644 src/test/resources/samples/get-api.json delete mode 100644 src/test/resources/samples/get-cartridges.json delete mode 100644 src/test/resources/samples/get-domains-foobar_ko-notfound.json delete mode 100644 src/test/resources/samples/get-domains-foobars.json delete mode 100644 src/test/resources/samples/get-domains-foobarz-applications-downloadablecart.json delete mode 100644 src/test/resources/samples/get-domains-foobarz-applications-springeap6-cartidges-mysql.json delete mode 100644 src/test/resources/samples/get-domains-foobarz-applications-springeap6-cartridges_1embedded.json delete mode 100644 src/test/resources/samples/get-domains-foobarz-applications-springeap6-cartridges_2embedded.json delete mode 100644 src/test/resources/samples/get-domains-foobarz-applications-springeap6-cartridges_3embedded.json delete mode 100644 src/test/resources/samples/get-domains-foobarz-applications-springeap6-geargroups.json delete mode 100644 src/test/resources/samples/get-domains-foobarz-applications-springeap6_0alias.json delete mode 100644 src/test/resources/samples/get-domains-foobarz-applications-springeap6_1embedded.json delete mode 100644 src/test/resources/samples/get-domains-foobarz-applications-springeap6_2alias.json delete mode 100644 src/test/resources/samples/get-domains-foobarz-applications-springeap6_2embedded.json delete mode 100644 src/test/resources/samples/get-domains-foobarz-applications_1embedded.json delete mode 100644 src/test/resources/samples/get-domains-foobarz-applications_2embedded.json delete mode 100644 src/test/resources/samples/get-domains-foobarz-applications_3embedded.json delete mode 100644 src/test/resources/samples/get-domains-foobarz-applications_noapps.json delete mode 100644 src/test/resources/samples/get-domains-foobarz-applications_noenvvars.json delete mode 100644 src/test/resources/samples/get-domains-foobarz-applications_springeap_scalable_downloadablecart.json delete mode 100644 src/test/resources/samples/get-domains-foobarz.json delete mode 100644 src/test/resources/samples/get-domains.json delete mode 100644 src/test/resources/samples/get-domains_empty.json delete mode 100644 src/test/resources/samples/get-user-keys_1key.json delete mode 100644 src/test/resources/samples/get-user-keys_2keys.json delete mode 100644 src/test/resources/samples/get-user-keys_none.json delete mode 100644 src/test/resources/samples/get-user.json delete mode 100644 src/test/resources/samples/get_0_environment_variables_foobarz_springeap6.json delete mode 100644 src/test/resources/samples/get_1_environment_variables_foobarz_springeap6.json delete mode 100644 src/test/resources/samples/get_four_environment_variables_foobarz_springeap6.json delete mode 100644 src/test/resources/samples/get_two_environment_variabls_foobarz_springeap6.json delete mode 100644 src/test/resources/samples/links-unknown-linkparametertype.json delete mode 100644 src/test/resources/samples/post-foobar-domains_ko-inuse.json delete mode 100644 src/test/resources/samples/post-jekyll-domains-foobarz-applications.json delete mode 100644 src/test/resources/samples/post-mysql-domains-foobarz-applications-springeap6-cartridges.json delete mode 100644 src/test/resources/samples/post-scalable-domains-foobarz-applications.json delete mode 100644 src/test/resources/samples/post-stop-domains-foobarz-applications-springeap6-events.json delete mode 100644 src/test/resources/samples/post_add_2_environment_variables_to_foobarz_springeap6.json delete mode 100644 src/test/resources/samples/post_add_environment_variable_foo_to_foobarz_springeap6.json delete mode 100644 src/test/resources/samples/put-bbcc-dsa-user-keys-somekey.json delete mode 100644 src/test/resources/samples/put_foo_environment_variable_foobarz_springeap6.json delete mode 100644 src/test/resources/server-keystore.jks diff --git a/.gitignore b/.gitignore index 586adb73..87ef5f31 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,7 @@ target bin .metadata -**/integrationTest.properties \ No newline at end of file +**/integrationTest.properties +_site +_tmp +.sass-cache diff --git a/README.md b/README.md old mode 100755 new mode 100644 index f416162f..4064a37a --- 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 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 run "awestruct -P production --deploy". diff --git a/epl-v10.html b/epl-v10.html deleted file mode 100644 index 3998fceb..00000000 --- a/epl-v10.html +++ /dev/null @@ -1,261 +0,0 @@ - - - - - - -Eclipse Public License - Version 1.0 - - - - - - -

Eclipse Public License - v 1.0

- -

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/license b/license deleted file mode 100755 index 2c5408d5..00000000 --- a/license +++ /dev/null @@ -1,10 +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 - ******************************************************************************/ \ No newline at end of file diff --git a/pom.xml b/pom.xml deleted file mode 100755 index ce89e7db..00000000 --- a/pom.xml +++ /dev/null @@ -1,295 +0,0 @@ - - - - - - - org.jboss - jboss-parent - 6-beta-2 - - - - - 4.0.0 - - - com.openshift - openshift-java-client - 2.6.0-SNAPSHOT - jar - OpenShift Java Client - http://openshift.redhat.com - OpenShift Java Client - - - - - - UTF-8 - - - 2.1 - 1.6 - 1.6 - - - - 1.0.0-beta-6 - 1.0.0-beta-5 - 1.1.0-beta-1 - - - ${basedir}/src/test/resources/integrationTest.properties - - - - - - jira - http://jira.jboss.com/jira/browse/JBIDE - - - - - - Eclipse Public License v1.0 - http://www.eclipse.org/legal/epl-v10.html - - - - - - - src/main/resources - true - - - - - - org.codehaus.mojo - properties-maven-plugin - 1.0-alpha-1 - - - initialize - - read-project-properties - - - - ${integrationtest.properties} - - - - - - - maven-surefire-plugin - 2.12 - - -Dfile.encoding=UTF-8 - - ${libra_server} - ${default_rhlogin} - ${rhpassword} - ${proxyHost} - ${proxyPort} - ${proxyHost} - ${proxyPort} - - - **/OpenShiftIntegrationTestSuite.java - - - **/OpenShiftTestSuite.java - - - - - - - maven-jar-plugin - 2.4 - - - - - - - org.jboss - jboss-dmr - 1.0.0.Final - - - com.jcraft - jsch - 0.1.44-1 - - - junit - junit - 4.8.2 - test - - - org.mockito - mockito-core - 1.9.0-rc1 - test - - - org.easytesting - fest-assert - 1.4 - test - - - commons-io - commons-io - 2.1 - test - - - org.slf4j - slf4j-api - 1.6.4 - - - org.slf4j - slf4j-log4j12 - 1.6.4 - - - log4j - log4j - 1.2.16 - - - - - - - release - - - - maven-release-plugin - - true - false - true - - - - maven-javadoc-plugin - - org.jboss.apiviz.APIviz - - org.jboss.apiviz - apiviz - 1.3.1.GA - - true - UTF-8 - UTF-8 - UTF-8 - true - true - true - true - -sourceclasspath - ${project.build.outputDirectory} - ${project.parent.parent.basedir}/javadoc/stylesheet.css - ${project.parent.parent.basedir}/javadoc - - - - attach-javadocs - - jar - - - - - - - - - - - defaultprofile - - - axis - defaultprofile - - - - true - - - - - - integration-tests - - - axis - integration-tests - - - - - - org.apache.maven.plugins - maven-surefire-plugin - 2.12 - - - ${libra_server} - ${default_rhlogin} - ${rhpassword} - ${proxyHost} - ${proxyPort} - ${proxyHost} - ${proxyPort} - ${proxyHost} - ${proxyPort} - - - **/OpenShiftSuite.java - - - **/OpenShiftIntegrationTestSuite.java - - none - - - - integration-tests - integration-test - - test - - - false - - none - - - **/integration/*Test.java - - - - - - - - - - - diff --git a/src/main/java/com/openshift/client/ApplicationBuilder.java b/src/main/java/com/openshift/client/ApplicationBuilder.java deleted file mode 100644 index 80b7b86d..00000000 --- a/src/main/java/com/openshift/client/ApplicationBuilder.java +++ /dev/null @@ -1,62 +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 com.openshift.client.cartridge.IStandaloneCartridge; - -public class ApplicationBuilder { - - private IDomain domain; - private IStandaloneCartridge cartridge; - private String name; - private IGearProfile gearProfile; - private ApplicationScale applicationScale; - private String initialGitUrl; - - public ApplicationBuilder(IDomain domain) { - this.domain = domain; - } - - public CartridgeHolder setCartridge(IStandaloneCartridge cartridge) { - ApplicationBuilder.this.cartridge = cartridge; - return new CartridgeHolder(); - } - - public class CartridgeHolder { - - public NamedCartridgeHolder setName(String name) { - ApplicationBuilder.this.name = name; - return new NamedCartridgeHolder(); - }; - } - - public class NamedCartridgeHolder { - - public NamedCartridgeHolder setGearProfile(IGearProfile gearProfile) { - ApplicationBuilder.this.gearProfile = gearProfile; - return this; - } - - public NamedCartridgeHolder setApplicationScale(ApplicationScale applicationScale) { - ApplicationBuilder.this.applicationScale = applicationScale; - return this; - } - - public NamedCartridgeHolder setInitialGitUrl(String initialGitUrl) { - ApplicationBuilder.this.initialGitUrl = initialGitUrl; - return this; - } - - public IApplication build() { - return domain.createApplication(name, cartridge, applicationScale, gearProfile, initialGitUrl); - } - } -} diff --git a/src/main/java/com/openshift/client/ApplicationScale.java b/src/main/java/com/openshift/client/ApplicationScale.java deleted file mode 100644 index 7a6fe05d..00000000 --- a/src/main/java/com/openshift/client/ApplicationScale.java +++ /dev/null @@ -1,43 +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; - - -/** - * Enum to indicate the support for scalability when creating a new application - * @author Xavier Coulon - * - */ -public enum ApplicationScale { - - SCALE("true"), NO_SCALE("false"); - - private static final String SCALING_TRUE = "TRUE"; - - private final String value; - - public static ApplicationScale safeValueOf(final String value) { - if(value == null - || !SCALING_TRUE.equals(value.toUpperCase())) { - return NO_SCALE; - } - return SCALE; - } - - private ApplicationScale(final String value) { - this.value = value; - } - - public String getValue() { - return this.value; - } - -} diff --git a/src/main/java/com/openshift/client/GearState.java b/src/main/java/com/openshift/client/GearState.java deleted file mode 100644 index 97c1aa12..00000000 --- a/src/main/java/com/openshift/client/GearState.java +++ /dev/null @@ -1,74 +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 com.openshift.internal.client.utils.StringUtils; - -public class GearState implements IGearState { - /** - * @see OpenShift - * Origin Cartridge Developer’s Guide, 7.10.2. The status Action - */ - private String state; - - public GearState(String state) { - this.state = getState(state); - } - - public String getState() { - return this.state; - } - - public void setState(String state) { - this.state = getState(state); - } - - protected String getState(String state) { - if (StringUtils.isEmpty(state)) { - return UNKNOWN; - } else { - return state.toUpperCase(); - } - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((state == null) ? 0 : state.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; - GearState other = (GearState) obj; - if (state == null) { - if (other.state != null) - return false; - } else if (!state.equals(other.state)) - return false; - return true; - } - - @Override - public String toString() { - return "GearState [state=" + state + "]"; - } - - -} diff --git a/src/main/java/com/openshift/client/HttpMethod.java b/src/main/java/com/openshift/client/HttpMethod.java deleted file mode 100644 index c635a7c2..00000000 --- a/src/main/java/com/openshift/client/HttpMethod.java +++ /dev/null @@ -1,18 +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 enum HttpMethod { - GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS -} diff --git a/src/main/java/com/openshift/client/IApplication.java b/src/main/java/com/openshift/client/IApplication.java deleted file mode 100755 index 71379e1e..00000000 --- a/src/main/java/com/openshift/client/IApplication.java +++ /dev/null @@ -1,530 +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.Collection; -import java.util.Date; -import java.util.List; -import java.util.Map; -import java.util.concurrent.Future; - -import com.jcraft.jsch.JSchException; -import com.jcraft.jsch.Session; -import com.openshift.client.cartridge.IEmbeddableCartridge; -import com.openshift.client.cartridge.IEmbeddedCartridge; -import com.openshift.client.cartridge.IStandaloneCartridge; -import com.openshift.internal.client.ApplicationResource; - -/** - * @author André Dietisheim - * @author Syed Iqbal - * @author Martes G Wigglesworth - */ -public interface IApplication extends IOpenShiftResource { - - /** - * Returns the name of this application. - * - * @return - */ - public String getName(); - - /** - * Returns the uuid of this application. - * - * @return the uuid of this application. - */ - public String getUUID(); - - /** - * Returns the uri at which the git repository of this application may be - * reached at. - * - * @return the uri of the git repo of this application. - */ - public String getGitUrl(); - - /** - * Returns the url to use to connect with ssh. - * - * @return the url to use to connect with ssh. - */ - public String getSshUrl(); - - /** - * Returns the git url that the application will get its initial code and configuration from. - * - * @return the initial git url - */ - public String getInitialGitUrl(); - - /** - * Returns the url at which this application may be reached at. - * - * @return the url of this application. - */ - public String getApplicationUrl(); - - /** - * Returns true if scaling is enabled on this application (only set at - * creation time). - * - * @return true if scaling is enabled on this application (only set at - * creation time). - */ - public ApplicationScale getApplicationScale(); - - /** - * Returns true if scaling is enabled on this application (only set at - * creation time). - * - * @return true if scaling is enabled on this application (only set at - * creation time). - */ - public IGearProfile getGearProfile(); - - /** - * Returns the cartridge (application type) that this app is running on. - * - * @return the cartridge of this application - * - */ - public IStandaloneCartridge getCartridge(); - - /** - * Adds the given embeddable cartridge to this application. - * - * @param cartridge - * @throws OpenShiftException - */ - public IEmbeddedCartridge addEmbeddableCartridge(IEmbeddableCartridge cartridge) throws OpenShiftException; - - /** - * Adds all given embedded cartridges from this app, given their names. - * - * @param embeddedCartridges - * @throws OpenShiftException - * - * @see #addEmbeddableCartridge(IEmbeddedCartridge) - * @see #removeEmbeddedCartridge(IEmbeddedCartridge) - */ - public List addEmbeddableCartridges(Collection cartridge) - throws OpenShiftException; - - /** - * Returns all embedded cartridges. - * - * @return all embedded cartridges. - * @throws OpenShiftException - * - * @see IEmbeddedCartridge - * @see #addEmbeddableCartridge(IEmbeddedCartridge) - * @see #removeEmbeddedCartridge(IEmbeddedCartridge) - */ - public List getEmbeddedCartridges() 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(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(Collection cartridges) throws OpenShiftException; - - - /** - * Returns the gear groups for this application. - * The collection is never cached, so each call will trigger a request to the OpenShift Broker. - * - * @return the collection of {@link IGearGroup} for this application. - * @throws OpenShiftException - */ - public Collection getGearGroups() throws OpenShiftException; - - /** - * Returns the timestamp at which this app was created. - * - * @return the creation time - * - * @throws OpenShiftException - */ - public Date getCreationTime(); - - /** - * Destroys this application (and removes it from the list of available - * applications) - * - * @throws OpenShiftException - * - * @see IUser#getApplications() - */ - public void destroy() throws OpenShiftException; - - /** - * Starts this application. Has no effect if this app is already running. - * - * @throws OpenShiftException - */ - public void start() throws OpenShiftException; - - /** - * Restarts this application. - * - * @throws OpenShiftException - */ - public void restart() throws OpenShiftException; - - /** - * Stops this application. - * - * @throws OpenShiftException - */ - public void stop() throws OpenShiftException; - - /** - * Stops this application - * - * @param force - * : true to force stop, false otherwise - * - * @throws OpenShiftException - */ - public void stop(boolean force) throws OpenShiftException; - - /** - * Waits for this application to become accessible on its public url. - * - * @param timeout - * @return - * @throws OpenShiftException - * - * @see IApplication#getApplicationUrl() - */ - public boolean waitForAccessible(long timeout) throws OpenShiftException; - - /** - * Returns a Future that the caller can use to wait for the application to - * become accessible on its public url. - * - * @param timeout - * @return - * @throws OpenShiftException - * - * @see IApplication#getApplicationUrl() - * @see IApplication#waitForAccessible(long) - * @see IOpenShiftConnection#getExecutorService() - * @see Future - */ - public Future waitForAccessibleAsync(final long timeout) throws OpenShiftException; - - /** - * Get the domain of the application. - * - * @return the domain - */ - public IDomain getDomain(); - - /** - * Scale down application - * - * @throws OpenShiftException - */ - public void scaleDown() throws OpenShiftException; - - /** - * Scale up application - * - * @throws OpenShiftException - */ - public void scaleUp() throws OpenShiftException; - - /** - * Add application alias - * - * @throws OpenShiftException - */ - public void addAlias(String string) throws OpenShiftException; - - /** - * Retrieve all application aliases - * - * @return application aliases in an unmodifiable collection - */ - public List getAliases(); - - public boolean hasAlias(String name); - - /** - * Remove application alias - * - * @throws OpenShiftException - */ - public void removeAlias(String alias) throws OpenShiftException; - - /** - * Refresh the application but reloading its content from OpenShift. At the - * same time, this operation automatically set the embedded cartridges back - * to an 'unloaded' state. - * - * @throws OpenShiftException - */ - public void refresh() throws OpenShiftException; - - /** - * Sets the SSH session that this application will use to connect to - * OpenShift to perform some operations. This SSH session must be - * initialized out of the library, since the user's SSH settings may depend - * on the runtime environment (Eclipse, etc.). - * - * @param session - * the SSH session - */ - public void setSSHSession(Session session); - - /** - * Returns the SSH session that this application uses to connect to - * OpenShift. - * - * @return the SSH session that this application uses to connect to - * OpenShift. - */ - public Session getSSHSession(); - - /** - * Returns true if the application was already provided with an SSH session, - * and this session is still valid (connected). - * - * @return true if the application was already provided with an SSH session, - * and this session is still valid (connected). - */ - public boolean hasSSHSession(); - - /** - * Returns true if the port-forwarding has been started, false otherwise. - * - * @return true if the port-forwarding has been started, false otherwise. - * @throws OpenShiftSSHOperationException - */ - public boolean isPortFowardingStarted() throws OpenShiftSSHOperationException; - - /** - * Returns the list of forwardable ports on OpenShift for this application. - * - * @return the list of forwardable ports on OpenShift for this application. - * @throws OpenShiftSSHOperationException - */ - public List getForwardablePorts() throws OpenShiftSSHOperationException; - - /** - * @ * Starts the port-forwarding for all ports. - * - * @return the list of forwardable ports on OpenShift for this application. - * @throws JSchException - */ - public List startPortForwarding() throws OpenShiftSSHOperationException; - - /** - * Stop the port-forwarding for all ports. - * - * @return the list of forwardable ports on OpenShift for this application. - * @throws OpenShiftSSHOperationException - */ - public List stopPortForwarding() throws OpenShiftSSHOperationException; - - /** - * Refreshes the list of port-forwarding. Started ones are kept as-is. - * - * @return the list of forwardable ports on OpenShift for this application. - * @throws OpenShiftSSHOperationException - */ - public List refreshForwardablePorts() throws OpenShiftSSHOperationException; - - /** - * Retrieves the list of environment properties. - * - * @return the list of environment properties. - * @throws OpenShiftSSHOperationException - */ - public List getEnvironmentProperties() throws OpenShiftSSHOperationException; - - /** - * Retrieves the map of environment variables - * - * @return the Map of environment variables - * @throws OpenShiftSSHOperationException - */ - public Map getEnvironmentVariables() throws OpenShiftSSHOperationException; - - /** - * Checks if the environment variable is present in the application. - * - * @param name Name of the environment variable - * @return true 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 Map of environment variables - * @throws OpenShiftSSHOperationException - */ - public Map addEnvironmentVariables(Map environmentVariables) - throws OpenShiftException; - - /** - * Return the environment variable for the specified name - * - * @param name key to be used to locate the environment variable - * @return IEnvironmentVariable associated with the provided key - * @throws OpenShiftSSHOperationException - thrown if the key does not exist - */ - public IEnvironmentVariable getEnvironmentVariable(String name) throws OpenShiftException; - - /** - * Return the environment variables value for the specified name - * - * @param name key to be used to locate the environment variable - * @return String value associated with the provided key - * @throws OpenShiftSSHOperationException - thrown if the key does not exist - */ - public String getEnvironmentVariableValue(String name); - - /** - * Removes the environment variables with the given name from this application. - * - * @param name key associated with the IEnvironmentVariable to be removed - * @return - * @throws OpenShiftException - thrown if there is no IEnvironmentVariable associated with the explicit parameter. - */ - public void removeEnvironmentVariable(String name) throws OpenShiftException; - - /** - * Removes the environment variables with the given name from this application. - * - * @param environmentVariable IEnvironmentVariable instance which should be removed - * @return - * @throws OpenShiftException - thrown if there is no instance of IEnvironmentVariable available to be removed - */ - public void removeEnvironmentVariable(IEnvironmentVariable environmentVariable); - - /** - * Used to determine if environment variables exist and are available to be retrieved - * - * @return Returns true if this application can list its environment variables.
- * Returns 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.
- * Returns false if it cannot.
- * - * @see #addEnvironmentVariable(String, String) - * @see #addEnvironmentVariables(Map) - * @see ApplicationResource#LINK_SET_UNSET_ENVIRONMENT_VARIABLES - */ - public boolean canUpdateEnvironmentVariables(); - -} \ No newline at end of file diff --git a/src/main/java/com/openshift/client/IApplicationPortForwarding.java b/src/main/java/com/openshift/client/IApplicationPortForwarding.java deleted file mode 100644 index ede5a4cc..00000000 --- a/src/main/java/com/openshift/client/IApplicationPortForwarding.java +++ /dev/null @@ -1,64 +0,0 @@ -package com.openshift.client; - -import com.jcraft.jsch.Session; - -public interface IApplicationPortForwarding { - - /** - * Start the binding, ie, open a SSH tunnel between local address:port and remote address:port. - * - * @throws OpenShiftSSHOperationException - */ - public abstract void start(final Session session) throws OpenShiftSSHOperationException; - - /** - * Stop the SSH tunnel. - * - * @throws OpenShiftSSHOperationException - */ - public abstract void stop(final Session session) throws OpenShiftSSHOperationException; - - /** - * @return true if the SSH tunnel is open, false otherwise. - * @throws OpenShiftSSHOperationException - */ - public abstract boolean isStarted(final Session session) throws OpenShiftSSHOperationException; - - /** - * @return the name - */ - public abstract String getName(); - - /** - * @return the localAddress - */ - public abstract String getLocalAddress(); - - /** - * @param localAddress - * the localAddress to set - */ - public abstract void setLocalAddress(final String localAddress); - - /** - * @return the localPort - */ - public abstract int getLocalPort(); - - /** - * @param localPort - * the localPort to set - */ - public abstract void setLocalPort(final int localPort); - - /** - * @return the remoteIp - */ - public abstract String getRemoteAddress(); - - /** - * @return the remotePort - */ - public abstract int getRemotePort(); - -} \ No newline at end of file diff --git a/src/main/java/com/openshift/client/IDomain.java b/src/main/java/com/openshift/client/IDomain.java deleted file mode 100755 index 1099151a..00000000 --- a/src/main/java/com/openshift/client/IDomain.java +++ /dev/null @@ -1,222 +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 java.util.Map; - -import com.openshift.client.cartridge.IEmbeddableCartridge; -import com.openshift.client.cartridge.IStandaloneCartridge; - -/** - * @author André Dietisheim - * @author Nicolas Spano - * @author Syed Iqbal - */ -public interface IDomain extends IOpenShiftResource { - - /** - * @return the domain id (formerly known as 'namespace'). A unique litteral identifier on OpenShift. - */ - public String getId(); - - /** - * The domain suffix is the host part eg: 'rhcloud.com') - * @return - */ - public String getSuffix(); - - - /** - * Rename the current domain with the given id.... - * @param id - * @throws OpenShiftException - */ - public void rename(String id) throws OpenShiftException; - - /** - * Returns the currently connected user that manages this domain. - * - * @return - * @throws OpenShiftException - */ - public IUser getUser() throws OpenShiftException; - - - /** - * Destroys the current domain. This method works only if it has not application. - * @throws OpenShiftException - */ - public void destroy() throws OpenShiftException; - - /** - * Destroys the current domain, using the 'force' parameter to also destroy the domain applications. The domain cannot - * be destroyed without setting 'force-true' if it still contains applications. - * - * @param force - * @throws OpenShiftException - */ - public void destroy(boolean force) throws OpenShiftException; - - /** - * Returns 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,Map environmentVariable, - IEmbeddableCartridge... cartridges) - throws OpenShiftException; - - public List getApplications() throws OpenShiftException; - - /** - * Returns the list of cartridges that can be used to create a new application. - * @return the list of cartridges that can be used to create a new application. - * @throws OpenShiftException - */ - public List getAvailableCartridgeNames() throws OpenShiftException; - - /** - * Returns the application identified by the given name. - * @param name - * @return - * @throws OpenShiftException - */ - public IApplication getApplicationByName(String name) throws OpenShiftException; - - /** - * Returns true if the application identified by the given name exists in the domain. - * @param name - * @return - * @throws OpenShiftException - */ - public boolean hasApplicationByName(String name) throws OpenShiftException; - - public List getApplicationsByCartridge(IStandaloneCartridge cartridge) throws OpenShiftException; - - public boolean hasApplicationByCartridge(IStandaloneCartridge cartridge) throws OpenShiftException; - - /** - * 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). - * @return - * @throws OpenShiftException - */ - public List getAvailableGearProfiles() throws OpenShiftException; - -} \ No newline at end of file diff --git a/src/main/java/com/openshift/client/IEnvironmentVariable.java b/src/main/java/com/openshift/client/IEnvironmentVariable.java deleted file mode 100644 index a1bd6499..00000000 --- a/src/main/java/com/openshift/client/IEnvironmentVariable.java +++ /dev/null @@ -1,58 +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 Syed Iqbal - * @deprecated use {@link IApplication} instead - */ -public interface IEnvironmentVariable extends IOpenShiftResource { - - /** - * @return Name of the environment variable - */ - public String getName(); - - /** - * @return Value of the environment variable - */ - @Deprecated - public String getValue(); - - /** - * Updates this environment variable to the given value. - * - * @param value - * new value for this environment variable - * @throws OpenShiftException - * @deprecated use {@link IApplication#updateEnvironmentVariable} instead - */ - @Deprecated - public void update(String value) throws OpenShiftException; - - /** - * Destroys this environment variable - * - * @throws OpenShiftException - * @deprecated use {@link IApplication#removeEnvironmentVariable} instead - */ - @Deprecated - public void destroy() throws OpenShiftException; - - - /** - * Returns the application for this environment variable - * - * @return - */ - public IApplication getApplication(); - -} diff --git a/src/main/java/com/openshift/client/IField.java b/src/main/java/com/openshift/client/IField.java deleted file mode 100644 index 3f652700..00000000 --- a/src/main/java/com/openshift/client/IField.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; - -import com.openshift.internal.client.Field; - -/** - * @author Andre Dietisheim - */ -public interface IField { - - public static final IField DEFAULT = new Field(null); - public static final IField RESULT = new Field("result"); - public static final IField APPINFO = new Field("appinfo"); - - public String getValue(); -} diff --git a/src/main/java/com/openshift/client/IGear.java b/src/main/java/com/openshift/client/IGear.java deleted file mode 100755 index ab7645a3..00000000 --- a/src/main/java/com/openshift/client/IGear.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; - -public interface IGear { - - - /** - * Returns the id of this gear. - * - * @return the id - */ - public String getId(); - - /** - * Returns the state of this gear - * - * @return the state - */ - public GearState getState(); - - /** - * The URL to use when connecting with SSH in the following form: - * {@code ssh://@} - * @return the SSH URL - */ - public String getSshUrl(); -} diff --git a/src/main/java/com/openshift/client/IGearGroup.java b/src/main/java/com/openshift/client/IGearGroup.java deleted file mode 100755 index 2e4023d8..00000000 --- a/src/main/java/com/openshift/client/IGearGroup.java +++ /dev/null @@ -1,46 +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.Collection; - -import com.openshift.client.cartridge.ICartridge; - -public interface IGearGroup { - - /** - * Returns the uuid of this gear groups. - * - * @return the uuid - */ - public String getUUID(); - - /** - * Returns the name of this gear groups - * - * @return the name - */ - public String getName(); - - /** - * Returns the gears in this gear group resource - * - * @return the gears - */ - public Collection getGears(); - - /** - * Returns the cartridges in this gear group resource - * - * @return the gears - */ - public Collection getCartridges(); -} diff --git a/src/main/java/com/openshift/client/IGearProfile.java b/src/main/java/com/openshift/client/IGearProfile.java deleted file mode 100644 index f9b29985..00000000 --- a/src/main/java/com/openshift/client/IGearProfile.java +++ /dev/null @@ -1,22 +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.GearProfile; - -/** - * @author Andre Dietisheim - */ -public interface IGearProfile { - - public String getName(); - -} diff --git a/src/main/java/com/openshift/client/IGearState.java b/src/main/java/com/openshift/client/IGearState.java deleted file mode 100644 index 42589a9b..00000000 --- a/src/main/java/com/openshift/client/IGearState.java +++ /dev/null @@ -1,31 +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 Corey Daley - */ -public interface IGearState { - - public static final String UNKNOWN = "UNKNOWN"; - - /** - * Get the gears state - * @return String the gears state - */ - public String getState(); - - /** - * Set the gears state - * @param state - */ - public void setState(String state); -} diff --git a/src/main/java/com/openshift/client/IHttpClient.java b/src/main/java/com/openshift/client/IHttpClient.java deleted file mode 100755 index 18325000..00000000 --- a/src/main/java/com/openshift/client/IHttpClient.java +++ /dev/null @@ -1,99 +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.net.SocketTimeoutException; -import java.net.URL; -import java.security.cert.X509Certificate; - -import javax.net.ssl.SSLSession; - -import com.openshift.internal.client.httpclient.EncodingException; -import com.openshift.internal.client.httpclient.HttpClientException; -import com.openshift.internal.client.httpclient.request.IMediaType; -import com.openshift.internal.client.httpclient.request.Parameter; - -/** - * @author André Dietisheim - * @author Nicolas Spano - * @author Corey Daley - */ -public interface IHttpClient { - - public static final String HTTP = "http"; - - public static final String PROPERTY_CONTENT_TYPE = "Content-Type"; - public static final String PROPERTY_AUTHORIZATION = "Authorization"; - public static final String PROPERTY_ACCEPT = "Accept"; - public static final String PROPERTY_USER_AGENT = "User-Agent"; - - public static final String PROPERTY_AUTHKEY = "broker_auth_key"; - public static final String PROPERTY_AUTHIV = "broker_auth_iv"; - - public static final String MEDIATYPE_APPLICATION_JSON = "application/json"; - public static final String MEDIATYPE_APPLICATION_XML = "application/xml"; - public static final String MEDIATYPE_APPLICATION_FORMURLENCODED = "application/x-www-form-urlencoded"; - - public static final String AUTHORIZATION_BASIC = "Basic"; - - public static final int STATUS_OK = 200; - public static final int STATUS_INTERNAL_SERVER_ERROR = 500; - public static final int STATUS_BAD_REQUEST = 400; - public static final int STATUS_UNAUTHORIZED = 401; - public static final int STATUS_NOT_FOUND = 404; - - public static final char SPACE = ' '; - public static final char COLON = ':'; - public static final char COMMA = ','; - public static final char SEMICOLON = ';'; - public static final char AMPERSAND = '&'; - public static final char EQUALS = '='; - public static final char SLASH = '/'; - public static final char QUESTION_MARK = '?'; - - public static final String VERSION = "version"; - - 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 SYSPROP_DEFAULT_CONNECT_TIMEOUT = "sun.net.client.defaultConnectTimeout"; - public static final String SYSPROP_DEFAULT_READ_TIMEOUT = "sun.net.client.defaultReadTimeout"; - - public static final int DEFAULT_READ_TIMEOUT = 2 * 60 * 1000; - public static final int NO_TIMEOUT = -1; - - public String get(URL url, int timeout) throws HttpClientException, SocketTimeoutException; - - public String head(URL url, int timeout) throws HttpClientException, SocketTimeoutException; - - public String post(URL url, IMediaType mediaType, int timeout, Parameter... parameters) throws HttpClientException, SocketTimeoutException, EncodingException; - - public String put(URL url, IMediaType mediaType, int timeout, Parameter... parameters) throws HttpClientException, SocketTimeoutException, EncodingException; - - public String patch(URL url, IMediaType mediaType, int timeout, Parameter... parameters) throws HttpClientException, SocketTimeoutException, EncodingException; - - public String delete(URL url, IMediaType mediaType, int timeout, Parameter... parameters) throws HttpClientException, SocketTimeoutException, EncodingException; - - public String delete(URL url, int timeout) throws HttpClientException, SocketTimeoutException, EncodingException; - - public void setUserAgent(String userAgent); - - public void setAcceptVersion(String version); - - public void setAcceptedMediaType(String acceptedMediaType); - - public interface ISSLCertificateCallback { - - public boolean allowCertificate(X509Certificate[] chain); - - public boolean allowHostname(String hostname, SSLSession session); - } - -} diff --git a/src/main/java/com/openshift/client/IOpenShiftConnection.java b/src/main/java/com/openshift/client/IOpenShiftConnection.java deleted file mode 100755 index 7ff2d020..00000000 --- a/src/main/java/com/openshift/client/IOpenShiftConnection.java +++ /dev/null @@ -1,113 +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.util.List; -import java.util.concurrent.ExecutorService; -import java.util.concurrent.Executors; - -import com.openshift.client.cartridge.IEmbeddableCartridge; -import com.openshift.client.cartridge.IStandaloneCartridge; - -/** - * @author Xavier Coulon - * @author Andre Dietisheim - */ -public interface IOpenShiftConnection { - - /** - * Returns the server this connection is bound to. - * - * @return the server - */ - public String getServer(); - - /** - * Returns the user associated with the current OpenShift connection. - * - * @return the user - * @throws OpenShiftException - */ - public IUser getUser() throws OpenShiftException; - - /** - * Returns the domains associated with the current OpenShift connection. - * - * @return the domains - * @throws OpenShiftException - */ - public List getDomains() throws OpenShiftException; - - /** - * Returns the available standalone cartridges associated with the current - * OpenShift connection. - * - * @return the available standalone cartridges - * @throws OpenShiftException - */ - public List getStandaloneCartridges() throws OpenShiftException; - - /** - * Returns the available embeddable cartridges associated with the current - * OpenShift connection. - * - * @return the available embeddable cartridges - * @throws OpenShiftException - */ - public List getEmbeddableCartridges() throws OpenShiftException; - - /** - * Sets flag for enabling SSL certificate checks (i.e. self-signed SSL - * certificates) - * - * @param doSSLChecks - */ - public void setEnableSSLCertChecks(boolean doSSLChecks); - - /** - * Sets flag for using an HTTP proxy - * - * @param proxySet - * @deprecated - */ - @Deprecated - public void setProxySet(boolean proxySet); - - /** - * Sets the HTTP proxy hostname - * - * @param proxyHost - * @deprecated - */ - @Deprecated - public void setProxyHost(String proxyHost); - - /** - * Sets the HTTP proxy port - * - * @param proxyPort - * @deprecated - */ - @Deprecated - public void setProxyPort(String proxyPort); - - /** - * Returns the executor service instance that's available in this - * connection. - * - * @return the executor service instance for this connection - * - * @see ExecutorService - * @see Executors - */ - public ExecutorService getExecutorService(); - -} diff --git a/src/main/java/com/openshift/client/IOpenShiftResource.java b/src/main/java/com/openshift/client/IOpenShiftResource.java deleted file mode 100644 index cd6d976b..00000000 --- a/src/main/java/com/openshift/client/IOpenShiftResource.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.openshift.client; - - -public interface IOpenShiftResource { - - /** - * Returns - * 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. - * - * @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 sshKeys; - - public UserResource(final APIResource api, final UserResourceDTO dto, final String password) { - super(api.getService(), dto.getLinks(), dto.getMessages()); - this.api = api; - this.rhLogin = dto.getRhLogin(); - this.maxGears = dto.getMaxGears(); - this.consumedGears = dto.getConsumedGears(); - this.password = password; - } - - public IOpenShiftConnection getConnection() { - return api; - } - - public String getRhlogin() { - return rhLogin; - } - - public String getPassword() { - return password; - } - - public String getServer() { - return api.getServer(); - } - - public int getMaxGears() { - return maxGears; - } - - public int getConsumedGears() { - return consumedGears; - } - - public IDomain createDomain(String id) throws OpenShiftException { - Assert.notNull(id); - - return api.createDomain(id); - } - - public List getDomains() throws OpenShiftException { - List domains = api.getDomains(); - return domains; - } - - public IDomain getDefaultDomain() throws OpenShiftException { - return api.getDefaultDomain(); - } - - public IDomain getDomain(String id) throws OpenShiftException { - return api.getDomain(id); - } - - public boolean hasDomain() throws OpenShiftException { - return (api.getDomains().size() > 0); - } - - public boolean hasDomain(String id) throws OpenShiftException { - Assert.notNull(id); - - return api.getDomain(id) != null; - } - - public void refresh() throws OpenShiftException { - if (this.sshKeys != null) { - this.sshKeys = null; - loadKeys(); - } - - api.refresh(); - DomainResource defaultDomain = (DomainResource) getDefaultDomain(); - if (defaultDomain != null) { - defaultDomain.refresh(); - } - } - - public List getSSHKeys() throws OpenShiftUnknonwSSHKeyTypeException, - OpenShiftException { - List keys = new ArrayList(); - keys.addAll(getCachedOrLoadSSHKeys()); - return CollectionUtils.toUnmodifiableCopy(keys); - } - - private List getCachedOrLoadSSHKeys() throws OpenShiftException, - OpenShiftUnknonwSSHKeyTypeException { - if (sshKeys == null) { - this.sshKeys = loadKeys(); - } - return sshKeys; - } - - private List loadKeys() throws OpenShiftException, - OpenShiftUnknonwSSHKeyTypeException { - List keys = new ArrayList(); - List keyDTOs = new GetSShKeysRequest().execute(); - for (KeyResourceDTO keyDTO : keyDTOs) { - keys.add(new SSHKeyResource(keyDTO, this)); - } - return keys; - } - - public void deleteKey(String name) { - IOpenShiftSSHKey key = getSSHKeyByName(name); - if (key != null) { - key.destroy(); - } - } - - public IOpenShiftSSHKey getSSHKeyByName(String name) - throws OpenShiftUnknonwSSHKeyTypeException, OpenShiftException { - Assert.notNull(name); - - IOpenShiftSSHKey matchingKey = null; - if (name == null) { - return null; - } - - for (SSHKeyResource key : getCachedOrLoadSSHKeys()) { - if (name.equals(key.getName())) { - matchingKey = key; - break; - } - } - return matchingKey; - } - - public IOpenShiftSSHKey getSSHKeyByPublicKey(String publicKey) - throws OpenShiftUnknonwSSHKeyTypeException, OpenShiftException { - Assert.notNull(publicKey); - - IOpenShiftSSHKey matchingKey = null; - if (publicKey == null) { - return null; - } - - for (SSHKeyResource key : getCachedOrLoadSSHKeys()) { - if (publicKey.equals(key.getPublicKey())) { - matchingKey = key; - break; - } - } - return matchingKey; - } - - public boolean hasSSHKeyName(String name) throws OpenShiftUnknonwSSHKeyTypeException, - OpenShiftException { - Assert.notNull(name); - - return getSSHKeyByName(name) != null; - } - - public boolean hasSSHPublicKey(String publicKey) - throws OpenShiftUnknonwSSHKeyTypeException, OpenShiftException { - return getSSHKeyByPublicKey(publicKey) != null; - } - - /** - * Adds the given ssh key with the given name. Key names and public keys have to be unique. Throws - * OpenShiftSSHKeyException if either the key name or the public key are already used. - * - * @param name - * the name to identify the key - * @param key - * the key to add - * @return - * @throws OpenShiftException - */ - public IOpenShiftSSHKey putSSHKey(String name, ISSHPublicKey key) throws OpenShiftException { - Assert.notNull(name); - Assert.notNull(key); - - if (hasSSHKeyName(name)) { - throw new OpenShiftSSHKeyException( - "Could not add new key {0} with the name {1}. There already is a key for this name, key names must be unique.", - key.getPublicKey(), name); - } - if (hasSSHPublicKey(name)) { - throw new OpenShiftSSHKeyException( - "Could not add new key {0} with the name {1}. The key is already stored with a different name. Public key have to be unique.", - key.getPublicKey(), name); - } - KeyResourceDTO keyDTO = new AddSShKeyRequest().execute(key.getKeyType(), name, key.getPublicKey()); - return put(keyDTO); - } - - private SSHKeyResource put(KeyResourceDTO keyDTO) throws OpenShiftUnknonwSSHKeyTypeException { - SSHKeyResource sshKey = new SSHKeyResource(keyDTO, this); - sshKeys.add(sshKey); - return sshKey; - } - - protected void removeSSHKey(SSHKeyResource key) { - sshKeys.remove(key); - } - - private class GetSShKeysRequest extends ServiceRequest { - - private GetSShKeysRequest() throws OpenShiftException { - super("LIST_KEYS"); - } - - protected List execute() throws OpenShiftException { - return super.execute(); - } - } - - private class AddSShKeyRequest extends ServiceRequest { - - private AddSShKeyRequest() throws OpenShiftException { - super("ADD_KEY"); - } - - protected KeyResourceDTO execute(SSHKeyType type, String name, String content) throws OpenShiftException { - return super.execute( - new StringParameter(IOpenShiftJsonConstants.PROPERTY_TYPE, type.getTypeId()), - new StringParameter(IOpenShiftJsonConstants.PROPERTY_NAME, name), - new StringParameter(IOpenShiftJsonConstants.PROPERTY_CONTENT, content)); - } - } - - - @Override - public String toString() { - return "UserResource [" - + "rhLogin=" + rhLogin - + "]"; - } - -} diff --git a/src/main/java/com/openshift/internal/client/cartridge/AbstractCartridgeQuery.java b/src/main/java/com/openshift/internal/client/cartridge/AbstractCartridgeQuery.java deleted file mode 100644 index fe2afa7b..00000000 --- a/src/main/java/com/openshift/internal/client/cartridge/AbstractCartridgeQuery.java +++ /dev/null @@ -1,72 +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.cartridge; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; - -import com.openshift.client.IApplication; -import com.openshift.client.IDomain; -import com.openshift.client.IOpenShiftConnection; -import com.openshift.client.cartridge.ICartridge; -import com.openshift.client.cartridge.IEmbeddableCartridge; -import com.openshift.internal.client.utils.Assert; - -/** - * 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. - * - * @author Andre Dietisheim - * - * @see IEmbeddableCartridge for cartridges that have already been added and - * configured to an application. - */ -public abstract class AbstractCartridgeQuery { - - public Collection getAll(Collection cartridges) { - List matchingCartridges = new ArrayList(); - - if (cartridges == null) { - return matchingCartridges; - } - - for (C cartridge : cartridges) { - if (matches(cartridge)) { - matchingCartridges.add(cartridge); - } - } - - return matchingCartridges; - } - - public C get(Collection cartridges) { - Collection matchingCartridges = getAll(cartridges); - if (matchingCartridges == null - || matchingCartridges.size() == 0) { - return null; - } - return matchingCartridges.iterator().next(); - } - - public abstract boolean matches(C cartridge); - - protected IOpenShiftConnection getConnection(IApplication application) { - Assert.notNull(application); - return application.getDomain().getUser().getConnection(); - } - - protected IOpenShiftConnection getConnection(IDomain domain) { - Assert.notNull(domain); - return domain.getUser().getConnection(); - } -} diff --git a/src/main/java/com/openshift/internal/client/cartridge/BaseCartridge.java b/src/main/java/com/openshift/internal/client/cartridge/BaseCartridge.java deleted file mode 100644 index 74c4ae48..00000000 --- a/src/main/java/com/openshift/internal/client/cartridge/BaseCartridge.java +++ /dev/null @@ -1,133 +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.cartridge; - -import java.net.URL; - -import com.openshift.client.cartridge.EmbeddableCartridge; -import com.openshift.client.cartridge.ICartridge; -import com.openshift.client.cartridge.StandaloneCartridge; - -/** - * A (base) cartridge for an OpenShift application. - * - * @author Andre Dietisheim - * - * @see EmbeddableCartridge - * @see StandaloneCartridge - */ -public abstract class BaseCartridge implements ICartridge { - - private final String name; - private String displayName; - private String description; - private URL url; - - protected BaseCartridge(final String name) { - this(name, null, null, null); - } - - protected BaseCartridge(final URL url) { - this(null, url, null, null); - } - - protected BaseCartridge(final String name, URL url) { - this(name, url, null, null); - } - - protected BaseCartridge(final String name, String displayName, String description) { - this(name, null, displayName, description); - } - - protected BaseCartridge(final String name, URL url, String displayName, String description) { - this.name = name; - this.url = url; - this.displayName = displayName; - this.description = description; - } - - @Override - public String getName() { - return name; - } - - @Override - public String getDisplayName() { - return displayName; - } - - @Override - public String getDescription() { - return description; - } - - @Override - public boolean isDownloadable() { - return url != null; - } - - @Override - public URL getUrl() { - return url; - } - - @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 (!(obj instanceof BaseCartridge)) { - return false; - } - - BaseCartridge other = (BaseCartridge) 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; - } - - @Override - public String toString() { - return getClass().getSimpleName() + "[ " - + "name=" + name - + ", url=" + url - + ", displayName = " + displayName - + ", description=" + description - + " ]"; - } - -} diff --git a/src/main/java/com/openshift/internal/client/httpclient/BadRequestException.java b/src/main/java/com/openshift/internal/client/httpclient/BadRequestException.java deleted file mode 100644 index e1d21699..00000000 --- a/src/main/java/com/openshift/internal/client/httpclient/BadRequestException.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.internal.client.httpclient; - -/** - * @author André Dietisheim - */ -public class BadRequestException extends HttpClientException { - - private static final long serialVersionUID = 1L; - - public BadRequestException(String message, Throwable cause) { - super(message, cause); - } - - public BadRequestException(Throwable cause) { - super(cause); - } -} diff --git a/src/main/java/com/openshift/internal/client/httpclient/CallbackTrustManager.java b/src/main/java/com/openshift/internal/client/httpclient/CallbackTrustManager.java deleted file mode 100644 index 6abc38f5..00000000 --- a/src/main/java/com/openshift/internal/client/httpclient/CallbackTrustManager.java +++ /dev/null @@ -1,62 +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.httpclient; - -import java.security.cert.CertificateException; -import java.security.cert.X509Certificate; - -import javax.net.ssl.X509TrustManager; - -import com.openshift.internal.client.utils.Assert; - -/** - * A trust manager that calls a callback if the wrapped trustmanager fails to - * validate a given certificate. - * - * @author Andre Dietisheim - * - * @see TrustManagerCallback - */ -public class CallbackTrustManager implements X509TrustManager { - - private X509TrustManager trustManager; - private TrustManagerCallback callback; - - private CallbackTrustManager(X509TrustManager trustManager, TrustManagerCallback callback) { - Assert.isTrue(trustManager != null); - this.trustManager = trustManager; - this.callback = callback; - } - - public X509Certificate[] getAcceptedIssuers() { - return trustManager.getAcceptedIssuers(); - } - - public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException { - try { - trustManager.checkServerTrusted(chain, authType); - } catch (CertificateException e) { - if (callback.allow(chain)) { - throw e; - } - } - } - - public void checkClientTrusted(X509Certificate[] chain, - String authType) throws CertificateException { - trustManager.checkServerTrusted(chain, authType); - } - - public interface TrustManagerCallback { - - public boolean allow(X509Certificate[] chain); - } -} \ No newline at end of file diff --git a/src/main/java/com/openshift/internal/client/httpclient/EncodingException.java b/src/main/java/com/openshift/internal/client/httpclient/EncodingException.java deleted file mode 100644 index 262d8ba7..00000000 --- a/src/main/java/com/openshift/internal/client/httpclient/EncodingException.java +++ /dev/null @@ -1,24 +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.httpclient; - - -/** - * @author Ioannis Canellos - */ -public class EncodingException extends HttpClientException { - - private static final long serialVersionUID = 1L; - - public EncodingException(String message, Throwable t) { - super(message, t); - } -} diff --git a/src/main/java/com/openshift/internal/client/httpclient/HttpClientException.java b/src/main/java/com/openshift/internal/client/httpclient/HttpClientException.java deleted file mode 100644 index cf528213..00000000 --- a/src/main/java/com/openshift/internal/client/httpclient/HttpClientException.java +++ /dev/null @@ -1,32 +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.httpclient; - -/** - * @author André Dietisheim - */ -public class HttpClientException extends RuntimeException { - - private static final long serialVersionUID = 1L; - - public HttpClientException(String message, Throwable cause) { - super(message, cause); - } - - public HttpClientException(String message) { - super(message); - } - - public HttpClientException(Throwable cause) { - super(cause); - } - -} diff --git a/src/main/java/com/openshift/internal/client/httpclient/InternalServerErrorException.java b/src/main/java/com/openshift/internal/client/httpclient/InternalServerErrorException.java deleted file mode 100644 index c2e4279c..00000000 --- a/src/main/java/com/openshift/internal/client/httpclient/InternalServerErrorException.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.internal.client.httpclient; - -/** - * @author André Dietisheim - */ -public class InternalServerErrorException extends HttpClientException { - - private static final long serialVersionUID = 1L; - - public InternalServerErrorException(String message, Throwable cause) { - super(message, cause); - } - - public InternalServerErrorException(String message) { - super(message); - } -} diff --git a/src/main/java/com/openshift/internal/client/httpclient/NotFoundException.java b/src/main/java/com/openshift/internal/client/httpclient/NotFoundException.java deleted file mode 100644 index b8f2c005..00000000 --- a/src/main/java/com/openshift/internal/client/httpclient/NotFoundException.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.internal.client.httpclient; - -/** - * @author André Dietisheim - */ -public class NotFoundException extends HttpClientException { - - private static final long serialVersionUID = 1L; - - public NotFoundException(String message, Throwable cause) { - super(message, cause); - } - - public NotFoundException(String message) { - super(message); - } -} diff --git a/src/main/java/com/openshift/internal/client/httpclient/UnauthorizedException.java b/src/main/java/com/openshift/internal/client/httpclient/UnauthorizedException.java deleted file mode 100644 index 2a902e4c..00000000 --- a/src/main/java/com/openshift/internal/client/httpclient/UnauthorizedException.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.internal.client.httpclient; - -/** - * @author André Dietisheim - */ -public class UnauthorizedException extends HttpClientException { - - private static final long serialVersionUID = 1L; - - public UnauthorizedException(String message, Throwable cause) { - super(message, cause); - } - - public UnauthorizedException(Throwable cause) { - super(cause); - } - -} diff --git a/src/main/java/com/openshift/internal/client/httpclient/UrlConnectionHttpClient.java b/src/main/java/com/openshift/internal/client/httpclient/UrlConnectionHttpClient.java deleted file mode 100755 index a97f7710..00000000 --- a/src/main/java/com/openshift/internal/client/httpclient/UrlConnectionHttpClient.java +++ /dev/null @@ -1,411 +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.httpclient; - -import java.io.IOException; -import java.net.HttpURLConnection; -import java.net.SocketTimeoutException; -import java.net.URL; -import java.net.URLConnection; -import java.security.GeneralSecurityException; -import java.security.KeyStore; -import java.security.KeyStoreException; -import java.security.NoSuchAlgorithmException; -import java.security.cert.CertificateException; -import java.security.cert.X509Certificate; -import java.text.MessageFormat; - -import javax.net.ssl.HostnameVerifier; -import javax.net.ssl.HttpsURLConnection; -import javax.net.ssl.SSLContext; -import javax.net.ssl.SSLSession; -import javax.net.ssl.SSLSocketFactory; -import javax.net.ssl.TrustManager; -import javax.net.ssl.TrustManagerFactory; -import javax.net.ssl.X509TrustManager; - -import com.openshift.client.configuration.OpenShiftConfiguration; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import com.openshift.client.HttpMethod; -import com.openshift.client.IHttpClient; -import com.openshift.client.utils.Base64Coder; -import com.openshift.internal.client.httpclient.request.IMediaType; -import com.openshift.internal.client.httpclient.request.Parameter; -import com.openshift.internal.client.httpclient.request.ParameterValueMap; -import com.openshift.internal.client.utils.StreamUtils; -import com.openshift.internal.client.utils.StringUtils; - -/** - * @author Andre Dietisheim - * @author Nicolas Spano - * @author Corey Daley - */ -public class UrlConnectionHttpClient implements IHttpClient { - - private static final Logger LOGGER = LoggerFactory.getLogger(UrlConnectionHttpClient.class); - - protected String userAgent; - protected String username; - protected String password; - protected String authKey; - protected String authIV; - protected String acceptedMediaType; - protected String acceptedVersion; - protected ISSLCertificateCallback sslAuthorizationCallback; - protected Integer configTimeout; - - public UrlConnectionHttpClient( - String username, String password, String userAgent, String acceptedMediaType, String version) { - this(username, password, userAgent, acceptedMediaType, version, null, null); - } - - public UrlConnectionHttpClient( - String username, String password, String userAgent, String acceptedMediaType, String version, String authKey, String authIV) { - this(username, password, userAgent, acceptedMediaType, version, authKey, authIV, null,null); - } - - public UrlConnectionHttpClient(String username, String password, String userAgent, String acceptedMediaType, - String version, String authKey, String authIV, ISSLCertificateCallback callback, Integer configTimeout) { - this.username = username; - this.password = password; - this.userAgent = userAgent; - this.acceptedMediaType = acceptedMediaType; - this.acceptedVersion = version; - this.authKey = authKey; - this.authIV = authIV; - this.sslAuthorizationCallback = callback; - this.configTimeout = configTimeout; - } - - @Override - public String get(URL url, int timeout) throws HttpClientException, SocketTimeoutException { - return request(HttpMethod.GET, url, null, timeout); - } - - @Override - public String head(URL url, int timeout) throws HttpClientException, SocketTimeoutException { - return request(HttpMethod.HEAD, url, null, timeout); - } - - @Override - public String put(URL url, IMediaType mediaType, int timeout, Parameter... parameters) - throws HttpClientException, SocketTimeoutException, EncodingException { - return request(HttpMethod.PUT, url, mediaType, timeout, parameters); - } - - @Override - public String post(URL url, IMediaType mediaType, int timeout, Parameter... parameters) - throws HttpClientException, SocketTimeoutException, EncodingException { - return request(HttpMethod.POST, url, mediaType, timeout, parameters); - } - - @Override - public String patch(URL url, IMediaType mediaType, int timeout, Parameter... parameters) - throws HttpClientException, SocketTimeoutException, EncodingException { - return request(HttpMethod.PATCH, url, mediaType, timeout, parameters); - } - - @Override - public String delete(URL url, IMediaType mediaType, int timeout, Parameter... parameters) - throws HttpClientException, SocketTimeoutException, EncodingException { - return request(HttpMethod.DELETE, url, mediaType, timeout, parameters); - } - - @Override - public String delete(URL url, int timeout) - throws HttpClientException, SocketTimeoutException, EncodingException { - return delete(url, null, timeout); - } - - protected String request(HttpMethod httpMethod, URL url, IMediaType requestMediaType, int timeout, - Parameter... parameters) - throws SocketTimeoutException, HttpClientException { - return request(httpMethod, url, requestMediaType, timeout, new ParameterValueMap(parameters)); - } - - protected String request(HttpMethod httpMethod, URL url, IMediaType requestMediaType, int timeout, - ParameterValueMap parameters) - throws SocketTimeoutException, HttpClientException { - HttpURLConnection connection = null; - try { - connection = createConnection( - url, username, password, authKey, authIV, userAgent, acceptedVersion, acceptedMediaType, sslAuthorizationCallback, timeout); - // PATCH not yet supported by JVM - if (httpMethod == HttpMethod.PATCH) { - httpMethod = HttpMethod.POST; - connection.setRequestProperty("X-Http-Method-Override", "PATCH"); - } - connection.setRequestMethod(httpMethod.toString()); - if (!parameters.isEmpty()) { - connection.setDoOutput(true); - setRequestMediaType(requestMediaType, connection); - requestMediaType.writeTo(parameters, connection.getOutputStream()); - } - return StreamUtils.readToString(connection.getInputStream()); - } catch (SocketTimeoutException e) { - throw e; - } catch (IOException e) { - throw createException(e, connection); - } finally { - disconnect(connection); - } - } - - private void disconnect(HttpURLConnection connection) { - if (connection != null) { - connection.disconnect(); - } - } - - private HttpClientException createException(IOException ioe, HttpURLConnection connection) - throws SocketTimeoutException { - try { - int responseCode = connection.getResponseCode(); - String errorMessage = createErrorMessage(ioe, connection); - switch (responseCode) { - case STATUS_INTERNAL_SERVER_ERROR: - return new InternalServerErrorException(errorMessage, ioe); - case STATUS_BAD_REQUEST: - return new BadRequestException(errorMessage, ioe); - case STATUS_UNAUTHORIZED: - return new UnauthorizedException(errorMessage, ioe); - case STATUS_NOT_FOUND: - return new NotFoundException(errorMessage, ioe); - default: - return new HttpClientException(errorMessage, ioe); - } - } catch (SocketTimeoutException e) { - throw e; - } catch (IOException e) { - return new HttpClientException(e); - } - } - - protected String createErrorMessage(IOException ioe, HttpURLConnection connection) throws IOException { - String errorMessage = StreamUtils.readToString(connection.getErrorStream()); - if (!StringUtils.isEmpty(errorMessage)) { - return errorMessage; - } - StringBuilder builder = new StringBuilder("Connection to ") - .append(connection.getURL()); - String reason = connection.getResponseMessage(); - if (!StringUtils.isEmpty(reason)) { - builder.append(": ").append(reason); - } - return builder.toString(); - } - - private boolean isHttps(URL url) { - return "https".equals(url.getProtocol()); - } - - protected HttpURLConnection createConnection(URL url, String username, String password, String authKey, - String authIV, String userAgent, String acceptedVersion, String acceptedMediaType, ISSLCertificateCallback callback, int timeout) - throws IOException { - LOGGER.trace( - "creating connection to {} using username \"{}\" and password \"{}\"", - new Object[] { url, username, password }); - HttpURLConnection connection = (HttpURLConnection) url.openConnection(); - setSSLCallback(url, connection); - setAuthorisation(username, password, authKey, authIV, connection); - connection.setUseCaches(false); - connection.setDoInput(true); - connection.setAllowUserInteraction(false); - setConnectTimeout(NO_TIMEOUT, connection); - setReadTimeout(timeout, connection); - // wont work when switching http->https - // http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4620571 - connection.setInstanceFollowRedirects(true); - setUserAgent(userAgent, authKey, connection); - setAcceptHeader(acceptedVersion, acceptedMediaType, connection); - - return connection; - } - - private void setUserAgent(String userAgent, String authKey, HttpURLConnection connection) { - if (!StringUtils.isEmpty(userAgent)) { - connection.setRequestProperty(PROPERTY_USER_AGENT, userAgent); - } - } - - private void setAcceptHeader(String acceptedVersion, String acceptedMediaType, HttpURLConnection connection) { - if (StringUtils.isEmpty(acceptedMediaType)) { - throw new HttpClientException(MessageFormat.format( - "Accepted media type (ex. {0}) is not defined", MEDIATYPE_APPLICATION_JSON)); - } - - StringBuilder builder = new StringBuilder(acceptedMediaType); - if (acceptedVersion != null) { - builder.append(SEMICOLON).append(SPACE) - .append(VERSION).append(EQUALS).append(acceptedVersion); - } - - connection.setRequestProperty(PROPERTY_ACCEPT, builder.toString()); - } - - private void setAuthorisation(String username, String password, String authKey, String authIV, - HttpURLConnection connection) { - if (username == null || username.trim().length() == 0 - || password == null || password.trim().length() == 0) { - if (authKey != null && authIV != null) { - connection.setRequestProperty(PROPERTY_AUTHKEY, authKey); - connection.setRequestProperty(PROPERTY_AUTHIV, authIV); - } - } else { - String credentials = Base64Coder.encode( - new StringBuilder().append(username).append(COLON).append(password).toString().getBytes()); - connection.setRequestProperty(PROPERTY_AUTHORIZATION, - new StringBuilder().append(AUTHORIZATION_BASIC).append(SPACE).append(credentials).toString()); - } - } - - private void setSSLCallback(URL url, HttpURLConnection connection) { - if (isHttps(url) - && sslAuthorizationCallback != null) { - HttpsURLConnection httpsConnection = (HttpsURLConnection) connection; - httpsConnection.setHostnameVerifier(new CallbackHostnameVerifier()); - setupTrustManagerCallback(httpsConnection);; - } - } - - /** - * Sets the trust manager callbacks to the given connection - * - * @see ISSLCertificateCallback - */ - private void setupTrustManagerCallback(HttpsURLConnection connection) { - try { - SSLContext sslContext = SSLContext.getInstance("SSL"); - X509TrustManager trustManager = getCurrentTrustManager(); - if (trustManager == null) { - LOGGER.warn("Could not install trust manager callback, no trustmanager was found.", trustManager); - } else { - sslContext.init(null, new TrustManager[] { - new CallbackTrustManager(trustManager, sslAuthorizationCallback) }, null); - SSLSocketFactory socketFactory = sslContext.getSocketFactory(); - ((HttpsURLConnection) connection).setSSLSocketFactory(socketFactory); - } - } catch (GeneralSecurityException e) { - LOGGER.warn("Could not install trust manager callback", e);; - } - } - - private void setConnectTimeout(int timeout, URLConnection connection) { - if (getTimeout(timeout) != NO_TIMEOUT) { - connection.setConnectTimeout(getTimeout(timeout)); - } - } - - private void setReadTimeout(int timeout, URLConnection connection) { - if (getTimeout(timeout) != NO_TIMEOUT) { - connection.setReadTimeout(getTimeout(timeout)); - } - - } - - private int getTimeout(int timeout) { - if (timeout == NO_TIMEOUT) { - if (configTimeout != null) { - timeout = this.configTimeout; - } - } - return timeout; - } - - private void setRequestMediaType(IMediaType mediaType, HttpURLConnection connection) { - if (mediaType == null - || StringUtils.isEmpty(mediaType.getType())) { - throw new HttpClientException( - MessageFormat.format("Request media type (ex. {0}) is not defined", - MEDIATYPE_APPLICATION_FORMURLENCODED)); - } - connection.setRequestProperty(PROPERTY_CONTENT_TYPE, mediaType.getType()); - } - - private int getSystemPropertyInteger(String key) { - try { - return Integer.parseInt(System.getProperty(key)); - } catch (NumberFormatException e) { - return NO_TIMEOUT; - } - } - - private X509TrustManager getCurrentTrustManager() throws NoSuchAlgorithmException, KeyStoreException { - TrustManagerFactory trustManagerFactory = - TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm()); - trustManagerFactory.init((KeyStore) null); - - X509TrustManager x509TrustManager = null; - for (TrustManager trustManager : trustManagerFactory.getTrustManagers()) { - if (trustManager instanceof X509TrustManager) { - x509TrustManager = (X509TrustManager) trustManager; - break; - } - } - return x509TrustManager; - } - - @Override - public void setUserAgent(String userAgent) { - this.userAgent = userAgent; - } - - @Override - public void setAcceptVersion(String version) { - this.acceptedVersion = version; - } - - @Override - public void setAcceptedMediaType(String acceptedMediaType) { - this.acceptedMediaType = acceptedMediaType; - } - - public class CallbackTrustManager implements X509TrustManager { - - private X509TrustManager trustManager; - private ISSLCertificateCallback callback; - - private CallbackTrustManager(X509TrustManager currentTrustManager, ISSLCertificateCallback callback) throws NoSuchAlgorithmException, KeyStoreException { - this.trustManager = currentTrustManager; - this.callback = callback; - } - - public X509Certificate[] getAcceptedIssuers() { - return trustManager.getAcceptedIssuers(); - } - - public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException { - try { - trustManager.checkServerTrusted(chain, authType); - } catch (CertificateException e) { - if (!callback.allowCertificate(chain)) { - throw e; - } - } - } - - public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException { - trustManager.checkServerTrusted(chain, authType); - } - } - - private class CallbackHostnameVerifier implements HostnameVerifier { - - @Override - public boolean verify(String hostname, SSLSession session) { - return sslAuthorizationCallback.allowHostname(hostname, session); - } - - } - -} diff --git a/src/main/java/com/openshift/internal/client/httpclient/UrlConnectionHttpClientBuilder.java b/src/main/java/com/openshift/internal/client/httpclient/UrlConnectionHttpClientBuilder.java deleted file mode 100755 index 13f9a068..00000000 --- a/src/main/java/com/openshift/internal/client/httpclient/UrlConnectionHttpClientBuilder.java +++ /dev/null @@ -1,72 +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.httpclient; - -import com.openshift.client.IHttpClient; -import com.openshift.client.IHttpClient.ISSLCertificateCallback; - -/** - * @author André Dietisheim - * @author Corey Daley - */ -public class UrlConnectionHttpClientBuilder { - - private String userAgent; - private String username; - private String password; - private String authKey; - private String authIV; - private String acceptedMediaType; - private String version; - private Integer configTimeout; - private ISSLCertificateCallback callback; - - public UrlConnectionHttpClientBuilder setUserAgent(String userAgent) { - this.userAgent = userAgent; - return this; - } - - public UrlConnectionHttpClientBuilder setCredentials(String username, String password) { - return setCredentials(username, password, null, null); - } - - public UrlConnectionHttpClientBuilder setCredentials(String username, String password, String authKey, String authIV) { - this.username = username; - this.password = password; - this.authKey = authKey; - this.authIV = authIV; - return this; - } - public UrlConnectionHttpClientBuilder setConfigTimeout (Integer configTimeout) { - this.configTimeout = configTimeout; - return this; - } - - public UrlConnectionHttpClientBuilder setAcceptMediaType(String mediaType) { - this.acceptedMediaType = mediaType; - return this; - } - - public UrlConnectionHttpClientBuilder setSSLCertificateCallback(ISSLCertificateCallback callback) { - this.callback = callback; - return this; - } - - public UrlConnectionHttpClientBuilder setVersion(String version) { - this.version = version; - return this; - } - - public IHttpClient client() { - return new UrlConnectionHttpClient( - username, password, userAgent, acceptedMediaType, version, authKey, authIV, callback, configTimeout); - } -} diff --git a/src/main/java/com/openshift/internal/client/httpclient/request/FormUrlEncodedMediaType.java b/src/main/java/com/openshift/internal/client/httpclient/request/FormUrlEncodedMediaType.java deleted file mode 100644 index 4cfb731c..00000000 --- a/src/main/java/com/openshift/internal/client/httpclient/request/FormUrlEncodedMediaType.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.httpclient.request; - -import java.io.IOException; -import java.io.OutputStream; -import java.io.UnsupportedEncodingException; -import java.net.URLEncoder; -import java.text.MessageFormat; - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import com.openshift.client.IHttpClient; -import com.openshift.internal.client.httpclient.EncodingException; -import com.openshift.internal.client.utils.UrlUtils; - -/** - * 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: - *
    - *
  • Parameter (key-/value-pair, keys are always strings, values may be - * StringValue, ParameterValueArray, ParameterValueMap))
  • - *
  • StringValue (string value: paramname="value")/li> - *
  • ParameterValueArray (array of values: paramname[]="value"¶mname[]="value")
  • - *
  • ParameterValueMap (map of values: paramname[key]="value"¶mname[key]="value)"
  • - *
- * - * @author Andre Dietisheim - * - * @see IHttpClient#post(java.net.URL, IMediaType, int, - * com.openshift.internal.client.httpclient.request.Parameter...) - * @see IHttpClient#put(java.net.URL, IMediaType, int, - * com.openshift.internal.client.httpclient.request.Parameter...) - * @see IHttpClient#delete(java.net.URL, IMediaType, int, - * com.openshift.internal.client.httpclient.request.Parameter...) - */ -public class FormUrlEncodedMediaType implements IMediaType { - - private static final Logger LOGGER = LoggerFactory.getLogger(FormUrlEncodedMediaType.class); - - private static final String UTF8 = "UTF-8"; - private boolean firstParameter = true; - - @Override - public String getType() { - return IHttpClient.MEDIATYPE_APPLICATION_FORMURLENCODED; - } - - public void writeTo(ParameterValueMap parameterMap, OutputStream out) throws EncodingException { - // reset for eventual 2nd write - try { - this.firstParameter = true; - for (Parameter parameter : parameterMap.getValue().values()) { - writeTo(parameter.getName(), parameter.getValue(), out); - } - } catch (IOException e) { - throw new EncodingException( - MessageFormat.format("Could not encode parameters {0}", parameterMap.toString()), e); - } - } - - private void writeTo(String name, ParameterValueMap parameterMap, OutputStream out) throws IOException { - for (Parameter parameter : parameterMap.getValue().values()) { - String childName = new StringBuilder() - .append(name) - .append('[').append(parameter.getName()).append(']') - .toString(); - writeTo(childName, parameter.getValue(), out); - } - } - - private void writeTo(String name, ParameterValue value, OutputStream out) throws IOException { - if (StringValue.class.isAssignableFrom(value.getClass())) { - writeTo(name, (StringValue) value, out); - } else if (ParameterValueArray.class.isAssignableFrom(value.getClass())) { - writeTo(name, (ParameterValueArray) value, out); - } else if (ParameterValueMap.class.isAssignableFrom(value.getClass())) { - writeTo(name, (ParameterValueMap) value, out); - } - } - - private void writeTo(String name, ParameterValueArray array, OutputStream out) throws IOException { - String childName = name + "[]"; - for (ParameterValue value : array.getValue()) { - writeTo(childName, value, out); - } - } - - private void writeTo(String name, StringValue stringValue, OutputStream out) throws IOException { - StringBuilder builder = new StringBuilder(); - if (!firstParameter) { - builder.append(IHttpClient.AMPERSAND); - } else { - firstParameter = false; - } - String value = encode(stringValue.getValue()); - String parameterString = builder - .append(name) - .append(IHttpClient.EQUALS).append(value) - .toString(); - out.write(parameterString.getBytes()); - LOGGER.trace(out.toString()); - } - - private String encode(String value) throws UnsupportedEncodingException { - if (UrlUtils.isUrl(value)) { - // dont encode url payload - return value; - } - return URLEncoder.encode(value, UTF8); - } -} diff --git a/src/main/java/com/openshift/internal/client/httpclient/request/IMediaType.java b/src/main/java/com/openshift/internal/client/httpclient/request/IMediaType.java deleted file mode 100644 index a50e647d..00000000 --- a/src/main/java/com/openshift/internal/client/httpclient/request/IMediaType.java +++ /dev/null @@ -1,35 +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.httpclient.request; - -import java.io.IOException; -import java.io.OutputStream; - -import com.openshift.client.IHttpClient; -import com.openshift.internal.client.httpclient.EncodingException; - -/** - * - * A media type that encodes and writes request parameters before they get sent by the client. - * - * @author Andre Dietisheim - * - * @see IHttpClient#post(java.net.URL, IMediaType, int, com.openshift.internal.client.httpclient.request.Parameter...) - * @see IHttpClient#put(java.net.URL, IMediaType, int, com.openshift.internal.client.httpclient.request.Parameter...) - * @see IHttpClient#delete(java.net.URL, IMediaType, int, com.openshift.internal.client.httpclient.request.Parameter...) - */ -public interface IMediaType { - - public String getType(); - - public void writeTo(ParameterValueMap parameterMap, OutputStream out) throws EncodingException; - -} diff --git a/src/main/java/com/openshift/internal/client/httpclient/request/JsonMediaType.java b/src/main/java/com/openshift/internal/client/httpclient/request/JsonMediaType.java deleted file mode 100644 index a338b333..00000000 --- a/src/main/java/com/openshift/internal/client/httpclient/request/JsonMediaType.java +++ /dev/null @@ -1,101 +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.httpclient.request; - -import java.io.OutputStream; -import java.io.PrintWriter; - -import org.jboss.dmr.ModelNode; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import com.openshift.client.IHttpClient; -import com.openshift.internal.client.httpclient.EncodingException; - -/** - * 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: - *
    - *
  • Parameter (key-/value-pair, keys are always strings, values may be - * StringValue, ParameterValueArray, ParameterValueMap))
  • - *
  • StringValue (string value, in json: string)/li> - *
  • ParameterValueArray (array of values, in json: array
  • - *
  • ParameterValueMap (map of values, in json: object
  • - *
- * - * @author Andre Dietisheim - * - * @see IHttpClient#post(java.net.URL, IMediaType, int, com.openshift.internal.client.httpclient.request.Parameter...) - * @see IHttpClient#put(java.net.URL, IMediaType, int, com.openshift.internal.client.httpclient.request.Parameter...) - * @see IHttpClient#delete(java.net.URL, IMediaType, int, com.openshift.internal.client.httpclient.request.Parameter...) - */ -public class JsonMediaType implements IMediaType { - - private static final Logger LOGGER = LoggerFactory.getLogger(JsonMediaType.class); - - @Override - public String getType() { - return IHttpClient.MEDIATYPE_APPLICATION_JSON; - } - - public void writeTo(ParameterValueMap parameterMap, OutputStream out) throws EncodingException { - ModelNode root = new ModelNode(); - for (Parameter parameter : parameterMap.getValue().values()) { - ModelNode property = root.get(parameter.getName()); - create(parameter.getValue(), property); - } - - writeTo(out, root); - log(root); - } - - private void create(ParameterValueMap parameterMap, ModelNode node) { - for (Parameter parameter : parameterMap.getValue().values()) { - ModelNode property = node.get(parameter.getName()); - create(parameter.getValue(), property); - } - } - - private void create(ParameterValue value, ModelNode node) { - if (StringValue.class.isAssignableFrom(value.getClass())) { - create((StringValue) value, node); - } else if (ParameterValueArray.class.isAssignableFrom(value.getClass())) { - create((ParameterValueArray) value, node); - } else if (ParameterValueMap.class.isAssignableFrom(value.getClass())) { - create((ParameterValueMap) value, node); - } - } - - private void create(ParameterValueArray array, ModelNode node) { - for (ParameterValue value : array.getValue()) { - ModelNode member = new ModelNode(); - create(value, member); - node.add(member); - } - } - - private void create(StringValue stringValue, ModelNode node) { - node.set(stringValue.getValue()); - } - - private void writeTo(OutputStream out, ModelNode node) { - PrintWriter writer = new PrintWriter(out); - node.writeJSONString(writer, true); - writer.flush(); - } - - private void log(ModelNode node) { - if (LOGGER.isTraceEnabled()) { - LOGGER.trace(node.toJSONString(true)); - } - } - -} diff --git a/src/main/java/com/openshift/internal/client/httpclient/request/Parameter.java b/src/main/java/com/openshift/internal/client/httpclient/request/Parameter.java deleted file mode 100644 index bbc2c186..00000000 --- a/src/main/java/com/openshift/internal/client/httpclient/request/Parameter.java +++ /dev/null @@ -1,75 +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.httpclient.request; - -/** - * A parameter wrapper to pass param key/values to the service when executing a - * remote operation from a link. - * - * @author Andre Dietisheim - * - */ -public class Parameter extends ParameterValue> { - - private final String name; - - public Parameter(final String name, final String value) { - this(name, new StringValue(value)); - } - - public Parameter(final String name, final ParameterValue value) { - super(value); - 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()); - result = prime * result + ((getValue() == null) ? 0 : getValue().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; - Parameter other = (Parameter) obj; - if (name == null) { - if (other.name != null) - return false; - } else if (!name.equals(other.name)) - return false; - if (getValue() == null) { - if (other.getValue() != null) - return false; - } else if (!getValue().equals(other.getValue())) - return false; - return true; - } - - @Override - public String toString() { - return "Parameter [" - + "name=" + name - + ", value=" + String.valueOf(getValue()) - + "]"; - } -} diff --git a/src/main/java/com/openshift/internal/client/httpclient/request/ParameterValue.java b/src/main/java/com/openshift/internal/client/httpclient/request/ParameterValue.java deleted file mode 100644 index 4e55c591..00000000 --- a/src/main/java/com/openshift/internal/client/httpclient/request/ParameterValue.java +++ /dev/null @@ -1,60 +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.httpclient.request; - -/** - * @author Andre Dietisheim - */ -public abstract class ParameterValue { - - private V value; - - public ParameterValue(V value) { - this.value = value; - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((value == null) ? 0 : value.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; - @SuppressWarnings("rawtypes") - ParameterValue other = (ParameterValue) obj; - if (value == null) { - if (other.value != null) - return false; - } else if (!value.equals(other.value)) - return false; - return true; - } - - public V getValue() { - return value; - } - - @Override - public String toString() { - return "ParameterValue [value=" + value + "]"; - } -} - diff --git a/src/main/java/com/openshift/internal/client/httpclient/request/ParameterValueArray.java b/src/main/java/com/openshift/internal/client/httpclient/request/ParameterValueArray.java deleted file mode 100644 index 905812ed..00000000 --- a/src/main/java/com/openshift/internal/client/httpclient/request/ParameterValueArray.java +++ /dev/null @@ -1,50 +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.httpclient.request; - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - -/** - * @author Andre Dietisheim - */ -public class ParameterValueArray extends ParameterValue>> { - - public ParameterValueArray() { - this(new ArrayList>()); - } - - public ParameterValueArray(List> values) { - super(values); - } - - public ParameterValueArray add(String name, String value) { - return add(new StringParameter(name, value)); - } - - public ParameterValueArray add(ParameterValue value) { - getValue().add(value); - return this; - } - - public ParameterValueArray addAll(List> values) { - getValue().addAll(values); - return this; - } - - @Override - public String toString() { - return "ParameterValueArray [" - + "values=" + Arrays.toString(getValue().toArray()) + "]"; - } - -} diff --git a/src/main/java/com/openshift/internal/client/httpclient/request/ParameterValueMap.java b/src/main/java/com/openshift/internal/client/httpclient/request/ParameterValueMap.java deleted file mode 100644 index 3a143422..00000000 --- a/src/main/java/com/openshift/internal/client/httpclient/request/ParameterValueMap.java +++ /dev/null @@ -1,95 +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.httpclient.request; - -import java.util.Arrays; -import java.util.LinkedHashMap; -import java.util.List; -import java.util.Map; - -import com.openshift.client.OpenShiftException; - - -/** - * @author Andre Dietisheim - */ -public class ParameterValueMap extends ParameterValue> { - - public ParameterValueMap(List parameters) { - this(); - addAll(parameters); - } - - public ParameterValueMap(Parameter... parameters) { - this(); - addAll(Arrays.asList(parameters)); - } - - public ParameterValueMap() { - super(new LinkedHashMap()); - } - - public ParameterValueMap addAll(List parameters) { - for (Parameter parameter : parameters) { - add(parameter); - } - return this; - } - - public ParameterValueMap add(String name, String value) { - add(new StringParameter(name, value)); - return this; - } - - public ParameterValueMap add(Parameter parameter) { - if (getValue().put(parameter.getName(), parameter) != null) { - throw new OpenShiftException( - "Duplicate parameter found. There's already a parameter named {0}", parameter.getName()); - } - return this; - } - - public Parameter getParamater(String name) { - return getValue().get(name); - } - - public boolean isEmpty() { - Map values = getValue(); - return values == null - || values.isEmpty(); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) - return true; - if (obj == null) - return false; - if (getClass() != obj.getClass()) - return false; - @SuppressWarnings("rawtypes") - ParameterValue other = (ParameterValue) obj; - if (getValue() == null) { - if (other.getValue() != null) - return false; - } else if (!getValue().equals(other.getValue())) - return false; - return true; - } - - @Override - public String toString() { - return "ParameterValueMap [" - + "values=" + getValue() + "]"; - } - - -} diff --git a/src/main/java/com/openshift/internal/client/httpclient/request/StringParameter.java b/src/main/java/com/openshift/internal/client/httpclient/request/StringParameter.java deleted file mode 100644 index 5fe466a3..00000000 --- a/src/main/java/com/openshift/internal/client/httpclient/request/StringParameter.java +++ /dev/null @@ -1,31 +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.httpclient.request; - -/** - * @author Andre Dietisheim - */ -public class StringParameter extends Parameter { - - public StringParameter(final String name, final String value) { - super(name, new StringValue(value)); - } - - @Override - public String toString() { - return "StringParameter [" - + "name=" + getName() - + ", value=" + getValue() - + "]"; - } - - -} diff --git a/src/main/java/com/openshift/internal/client/httpclient/request/StringValue.java b/src/main/java/com/openshift/internal/client/httpclient/request/StringValue.java deleted file mode 100644 index a4ef82e5..00000000 --- a/src/main/java/com/openshift/internal/client/httpclient/request/StringValue.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.httpclient.request; - -/** - * @author Andre Dietisheim - */ -public class StringValue extends ParameterValue { - - public StringValue(String value) { - super(value); - } - - @Override - public String toString() { - return "StringValue [" - + "value=" + getValue() - + "]"; - } -} - diff --git a/src/main/java/com/openshift/internal/client/response/ApplicationResourceDTO.java b/src/main/java/com/openshift/internal/client/response/ApplicationResourceDTO.java deleted file mode 100755 index a078c014..00000000 --- a/src/main/java/com/openshift/internal/client/response/ApplicationResourceDTO.java +++ /dev/null @@ -1,203 +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.response; - -import java.util.List; -import java.util.Map; - -import com.openshift.client.ApplicationScale; -import com.openshift.client.IGearProfile; -import com.openshift.client.Messages; - -/** - * The Class ApplicationDTO. - * - * @author Xavier Coulon - */ -public class ApplicationResourceDTO extends BaseResourceDTO { - - /** the application's framework (or main cartridge). */ - private final String framework; - - /** the application's domainId. */ - private final String domainId; - - /** the application's creation time. */ - private final String creationTime; - - /** the application's name. */ - private final String name; - - /** the application's UUID. */ - private final String uuid; - - /** The scalability enablement. */ - private final ApplicationScale scale; - - /** The application gear profile. */ - private final IGearProfile gearProfile; - - /** the application's aliases. */ - private final List aliases; - - /** the application's url. */ - private final String applicationUrl; - - /** the ssh url. */ - private final String sshUrl; - - /** the application's git repository url. */ - private final String gitUrl; - - /** the url for the git repo with the initial code for this application. */ - private final String initialGitUrl; - - private Map cartridgesByName; - - /** - * Instantiates a new application dto. - * - * @param framework the framework - * @param domainId the domain id - * @param creationTime the creation time - * @param name the name - * @param uuid the uuid - * @param links the links - */ - ApplicationResourceDTO(final String framework, final String domainId, final String creationTime, - final String name, final IGearProfile gearProfile, final ApplicationScale scale, final String uuid, - final String applicationUrl, final String sshUrl, final String gitUrl, final String initialGitUrl, final List aliases, - final Map cartridgeByName, final Map links, Messages messages) { - super(links, messages); - this.framework = framework; - this.domainId = domainId; - this.creationTime = creationTime; - this.name = name; - this.uuid = uuid; - this.gearProfile = gearProfile; - this.scale = scale; - this.applicationUrl = applicationUrl; - this.sshUrl = sshUrl; - this.gitUrl = gitUrl; - this.initialGitUrl = initialGitUrl; - this.aliases = aliases; - this.cartridgesByName = cartridgeByName; - } - - /** - * Gets the framework. - * - * @return the framework - */ - public final String getFramework() { - return framework; - } - - /** - * Gets the domain id. - * - * @return the domainId - */ - public final String getDomainId() { - return domainId; - } - - /** - * Gets the creation time. - * - * @return the creationTime - */ - public final String getCreationTime() { - return creationTime; - } - - /** - * Gets the name. - * - * @return the name - */ - public final String getName() { - return name; - } - - /** - * @return the scalable - */ - public final ApplicationScale getApplicationScale() { - return scale; - } - - /** - * @return the gearProfile - */ - public final IGearProfile getGearProfile() { - return gearProfile; - } - - /** - * Gets the uuid. - * - * @return the uuid - */ - public final String getUuid() { - return uuid; - } - - /** - * @return the url at which this application may be reached - */ - public final String getApplicationUrl() { - return applicationUrl; - } - - /** - * @return the url to use to connect with ssh - */ - public String getSshUrl() { - return sshUrl; - } - - - /** - * @return the url at which this applications git repo may be reached at - */ - public final String getGitUrl() { - return gitUrl; - } - - /** - * @return the initial git repo url for the initial code of this application - */ - public final String getInitialGitUrl() { - return initialGitUrl; - } - - /** - * @return the aliases - */ - public List getAliases() { - return aliases; - } - - public Map getCartridges() { - return cartridgesByName; - } - - @Override - public String toString() { - return "ApplicationResourceDTO [" - + "name=" + name - + ", framework=" + framework - + "]"; - } - - -} diff --git a/src/main/java/com/openshift/internal/client/response/BaseResourceDTO.java b/src/main/java/com/openshift/internal/client/response/BaseResourceDTO.java deleted file mode 100644 index fb8a556e..00000000 --- a/src/main/java/com/openshift/internal/client/response/BaseResourceDTO.java +++ /dev/null @@ -1,75 +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.response; - -import java.util.HashMap; -import java.util.Map; - -import com.openshift.client.Messages; - -/** - * The Class BaseResourceDTO. - * - * @param - * the generic type - */ -public abstract class BaseResourceDTO { - - /** the indexed map of links to perform operations from this resource. */ - private final Map links; - private final Messages messages; - - protected BaseResourceDTO() { - this(new HashMap(), null); - } - - /** - * Instantiates a new base resource dto. - * - * @param links - * the links - */ - protected BaseResourceDTO(final Map links, Messages messages) { - this.links = links; - this.messages = messages; - } - - /** - * Gets the links. - * - * @return all the links - */ - public final Map getLinks() { - return links; - } - - /** - * Gets the link. - * - * @param name - * the name of the link to look for. - * @return the named link - */ - public final Link getLink(String name) { - return links.get(name); - } - - /** - * Returns the messages that were reported when this resource was created. - * May be null if retrieved in a session in which we did not - * create this resource. - * - * @return the messages that were reported when this resource was created - */ - public Messages getMessages() { - return messages; - } -} diff --git a/src/main/java/com/openshift/internal/client/response/CartridgeResourceDTO.java b/src/main/java/com/openshift/internal/client/response/CartridgeResourceDTO.java deleted file mode 100755 index 68cd04fa..00000000 --- a/src/main/java/com/openshift/internal/client/response/CartridgeResourceDTO.java +++ /dev/null @@ -1,89 +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.response; - -import java.net.URL; -import java.util.Map; - -import com.openshift.client.Messages; -import com.openshift.internal.client.CartridgeType; - -/** - * @author Xavier Coulon - * @author Andre Dietisheim - * - */ -public class CartridgeResourceDTO extends BaseResourceDTO { - - private final String name; - private String displayName; - private String description; - private final CartridgeType type; - private URL url; - private CartridgeResourceProperties properties; - - protected CartridgeResourceDTO(final String name, final CartridgeType type, final CartridgeResourceProperties properties) { - this(name, null, null, type, null, properties, null, null); - } - - protected CartridgeResourceDTO(final String name, final String displayName, final String description, - final String type, URL url, CartridgeResourceProperties properties, final Map links, final Messages messages) { - this(name, displayName, description, CartridgeType.safeValueOf(type), url, properties, links, messages); - } - - CartridgeResourceDTO(final String name, final String displayName, final String description, - final CartridgeType type, URL url, CartridgeResourceProperties properties, final Map links, - final Messages messages) { - super(links, messages); - this.name = name; - this.displayName = displayName; - this.description = description; - this.type = type; - this.url = url; - this.properties = properties; - } - - public String getName() { - return name; - } - - public String getDisplayName() { - return displayName; - } - - public String getDescription() { - return description; - } - - public CartridgeType getType() { - return type; - } - - public URL getUrl() { - return url; - } - - public CartridgeResourceProperties getProperties() { - return properties; - } - - @Override - public String toString() { - return "CartridgeResourceDTO [" - + " name=" + name - + ", description=" + description - + ", displayName=" + displayName - + ", type=" + type - + ", url=" + url - + "]"; - } - -} diff --git a/src/main/java/com/openshift/internal/client/response/CartridgeResourceProperties.java b/src/main/java/com/openshift/internal/client/response/CartridgeResourceProperties.java deleted file mode 100644 index 76bbd264..00000000 --- a/src/main/java/com/openshift/internal/client/response/CartridgeResourceProperties.java +++ /dev/null @@ -1,65 +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.response; - -import java.util.LinkedHashMap; -import java.util.List; -import java.util.Map; - -import com.openshift.internal.client.utils.CollectionUtils; - -/** - * Properties that hold informations available in cartridges - * - * @author Andre Dietisheim - */ -public class CartridgeResourceProperties { - - public static final String CONNECTION_URL = "connection_url"; - public static final String JOB_URL = "job_url"; - public static final String USERNAME = "username"; - public static final String PASSWORD = "password"; - public static final String DATABASE_NAME = "database_name"; - - private Map properties = new LinkedHashMap(); - - public String getPropertyValue(String name) { - CartridgeResourceProperty property = properties.get(name); - if (property == null) { - return null; - } - return property.getValue(); - } - - public void add(String name, CartridgeResourceProperty property) { - properties.put(name, property); - } - - public CartridgeResourceProperty getProperty(String name) { - return properties.get(name); - } - - public List getAll() { - return CollectionUtils.toUnmodifiableCopy(properties.values()); - } - - public int size() { - return properties.size(); - } - - @Override - public String toString() { - return "ResourceProperties [ " - + "properties=" + properties + - " ]"; - } - -} diff --git a/src/main/java/com/openshift/internal/client/response/CartridgeResourceProperty.java b/src/main/java/com/openshift/internal/client/response/CartridgeResourceProperty.java deleted file mode 100644 index 2fda53e4..00000000 --- a/src/main/java/com/openshift/internal/client/response/CartridgeResourceProperty.java +++ /dev/null @@ -1,90 +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.response; - - -/** - * @author Andre Dietisheim - */ -public class CartridgeResourceProperty { - - private String name; - private String type; - private String description; - private String value; - - /** - * Constructor called when embedded cartridges are listed within an - * application. - *

- * 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 value) {
-		this(name, null, null, value);
-	}
-	
-	/**
-	 * Constructor called when embedded cartridges are listed on their own (when
-	 * /cartridges resource is queried.
-	 * 

- * ex. - * - *

-	 * "properties":[
-	 *  {
-	 *          "name":"connection_url",
-	 *          "type":"cart_data",
-	 *          "description":"Application metrics URL",
-	 *          "value":"https://eap6-foobarz.rhcloud.com/metrics/"
-	 * }
-	 * 
-	 */
-	protected CartridgeResourceProperty(String name, String type, String description, String value) {
-		this.name = name;
-		this.type = type;
-		this.description = description;
-		this.value = value;
-	}
-
-	public String getName() {
-		return name;
-	}
-
-	public String getType() {
-		return type;
-	}
-
-	public String getDescription() {
-		return description;
-	}
-
-	public String getValue() {
-		return value;
-	}
-
-	@Override
-	public String toString() {
-		return "ResourceProperty ["
-				+ " name=" + name 
-				+ ", type=" + type 
-				+ ", description=" + description 
-				+ ", value=" + value 
-				+ " ]";
-	}
-
-}
diff --git a/src/main/java/com/openshift/internal/client/response/DomainResourceDTO.java b/src/main/java/com/openshift/internal/client/response/DomainResourceDTO.java
deleted file mode 100644
index 7a111352..00000000
--- a/src/main/java/com/openshift/internal/client/response/DomainResourceDTO.java
+++ /dev/null
@@ -1,44 +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.response;
-
-import java.util.Map;
-
-import com.openshift.client.Messages;
-
-/**
- * @author Xavier Coulon
- */
-public class DomainResourceDTO extends BaseResourceDTO {
-
-	/** the domain's configured id. */
-	private final String id;
-	/** the domain's configured suffix (cannot be configured by user, returned by platform). */
-	private String suffix;
-	
-	DomainResourceDTO(final String id, final String suffix, final Map links, final Messages messages) {
-		super(links, messages);
-		this.id = id;
-		this.suffix = suffix;
-	}
-
-	/**
-	 * @return the id
-	 */
-	public final String getId() {
-		return id;
-	}
-
-	public String getSuffix() {
-		return suffix;
-	}
-
-}
diff --git a/src/main/java/com/openshift/internal/client/response/EnumDataType.java b/src/main/java/com/openshift/internal/client/response/EnumDataType.java
deleted file mode 100755
index 7dfcce07..00000000
--- a/src/main/java/com/openshift/internal/client/response/EnumDataType.java
+++ /dev/null
@@ -1,63 +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.response;
-
-import java.util.regex.Pattern;
-
-/**
- * The Enum EnumDataType.
- */
-public enum EnumDataType {
-		
-	/** Links / the root node that allows for navigation amongst resources.*/
-	links,
-	user,
-	/** the user's keys. */
-	keys,
-	/** one user's key.*/
-	key,
-	domains,
-	domain,
-	applications,
-	application,
-	/** The embedded cartridge type. */
-	embedded,
-	gear_groups,
-	/** The standalone cartridges type. */
-	cartridges,
-	/** The standalone cartridge type. */
-	cartridge,
-	/** The environment-variables type*/
-	environment_variables,
-	/** The environmetn-variable type*/
-	environment_variable
-	;
-	
-	private static final Pattern pattern = Pattern.compile("-");
-
-	/**
-	 * Returns the enum value matching the given value (as string), or 'undefined' if null/unknown value.
-	 * 
-	 * @param value
-	 *            as String
-	 * @return value as enum
-	 */
-	static EnumDataType safeValueOf(String value) {
-		if (value != null) {
-			try {
-				 return valueOf(pattern.matcher(value).replaceAll("_"));
-			} catch (IllegalArgumentException e) {
-				// do nothing, will just return 'undefined'
-			}
-		}
-		return null;
-	}
-}
\ No newline at end of file
diff --git a/src/main/java/com/openshift/internal/client/response/EnvironmentVariableResourceDTO.java b/src/main/java/com/openshift/internal/client/response/EnvironmentVariableResourceDTO.java
deleted file mode 100644
index 7280b479..00000000
--- a/src/main/java/com/openshift/internal/client/response/EnvironmentVariableResourceDTO.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.response;
-
-import java.util.Map;
-
-import com.openshift.client.Messages;
-
-/**
- * The DTO for an environment variable
- * 
- * @author Syed Iqbal
- * 
- */
-public class EnvironmentVariableResourceDTO extends BaseResourceDTO{
-	/** The environment variable's name. */
-	private final String name;
- 
-	/** the environment variable's value */
-	private final String value;
- 
-	/**
-	 * Instantiates a new environment variable resource dto.
-	 *
-	 * @param name
-	 *            the name
-	 * @param value
-	 *            the value
-	 */
-	public EnvironmentVariableResourceDTO(final String name, final String value, final Map links,final Messages messages) {
-		super(links, messages);
-		this.name = name;
-		this.value = value;
-	}
- 
-	/**
-	 * Returns the name of this environment variable
-	 *
-	 * @return the name
-	 */
-	public final String getName() {
-		return name;
-	}
- 
-	/**
-	 * Returns the value of this gear group.
-	 *
-	 * @return the value
-	 */
-	public final String getValue() {
-		return value;
-	}
-
-}
diff --git a/src/main/java/com/openshift/internal/client/response/GearGroupResourceDTO.java b/src/main/java/com/openshift/internal/client/response/GearGroupResourceDTO.java
deleted file mode 100644
index b1af5e6a..00000000
--- a/src/main/java/com/openshift/internal/client/response/GearGroupResourceDTO.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.response;
-
-import java.util.Collection;
-import java.util.Map;
-
-/**
- * The DTO for a gear groups
- * 
- * @author Andre Dietisheim
- */
-public class GearGroupResourceDTO extends BaseResourceDTO {
-
-	/** The gear groups uuid. */
-	private final String uuid;
-
-	/** the gear groups name */
-	private final String name;
-
-	/** The gears part of this group. */
-	private final Collection gears;
-	
-	/** The cartridges part of this group, indexed by their name. */
-	private final Map cartridges;
-	
-	/**
-	 * Instantiates a new gears resource dto.
-	 * 
-	 * @param uuid
-	 *            the uuid
-	 * @param name
-	 *            the gear group name
-	 * @param gears
-	 *            the gears in this group
-	 * @param cartridges
-	 *            the cartridges in this group
-	 *            
-	 */
-	GearGroupResourceDTO(final String uuid, final String name, final Collection gears, final Map cartridges) {
-		super();
-		this.uuid = uuid;
-		this.name = name;
-		this.gears = gears;
-		this.cartridges = cartridges;
-	}
-
-	/**
-	 * Returns the name of this gear group
-	 * 
-	 * @return the name
-	 */
-	public final String getName() {
-		return name;
-	}
-
-	/**
-	 * Returns the uuid of this gear group.
-	 * 
-	 * @return the uuid
-	 */
-	public final String getUuid() {
-		return uuid;
-	}
-
-	/**
-	 * Returns the gears within this gear group.
-	 * 
-	 * @return the gears
-	 */
-	public final Collection getGears() {
-		return gears;
-	}
-
-	/**
-	 * Returns the cartridges within this gear group.
-	 * @return the cartridges
-	 */
-	public Map getCartridges() {
-		return cartridges;
-	}
-
-	/**
-	 * Returns the cartridge identified by the given name.
-	 * @return the cartridge or null if none exists in this group
-	 */
-	public CartridgeResourceDTO getCartridge(final String name) {
-		return cartridges.get(name);
-	}
-
-}
diff --git a/src/main/java/com/openshift/internal/client/response/GearResourceDTO.java b/src/main/java/com/openshift/internal/client/response/GearResourceDTO.java
deleted file mode 100755
index 59b7054d..00000000
--- a/src/main/java/com/openshift/internal/client/response/GearResourceDTO.java
+++ /dev/null
@@ -1,64 +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.response;
-
-import java.util.HashMap;
-
-/**
- * The Class ApplicationDTO.
- *
- * @author Xavier Coulon
- */
-public class GearResourceDTO extends BaseResourceDTO {
-
-	/** uuid the Gear UUID. */
-	private final String uuid;
-	
-	/** state the Gear state. */
-	private final String state;
-	
-	/** the URL to connect with SSH. */
-	private final String sshUrl;
-
-	/**
-	 * Constructor
-	 * @param uuid the Gear UUID
-	 * @param state the Gear state
-	 * @param sshUrl the URL to connect with SSH
-	 */
-	GearResourceDTO(String uuid, String state, String sshUrl) {
-		super(new HashMap(), null);
-		this.uuid = uuid;
-		this.sshUrl = sshUrl;
-		this.state = state;
-	}
-	
-	@Override
-	public String toString() {
-		return "GearResourceDTO";
-	}
-	
-	public String getUuid() {
-		return uuid;
-	}
-	
-	public String getState() {
-		return state;
-	}
-
-	/**
-	 * @return the sshUrl
-	 */
-	public String getSshUrl() {
-		return sshUrl;
-	}
-
-}
diff --git a/src/main/java/com/openshift/internal/client/response/IRestResponseFactory.java b/src/main/java/com/openshift/internal/client/response/IRestResponseFactory.java
deleted file mode 100644
index c474a88d..00000000
--- a/src/main/java/com/openshift/internal/client/response/IRestResponseFactory.java
+++ /dev/null
@@ -1,27 +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.response;
-
-import com.openshift.client.OpenShiftException;
-
-public interface IRestResponseFactory {
-
-	/**
-	 * Returns a {@link RestResponse} instance for a given rest response string.
-	 * @param rest response string
-	 * @return RestResponse instance
-	 * @throws OpenShiftException
-	 * 
-	 * @see RestResponse
-	 */
-	public RestResponse get(final String restResponse) throws OpenShiftException;
-	
-}
diff --git a/src/main/java/com/openshift/internal/client/response/KeyResourceDTO.java b/src/main/java/com/openshift/internal/client/response/KeyResourceDTO.java
deleted file mode 100644
index 0b6f4250..00000000
--- a/src/main/java/com/openshift/internal/client/response/KeyResourceDTO.java
+++ /dev/null
@@ -1,86 +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.response;
-
-import java.util.Map;
-
-import com.openshift.client.Messages;
-
-/**
- * The Class KeyResourceDTO.
- */
-public class KeyResourceDTO extends BaseResourceDTO {
-
-	/** The name. */
-	private final String name;
-
-	/** The type. */
-	private final String type;
-
-	/** The public key content. */
-	private final String content;
-
-	/**
-	 * Instantiates a new key resource dto.
-	 * 
-	 * @param name
-	 *            the name
-	 * @param type
-	 *            the type
-	 * @param content
-	 *            the content
-	 * @param links
-	 *            the links
-	 */
-	KeyResourceDTO(final String name, final String type, final String content, final Map links, final Messages messages) {
-		super(links, messages);
-		this.name = name;
-		this.type = type;
-		this.content = content;
-	}
-
-	/**
-	 * Returns the name.
-	 * 
-	 * @return the name
-	 */
-	public final String getName() {
-		return name;
-	}
-
-	/**
-	 * Returns the type.
-	 * 
-	 * @return the type
-	 */
-	public final String getType() {
-		return type;
-	}
-
-	/**
-	 * Returns the public key content.
-	 * 
-	 * @return the public key content
-	 */
-	public final String getContent() {
-		return content;
-	}
-
-	@Override
-	public String toString() {
-		return "KeyResourceDTO ["
-				+ "name=" + name
-				+ ", type=" + type
-				+ ", content=" + content
-				+ "]";
-	}
-
-}
diff --git a/src/main/java/com/openshift/internal/client/response/Link.java b/src/main/java/com/openshift/internal/client/response/Link.java
deleted file mode 100755
index e2693438..00000000
--- a/src/main/java/com/openshift/internal/client/response/Link.java
+++ /dev/null
@@ -1,325 +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.response;
-
-import java.io.ByteArrayOutputStream;
-import java.io.IOException;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.regex.Matcher;
-import java.util.regex.Pattern;
-
-import com.openshift.client.HttpMethod;
-import com.openshift.client.IHttpClient;
-import com.openshift.client.OpenShiftException;
-import com.openshift.client.OpenShiftRequestException;
-import com.openshift.internal.client.httpclient.EncodingException;
-import com.openshift.internal.client.httpclient.request.FormUrlEncodedMediaType;
-import com.openshift.internal.client.httpclient.request.Parameter;
-import com.openshift.internal.client.httpclient.request.ParameterValueMap;
-import com.openshift.internal.client.utils.StringUtils;
-import com.openshift.internal.client.utils.UrlUtils;
-
-/**
- * The Class Link.
- * 
- * @author Xavier Coulon
- */
-public class Link {
-
-	private final Pattern PATH_VAR_PATTERN = Pattern.compile(":([a-z_]+)");
-
-	/** The related resource (destination) this link points to */
-	private final String rel;
-
-	/** The url/href this link point to. */
-	private final String href;
-
-	/** The http method that this link operates on. */
-	private final HttpMethod httpMethod;
-
-	/** The required params of this link. */
-	private final List requiredParams;
-
-	/** The optional params of this link. */
-	private final List optionalParams;
-
-	public Link(final String href, final HttpMethod httpMethod) {
-		this(null, href, httpMethod);
-	}
-
-	public Link(final String rel, final String href, final HttpMethod httpMethod) {
-		this(rel, href, httpMethod, null, null);
-	}
-
-	protected Link(final String rel, final String href, final String httpMethod,
-			final List requiredParams, final List optionalParams) {
-		this(rel, href, HttpMethod.valueOf(httpMethod), requiredParams, optionalParams);
-	}
-
-	/**
-	 * Instantiates a new Link object.
-	 * 
-	 * @param rel
-	 *            the related resource this link points to
-	 * @param href
-	 *            the href the url/href this link points to
-	 * @param httpMethod
-	 *            the http method that this link operates on
-	 * @param requiredParams
-	 *            the required params
-	 * @param optionalParams
-	 *            the optional params
-	 */
-	protected Link(final String rel, final String href, final HttpMethod httpMethod,
-			final List requiredParams, final List optionalParams) {
-		this.rel = rel;
-		this.href = href;
-		this.httpMethod = httpMethod;
-		this.requiredParams = requiredParams;
-		this.optionalParams = optionalParams;
-	}
-
-	/**
-	 * Gets the related resource (destination) this link points to.
-	 * 
-	 * @return the rel
-	 */
-	public final String getRel() {
-		return rel;
-	}
-
-	/**
-	 * Gets the url/href this link points to.
-	 * 
-	 * @return the href
-	 */
-	public final String getHref() {
-		return href;
-	}
-
-	public final String getHref(String server, String servicePath, Parameter... urlParameters) {
-		return addParameters(ensureAbsoluteUrl(href, server, servicePath), urlParameters);
-	}
-
-	public final String getHref(String server, String servicePath, List urlPathParameters,
-			List urlParameters) {
-		String url = substituteUrlPathParameters(href, urlPathParameters);
-		return addParameters(ensureAbsoluteUrl(url, server, servicePath), urlParameters);
-	}
-
-	/**
-	 * Gets the http method this link operates on.
-	 * 
-	 * @return the httpMethod
-	 */
-	public final HttpMethod getHttpMethod() {
-		return httpMethod;
-	}
-
-	/**
-	 * Gets the required params.
-	 * 
-	 * @return the requiredParams
-	 */
-	public final List getRequiredParams() {
-		return requiredParams;
-	}
-
-	/**
-	 * Gets the optional params.
-	 * 
-	 * @return the optionalParams
-	 */
-	public final List getOptionalParams() {
-		return optionalParams;
-	}
-
-	public boolean hasParameter(String name) {
-		if (getParameter(name, requiredParams) != null) {
-			return true;
-		} else if (getParameter(name, optionalParams) != null) {
-			return true;
-		}
-		return false;
-	}
-
-	public void validateRequestParameters(Parameter[] parameters)
-			throws OpenShiftRequestException {
-		if (getRequiredParams() != null) {
-			for (LinkParameter requiredParameter : getRequiredParams()) {
-				validateRequiredParameter(requiredParameter, parameters);
-			}
-		}
-		if (getOptionalParams() != null) {
-			for (LinkParameter optionalParameter : getOptionalParams()) {
-				validateOptionalParameters(optionalParameter);
-			}
-		}
-	}
-
-	private void validateRequiredParameter(LinkParameter linkParameter, Parameter[] parameters)
-			throws OpenShiftRequestException {
-		Parameter parameter = getParameter(linkParameter.getName(), parameters);
-		if (parameter == null) {
-			throw new OpenShiftRequestException(
-					"Requesting {0}: required request parameter \"{1}\" is missing", getHref(),
-					linkParameter.getName());
-		}
-
-		if (isEmptyString(linkParameter, parameter.getValue())) {
-			throw new OpenShiftRequestException("Requesting {0}: required request parameter \"{1}\" is empty",
-					getHref(), linkParameter.getName());
-		}
-		// TODO: check valid options (still reported in a very incosistent way)
-	}
-
-	private Parameter getParameter(String name, Parameter[] parameters) {
-		if (StringUtils.isEmpty(name)
-				|| parameters == null) {
-			return null;
-		}
-		for (Parameter parameter : parameters) {
-			if (name.equals(parameter.getName())) {
-				return parameter;
-			}
-		}
-		return null;
-	}
-
-	private LinkParameter getParameter(String name, List parameters) {
-		if (StringUtils.isEmpty(name)
-				|| parameters == null) {
-			return null;
-		}
-		for (LinkParameter parameter : parameters) {
-			if (name.equals(parameter.getName())) {
-				return parameter;
-			}
-		}
-		return null;
-	}
-
-	private void validateOptionalParameters(LinkParameter optionalParameter) {
-		// TODO: implement
-	}
-
-	private boolean isEmptyString(LinkParameter parameter, Object parameterValue) {
-		return parameter.getType() == LinkParameterType.STRING
-				&& parameterValue instanceof String
-				&& StringUtils.isEmpty((String) parameterValue);
-	}
-
-	private String ensureAbsoluteUrl(String href, String server, String servicePath) {
-		if (StringUtils.isEmpty(href)
-				|| href.startsWith(IHttpClient.HTTP)) {
-			return href;
-		}
-
-		if (StringUtils.isEmpty(servicePath)
-				|| href.startsWith(servicePath)) {
-			return StringUtils.prependIfNonEmpty(server, href);
-		}
-
-		if (!href.startsWith(servicePath)) {
-			href = UrlUtils.appendPath(servicePath, href);
-		}
-		return StringUtils.prependIfNonEmpty(server, href);
-	}
-
-	private String addParameters(String url, Parameter... urlParameters) {
-		if (urlParameters == null
-				|| urlParameters.length == 0) {
-			return url;
-		}
-		return addParameters(url, Arrays.asList(urlParameters));
-	}
-
-	private String addParameters(String url, List urlParameters) {
-		if (urlParameters == null
-				|| urlParameters.size() == 0) {
-			return url;
-		}
-		try {
-			ByteArrayOutputStream out = new ByteArrayOutputStream();
-			out.write(url.getBytes());
-			out.write(IHttpClient.QUESTION_MARK);
-			new FormUrlEncodedMediaType().writeTo(new ParameterValueMap(urlParameters), out);
-			return out.toString();
-		} catch (IOException e) {
-			throw new OpenShiftException(e, "Could not add paramters {0} to url {1}", urlParameters, url);
-		} catch (EncodingException e) {
-			throw new OpenShiftException(e, "Could not add paramters {0} to url {1}", urlParameters, url);
-		}
-	}
-
-	/**
-	 * Replaces variables within the url in the form (":var"):
-	 * 
-	 * 
-	 * 
-	 * https://openshift.redhat.com/broker/rest/domain/:domain_name/application/:name
-	 * 
-	 * 
- * - * @param href the href (link) that contains the variables that shall get substituted - * @param urlPathParameters the list of parameters that shall contain the substitution values - * @return - */ - private String substituteUrlPathParameters(String href, List urlPathParameters) { - if (urlPathParameters == null - || urlPathParameters.size() == 0) { - return href; - } - return substituteVariables(href, urlPathParameters); - } - - private String substituteVariables(String url, List parameters) { - if (StringUtils.isEmpty(url)) { - return url; - } - - StringBuffer buffer = new StringBuffer(); - Map parameterByName = toMap(parameters); - Matcher matcher = PATH_VAR_PATTERN.matcher(url); - while (matcher.find()) { - String name = matcher.group(1); - if (!StringUtils.isEmpty(name)) { - Parameter parameter = parameterByName.get(name); - if (parameter != null) { - matcher.appendReplacement(buffer, String.valueOf(parameter.getValue().getValue())); - } - } - } - matcher.appendTail(buffer); - - return buffer.toString(); - } - - private Map toMap(List parameters) { - HashMap parameterByName = new HashMap(); - for (Parameter parameter : parameters) { - parameterByName.put(parameter.getName(), parameter); - } - return parameterByName; - } - - public String toString() { - return "Link [" + - "rel=" + rel + ", " - + "httpMethod=" + httpMethod + ", " - + "href=" + href - + "]"; - } - -} diff --git a/src/main/java/com/openshift/internal/client/response/LinkParameter.java b/src/main/java/com/openshift/internal/client/response/LinkParameter.java deleted file mode 100644 index 09fd760c..00000000 --- a/src/main/java/com/openshift/internal/client/response/LinkParameter.java +++ /dev/null @@ -1,75 +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.response; - -import java.util.List; - -import com.openshift.client.OpenShiftRequestException; - - -/** - * @author Xavier Coulon - * @author Andre Dietisheim - */ -public class LinkParameter { - - protected final String name; - protected final LinkParameterType type; - protected final String description; - protected final String defaultValue; - protected final List validOptions; - - protected LinkParameter(final String name, final String type, final String defaultValue, final String description, - final List validOptions) throws OpenShiftRequestException { - this(name, new LinkParameterType(type), defaultValue, description, validOptions); - } - - protected LinkParameter(final String name, final LinkParameterType type, final String defaultValue, final String description, - final List validOptions) throws OpenShiftRequestException { - this.name = name; - this.type = type; - this.description = description; - this.defaultValue = defaultValue; - this.validOptions = validOptions; - } - - /** - * @return the name - */ - public final String getName() { - return name; - } - - /** - * @return the type - */ - public final LinkParameterType getType() { - return type; - } - - /** - * @return the description - */ - public final String getDescription() { - return description; - } - - /** - * @return the defaultValue, or null. Only applicable to optional parameters. - */ - public String getDefaultValue() { - return defaultValue; - } - - public List getValidOptions() { - return validOptions; - } -} \ No newline at end of file diff --git a/src/main/java/com/openshift/internal/client/response/LinkParameterType.java b/src/main/java/com/openshift/internal/client/response/LinkParameterType.java deleted file mode 100755 index 002cc1e5..00000000 --- a/src/main/java/com/openshift/internal/client/response/LinkParameterType.java +++ /dev/null @@ -1,56 +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.response; - - - -/** - * @author Andre Dietisheim - */ -public class LinkParameterType { - - - public static final LinkParameterType STRING = new LinkParameterType("string"); - public static final LinkParameterType BOOLEAN = new LinkParameterType("boolean"); - public static final LinkParameterType INTEGER = new LinkParameterType("integer"); - public static final LinkParameterType ARRAY = new LinkParameterType("array"); - - private String type; - - public LinkParameterType(String type) { - this.type = type; - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((type == null) ? 0 : type.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; - LinkParameterType other = (LinkParameterType) obj; - if (type == null) { - if (other.type != null) - return false; - } else if (!type.equals(other.type)) - return false; - return true; - } -} diff --git a/src/main/java/com/openshift/internal/client/response/OpenShiftJsonDTOFactory.java b/src/main/java/com/openshift/internal/client/response/OpenShiftJsonDTOFactory.java deleted file mode 100755 index ce3047da..00000000 --- a/src/main/java/com/openshift/internal/client/response/OpenShiftJsonDTOFactory.java +++ /dev/null @@ -1,728 +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.response; - -import static com.openshift.internal.client.utils.IOpenShiftJsonConstants.PROPERTY_ALIASES; -import static com.openshift.internal.client.utils.IOpenShiftJsonConstants.PROPERTY_APP_URL; -import static com.openshift.internal.client.utils.IOpenShiftJsonConstants.PROPERTY_CARTRIDGES; -import static com.openshift.internal.client.utils.IOpenShiftJsonConstants.PROPERTY_CONSUMED_GEARS; -import static com.openshift.internal.client.utils.IOpenShiftJsonConstants.PROPERTY_CREATION_TIME; -import static com.openshift.internal.client.utils.IOpenShiftJsonConstants.PROPERTY_DATA; -import static com.openshift.internal.client.utils.IOpenShiftJsonConstants.PROPERTY_DESCRIPTION; -import static com.openshift.internal.client.utils.IOpenShiftJsonConstants.PROPERTY_DISPLAY_NAME; -import static com.openshift.internal.client.utils.IOpenShiftJsonConstants.PROPERTY_DOMAIN; -import static com.openshift.internal.client.utils.IOpenShiftJsonConstants.PROPERTY_DOMAIN_ID; -import static com.openshift.internal.client.utils.IOpenShiftJsonConstants.PROPERTY_FRAMEWORK; -import static com.openshift.internal.client.utils.IOpenShiftJsonConstants.PROPERTY_GEARS; -import static com.openshift.internal.client.utils.IOpenShiftJsonConstants.PROPERTY_GEAR_PROFILE; -import static com.openshift.internal.client.utils.IOpenShiftJsonConstants.PROPERTY_GEAR_STATE; -import static com.openshift.internal.client.utils.IOpenShiftJsonConstants.PROPERTY_GIT_URL; -import static com.openshift.internal.client.utils.IOpenShiftJsonConstants.PROPERTY_HREF; -import static com.openshift.internal.client.utils.IOpenShiftJsonConstants.PROPERTY_ID; -import static com.openshift.internal.client.utils.IOpenShiftJsonConstants.PROPERTY_INITIAL_GIT_URL; -import static com.openshift.internal.client.utils.IOpenShiftJsonConstants.PROPERTY_LINKS; -import static com.openshift.internal.client.utils.IOpenShiftJsonConstants.PROPERTY_LOGIN; -import static com.openshift.internal.client.utils.IOpenShiftJsonConstants.PROPERTY_MAX_GEARS; -import static com.openshift.internal.client.utils.IOpenShiftJsonConstants.PROPERTY_METHOD; -import static com.openshift.internal.client.utils.IOpenShiftJsonConstants.PROPERTY_NAME; -import static com.openshift.internal.client.utils.IOpenShiftJsonConstants.PROPERTY_OPTIONAL_PARAMS; -import static com.openshift.internal.client.utils.IOpenShiftJsonConstants.PROPERTY_PROPERTIES; -import static com.openshift.internal.client.utils.IOpenShiftJsonConstants.PROPERTY_REL; -import static com.openshift.internal.client.utils.IOpenShiftJsonConstants.PROPERTY_REQUIRED_PARAMS; -import static com.openshift.internal.client.utils.IOpenShiftJsonConstants.PROPERTY_SCALABLE; -import static com.openshift.internal.client.utils.IOpenShiftJsonConstants.PROPERTY_SSH_URL; -import static com.openshift.internal.client.utils.IOpenShiftJsonConstants.PROPERTY_SUFFIX; -import static com.openshift.internal.client.utils.IOpenShiftJsonConstants.PROPERTY_TYPE; -import static com.openshift.internal.client.utils.IOpenShiftJsonConstants.PROPERTY_URL; -import static com.openshift.internal.client.utils.IOpenShiftJsonConstants.PROPERTY_UUID; -import static com.openshift.internal.client.utils.IOpenShiftJsonConstants.PROPERTY_VALID_OPTIONS; -import static com.openshift.internal.client.utils.IOpenShiftJsonConstants.PROPERTY_VALUE; - -import java.net.MalformedURLException; -import java.net.URL; -import java.util.ArrayList; -import java.util.Collection; -import java.util.HashMap; -import java.util.LinkedHashMap; -import java.util.List; -import java.util.Map; - -import org.jboss.dmr.ModelNode; -import org.jboss.dmr.ModelType; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import com.openshift.client.ApplicationScale; -import com.openshift.client.GearState; -import com.openshift.client.IField; -import com.openshift.client.IGear; -import com.openshift.client.IGearProfile; -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.internal.client.Gear; -import com.openshift.internal.client.GearProfile; -import com.openshift.internal.client.utils.IOpenShiftJsonConstants; -import com.openshift.internal.client.utils.StringUtils; - -/** - * A factory for creating DTO objects. - * - * @author Xavier Coulon - * @author Andre Dietisheim - */ -public class OpenShiftJsonDTOFactory implements IRestResponseFactory { - - private final Logger LOGGER = LoggerFactory.getLogger(OpenShiftJsonDTOFactory.class); - - public RestResponse get(final String json) throws OpenShiftException { - // in case the server answers with 'no-content' - if (StringUtils.isEmpty(json)) { - return null; - } - LOGGER.trace("Unmarshalling response\n{}", json); - final ModelNode rootNode = getModelNode(json); - final String type = rootNode.get(IOpenShiftJsonConstants.PROPERTY_TYPE).asString(); - final String status = rootNode.get(IOpenShiftJsonConstants.PROPERTY_STATUS).asString(); - final Messages messages = createMessages(rootNode.get(IOpenShiftJsonConstants.PROPERTY_MESSAGES)); - - final EnumDataType dataType = EnumDataType.safeValueOf(type); - // the response is after an error, only the messages are relevant - - - if (dataType == null) { - return new RestResponse(status, messages, null, null); - } - - Object data = createData(dataType, messages, rootNode); - return new RestResponse(status, messages, data, dataType); - } - - private Object createData(EnumDataType dataType, Messages messages, ModelNode rootNode) { - switch (dataType) { - case user: - return createUser(rootNode); - case keys: - return createKeys(rootNode); - case key: - return createKey(rootNode, messages); - case links: - return createLinks(rootNode); - case domains: - return createDomains(rootNode); - case domain: - return createDomain(rootNode, messages); - case applications: - return createApplications(rootNode); - case application: - return createApplication(rootNode, messages); - case gear_groups: - return createGearGroups(rootNode); - case cartridges: - return createCartridges(rootNode.get(PROPERTY_DATA)); - case cartridge: - return createCartridge(rootNode, messages); - case environment_variables: - return createEnvironmentVariables(rootNode); - case environment_variable: - return createEnvironmentVariable(rootNode, messages); - - default: - return null; - } - } - - /** - * Creates a new ResourceDTO object. - * - * @param messagesNode - * the messages node - * @return the list< string> - */ - private Messages createMessages(ModelNode messagesNode) { - Map> messagesByField = new LinkedHashMap>(); - if (messagesNode.getType() == ModelType.LIST) { - for (ModelNode messageNode : messagesNode.asList()) { - Message message = createMessage(messageNode); - List messages = (List) messagesByField.get(message.getField()); - if (messages == null) { - messages = new ArrayList(); - } - messages.add(message); - messagesByField.put(message.getField(), messages); - } - } - return new Messages(messagesByField); - } - - - - private Message createMessage(ModelNode messageNode) { - String text = getString(messageNode.get(IOpenShiftJsonConstants.PROPERTY_TEXT)); - String field = getString(messageNode.get(IOpenShiftJsonConstants.PROPERTY_FIELD)); - int exitCode = getInt(messageNode.get(IOpenShiftJsonConstants.PROPERTY_EXIT_CODE)); - String severity = getString(messageNode.get(IOpenShiftJsonConstants.PROPERTY_SEVERITY)); - return new Message(text, field, severity, exitCode); - } - - private int getInt(ModelNode messageNode) { - if (messageNode == null - || !messageNode.isDefined()) { - return -1; - } - return messageNode.asInt(); - } - - private String getString(ModelNode node) { - if (node == null - || !node.isDefined()) { - return null; - } - return node.asString(); - } - - /** - * Gets the model node. - * - * @param content - * the content - * @return the model node - * @throws OpenShiftException - * the open shift exception - */ - private ModelNode getModelNode(final String content) throws OpenShiftException { - if (content == null) { - throw new OpenShiftException("Could not unmarshall response: no content."); - } - final ModelNode node = ModelNode.fromJSONString(content); - if (!node.isDefined()) { - throw new OpenShiftException("Could not unmarshall response: erroneous content."); - } - - return node; - } - - /** - * Creates a new ResourceDTO object. - * - * @param userNode - * the root node - * @return the user resource dto - * @throws OpenShiftException - */ - private UserResourceDTO createUser(ModelNode userNode) throws OpenShiftException { - if (userNode.has(PROPERTY_DATA)) { - // loop inside 'data' node - return createUser(userNode.get(PROPERTY_DATA)); - } - final String rhlogin = getAsString(userNode, PROPERTY_LOGIN); - final int maxGears = getAsInteger(userNode, PROPERTY_MAX_GEARS); - final int consumedGears = getAsInteger(userNode, PROPERTY_CONSUMED_GEARS); - final Map links = createLinks(userNode.get(PROPERTY_LINKS)); - return new UserResourceDTO(rhlogin, maxGears, consumedGears, links); - } - - /** - * Creates a new ResourceDTO object. - * - * @param rootNode - * the root node - * @return the list< key resource dt o> - * @throws OpenShiftException - * the open shift exception - */ - private List createKeys(ModelNode rootNode) throws OpenShiftException { - final List keys = new ArrayList(); - // temporarily supporting single and multiple values for 'keys' node - if (rootNode.has(PROPERTY_DATA)) { - for (ModelNode dataNode : rootNode.get(PROPERTY_DATA).asList()) { - if (dataNode.getType() == ModelType.OBJECT) { - keys.add(createKey(dataNode, null)); - } - } - } - return keys; - } - - /** - * Creates a new ResourceDTO object. - * - * @param keyNode - * the key node - * @return the key resource dto - * @throws OpenShiftException - */ - private KeyResourceDTO createKey(ModelNode keyNode, Messages messages) throws OpenShiftException { - if (keyNode.has(PROPERTY_DATA)) { - // loop inside 'data' node - return createKey(keyNode.get(PROPERTY_DATA), messages); - } - final String name = getAsString(keyNode, IOpenShiftJsonConstants.PROPERTY_NAME); - final String type = getAsString(keyNode, IOpenShiftJsonConstants.PROPERTY_TYPE); - final String content = getAsString(keyNode, IOpenShiftJsonConstants.PROPERTY_CONTENT); - final Map links = createLinks(keyNode.get(PROPERTY_LINKS)); - return new KeyResourceDTO(name, type, content, links, messages); - } - - /** - * Creates a new set of indexed links. - * - * @param linksNode - * the root node - * @return the list< domain dt o> - * @throws OpenShiftException - * the open shift exception - */ - private Map createLinks(final ModelNode linksNode) throws OpenShiftException { - if (linksNode.has(PROPERTY_DATA)) { - // loop inside 'data' node - return createLinks(linksNode.get(PROPERTY_DATA)); - } - Map links = new HashMap(); - if (linksNode.isDefined()) { - for (ModelNode linkNode : linksNode.asList()) { - final String linkName = linkNode.asProperty().getName(); - final ModelNode valueNode = linkNode.asProperty().getValue(); - if (valueNode.isDefined()) { - links.put(linkName, createLink(valueNode)); - } - } - } - return links; - } - - private Link createLink(final ModelNode valueNode) { - final String rel = getAsString(valueNode, PROPERTY_REL); - final String href = valueNode.get(PROPERTY_HREF).asString(); - final String method = valueNode.get(PROPERTY_METHOD).asString(); - final List requiredParams = - createLinkParameters(valueNode.get(PROPERTY_REQUIRED_PARAMS)); - final List optionalParams = - createLinkParameters(valueNode.get(PROPERTY_OPTIONAL_PARAMS)); - return new Link(rel, href, method, requiredParams, optionalParams); - } - - /** - * Creates a new DTO object. - * - * @param rootNode - * the root node - * @return the list< domain dt o> - * @throws OpenShiftException - * the open shift exception - */ - private List createDomains(final ModelNode rootNode) throws OpenShiftException { - final List domains = new ArrayList(); - // temporarily supporting absence of 'data' node in the 'domain' - // response message - // FIXME: simplify once openshift response is fixed - if (rootNode.has(PROPERTY_DATA)) { - for (ModelNode dataNode : rootNode.get(PROPERTY_DATA).asList()) { - if (dataNode.getType() == ModelType.OBJECT) { - domains.add(createDomain(dataNode, null)); - } else { - throw new OpenShiftException("Unexpected node type: {0}", dataNode.getType()); - } - } - } else { - final ModelNode domainNode = rootNode.get(PROPERTY_DOMAIN); - if (domainNode.isDefined() - && domainNode.getType() == ModelType.OBJECT) { - domains.add(createDomain(domainNode, null)); - } else { - throw new OpenShiftException("Unexpected node type: {0}", domainNode.getType()); - } - } - - return domains; - } - - /** - * Creates a new DTO object. - * - * @param domainNode - * the domain node - * @return the domain dto - * @throws OpenShiftException - */ - private DomainResourceDTO createDomain(final ModelNode domainNode, Messages messages) - throws OpenShiftException { - if (domainNode.has(PROPERTY_DATA)) { - // recurse into "data" node - return createDomain(domainNode.get(PROPERTY_DATA), messages); - } - final String namespace = getAsString(domainNode, PROPERTY_ID); - final String suffix = getAsString(domainNode, PROPERTY_SUFFIX); - final Map links = createLinks(domainNode.get(PROPERTY_LINKS)); - return new DomainResourceDTO(namespace, suffix, links, messages); - } - - /** - * Creates a new DTO object. - * - * @param rootNode - * the domain node - * @return the list< application dt o> - * @throws OpenShiftException - */ - private List createApplications(final ModelNode rootNode) - throws OpenShiftException { - final List applicationDTOs = new ArrayList(); - if (rootNode.has(PROPERTY_DATA)) { - for (ModelNode applicationNode : rootNode.get(PROPERTY_DATA).asList()) { - applicationDTOs.add(createApplication(applicationNode, null)); - } - } - return applicationDTOs; - } - - /** - * Creates a new DTO object. - * - * @param appNode - * the app node - * @return the application dto - * @throws OpenShiftException - */ - private ApplicationResourceDTO createApplication(ModelNode appNode, Messages messages) - throws OpenShiftException { - if (appNode.has(PROPERTY_DATA)) { - // recurse into 'data' node - return createApplication(appNode.get(PROPERTY_DATA), messages); - } - final String framework = getAsString(appNode, PROPERTY_FRAMEWORK); - final String creationTime = getAsString(appNode, PROPERTY_CREATION_TIME); - final String name = getAsString(appNode, PROPERTY_NAME); - final String uuid = getAsString(appNode, PROPERTY_UUID); - final ApplicationScale scalable = ApplicationScale.safeValueOf(getAsString(appNode, PROPERTY_SCALABLE)); - final IGearProfile gearProfile = createGearProfile(appNode); - final String applicationUrl = getAsString(appNode, PROPERTY_APP_URL); - final String sshUrl = getAsString(appNode, PROPERTY_SSH_URL); - final String gitUrl = getAsString(appNode, PROPERTY_GIT_URL); - final String initialGitUrl = getAsString(appNode, PROPERTY_INITIAL_GIT_URL); - final String domainId = getAsString(appNode, PROPERTY_DOMAIN_ID); - final Map links = createLinks(appNode.get(PROPERTY_LINKS)); - final List aliases = createAliases(appNode.get(PROPERTY_ALIASES)); - final Map cartridges = createCartridges(appNode.get(PROPERTY_CARTRIDGES)); - - return new ApplicationResourceDTO( - framework, - domainId, - creationTime, - name, - gearProfile, - scalable, - uuid, - applicationUrl, - sshUrl, - gitUrl, - initialGitUrl, - aliases, - cartridges, - links, - messages); - } - - private GearProfile createGearProfile(ModelNode appNode) { - String gearProfileName = getAsString(appNode, PROPERTY_GEAR_PROFILE); - if (gearProfileName == null) { - return null; - } - return new GearProfile(gearProfileName); - } - - private Collection createGearGroups(ModelNode dataNode) { - Collection gearGroupDTOs = new ArrayList(); - for(ModelNode gearGroupNode : dataNode.get(PROPERTY_DATA).asList()) { - gearGroupDTOs.add(createGearGroupResourceDTO(gearGroupNode)); - } - - return gearGroupDTOs; - } - - private GearGroupResourceDTO createGearGroupResourceDTO(ModelNode gearGroupNode) { - final String uuid = getAsString(gearGroupNode, PROPERTY_UUID); - final String name = getAsString(gearGroupNode, PROPERTY_NAME); - final Collection gears = createGears(gearGroupNode.get(PROPERTY_GEARS)); - final Map cartridges = createCartridges(gearGroupNode.get(PROPERTY_CARTRIDGES)); - return new GearGroupResourceDTO(uuid, name, gears, cartridges); - } - - private Collection createGears(ModelNode gearsNode) { - List gears = new ArrayList(); - for (ModelNode gearNode : gearsNode.asList()) { - gears.add( - new GearResourceDTO( - getAsString(gearNode, PROPERTY_ID), - getAsString(gearNode, PROPERTY_GEAR_STATE), - getAsString(gearNode, PROPERTY_SSH_URL))); - } - return gears; - } - - /** - * Creates a new CartridgeResourceDTO for a given root node. - * - * @param cartridgesNode - * the root node - * @return the list< cartridge resource dto> - * @throws OpenShiftException - */ - private Map createCartridges(ModelNode cartridgesNode) throws OpenShiftException { - final Map cartridgesByName = new LinkedHashMap(); - if (cartridgesNode.isDefined() - && cartridgesNode.getType() == ModelType.LIST) { - for (ModelNode cartridgeNode : cartridgesNode.asList()) { - CartridgeResourceDTO cartridgeResourceDTO = createCartridge(cartridgeNode, null); - cartridgesByName.put(cartridgeResourceDTO.getName(), cartridgeResourceDTO); - } - } - return cartridgesByName; - } - - /** - * Creates a new CartridgeResourceDTO object for a given cartridge node and messages. - * - * @param cartridgeNode - * the cartridge node - * @return the cartridge resource dto - * @throws OpenShiftException - */ - private CartridgeResourceDTO createCartridge(ModelNode cartridgeNode, Messages messages) - throws OpenShiftException { - if (cartridgeNode.has(PROPERTY_DATA)) { - // recurse into 'data' node - return createCartridge(cartridgeNode.get(PROPERTY_DATA), messages); - } - - final String name = getAsString(cartridgeNode, PROPERTY_NAME); - final String displayName = getAsString(cartridgeNode, PROPERTY_DISPLAY_NAME); - final String description = getAsString(cartridgeNode, PROPERTY_DESCRIPTION); - final String type = getAsString(cartridgeNode, PROPERTY_TYPE); - final URL url = createUrl(getAsString(cartridgeNode, PROPERTY_URL), name); - final CartridgeResourceProperties properties = createProperties(cartridgeNode.get(PROPERTY_PROPERTIES)); - final Map links = createLinks(cartridgeNode.get(PROPERTY_LINKS)); - return new CartridgeResourceDTO(name, displayName, description, type, url, properties, links, messages); - } - - private URL createUrl(String url, String name) { - try { - if (url == null) { - return null; - } - return new URL(url); - } catch (MalformedURLException e) { - LOGGER.warn("Url {} in server response for cartridge {} is not a valid URL.", url, name); - return null; - } - } - - /** - * Creates a new ResourceDTO object. - * - * @param aliasNodeList - * the alias node list - * @return the list< string> - */ - private List createAliases(ModelNode aliasNodesList) { - final List aliases = new ArrayList(); - switch (aliasNodesList.getType()) { - case OBJECT: - case LIST: - for (ModelNode aliasNode : aliasNodesList.asList()) { - aliases.add(aliasNode.asString()); - } - break; - default: - aliases.add(aliasNodesList.asString()); - } - return aliases; - } - - /** - * Creates a new DTO object. - * - * @param linkParamNodes - * the link param nodes - * @return the list< link param> - * @throws OpenShiftRequestException - */ - private List createLinkParameters(ModelNode linkParamNodes) - throws OpenShiftRequestException { - List linkParams = new ArrayList(); - if (linkParamNodes.isDefined()) { - for (ModelNode linkParamNode : linkParamNodes.asList()) { - linkParams.add(createLinkParameter(linkParamNode)); - } - } - return linkParams; - } - - /** - * Creates a new link parameter for the given link parameter node. - * - * @param linkParamNode - * the model node that contains the link parameters - * @return the link parameter - * @throws OpenShiftRequestException - */ - private LinkParameter createLinkParameter(ModelNode linkParamNode) throws OpenShiftRequestException { - final String description = linkParamNode.get(IOpenShiftJsonConstants.PROPERTY_DESCRIPTION).asString(); - final String type = linkParamNode.get(IOpenShiftJsonConstants.PROPERTY_TYPE).asString(); - final String defaultValue = linkParamNode.get(IOpenShiftJsonConstants.PROPERTY_DEFAULT_VALUE).asString(); - final String name = linkParamNode.get(IOpenShiftJsonConstants.PROPERTY_NAME).asString(); - return new LinkParameter(name, type, defaultValue, description, createValidOptions(linkParamNode)); - } - - /** - * Gets the valid options. - * - * @param linkParamNode - * the link param node - * @return the valid options - */ - private List createValidOptions(ModelNode linkParamNode) { - final List validOptions = new ArrayList(); - final ModelNode validOptionsNode = linkParamNode.get(PROPERTY_VALID_OPTIONS); - if (validOptionsNode.isDefined()) { - switch (validOptionsNode.getType()) { - case STRING: // if there's only one value, it is not serialized as a - // list, but just a string - validOptions.add(validOptionsNode.asString()); - break; - case LIST: - for (ModelNode validOptionNode : validOptionsNode.asList()) { - validOptions.add(validOptionNode.asString()); - } - break; - default: - break; - } - } - return validOptions; - } - - /** - * Returns the property identified by the given name in the given model - * node, or null if the named property is undefined. - * - * @param node - * the model node - * @param propertyName - * the name of the property - * @return the property as a String - */ - private String getAsString(final ModelNode node, String propertyName) { - final ModelNode propertyNode = node.get(propertyName); - return propertyNode.isDefined() ? propertyNode.asString() : null; - } - - /** - * Creates ResourceProperties for a given propertiesNode - *

- * ex. - * - *

-	 * "properties":[
-	 *       {
-	 *          "name":"connection_url",
-	 *          "type":"cart_data",
-	 *          "description":"Application metrics URL",
-	 *          "value":"https://eap6-foobarz.rhcloud.com/metrics/"
-	 *       },
-	 * 
- * - * @param propertiesNode - * @return - */ - private CartridgeResourceProperties createProperties(ModelNode propertiesNode) { - if (propertiesNode == null - || !propertiesNode.isDefined()) { - return null; - } - - CartridgeResourceProperties properties = new CartridgeResourceProperties(); - for(ModelNode propertyNode : propertiesNode.asList()) { - CartridgeResourceProperty property = createProperty(propertyNode); - String name = property.getName(); - if (StringUtils.isEmpty(name)) { - continue; - } - properties.add(name, property); - } - return properties; - } - - private CartridgeResourceProperty createProperty(ModelNode propertyNode) { - String name = getAsString(propertyNode, IOpenShiftJsonConstants.PROPERTY_NAME); - String description = getAsString(propertyNode, IOpenShiftJsonConstants.PROPERTY_DESCRIPTION); - String type = getAsString(propertyNode, IOpenShiftJsonConstants.PROPERTY_TYPE); - String value = getAsString(propertyNode, IOpenShiftJsonConstants.PROPERTY_VALUE); - return new CartridgeResourceProperty(name, type, description, value); - } - - /** - * Returns the property identified by the given name in the given model node, or null if the named property is - * undefined. - * - * @param node - * the model node - * @param propertyName - * the name of the property - * @return the property as a String - */ - @SuppressWarnings("unused") - private Boolean getAsBoolean(final ModelNode node, String propertyName) { - final ModelNode propertyNode = node.get(propertyName); - return propertyNode.isDefined() ? propertyNode.asBoolean() : Boolean.FALSE; - } - - /** - * Returns the property identified by the given name in the given model node, or null if the named property is - * undefined. - * - * @param node - * the model node - * @param propertyName - * the name of the property - * @return the property as an Integer - */ - private int getAsInteger(final ModelNode node, String propertyName) { - final ModelNode propertyNode = node.get(propertyName); - return propertyNode.isDefined() ? propertyNode.asInt() : 0; - } - - private List createEnvironmentVariables(ModelNode rootNode) - throws OpenShiftException { - final List environmentVariables = new ArrayList(); - if (rootNode.has(PROPERTY_DATA)) { - for (ModelNode environmentVariableNode : rootNode.get(PROPERTY_DATA).asList()) { - environmentVariables.add(createEnvironmentVariable(environmentVariableNode, null)); - } - } - return environmentVariables; - } - - private EnvironmentVariableResourceDTO createEnvironmentVariable(ModelNode environmentVariableNode, - Messages messages) - throws OpenShiftException { - if (environmentVariableNode.has(PROPERTY_DATA)) { - // recurse into 'data' node - return createEnvironmentVariable(environmentVariableNode.get(PROPERTY_DATA), messages); - } - final String name = getAsString(environmentVariableNode, PROPERTY_NAME); - final String value = getAsString(environmentVariableNode, PROPERTY_VALUE); - final Map links = createLinks(environmentVariableNode.get(PROPERTY_LINKS)); - return new EnvironmentVariableResourceDTO(name, value, links, messages); - } -} diff --git a/src/main/java/com/openshift/internal/client/response/RestResponse.java b/src/main/java/com/openshift/internal/client/response/RestResponse.java deleted file mode 100755 index 607f12b5..00000000 --- a/src/main/java/com/openshift/internal/client/response/RestResponse.java +++ /dev/null @@ -1,87 +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.response; - -import com.openshift.client.Messages; - -/** - * The Class Response. - */ -public class RestResponse { - - /** The status. */ - final String status; - - /** The messages in which the service reports errors. */ - final Messages messages; - - /** The type of the payload (data) in this response. */ - final EnumDataType dataType; - - /** The payload (data). */ - final Object data; - - /** - * Instantiates a new response. - * - * @param status the status - * @param messages the messages - * @param data the data - * @param dataType the data type - */ - protected RestResponse(final String status, final Messages messages, final Object data, final EnumDataType dataType) { - this.status = status; - this.messages = messages; - this.data = data; - this.dataType = dataType; - } - - /** - * Gets the status. - * - * @return the status - */ - public final String getStatus() { - return status; - } - - - /** - * Gets the messages. - * - * @return the messages - */ - public final Messages getMessages() { - return messages; - } - - /** - * Gets the data type. - * - * @return the dataType - */ - public final EnumDataType getDataType() { - return dataType; - } - - /** - * Gets the data. - * - * @param the generic type - * @return the data, casted as the caller requires. To avoid ClassCastExceptions, caller may refer to the - * {@link RestResponse#getDataType()} method to discover the actual type of the data. - */ - @SuppressWarnings("unchecked") - public final T getData() { - return (T) data; - } - -} diff --git a/src/main/java/com/openshift/internal/client/response/UserResourceDTO.java b/src/main/java/com/openshift/internal/client/response/UserResourceDTO.java deleted file mode 100755 index db21ed7f..00000000 --- a/src/main/java/com/openshift/internal/client/response/UserResourceDTO.java +++ /dev/null @@ -1,52 +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.response; - -import java.util.Map; - -public class UserResourceDTO extends BaseResourceDTO { - - /** the user's login on rhcloud. */ - private final String rhLogin; - - private final int maxGears; - private final int consumedGears; - - UserResourceDTO(final String rhLogin, final int maxGears, final int consumedGears, final Map links) { - super(links, null); - this.rhLogin = rhLogin; - this.maxGears = maxGears; - this.consumedGears = consumedGears; - } - - /** - * @return the rhLogin - */ - public String getRhLogin() { - return rhLogin; - } - - /** - * @return the maxGears - */ - public int getMaxGears() { - return maxGears; - } - - /** - * @return the consumedGears - */ - public int getConsumedGears() { - return consumedGears; - } - - -} diff --git a/src/main/java/com/openshift/internal/client/ssh/AbstractSSHKey.java b/src/main/java/com/openshift/internal/client/ssh/AbstractSSHKey.java deleted file mode 100644 index 0cbdd48d..00000000 --- a/src/main/java/com/openshift/internal/client/ssh/AbstractSSHKey.java +++ /dev/null @@ -1,67 +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.ssh; - -import com.openshift.client.ISSHPublicKey; -import com.openshift.client.OpenShiftUnknonwSSHKeyTypeException; -import com.openshift.client.SSHKeyType; - -/** - * @author Andre Dietisheim - */ -public abstract class AbstractSSHKey implements ISSHPublicKey { - - private SSHKeyType keyType; - - protected AbstractSSHKey(SSHKeyType sshKeyType) { - this.keyType = sshKeyType; - } - - public SSHKeyType getKeyType() { - return keyType; - } - - protected void setKeyType(String keyTypeId) throws OpenShiftUnknonwSSHKeyTypeException { - setKeyType(SSHKeyType.getByTypeId(keyTypeId)); - } - - protected void setKeyType(SSHKeyType keyType) { - this.keyType = keyType; - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((keyType == null) ? 0 : keyType.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; - AbstractSSHKey other = (AbstractSSHKey) obj; - if (keyType != other.keyType) - return false; - return true; - } - - @Override - public String toString() { - return "AbstractSSHKey [keyType=" + keyType + "]"; - } - -} diff --git a/src/main/java/com/openshift/internal/client/ssh/ApplicationPortForwarding.java b/src/main/java/com/openshift/internal/client/ssh/ApplicationPortForwarding.java deleted file mode 100644 index 09922c4d..00000000 --- a/src/main/java/com/openshift/internal/client/ssh/ApplicationPortForwarding.java +++ /dev/null @@ -1,136 +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.ssh; - -import java.util.Arrays; - -import com.jcraft.jsch.JSchException; -import com.jcraft.jsch.Session; -import com.openshift.client.IApplication; -import com.openshift.client.IApplicationPortForwarding; -import com.openshift.client.OpenShiftSSHOperationException; -import com.openshift.internal.client.utils.Assert; - -/** - * @author Xavier Coulon - */ -public class ApplicationPortForwarding implements IApplicationPortForwarding { - - private final IApplication application; - - private final String name; - - private final String remoteAddress; - - private final int remotePort; - - /** the local binding address, or null if not configured yet. */ - private String localAddress; - - /** the local binding port number, or null if not configured yet. */ - private int localPort = -1; - - public ApplicationPortForwarding(final IApplication application, final String name, final String remoteAddress, - final int remotePort) { - super(); - this.application = application; - this.name = name; - this.remoteAddress = remoteAddress; - this.remotePort = remotePort; - } - - public void start(final Session session) throws OpenShiftSSHOperationException { - if (localAddress == null || localAddress.isEmpty()) { - throw new IllegalArgumentException("Cannot enable port-forwarding from an undefined local address"); - } - if (localPort == -1 ) { - throw new IllegalArgumentException("Cannot enable port-forwarding from an undefined local port"); - } - // don't start it twice - if (!isStarted(session)) { - try { - session.setPortForwardingL(localAddress, this.localPort, this.remoteAddress, this.remotePort); - } catch (Exception e) { - throw new OpenShiftSSHOperationException(e, "Failed to start port forwarding on {0}:{1}", - this.localAddress, this.localPort); - } - } - } - - public void stop(final Session session) throws OpenShiftSSHOperationException { - if (isStarted(session)) { - try { - session.delPortForwardingL(localAddress, localPort); - } catch (Exception e) { - throw new OpenShiftSSHOperationException(e, "Failed to stop port forwarding on {0}:{1}", - this.localAddress, this.localPort); - } - } - } - - public boolean isStarted(final Session session) throws OpenShiftSSHOperationException { - if (session == null || !session.isConnected()) { - return false; - } - try { - // returned format : localPort:remoteHost:remotePort - final String[] portForwardingL = session.getPortForwardingL(); - final String key = this.localPort + ":" + this.remoteAddress + ":" + this.remotePort; - Arrays.sort(portForwardingL); - final int r = Arrays.binarySearch(portForwardingL, key); - return r >= 0; - } catch (JSchException e) { - throw new OpenShiftSSHOperationException(e, "Failed to retrieve SSH ports forwarding"); - } - } - - protected final IApplication getApplication() { - return application; - } - - public final String getName() { - return name; - } - - public final String getLocalAddress() { - return localAddress; - } - - public final void setLocalAddress(String localAddress) { - Assert.notNull(localAddress); - this.localAddress = localAddress; - } - - public final int getLocalPort() { - return localPort; - } - - public final void setLocalPort(final int localPort) { - Assert.notNull(localPort); - this.localPort = localPort; - } - - public final String getRemoteAddress() { - return remoteAddress; - } - - public final int getRemotePort() { - return remotePort; - } - - @Override - public String toString() { - return "ApplicationForwardablePort [" - + name + ": " + localAddress + ":" + localPort + " -> " + remoteAddress - + ":" + remotePort + "]"; - } - -} \ No newline at end of file diff --git a/src/main/java/com/openshift/internal/client/utils/Assert.java b/src/main/java/com/openshift/internal/client/utils/Assert.java deleted file mode 100644 index 2dd6908c..00000000 --- a/src/main/java/com/openshift/internal/client/utils/Assert.java +++ /dev/null @@ -1,47 +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.utils; - - - -/** - * @author André Dietisheim - */ -public class Assert { - - public static final class AssertionFailedException extends RuntimeException { - - private static final long serialVersionUID = 1L; - - public AssertionFailedException() { - super(); - } - - } - - public static V notNull(V value) { - if (value == null) { - throw new AssertionFailedException(); - } - return value; - } - - public static void notEmpty(String value) { - notNull(value); - isTrue(!value.isEmpty()); - } - - public static void isTrue(boolean assertion) { - if (!assertion) { - throw new AssertionFailedException(); - } - } -} diff --git a/src/main/java/com/openshift/internal/client/utils/CollectionUtils.java b/src/main/java/com/openshift/internal/client/utils/CollectionUtils.java deleted file mode 100644 index 524d983e..00000000 --- a/src/main/java/com/openshift/internal/client/utils/CollectionUtils.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.internal.client.utils; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.Collections; -import java.util.List; - -/** - * @author Andre Dietisheim - */ -public class CollectionUtils { - - public static List toUnmodifiableCopy(Collection collection) { - return Collections.unmodifiableList(new ArrayList(collection)); - } -} diff --git a/src/main/java/com/openshift/internal/client/utils/IOpenShiftJsonConstants.java b/src/main/java/com/openshift/internal/client/utils/IOpenShiftJsonConstants.java deleted file mode 100755 index 3b517d38..00000000 --- a/src/main/java/com/openshift/internal/client/utils/IOpenShiftJsonConstants.java +++ /dev/null @@ -1,104 +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.utils; - -/** - * @author André Dietisheim - */ -public class 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_CREATION_TIME = "creation_time"; - 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_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_DOMAINS = "domains"; - public static final String PROPERTY_DOMAIN_ID = "domain_id"; - public static final String PROPERTY_EMBEDDED = "embedded"; - 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_GEARS = "gears"; - public static final String PROPERTY_GEAR_PROFILE = "gear_profile"; - public static final String PROPERTY_GEAR_STATE = "state"; - 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_TYPE = "key_type"; - public static final String PROPERTY_KEYS = "keys"; - public static final String PROPERTY_KEY = "key"; - public static final String PROPERTY_LOGIN = "login"; - public static final String PROPERTY_LINKS = "links"; - public static final String PROPERTY_MESSAGES = "messages"; - public static final String PROPERTY_METHOD = "method"; - public static final String PROPERTY_MAX_GEARS = "max_gears"; - 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_PORT = "proxy_port"; - public static final String PROPERTY_PROXY_HOST = "proxy_host"; - 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_RHLOGIN = "rhlogin"; - public static final String PROPERTY_RHC_DOMAIN = "rhc_domain"; - 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 PROPERTY_ENVIRONMENT_VARIABLES = "environment_variables"; - - public static final String VALUE_STATUS_OK = "ok"; - public static final String VALUE_STATUS_CREATED = "created"; - public static final String VALUE_ADD_ALIAS = "add-alias"; - public static final String VALUE_FORCESTOP = "force-stop"; - 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_STOP = "stop"; - public static final String VALUE_STATUS = "status"; - public static final String VALUE_REMOVE_ALIAS = "remove-alias"; -} - diff --git a/src/main/java/com/openshift/internal/client/utils/IOpenShiftParameterConstants.java b/src/main/java/com/openshift/internal/client/utils/IOpenShiftParameterConstants.java deleted file mode 100644 index f8429910..00000000 --- a/src/main/java/com/openshift/internal/client/utils/IOpenShiftParameterConstants.java +++ /dev/null @@ -1,22 +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.utils; - -/** - * @author André Dietisheim - */ -public class IOpenShiftParameterConstants { - - public static final String PARAMETER_ID = "id"; - public static final String PARAMETER_INCLUDE = "include"; - public static final String PARAMETER_CARTRIDGES = "cartridges"; -} - diff --git a/src/main/java/com/openshift/internal/client/utils/StreamUtils.java b/src/main/java/com/openshift/internal/client/utils/StreamUtils.java deleted file mode 100644 index 8c54d4b4..00000000 --- a/src/main/java/com/openshift/internal/client/utils/StreamUtils.java +++ /dev/null @@ -1,147 +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.utils; - -import java.io.BufferedReader; -import java.io.ByteArrayInputStream; -import java.io.IOException; -import java.io.InputStream; -import java.io.InputStreamReader; -import java.io.OutputStream; -import java.io.Reader; -import java.io.StringWriter; -import java.io.Writer; -import java.util.ArrayList; -import java.util.List; - -/** - * @author Andre Dietisheim - */ -public class StreamUtils { - - /** - * 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. - * - * @param outputStream - * the output stream to write to - * @param inputStream - * the input stream to read from - * @return a new, unread input stream - * @throws IOException - */ - public static InputStream writeTo(InputStream inputStream, OutputStream outputStream) throws IOException { - List data = new ArrayList(); - for (int character = -1; (character = inputStream.read()) != -1;) { - data.add((byte) character); - outputStream.write(character); - } - byte[] byteArray = new byte[data.size()]; - for (int i = byteArray.length - 1; i >= 0; i--) { - byteArray[i] = data.get(i); - } - return new ByteArrayInputStream(byteArray); - } - - public static String readToString(InputStream inputStream) throws IOException { - if (inputStream == null) { - return null; - } - return readToString(new InputStreamReader(inputStream)); - } - - public static String readToString(Reader reader) throws IOException { - if (reader == null) { - return null; - } - BufferedReader bufferedReader = new BufferedReader(reader); - StringWriter writer = new StringWriter(); - String line = null; - while ((line = bufferedReader.readLine()) != null) { - writer.write(line); - writer.write('\n'); - } - return writer.toString(); - } - - /** - * Writes the given string to the given output stream. The stream is closed - * after writing all data. - * - * @param data - * the data to write - * @param outputStream - * the stream to write to - * @throws IOException - */ - public static void writeTo(byte[] data, OutputStream outputStream) throws IOException { - outputStream.write(data); - outputStream.flush(); - outputStream.close(); - } - - public static void close(InputStream inputStream) throws IOException { - if (inputStream != null) { - inputStream.close(); - } - } - - public static void quietlyClose(InputStream inputStream) { - try { - close(inputStream); - } catch (IOException e) { - // ignore - } - } - - public static void close(OutputStream outputStream) throws IOException { - if (outputStream != null) { - outputStream.close(); - } - } - - public static void quietlyClose(OutputStream outputStream) { - try { - close(outputStream); - } catch (IOException e) { - // ignore - } - } - - public static void close(Reader reader) throws IOException { - if (reader != null) { - reader.close(); - } - } - - public static void quietlyClose(Reader reader) { - try { - close(reader); - } catch (IOException e) { - // ignore - } - } - - public static void close(Writer writer) throws IOException { - if (writer != null) { - writer.close(); - } - } - - public static void quietlyClose(Writer writer) { - try { - close(writer); - } catch (IOException e) { - // ignore - } - } - -} diff --git a/src/main/java/com/openshift/internal/client/utils/StringUtils.java b/src/main/java/com/openshift/internal/client/utils/StringUtils.java deleted file mode 100644 index f3002e3f..00000000 --- a/src/main/java/com/openshift/internal/client/utils/StringUtils.java +++ /dev/null @@ -1,53 +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.utils; - - -/** - * @author André Dietisheim - */ -public class StringUtils { - - public static String toLowerCase(String message) { - if (message == null) { - return null; - } - return message.toLowerCase(); - } - - public static String toLowerCase(Enum aEnum) { - if (aEnum == null) { - return null; - } - return toLowerCase(aEnum.name()); - } - - public static boolean isEmpty(String string) { - return string == null - || string.trim().isEmpty(); - } - - public static String prependIfNonEmpty(String prefix, String string) { - if (isEmpty(prefix)) { - return string; - } - - return new StringBuilder(prefix).append(string).toString(); - } - - public static String nullToEmptyString(String string) { - if (string == null) { - return ""; - } - return string; - } - -} diff --git a/src/main/java/com/openshift/internal/client/utils/UrlUtils.java b/src/main/java/com/openshift/internal/client/utils/UrlUtils.java deleted file mode 100644 index ff1993f3..00000000 --- a/src/main/java/com/openshift/internal/client/utils/UrlUtils.java +++ /dev/null @@ -1,76 +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.utils; - -import java.net.URL; -import java.util.regex.Pattern; - -/** - * @author Andre Dietisheim - */ -public class UrlUtils { - - private static final Pattern URL_PATTERN = Pattern - .compile("(https?|ftp)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]"); - - private static final String HTTPS = "https"; - private static final String SCHEMA_SEPARATOR = "://"; - - public static final String SCHEME_HTTPS = HTTPS + SCHEMA_SEPARATOR; - public static final char USERNAME_SEPARATOR = '@'; - - private UrlUtils() { - // inhibit instantiation - } - - public static String ensureStartsWithHttps(String url) { - if (url == null - || url.isEmpty()) { - return url; - } - - if (url.indexOf(SCHEMA_SEPARATOR) > 0) { - return url; - } - - return new StringBuilder(HTTPS) - .append(SCHEMA_SEPARATOR) - .append(url) - .toString(); - } - - public static boolean isUrl(String string) { - return URL_PATTERN.matcher(string).matches(); - } - - public static String appendPath(String parent, String child) { - if (parent.charAt(parent.length() - 1) == '/') { - if (child.charAt(0) == '/') { - return parent + child.substring(1); - } else { - return parent + child; - } - } else { - if (child.charAt(0) == '/') { - return parent + child; - } else { - return new StringBuilder(parent).append('/').append(child).toString(); - } - } - } - - public static String toString(URL url) { - if (url == null) { - return null; - } - return url.toString(); - } -} diff --git a/src/main/java/com/redhat/openshift/examples/.gitignore b/src/main/java/com/redhat/openshift/examples/.gitignore deleted file mode 100644 index 2f44aa4c..00000000 --- a/src/main/java/com/redhat/openshift/examples/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/domaininfo diff --git a/src/main/resources/restservice.properties b/src/main/resources/restservice.properties deleted file mode 100644 index c08b5cb0..00000000 --- a/src/main/resources/restservice.properties +++ /dev/null @@ -1,2 +0,0 @@ -version=${pom.version} -useragent=Java OpenShift REST/{0} ({1}) diff --git a/src/test/java/com/openshift/client/fakes/DefaultConfigurationFake.java b/src/test/java/com/openshift/client/fakes/DefaultConfigurationFake.java deleted file mode 100644 index d744e0c8..00000000 --- a/src/test/java/com/openshift/client/fakes/DefaultConfigurationFake.java +++ /dev/null @@ -1,29 +0,0 @@ -package com.openshift.client.fakes; - -import com.openshift.client.OpenShiftException; -import com.openshift.client.configuration.DefaultConfiguration; - -import java.io.File; -import java.io.IOException; -import java.util.Properties; - -/** - * Created by cdaley on 3/13/14. - */ -public class DefaultConfigurationFake extends DefaultConfiguration { - public static final String LIBRA_SERVER = "openshift.redhat.com"; - public static final String LIBRA_DOMAIN = "rhcloud.com"; - - public DefaultConfigurationFake() 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/test/java/com/openshift/client/fakes/EmptySystemPropertiesFake.java b/src/test/java/com/openshift/client/fakes/EmptySystemPropertiesFake.java deleted file mode 100644 index f8259c85..00000000 --- a/src/test/java/com/openshift/client/fakes/EmptySystemPropertiesFake.java +++ /dev/null @@ -1,36 +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.fakes; - -import java.io.File; -import java.io.IOException; -import java.util.Properties; - -import com.openshift.client.OpenShiftException; -import com.openshift.client.configuration.IOpenShiftConfiguration; -import com.openshift.client.configuration.SystemProperties; - -/** - * @author Andre Dietisheim - */ -public class EmptySystemPropertiesFake extends SystemProperties { - - public EmptySystemPropertiesFake(IOpenShiftConfiguration parentConfiguration) - throws OpenShiftException,IOException { - super(parentConfiguration); - } - - @Override - protected Properties getProperties(File file, Properties defaultProperties) { - return new Properties(defaultProperties); - } - -} diff --git a/src/test/java/com/openshift/client/fakes/HttpServerFake.java b/src/test/java/com/openshift/client/fakes/HttpServerFake.java deleted file mode 100644 index 88acc6f7..00000000 --- a/src/test/java/com/openshift/client/fakes/HttpServerFake.java +++ /dev/null @@ -1,206 +0,0 @@ -/************************************************************************* - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. The - * ASF licenses this file to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the - * License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations - * under the License. - * - *************************************************************************/ -package com.openshift.client.fakes; - -import java.io.BufferedReader; -import java.io.IOException; -import java.io.InputStream; -import java.io.InputStreamReader; -import java.io.OutputStream; -import java.io.StringWriter; -import java.net.MalformedURLException; -import java.net.ServerSocket; -import java.net.Socket; -import java.net.URL; -import java.text.MessageFormat; -import java.util.concurrent.ExecutorService; -import java.util.concurrent.Executors; - -import com.openshift.internal.client.utils.StreamUtils; - -/** - * @author André Dietisheim - * @author Nicolas Spano - */ -public class HttpServerFake { - - public static final int DEFAULT_PORT = 1234; - private static final String DEFAULT_STATUSLINE = "HTTP/1.1 200 OK\n"; - - private ExecutorService executor; - private int port; - private String response; - private String statusLine; - private ServerFakeSocket serverFakeSocket; - - public HttpServerFake(int port) { - this(port, null, DEFAULT_STATUSLINE); - } - - public HttpServerFake() { - this(null); - } - - public HttpServerFake(String response) { - this(DEFAULT_PORT, response, DEFAULT_STATUSLINE); - } - - public HttpServerFake(String response, String statusLine) { - this(DEFAULT_PORT, response, statusLine); - } - - /** - * - * @param port - * the port to listen to (address is always localhost) - * @param response - * the reponse to return to the requesting socket. If - * null the request string is returned. - * @param statusLine the staus line that shall be returned - * - * @see ServerFakeSocket#getResponse(Socket) - */ - public HttpServerFake(int port, String response, String statusLine) { - this.port = port; - this.response = response; - if (statusLine != null) { - this.statusLine = statusLine; - } else { - this.statusLine = DEFAULT_STATUSLINE; - } - } - - public void start() throws Exception { - executor = Executors.newFixedThreadPool(1); - this.serverFakeSocket = createServerFakeSocket(statusLine, response, port); - executor.submit(serverFakeSocket); - } - - protected ServerFakeSocket createServerFakeSocket(String statusLine, String response, int port) throws Exception { - return new ServerFakeSocket(statusLine, response, port); - } - - public URL getUrl() throws MalformedURLException { - return new URL(MessageFormat.format("http://localhost:{0}/", String.valueOf(port))); - } - - public URL getHttpsUrl() throws MalformedURLException { - return new URL(MessageFormat.format("https://localhost:{0}/", String.valueOf(port))); - } - - public void stop() { - serverFakeSocket.close(); - executor.shutdownNow(); - } - - - protected void write(byte[] bytes, OutputStream outputStream) throws IOException{ - outputStream.write(bytes); - } - - protected int getPort() { - return port; - } - - protected class ServerFakeSocket implements Runnable { - - private String statusLine; - private String response; - private ServerSocket serverSocket; - - public ServerFakeSocket(String statusLine, String response, int port) throws Exception { - this.statusLine = statusLine; - this.response = response; - this.serverSocket = createServerSocket(port); - } - - protected ServerSocket createServerSocket(int port) throws Exception { - return new ServerSocket(port); - } - - public void run() { - Socket socket = null; - OutputStream outputStream = null; - try { - socket = serverSocket.accept(); - String response = getResponse(socket); - outputStream = socket.getOutputStream(); - writeResponseHeader(outputStream); - write(response.getBytes(), outputStream); - outputStream.flush(); - } catch (IOException e) { - // e.printStackTrace(); - } finally { - // we should not close the connection, let the client close the - // connection - StreamUtils.quietlyClose(outputStream); - } - } - - protected void writeResponseHeader(OutputStream outputStream) throws IOException { - outputStream.write(statusLine.getBytes()); - outputStream.write("\n".getBytes()); - } - - /** - * Returns the response given to this server at creation time or the - * content that may be read from the socket is returned. - * - * @param inputStream - * @return - * @throws IOException - */ - private String getResponse(Socket socket) throws IOException { - if (response != null) { - return response; - } - return readRequestToString(socket.getInputStream()); - } - - private String readRequestToString(InputStream inputStream) throws IOException { - BufferedReader bufferedReader = null; - bufferedReader = new BufferedReader(new InputStreamReader(inputStream)); - StringWriter writer = new StringWriter(); - String line = null; - while ((line = bufferedReader.readLine()) != null) { - if (line.isEmpty()) { - break; - } - writer.write(line); - writer.write('\n'); - } - return writer.toString(); - } - - public void close() { - silentlyClose(serverSocket); - } - - private void silentlyClose(ServerSocket serverSocket) { - if (serverSocket != null) { - try { - serverSocket.close(); - } catch (IOException e) { - //e.printStackTrace(); - } - } - } - - } -} diff --git a/src/test/java/com/openshift/client/fakes/HttpsServerFake.java b/src/test/java/com/openshift/client/fakes/HttpsServerFake.java deleted file mode 100644 index 6b97efbd..00000000 --- a/src/test/java/com/openshift/client/fakes/HttpsServerFake.java +++ /dev/null @@ -1,95 +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.fakes; - -import java.net.MalformedURLException; -import java.net.ServerSocket; -import java.net.Socket; -import java.net.URL; -import java.security.KeyStore; -import java.text.MessageFormat; - -import javax.net.ssl.KeyManager; -import javax.net.ssl.KeyManagerFactory; -import javax.net.ssl.SSLContext; -import javax.net.ssl.SSLServerSocket; - -/** - * A Https server fake that holds a single self-signed certificate in its - * keystore. The certificate is in src/test/resources/server-keystore.jks and - * hold a single self-signed certificate that was created in the following way (password: 123456): - *

- * keytool -genkey -keystore server-keystore.jks -alias localhost -dname "CN=localhost,OU=JBoss Tools" -keyalg "RSA" -sigalg "SHA1withRSA" -keysize 2048 -validity 3650
- * 
- * - * @author André Dietisheim - */ -public class HttpsServerFake extends HttpServerFake { - - private static final String KEYSTORE_PASSWORD = "123456"; - private static final String KEYSTORE_TYPE = "JKS"; - private static final String KEYSTORE_FILE = "/server-keystore.jks"; - - public HttpsServerFake(int port) { - super(port); - } - - /** - * - * @param port - * the port to listen to (address is always localhost) - * @param response - * the reponse to return to the requesting socket. If - * null the request string is returned. - * @param statusLine - * the staus line that shall be returned - * - * @see ServerFakeSocket#getResponse(Socket) - */ - public HttpsServerFake(int port, String response, String statusLine) { - super(port, response, statusLine); - } - - @Override - public URL getUrl() throws MalformedURLException { - return new URL(MessageFormat.format("https://localhost:{0}/", String.valueOf(getPort()))); - } - - @Override - protected ServerFakeSocket createServerFakeSocket(String statusLine, String response, int port) throws Exception { - return new HttpsServerFakeSocket(statusLine, response, port); - } - - - protected class HttpsServerFakeSocket extends ServerFakeSocket { - - public HttpsServerFakeSocket(String statusLine, String response, int port) throws Exception { - super(statusLine, response, port); - } - - @Override - protected ServerSocket createServerSocket(int port) throws Exception { - KeyStore keyStore = KeyStore.getInstance(KEYSTORE_TYPE); - keyStore.load(getClass().getResourceAsStream(KEYSTORE_FILE), KEYSTORE_PASSWORD.toCharArray()); - - KeyManagerFactory keyManagerFactory = - KeyManagerFactory.getInstance(KeyManagerFactory.getDefaultAlgorithm()); - keyManagerFactory.init(keyStore, KEYSTORE_PASSWORD.toCharArray()); - KeyManager keyManagers[] = keyManagerFactory.getKeyManagers(); - - SSLContext sslContext = SSLContext.getInstance("TLS"); - sslContext.init(keyManagers, null, null); - SSLServerSocket sslServerSocket = (SSLServerSocket) sslContext.getServerSocketFactory().createServerSocket(port); - sslServerSocket.setEnabledCipherSuites(sslContext.getServerSocketFactory().getSupportedCipherSuites()); - return sslServerSocket; - } - } -} diff --git a/src/test/java/com/openshift/client/fakes/OpenShiftConfigurationFake.java b/src/test/java/com/openshift/client/fakes/OpenShiftConfigurationFake.java deleted file mode 100644 index 1569972f..00000000 --- a/src/test/java/com/openshift/client/fakes/OpenShiftConfigurationFake.java +++ /dev/null @@ -1,60 +0,0 @@ -package com.openshift.client.fakes; - -import com.openshift.client.OpenShiftException; -import com.openshift.client.configuration.*; - -import java.io.File; -import java.io.FileNotFoundException; -import java.io.IOException; -import java.io.Writer; -import java.util.Properties; - -/** - * @author Corey Daley - */ -public class OpenShiftConfigurationFake extends AbstractOpenshiftConfiguration { - public OpenShiftConfigurationFake(final String systemConfigurationTimeout, final String userConfigurationTimeout, final String systemPropertiesTimeout, final String defaultConfigurationTimeout) throws FileNotFoundException, IOException, OpenShiftException { - super(new SystemPropertiesFake( - new UserConfigurationFake( - new SystemConfigurationFake( - new DefaultConfigurationFake(){ - @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); - if (defaultConfigurationTimeout != null) { - properties.put(KEY_TIMEOUT, defaultConfigurationTimeout); - } else { - properties.put(KEY_TIMEOUT, DEFAULT_OPENSHIFT_TIMEOUT); - } - - return properties; - } - }){ - //SystemConfigurationFake - protected void init(Properties properties) { - if (systemConfigurationTimeout != null) { - properties.put(KEY_TIMEOUT, systemConfigurationTimeout); - } - } - }){ - //UserConfigurationFake - protected void initFile(Writer writer) throws IOException { - if (userConfigurationTimeout != null) { - writer.append(KEY_TIMEOUT).append('=').append(userConfigurationTimeout).append('\n'); - } - } - }){ - //SystemPropertiesFake - @Override - protected Properties getProperties(File file, Properties defaultProperties) { - Properties properties = new Properties(defaultProperties); - if (systemPropertiesTimeout != null) { - properties.setProperty(KEY_TIMEOUT,systemPropertiesTimeout); - } - return properties; - } - }); - } -} diff --git a/src/test/java/com/openshift/client/fakes/PayLoadReturningHttpClientFake.java b/src/test/java/com/openshift/client/fakes/PayLoadReturningHttpClientFake.java deleted file mode 100644 index 3886990e..00000000 --- a/src/test/java/com/openshift/client/fakes/PayLoadReturningHttpClientFake.java +++ /dev/null @@ -1,63 +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.fakes; - -import java.io.ByteArrayOutputStream; -import java.io.FileNotFoundException; -import java.io.IOException; -import java.net.SocketTimeoutException; -import java.net.URL; - -import com.openshift.client.HttpMethod; -import com.openshift.client.OpenShiftException; -import com.openshift.client.utils.OpenShiftTestConfiguration; -import com.openshift.internal.client.httpclient.HttpClientException; -import com.openshift.internal.client.httpclient.UrlConnectionHttpClient; -import com.openshift.internal.client.httpclient.request.IMediaType; -import com.openshift.internal.client.httpclient.request.Parameter; -import com.openshift.internal.client.httpclient.request.ParameterValueMap; - -/** - * @author Andre Dietisheim - * @author Nicolas Spano - */ -public class PayLoadReturningHttpClientFake extends UrlConnectionHttpClient { - - public PayLoadReturningHttpClientFake(String mediaType, String version) throws FileNotFoundException, IOException, - OpenShiftException { - this(new OpenShiftTestConfiguration(), mediaType, version); - } - - protected PayLoadReturningHttpClientFake(OpenShiftTestConfiguration configuration, String mediaType, String version) { - super(configuration.getRhlogin(), - configuration.getPassword(), - configuration.getClientId(), - mediaType, - version, - null, - null, - null, - null); - } - - @Override - protected String request(HttpMethod httpMethod, URL url, IMediaType mediaType, int timeout, Parameter... parameters) - throws SocketTimeoutException, HttpClientException { - if (parameters == null - || parameters.length == 0) { - return null; - } - ByteArrayOutputStream out = new ByteArrayOutputStream(); - mediaType.writeTo(new ParameterValueMap(parameters), out); - return out.toString(); - } - -} diff --git a/src/test/java/com/openshift/client/fakes/SystemConfigurationFake.java b/src/test/java/com/openshift/client/fakes/SystemConfigurationFake.java deleted file mode 100644 index 199ddabd..00000000 --- a/src/test/java/com/openshift/client/fakes/SystemConfigurationFake.java +++ /dev/null @@ -1,43 +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.fakes; - -import java.io.File; -import java.io.FileNotFoundException; -import java.io.IOException; -import java.util.Properties; - -import com.openshift.client.OpenShiftException; -import com.openshift.client.configuration.DefaultConfiguration; -import com.openshift.client.configuration.SystemConfiguration; - -/** - * @author André Dietisheim - */ -public class SystemConfigurationFake extends SystemConfiguration { - - public SystemConfigurationFake() throws OpenShiftException, IOException { - this(null); - } - - public SystemConfigurationFake(DefaultConfiguration defaultConfiguration) throws OpenShiftException, IOException { - super(defaultConfiguration); - } - - protected Properties getProperties(File file, Properties defaultProperties) throws FileNotFoundException, IOException { - Properties properties = new Properties(defaultProperties); - init(properties); - return properties; - } - - protected void init(Properties properties) { - } -} diff --git a/src/test/java/com/openshift/client/fakes/SystemPropertiesFake.java b/src/test/java/com/openshift/client/fakes/SystemPropertiesFake.java deleted file mode 100644 index d651a76c..00000000 --- a/src/test/java/com/openshift/client/fakes/SystemPropertiesFake.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.openshift.client.fakes; - -import com.openshift.client.OpenShiftException; -import com.openshift.client.configuration.IOpenShiftConfiguration; -import com.openshift.client.configuration.SystemProperties; - -import java.io.IOException; - -/** - * @author Corey Daley - */ -public class SystemPropertiesFake extends SystemProperties { - public SystemPropertiesFake(IOpenShiftConfiguration parentConfiguration) throws OpenShiftException, IOException { - super(parentConfiguration); - } -} diff --git a/src/test/java/com/openshift/client/fakes/TestSSHKey.java b/src/test/java/com/openshift/client/fakes/TestSSHKey.java deleted file mode 100644 index f3c3e247..00000000 --- a/src/test/java/com/openshift/client/fakes/TestSSHKey.java +++ /dev/null @@ -1,68 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2007 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.fakes; - -import java.io.File; -import java.io.IOException; - -import com.openshift.client.OpenShiftException; -import com.openshift.client.SSHKeyPair; -import com.openshift.client.utils.FileUtils; - -/** - * @author André Dietisheim - */ -public class TestSSHKey { - - private static final String privateKey = - "-----BEGIN RSA PRIVATE KEY-----\n" + - "Proc-Type: 4,ENCRYPTED\n" + - "DEK-Info: DES-EDE3-CBC,30E8B3A668E44D77\n" + - "\n" + - "wsXCU31SUTYhjPnOiW56UlZ7VXKlIjItLo5Wrk5LwCLv/OERK7UWJkrwM2bHPb6n\n" + - "3zAaDDZfQe786URQjfmUYWBdVeI7DrRMwoLaaUcR1tuJtMu3Jv3CK72YMkOzGapZ\n" + - "ZAAoTno/GRhTwptXG1KPSqKyzfqlxjbZry1HZmY+P6ikw9DWOPZC6rISIqQ3u9zm\n" + - "iPvi/Oo7JWZtX1d1MYp3vVt2bo2duD4RSoXWWaW471WUOIQZUh0V4dxp+eAHZziu\n" + - "osAfU4WoIrrSCSVl2uiKS2Zijn77PvcCXnm45eMQpww32AlslzIBNsMzUXhPtVAZ\n" + - "a9uvfZxlOIRu4ObN7AB3WExucbBHCvTOgxpSs95br1QtfMVl62d9VkIAXg1x9gH8\n" + - "kjcEP+0OS3EItYTFj1tCKC8GgBImj44AxbPSWu3SfTnYfAtFnO0pUqhPOBN63DCC\n" + - "XxzMm13UeER7Z3s968Swa48r6LRAbHI8JD0Ld4E02fgBYM/N/aGtPppD0FoJJwo3\n" + - "QVafS2PY+bALgy4qrI9daOo1mTS3gWDSAG0QbLoKd3hD8ZnLEk6rfR/0SE34Fc7j\n" + - "mviCy78C16hkllhWz27ROl5pheHV0Xt6ZlUsNWVz7tg/AcIFB0geMuzuM0Kd7ufj\n" + - "g5c8mhlI06n4vzo0uB6UXtwTBzNqyUl8yxA31S2VJfBZxkEwKc5cktNUiejQuWbU\n" + - "iwapdiSR0gNGyYBNMYax9OOfYH+BBQeD5kboVU3yvT7UNcz0T9GZiEhfvcaYSP8C\n" + - "ejQ1vuTNTKMrgyLpNi/4Sq8lm8OukRqQyE0EKYCwvkI=\n" + - "-----END RSA PRIVATE KEY-----"; - - private static final String publicKey = - "ssh-rsa " - + - "AAAAB3NzaC1yc2EAAAADAQABAAAAgQC6BGRDydfGsQHhnZgo43dEfLzSJBke/hE8MLBBG1+5Z" + - "wktsrE+f2VdVt0McRLVAO6rdJRyMUX0rTbm7SABRVSX+zeQjlfqbbUtYFc7TIfd4RQc3GaISG" + - "1rS3C4svRSjdWaG36vDY2KxowdFvpKj8i8IYNPlLoRA/7EzzyneS6iyw" + - "== created by com.openshift.client"; - - public static SSHKeyPair create() throws IOException, OpenShiftException { - File privateKeyFile = File.createTempFile(createRandomString(), null); - FileUtils.writeTo(privateKey, privateKeyFile); - - File publicKeyFile = File.createTempFile(createRandomString(), null); - FileUtils.writeTo(publicKey, publicKeyFile); - - return SSHKeyPair.load(privateKeyFile.getAbsolutePath(), publicKeyFile.getAbsolutePath()); - } - - private static String createRandomString() { - return String.valueOf(System.currentTimeMillis()); - } - - -} diff --git a/src/test/java/com/openshift/client/fakes/UserConfigurationFake.java b/src/test/java/com/openshift/client/fakes/UserConfigurationFake.java deleted file mode 100644 index 74a7bc3b..00000000 --- a/src/test/java/com/openshift/client/fakes/UserConfigurationFake.java +++ /dev/null @@ -1,79 +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.fakes; - -import java.io.File; -import java.io.FileNotFoundException; -import java.io.FileWriter; -import java.io.IOException; -import java.io.Writer; -import java.util.Properties; - -import com.openshift.client.OpenShiftException; -import com.openshift.client.configuration.SystemConfiguration; -import com.openshift.client.configuration.UserConfiguration; -import com.openshift.internal.client.utils.StreamUtils; - -/** - * @author André Dietisheim - */ -public class UserConfigurationFake extends UserConfiguration { - - public UserConfigurationFake() throws OpenShiftException, IOException { - this(null); - } - - public UserConfigurationFake(SystemConfiguration systemConfiguration) throws OpenShiftException, IOException { - super(systemConfiguration); - } - - protected void initProperties(File file, Properties defaultProperties) throws FileNotFoundException, IOException { - file = createFile(); - initFile(file); - super.initProperties(file,defaultProperties); - } - - protected void initFile(File file) { - Writer writer = null; - try { - writer = new FileWriter(file); - initFile(writer); - writer.flush(); - } catch (Exception e) { - throw new RuntimeException(e); - } finally { - try { - StreamUtils.close(writer); - } catch (Exception e) { - throw new RuntimeException(e); - } - } - } - - protected File createFile() { - try { - return File.createTempFile(createRandomString(), null); - } catch (Exception e) { - throw new RuntimeException(e); - } - } - - protected void initFile(Writer writer) throws IOException { - } - - private String createRandomString() { - return String.valueOf(System.currentTimeMillis()); - } - - public File getFile() { - return super.getFile(); - } -} diff --git a/src/test/java/com/openshift/client/fakes/WaitingHttpServerFake.java b/src/test/java/com/openshift/client/fakes/WaitingHttpServerFake.java deleted file mode 100644 index 7afdfe8b..00000000 --- a/src/test/java/com/openshift/client/fakes/WaitingHttpServerFake.java +++ /dev/null @@ -1,38 +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.fakes; - -import java.io.IOException; -import java.io.OutputStream; - -/** - * @author Nicolas Spano - * @author Andre Dietisheim - */ -public class WaitingHttpServerFake extends HttpServerFake { - - private long delay; - - @Override - protected void write(byte[] text, OutputStream outputStream) throws IOException { - - try { - Thread.sleep(delay); - } catch (InterruptedException e) { - //Intentional ignore - return ; - } - } - - public WaitingHttpServerFake(long delay){ - this.delay = delay; - } -} diff --git a/src/test/java/com/openshift/client/portforwarding/PortForwardingL.java b/src/test/java/com/openshift/client/portforwarding/PortForwardingL.java deleted file mode 100644 index 7c5ee5fe..00000000 --- a/src/test/java/com/openshift/client/portforwarding/PortForwardingL.java +++ /dev/null @@ -1,156 +0,0 @@ -package com.openshift.client.portforwarding; -/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ -/** - * This program will demonstrate the port forwarding like option -L of - * ssh command; the given port on the local host will be forwarded to - * the given remote host and port on the remote side. - * $ CLASSPATH=.:../build javac PortForwardingL.java - * $ CLASSPATH=.:../build java PortForwardingL - * You will be asked username, hostname, port:host:hostport and passwd. - * If everything works fine, you will get the shell prompt. - * Try the port on localhost. - * - */ -import com.jcraft.jsch.*; -import java.awt.*; -import javax.swing.*; - -public class PortForwardingL{ - public static void main(String[] arg){ - - int lport; - String rhost; - int rport; - - try{ - JSch jsch=new JSch(); - - String host=null; - if(arg.length>0){ - host=arg[0]; - } - else{ - host=JOptionPane.showInputDialog("Enter username@hostname", - System.getProperty("user.name")+ - "@localhost"); - } - String user=host.substring(0, host.indexOf('@')); - host=host.substring(host.indexOf('@')+1); - - Session session=jsch.getSession(user, host, 22); - - String foo=JOptionPane.showInputDialog("Enter -L port:host:hostport", - "port:host:hostport"); - lport=Integer.parseInt(foo.substring(0, foo.indexOf(':'))); - foo=foo.substring(foo.indexOf(':')+1); - rhost=foo.substring(0, foo.indexOf(':')); - rport=Integer.parseInt(foo.substring(foo.indexOf(':')+1)); - - // username and password will be given via UserInfo interface. - UserInfo ui=new MyUserInfo(); - session.setUserInfo(ui); - - session.connect(); - - //Channel channel=session.openChannel("shell"); - //channel.connect(); - - int assinged_port=session.setPortForwardingL(lport, rhost, rport); - System.out.println("localhost:"+assinged_port+" -> "+rhost+":"+rport); - } - catch(Exception e){ - System.out.println(e); - } - } - - public static class MyUserInfo implements UserInfo, UIKeyboardInteractive{ - public String getPassword(){ return passwd; } - public boolean promptYesNo(String str){ - Object[] options={ "yes", "no" }; - int foo=JOptionPane.showOptionDialog(null, - str, - "Warning", - JOptionPane.DEFAULT_OPTION, - JOptionPane.WARNING_MESSAGE, - null, options, options[0]); - return foo==0; - } - - String passwd; - JTextField passwordField=(JTextField)new JPasswordField(20); - - public String getPassphrase(){ return null; } - public boolean promptPassphrase(String message){ return true; } - public boolean promptPassword(String message){ - Object[] ob={passwordField}; - int result= - JOptionPane.showConfirmDialog(null, ob, message, - JOptionPane.OK_CANCEL_OPTION); - if(result==JOptionPane.OK_OPTION){ - passwd=passwordField.getText(); - return true; - } - else{ return false; } - } - public void showMessage(String message){ - JOptionPane.showMessageDialog(null, message); - } - final GridBagConstraints gbc = - new GridBagConstraints(0,0,1,1,1,1, - GridBagConstraints.NORTHWEST, - GridBagConstraints.NONE, - new Insets(0,0,0,0),0,0); - private Container panel; - public String[] promptKeyboardInteractive(String destination, - String name, - String instruction, - String[] prompt, - boolean[] echo){ - panel = new JPanel(); - panel.setLayout(new GridBagLayout()); - - gbc.weightx = 1.0; - gbc.gridwidth = GridBagConstraints.REMAINDER; - gbc.gridx = 0; - panel.add(new JLabel(instruction), gbc); - gbc.gridy++; - - gbc.gridwidth = GridBagConstraints.RELATIVE; - - JTextField[] texts=new JTextField[prompt.length]; - for(int i=0; i= 3); - - assertEquals(application.getName(), matcher.group(1)); - IDomain domain = application.getDomain(); - assertEquals(domain.getId(), matcher.group(2)); - assertEquals(domain.getSuffix(), matcher.group(3)); - } - - public ApplicationAssert hasGearProfile(IGearProfile gearProfile) { - assertThat(application.getGearProfile()).isEqualTo(gearProfile); - return this; - } - - public ApplicationAssert hasEmbeddedCartridges(LatestEmbeddableCartridge... selectors) - throws OpenShiftException { - for (LatestEmbeddableCartridge selector : selectors) { - hasEmbeddedCartridge(selector); - } - return this; - } - - public ApplicationAssert hasEmbeddedCartridge(LatestEmbeddableCartridge selector) - throws OpenShiftException { - hasEmbeddedCartridge(selector.get(application)); - return this; - } - - public ApplicationAssert hasEmbeddedCartridge(IEmbeddableCartridge... cartridges) - throws OpenShiftException { - for (IEmbeddableCartridge cartridge : cartridges) { - hasEmbeddedCartridge(cartridge); - } - - return this; - } - - public ApplicationAssert hasEmbeddedCartridge(IEmbeddableCartridge cartridge) - throws OpenShiftException { - assertTrue(application.hasEmbeddedCartridge(cartridge)); - - return this; - } - - public ApplicationAssert hasEmbeddedCartridgeNames(String... embeddableCartridgeNames) throws OpenShiftException { - if (embeddableCartridgeNames.length == 0) { - assertEquals(0, application.getEmbeddedCartridges().size()); - } - - for (String cartridgeName : embeddableCartridgeNames) { - assertTrue(application.hasEmbeddedCartridge(cartridgeName)); - } - - return this; - } - - public ApplicationAssert hasEmbeddableCartridges(int numberOf) { - assertNotNull(application.getEmbeddedCartridges()); - assertEquals(numberOf, application.getEmbeddedCartridges().size()); - return this; - } - - public ApplicationAssert hasNotEmbeddableCartridgeNames(String... embeddableCartridgeNames) throws OpenShiftException { - for (String cartridgeName : embeddableCartridgeNames) { - assertFalse(application.hasEmbeddedCartridge(cartridgeName)); - } - - return this; - } - - public ApplicationAssert hasNotEmbeddableCartridges(LatestEmbeddableCartridge... selectors) throws OpenShiftException { - for (LatestEmbeddableCartridge selector : selectors) { - assertThat(application.hasEmbeddedCartridge(selector.get(application))).isFalse(); - } - - return this; - } - - public ApplicationAssert hasAlias(String... aliasNames) { - if (aliasNames.length == 0) { - assertEquals(0, application.getAliases().size()); - } - - for (String cartridgeName : aliasNames) { - assertTrue(application.hasAlias(cartridgeName)); - } - - return this; - } - - public void hasNotEmbeddableCartridge(LatestEmbeddableCartridge constraint) { - hasNotEmbeddableCartridge(constraint.get(application)); - } - - public void hasNotEmbeddableCartridge(IEmbeddableCartridge cartridge) { - hasNotEmbeddableCartridge(cartridge.getName()); - } - - public void hasNotEmbeddableCartridge(String name) { - assertNull(getEmbeddableCartridge(name)); - } - - public void assertThatDoesntContainCartridges(Collection shouldNotBeContained, List cartridges) { - for(IEmbeddableCartridge shouldNot : shouldNotBeContained) { - assertFalse(cartridges.contains(shouldNot)); - } - } - - private IEmbeddedCartridge getEmbeddableCartridge(String name) { - IEmbeddedCartridge matchingCartridge = null; - for (IEmbeddedCartridge cartridge : application.getEmbeddedCartridges()) { - if (name.equals(cartridge.getName())) { - matchingCartridge = cartridge; - break; - } - } - return matchingCartridge; - } - - public void assertThatContainsCartridges(Collection shouldBeContained, List cartridgesToCheck) { - for (IEmbeddableCartridge cartridge : shouldBeContained) { - assertTrue(cartridgesToCheck.contains(cartridge)); - } - } - - public ApplicationAssert hasContent(String page, String contains) throws IOException { - URL appUrl = new URL(application.getApplicationUrl() + page); - assertThat(application.waitForAccessible(APPLICATION_WAIT_TIMEOUT)).isTrue(); - String content = StreamUtils.readToString(appUrl.openConnection().getInputStream()); - assertThat(content).contains(contains); - return this; - } - - public ApplicationAssert hasMessage(IField field, ISeverity severity) throws IOException { - Messages messages = application.getMessages(); - assertThat(messages).isNotNull(); - List matchingMessages = messages.getBy(field, severity); - assertThat(matchingMessages).isNotEmpty(); - return this; - } - - public ApplicationAssert hasMessage(IField field) throws IOException { - Messages messages = application.getMessages(); - assertThat(messages).isNotNull(); - List matchingMessages = messages.getBy(field); - assertThat(matchingMessages).isNotEmpty(); - return this; - } - - public ApplicationAssert hasResultFieldOrResultSeverityMessage() throws IOException { - Messages messages = application.getMessages(); - assertThat(messages).isNotNull(); - List matchingMessages = messages.getBy(IField.RESULT); - if (matchingMessages == null - || matchingMessages.isEmpty()) { - matchingMessages = messages.getBy(IField.DEFAULT, ISeverity.RESULT); - assertThat(matchingMessages).isNotEmpty(); - } - return this; - } - - public ApplicationAssert hasDomain(IDomain domain) { - assertThat(application.getDomain()).isEqualTo(domain); - return this; - } - -} diff --git a/src/test/java/com/openshift/client/utils/ApplicationTestUtils.java b/src/test/java/com/openshift/client/utils/ApplicationTestUtils.java deleted file mode 100755 index c6727fea..00000000 --- a/src/test/java/com/openshift/client/utils/ApplicationTestUtils.java +++ /dev/null @@ -1,238 +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.utils; - -import static org.junit.Assert.assertNotNull; -import static org.junit.Assert.assertTrue; - -import java.util.Iterator; -import java.util.List; - -import com.openshift.client.ApplicationScale; -import com.openshift.client.IApplication; -import com.openshift.client.IDomain; -import com.openshift.client.IOpenShiftConnection; -import com.openshift.client.OpenShiftException; -import com.openshift.client.cartridge.ICartridge; -import com.openshift.client.cartridge.IStandaloneCartridge; -import com.openshift.client.cartridge.selector.LatestStandaloneCartridge; -import com.openshift.client.cartridge.selector.LatestVersionOf; - -/** - * @author André Dietisheim - */ -public class ApplicationTestUtils { - - // 3 minutes - private static final long WAIT_FOR_APPLICATION = 3 * 60 * 1000; - - public static String createRandomApplicationName() { - return String.valueOf(System.currentTimeMillis()); - } - - public static IApplication createApplication(IStandaloneCartridge cartridge, IDomain domain) { - IApplication application = domain.createApplication(createRandomApplicationName(), cartridge); - assertTrue(application.waitForAccessible(WAIT_FOR_APPLICATION)); - return application; - } - - public static void silentlyDestroy(IApplication application) { - try { - if (application == null) { - return; - } - application.destroy(); - } catch (Exception e) { - // e.printStackTrace(); - } - } - - public static void silentlyDestroyAllApplications(IDomain domain) { - if (domain == null) { - return; - } - - for (IApplication application : domain.getApplications()) { - silentlyDestroy(application); - } - } - - public static void silentlyDestroyApplications(int appsToDestroy, IDomain domain) { - if (domain == null) { - return; - } - - for (Iterator it = domain.getApplications().iterator(); it.hasNext() && appsToDestroy >= 0; appsToDestroy--) { - silentlyDestroy(it.next()); - } - } - - public static void silentlyDestroyAllApplicationsByCartridge(IStandaloneCartridge cartridge, IDomain domain) { - if (domain == null) { - return; - } - - for (Iterator it = domain.getApplicationsByCartridge(cartridge).iterator(); it - .hasNext();) { - silentlyDestroy(it.next()); - } - } - - public static IApplication getOrCreateApplication(IDomain domain) throws OpenShiftException { - return getOrCreateApplication(domain, LatestVersionOf.jbossAs().get(domain.getUser())); - } - - public static IApplication getOrCreateApplication(IDomain domain, IStandaloneCartridge cartridge) - throws OpenShiftException { - for (Iterator it = domain.getApplications().iterator(); it.hasNext();) { - IApplication application = it.next(); - if (cartridge.equals(application.getCartridge())) { - return application; - } - } - - return domain.createApplication(StringUtils.createRandomString(), cartridge); - } - - /** - * Deletes applications that are above the given maximum number of - * applications. - * - * @param maxApplications - * @param domain - */ - public static void destroyIfMoreThan(int maxApplications, IDomain domain) { - if (domain == null) { - return; - } - - int toDestroy = domain.getApplications().size() - maxApplications; - - for (Iterator it = domain.getApplications().iterator(); it.hasNext() && toDestroy > 0; toDestroy--) { - it.next().destroy(); - } - } - - /** - * Makes sure the given domain has exactly the given number of applications - * with the given type. Either the excessive applications are destroyed or - * new ones (with the given cartridge) are created to match the given - * number. - * - * @param numOfApplications - * @param cartridge - * the required cartridge - * @param domain - */ - public static void ensureHasExactly(int numOfApplications, IStandaloneCartridge cartridge, IDomain domain) { - assertNotNull(cartridge); - if (domain == null) { - return; - } - - destroyAllNotOfType(cartridge, domain.getApplications()); - int delta = numOfApplications - domain.getApplications().size(); - if (delta < 0) { - for (Iterator it = domain.getApplications().iterator(); it.hasNext() && delta < 0; delta++) { - it.next().destroy(); - } - } else { - for (; delta > 0; delta--) { - createApplication(cartridge, domain); - } - } - } - - protected static void destroyAllNotOfType(IStandaloneCartridge cartridge, List applications) { - for (Iterator it = applications.iterator(); it.hasNext();) { - IApplication application = it.next(); - if (!cartridge.equals(application.getCartridge())) { - application.destroy(); - } - } - } - - public static void destroyAllApplications(IDomain domain) { - if (domain == null) { - return; - } - - for (IApplication application : domain.getApplications()) { - application.destroy(); - } - } - - public static void destroyAllByCartridge(ICartridge cartridge, IDomain domain) { - for (Iterator it = domain.getApplications().iterator(); it.hasNext();) { - IApplication application = it.next(); - if (!application.getCartridge().equals(cartridge)) { - application.destroy(); - } - } - } - - public static IApplication ensureHasExactly1Application(IStandaloneCartridge cartridge, IDomain domain) { - ensureHasExactly(1, cartridge, domain); - return domain.getApplications().get(0); - } - - public static IApplication ensureHasExactly1Application(LatestStandaloneCartridge selector, IDomain domain) { - IStandaloneCartridge cartridge = selector.get(domain.getUser()); - ensureHasExactly(1, cartridge, domain); - return domain.getApplications().get(0); - } - - public static IApplication ensureHasExactly1NonScalableApplication(LatestStandaloneCartridge selector, - IDomain domain) { - IApplication application = ensureHasExactly1Application(selector, domain); - return destroyAndRecreateIfScalable(application); - } - - /** - * Returns the given application if it is not scalable, destroys it and - * creates a new one with the same cartridge and name otherwise. - * - * @param application - * @return - */ - public static IApplication destroyAndRecreateIfScalable(IApplication application) { - if (!ApplicationScale.NO_SCALE.equals(application.getGearProfile())) { - IStandaloneCartridge cartridge = application.getCartridge(); - IDomain domain = application.getDomain(); - application.destroy(); - application = domain.createApplication( - createRandomApplicationName(), cartridge, ApplicationScale.NO_SCALE); - } - return application; - } - - public static IOpenShiftConnection getConnection(IApplication application) { - if (application == null) { - return null; - } - return application.getDomain().getUser().getConnection(); - } - - public static IOpenShiftConnection getConnection(IDomain domain) { - if (domain == null) { - return null; - } - return domain.getUser().getConnection(); - } - - public static IApplication destroyAllEnvironmentVariables(IApplication application) { - for (String name : application.getEnvironmentVariables().keySet()) { - application.removeEnvironmentVariable(name);; - } - return application; - } - -} diff --git a/src/test/java/com/openshift/client/utils/CartridgeAssert.java b/src/test/java/com/openshift/client/utils/CartridgeAssert.java deleted file mode 100644 index 9c655734..00000000 --- a/src/test/java/com/openshift/client/utils/CartridgeAssert.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.utils; - -import static org.fest.assertions.Assertions.assertThat; - -import java.net.URL; - -import org.fest.assertions.AssertExtension; - -import com.openshift.client.OpenShiftException; -import com.openshift.client.cartridge.ICartridge; -import com.openshift.internal.client.cartridge.BaseCartridge; - -/** - * @author André Dietisheim - */ -public class CartridgeAssert implements AssertExtension { - - private C cartridge; - - public CartridgeAssert(C cartridge) { - assertThat(cartridge).isNotNull(); - this.cartridge = cartridge; - } - - public CartridgeAssert hasName(String name) throws OpenShiftException { - assertThat(cartridge.getName()).isEqualTo(name); - return this; - } - - public CartridgeAssert hasName() throws OpenShiftException { - assertThat(cartridge.getName()).isNotEmpty(); - return this; - } - - public CartridgeAssert nameStartWith(String namePrefix) throws OpenShiftException { - assertThat(cartridge.getName()).startsWith(namePrefix); - return this; - } - - public CartridgeAssert hasDisplayName(String displayName) throws OpenShiftException { - assertThat(cartridge.getDisplayName()).isEqualTo(displayName); - return this; - } - - public CartridgeAssert hasDisplayName() throws OpenShiftException { - assertThat(cartridge.getDisplayName()).isNotEmpty(); - return this; - } - - public CartridgeAssert hasDescription(String description) throws OpenShiftException { - assertThat(cartridge.getDescription()).isEqualTo(description); - return this; - } - - public CartridgeAssert hasDescription() throws OpenShiftException { - assertThat(cartridge.getDescription()).isNotNull(); - return this; - } - - public CartridgeAssert hasNoUrl() throws OpenShiftException { - assertThat(cartridge.getUrl()).isNull(); - return this; - } - - public CartridgeAssert hasUrl() throws OpenShiftException { - assertThat(cartridge.getUrl()).isNotNull(); - return this; - } - - public CartridgeAssert hasUrl(String url) throws OpenShiftException { - URL cartridgeUrl = cartridge.getUrl(); - if (cartridgeUrl == null) { - assertThat(cartridgeUrl).isEqualTo(url); - } else { - assertThat(cartridgeUrl.toString()).isEqualTo(url); - } - return this; - } - - public CartridgeAssert isEqualsTo(BaseCartridge otherCartridge) throws OpenShiftException { - assertThat(otherCartridge).isNotNull(); - hasName(otherCartridge.getName()); - hasDescription(otherCartridge.getDescription()); - hasDisplayName(otherCartridge.getDisplayName()); - assertThat(cartridge.equals(otherCartridge)); - return this; - } - - protected C getCartridge() { - return cartridge; - } -} diff --git a/src/test/java/com/openshift/client/utils/CartridgeAsserts.java b/src/test/java/com/openshift/client/utils/CartridgeAsserts.java deleted file mode 100644 index a3fa2955..00000000 --- a/src/test/java/com/openshift/client/utils/CartridgeAsserts.java +++ /dev/null @@ -1,37 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2007 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 static org.junit.Assert.fail; - -import java.text.MessageFormat; -import java.util.Collection; - -import com.openshift.client.cartridge.ICartridge; - -/** - * @author André Dietisheim - */ -public class CartridgeAsserts { - - public static void assertThatContainsCartridge(String cartridgeName, Collection cartridges) { - boolean found = false; - for (ICartridge cartridge : cartridges) { - if (cartridgeName.equals(cartridge.getName())) { - found = true; - break; - } - } - if (!found) { - fail(MessageFormat.format("Could not find cartridge with name \"{0}\"", cartridgeName)); - } - } -} diff --git a/src/test/java/com/openshift/client/utils/Cartridges.java b/src/test/java/com/openshift/client/utils/Cartridges.java deleted file mode 100644 index ed49ee6b..00000000 --- a/src/test/java/com/openshift/client/utils/Cartridges.java +++ /dev/null @@ -1,92 +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.utils; - -import java.net.MalformedURLException; -import java.net.URL; - -import com.openshift.client.cartridge.EmbeddableCartridge; -import com.openshift.client.cartridge.IEmbeddableCartridge; -import com.openshift.client.cartridge.IStandaloneCartridge; -import com.openshift.client.cartridge.StandaloneCartridge; - -/** - * @author Andre Dietisheim - */ -public class Cartridges { - - public static final String JBOSSAS_7_NAME = "jbossas-7"; - public static final String JBOSSEAP_6_NAME = "jbosseap-6"; - public static final String NODEJS_06_NAME = "nodejs-0.6"; - public static final String JBOSSEWS_1_NAME = "jbossews-1.0"; - public static final String JBOSSEWS_2_NAME = "jbossews-2.0"; - public static final String JENKINS_14_NAME = "jenkins-1.4"; - public static final String GO_DOWNLOAD_URL = - "http://cartreflect-claytondev.rhcloud.com/reflect?github=smarterclayton/openshift-go-cart"; - - public static final String MYSQL_51_NAME = "mysql-5.1"; - public static final String MONGODB_22_NAME = "mongodb-2.2"; - public static final String FOREMAN_DOWNLOAD_URL = - "http://cartreflect-claytondev.rhcloud.com/reflect?github=ncdc/openshift-foreman-cartridge"; - public static final String SWITCHYARD_06_NAME = "switchyard-0.6"; - public static final String POSTGRESQL_84_NAME = "postgresql-8.4"; - public static final String HAPROXY_14_NAME = "haproxy-1.4"; - - - public static IStandaloneCartridge as7() { - return new StandaloneCartridge(JBOSSAS_7_NAME); - } - - public static IStandaloneCartridge eap6() { - return new StandaloneCartridge(JBOSSEAP_6_NAME); - } - - public static IStandaloneCartridge ews1() { - return new StandaloneCartridge(JBOSSEWS_1_NAME); - } - - public static IStandaloneCartridge ews2() { - return new StandaloneCartridge(JBOSSEWS_2_NAME); - } - - public static IStandaloneCartridge jenkins14() { - return new StandaloneCartridge(JENKINS_14_NAME); - } - - public static IStandaloneCartridge go11() throws MalformedURLException { - return new StandaloneCartridge(null, new URL(GO_DOWNLOAD_URL)); - } - - public static IEmbeddableCartridge mysql51() { - return new EmbeddableCartridge(MYSQL_51_NAME); - } - - public static IEmbeddableCartridge mongodb22() { - return new EmbeddableCartridge(MONGODB_22_NAME); - } - - public static IEmbeddableCartridge postgres84() { - return new EmbeddableCartridge(POSTGRESQL_84_NAME); - } - - public static IEmbeddableCartridge switchyard06() { - return new EmbeddableCartridge(SWITCHYARD_06_NAME); - } - - public static IEmbeddableCartridge haproxy14() { - return new EmbeddableCartridge(HAPROXY_14_NAME); - } - - public static IEmbeddableCartridge foreman063() throws MalformedURLException { - return new EmbeddableCartridge("andygoldstein-foreman-0.63.0", new URL(FOREMAN_DOWNLOAD_URL)); - } - -} diff --git a/src/test/java/com/openshift/client/utils/DomainAssert.java b/src/test/java/com/openshift/client/utils/DomainAssert.java deleted file mode 100644 index aed0b869..00000000 --- a/src/test/java/com/openshift/client/utils/DomainAssert.java +++ /dev/null @@ -1,52 +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.utils; - -import static org.fest.assertions.Assertions.assertThat; -import static org.junit.Assert.assertEquals; - -import org.fest.assertions.AssertExtension; - -import com.openshift.client.IApplication; -import com.openshift.client.IDomain; -import com.openshift.client.OpenShiftException; - -/** - * @author Andre Dietisheim - */ -public class DomainAssert implements AssertExtension { - - private IDomain domain; - - public DomainAssert(IDomain domain) { - this.domain = domain; - } - - public DomainAssert hasId(String id) { - assertEquals(domain.getId(), id); - return this; - } - - public DomainAssert hasSuffix(String suffix) throws OpenShiftException { - assertEquals(domain.getSuffix(), suffix); - return this; - } - - public DomainAssert hasApplications(int size) { - assertThat(domain.getApplications()).hasSize(size); - return this; - } - - public DomainAssert hasApplications(IApplication... applications) { - assertThat(domain.getApplications()).contains(applications); - return this; - } -} diff --git a/src/test/java/com/openshift/client/utils/DomainTestUtils.java b/src/test/java/com/openshift/client/utils/DomainTestUtils.java deleted file mode 100644 index 9bd4dc55..00000000 --- a/src/test/java/com/openshift/client/utils/DomainTestUtils.java +++ /dev/null @@ -1,71 +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.utils; - -import java.util.Iterator; - -import com.openshift.client.IDomain; -import com.openshift.client.IUser; -import com.openshift.client.OpenShiftException; - -/** - * @author Andre Dietisheim - */ -public class DomainTestUtils { - - public static void destroyAllDomains(IUser user) { - if (user == null) { - return; - } - for (IDomain domain : user.getDomains()) { - domain.destroy(true); - } - } - - public static void silentlyDestroy(IDomain domain) { - if (domain == null) { - return; - } - try { - domain.destroy(true); - } catch (Exception e) { -// e.printStackTrace(); - } - } - - public static IDomain ensureHasDomain(IUser user) throws OpenShiftException { - return getFirstDomainOrCreate(user); - } - - public static IDomain getFirstDomainOrCreate(IUser user) throws OpenShiftException { - IDomain domain = null; - domain = getFirstDomain(user); - - if (domain == null) { - domain = user.createDomain(createRandomName()); - } - - return domain; - } - - public static IDomain getFirstDomain(IUser user) throws OpenShiftException { - IDomain domain = null; - Iterator domainIterator = user.getDomains().iterator(); - if (domainIterator.hasNext()) { - domain = domainIterator.next(); - } - return domain; - } - - public static String createRandomName() { - return String.valueOf(System.currentTimeMillis()); - } -} diff --git a/src/test/java/com/openshift/client/utils/EmbeddedCartridgeAssert.java b/src/test/java/com/openshift/client/utils/EmbeddedCartridgeAssert.java deleted file mode 100644 index 0648b54e..00000000 --- a/src/test/java/com/openshift/client/utils/EmbeddedCartridgeAssert.java +++ /dev/null @@ -1,109 +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 static org.fest.assertions.Assertions.assertThat; - -import java.net.URISyntaxException; -import java.net.URL; - -import org.fest.assertions.AssertExtension; - -import com.openshift.client.OpenShiftException; -import com.openshift.client.cartridge.IEmbeddedCartridge; -import com.openshift.client.cartridge.selector.UrlPropertyQuery; -import com.openshift.internal.client.response.CartridgeResourceProperty; - -/** - * @author André Dietisheim - */ -public class EmbeddedCartridgeAssert implements AssertExtension { - - private IEmbeddedCartridge cartridge; - - public EmbeddedCartridgeAssert(IEmbeddedCartridge embeddedCartridge) { - assertThat(embeddedCartridge).isNotNull(); - - this.cartridge = embeddedCartridge; - } - - public EmbeddedCartridgeAssert hasName(String name) throws OpenShiftException, URISyntaxException { - assertThat(cartridge.getName()).isEqualTo(name); - return this; - } - - public EmbeddedCartridgeAssert hasName() throws OpenShiftException, URISyntaxException { - assertThat(cartridge.getName()).isNotEmpty(); - return this; - } - - public EmbeddedCartridgeAssert hasDisplayName(String displayName) throws OpenShiftException, URISyntaxException { - assertThat(cartridge.getDisplayName()).isEqualTo(displayName); - return this; - } - - public EmbeddedCartridgeAssert hasDisplayName() throws OpenShiftException, URISyntaxException { - assertThat(cartridge.getDisplayName()).isNotEmpty(); - return this; - } - - public EmbeddedCartridgeAssert hasDescription(String description) throws OpenShiftException, URISyntaxException { - assertThat(cartridge.getDescription()).isEqualTo(description); - return this; - } - - public EmbeddedCartridgeAssert hasDescription() throws OpenShiftException, URISyntaxException { - assertThat(cartridge.getDescription()).isNotNull(); - return this; - } - - public EmbeddedCartridgeAssert hasNoUrl() throws OpenShiftException { - assertThat(cartridge.getUrl()).isNull(); - return this; - } - - public EmbeddedCartridgeAssert hasUrl() throws OpenShiftException, URISyntaxException { - assertThat(cartridge.getUrl()).isNotNull(); - return this; - } - - public EmbeddedCartridgeAssert hasUrl(String url) throws OpenShiftException { - URL cartridgeUrl = cartridge.getUrl(); - if (cartridgeUrl == null) { - assertThat(cartridgeUrl).isEqualTo(url); - } else { - assertThat(cartridgeUrl.toString()).isEqualTo(url); - } - - return this; - } - - public EmbeddedCartridgeAssert hasMessages() { - assertThat(cartridge.getMessages()).isNotNull(); - assertThat(cartridge.getMessages().getAll()).isNotEmpty(); - return this; - } - - public EmbeddedCartridgeAssert hasUrlProperty() { - CartridgeResourceProperty property = new UrlPropertyQuery().getMatchingProperty(cartridge); - assertThat(property).isNotNull(); - assertThat(property.getValue()).isNotEmpty(); - return this; - } - - public EmbeddedCartridgeAssert hasUrlProperty(String url) { - CartridgeResourceProperty property = new UrlPropertyQuery().getMatchingProperty(cartridge); - assertThat(property).isNotNull(); - assertThat(property.getValue()).isEqualTo(url); - return this; - } - -} diff --git a/src/test/java/com/openshift/client/utils/EmbeddedCartridgeTestUtils.java b/src/test/java/com/openshift/client/utils/EmbeddedCartridgeTestUtils.java deleted file mode 100644 index aedec72b..00000000 --- a/src/test/java/com/openshift/client/utils/EmbeddedCartridgeTestUtils.java +++ /dev/null @@ -1,113 +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.utils; - -import com.openshift.client.IApplication; -import com.openshift.client.OpenShiftException; -import com.openshift.client.cartridge.IEmbeddableCartridge; -import com.openshift.client.cartridge.IEmbeddedCartridge; -import com.openshift.client.cartridge.selector.LatestEmbeddableCartridge; -import com.openshift.client.cartridge.selector.LatestVersionOf; - -/** - * @author André Dietisheim - */ -public class EmbeddedCartridgeTestUtils { - - public static void silentlyDestroy(LatestEmbeddableCartridge selector, IApplication application) { - try { - if (selector == null - || application == null) { - return; - } - application.removeEmbeddedCartridge(selector.get(application)); - } catch (Exception e) { - // e.printStackTrace(); - } - } - - public static void silentlyDestroy(IEmbeddableCartridge cartridge, IApplication application) { - try { - if (cartridge == null - || application == null) { - return; - } - application.removeEmbeddedCartridge(cartridge); - } catch (Exception e) { - // e.printStackTrace(); - } - } - - /** - * Destroys all embedded cartridges from the given application. Ha-Proxy is - * not removed since it cannot get removed. - * - * @param application - */ - public static void silentlyDestroyAllEmbeddedCartridges(IApplication application) { - if (application == null) { - return; - } - - IEmbeddableCartridge haProxy = LatestVersionOf.haProxy().get(application); - for (IEmbeddedCartridge cartridge : application.getEmbeddedCartridges()) { - // ha proxy can't get removed - if (cartridge.equals(haProxy)) { - continue; - } - silentlyDestroy(cartridge, application); - } - } - - /** - * Ensures the given application has the embedded cartridges that match the - * given constraint. The given application is checked for their presence and - * if they aren't they are added. - * - * @param constraint - * the constraint that selects the available catridges that - * should be present - * @param application - * the application that should have the constrained cartridges - * @throws OpenShiftException - */ - public static void ensureHasEmbeddedCartridges(LatestEmbeddableCartridge constraint, IApplication application) - throws OpenShiftException { - if (constraint == null - || application == null) { - return; - } - - IEmbeddableCartridge embeddedCartridge = constraint.get(application); - ensureHasEmbeddedCartridge(embeddedCartridge, application); - } - - public static void ensureHasEmbeddedCartridges(IApplication application, LatestEmbeddableCartridge... selectors) - throws OpenShiftException { - for (LatestEmbeddableCartridge selector : selectors) { - ensureHasEmbeddedCartridges(selector, application); - } - } - - public static void ensureHasEmbeddedCartridge(IEmbeddableCartridge cartridge, IApplication application) - throws OpenShiftException { - if (cartridge == null - || application == null) { - return; - } - - if (application.hasEmbeddedCartridge(cartridge)) { - return; - } - - application.addEmbeddableCartridge(cartridge); - } -} diff --git a/src/test/java/com/openshift/client/utils/ExceptionCauseMatcher.java b/src/test/java/com/openshift/client/utils/ExceptionCauseMatcher.java deleted file mode 100644 index 30c6d79e..00000000 --- a/src/test/java/com/openshift/client/utils/ExceptionCauseMatcher.java +++ /dev/null @@ -1,37 +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.utils; - -import org.hamcrest.Description; -import org.hamcrest.Matcher; -import org.junit.internal.matchers.TypeSafeMatcher; - -/** - * @author Andre Dietisheim - */ -public class ExceptionCauseMatcher extends TypeSafeMatcher { - - private Matcher causeMatcher; - - public ExceptionCauseMatcher(Matcher matcher) { - this.causeMatcher = matcher; - } - - public void describeTo(Description description) { - description.appendText("exception with cause "); - } - - @Override - public boolean matchesSafely(Throwable throwable) { - return causeMatcher.matches(throwable.getCause()); - } -} - diff --git a/src/test/java/com/openshift/client/utils/FileUtils.java b/src/test/java/com/openshift/client/utils/FileUtils.java deleted file mode 100644 index 5c03bce1..00000000 --- a/src/test/java/com/openshift/client/utils/FileUtils.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.utils; - -import java.io.File; -import java.io.FileWriter; -import java.io.IOException; -import java.io.StringReader; - -/** - * @author Andre Dietisheim - */ -public class FileUtils { - - public static void writeTo(String data, String path) throws IOException { - writeTo(data, new File(path)); - } - - public static void writeTo(String data, File file) throws IOException { - StringReader reader = null; - FileWriter writer = null; - try { - writer = new FileWriter(file); - reader = new StringReader(data); - for (int character = -1; (character = reader.read()) != -1;) { - writer.write(character); - } - } finally { - if (writer != null) { - writer.flush(); - writer.close(); - } - if (reader != null) { - reader.close(); - } - } - } - - public static File createRandomTempFile() throws IOException { - return File.createTempFile(String.valueOf(System.currentTimeMillis()), null); - } - - public static void silentlyDelete(File file) { - if (file == null) { - return; - } - file.delete(); - } -} diff --git a/src/test/java/com/openshift/client/utils/GearGroupAssert.java b/src/test/java/com/openshift/client/utils/GearGroupAssert.java deleted file mode 100644 index 820cc1f8..00000000 --- a/src/test/java/com/openshift/client/utils/GearGroupAssert.java +++ /dev/null @@ -1,142 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2007 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 static org.fest.assertions.Assertions.assertThat; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; -import static org.junit.Assert.fail; - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collection; -import java.util.Iterator; -import java.util.List; - -import org.fest.assertions.AssertExtension; -import org.fest.assertions.Assertions; - -import com.openshift.client.GearState; -import com.openshift.client.IGear; -import com.openshift.client.IGearGroup; -import com.openshift.client.cartridge.ICartridge; - -/** - * @author André Dietisheim - */ -public class GearGroupAssert implements AssertExtension { - - private IGearGroup gearGroup; - - public GearGroupAssert(IGearGroup gearGroup) { - this.gearGroup = gearGroup; - } - - public GearGroupAssert hasName(String name) { - assertEquals(name, gearGroup.getName()); - return this; - } - - public GearGroupAssert hasUUID(String uuid) { - assertEquals(uuid, gearGroup.getUUID()); - return this; - } - - public GearGroupAssert hasUUID() { - assertNotNull(gearGroup.getUUID()); - return this; - } - - public GearGroupAssert hasGears() { - assertThat(gearGroup.getGears()).isNotNull(); - assertThat(gearGroup.getGears().size()).isPositive(); - return this; - } - - public GearAssert assertGear(String id) { - assertNotNull(id); - - for (IGear gear : gearGroup.getGears()) { - if (id.equals(gear.getId())) { - return new GearAssert(gear); - } - } - fail("gear group " + gearGroup.getName() + " does not contain a gear with id " + id); - return null; - } - - public GearAssert assertGear(int number) { - assertThat(number).isGreaterThanOrEqualTo(0); - assertThat(number).as("gear group " + gearGroup.getName() + " does not contain " + number + " gears") - .isLessThanOrEqualTo(gearGroup.getGears().size()); - - int i = 0; - for (IGear gear : gearGroup.getGears()) { - if (i == number) { - return new GearAssert(gear); - } - } - return null; - } - - public class GearAssert { - - private IGear gear; - - public GearAssert(IGear gear) { - this.gear = gear; - } - - public GearAssert hasId() { - assertThat(gear.getId()).isNotNull().isNotEmpty(); - return this; - } - - public GearAssert hasId(String id) { - assertNotNull(id); - assertEquals(id, gear.getId()); - return this; - } - - public GearGroupAssert hasState() { - assertThat(gear.getState()).isInstanceOf(GearState.class); - return GearGroupAssert.this; - } - - public GearGroupAssert inState(GearState state) { - assertNotNull(state); - - assertEquals(state, gear.getState()); - return GearGroupAssert.this; - } - - public GearGroupAssert hasSshUrl(String sshUrl) { - assertNotNull(sshUrl); - - assertEquals(sshUrl, gear.getSshUrl()); - return GearGroupAssert.this; - } - } - - public GearGroupAssert hasCartridges(final String... expectedCartridgeNames) { - final Collection existingCartridges = gearGroup.getCartridges(); - final List existingCartridgeNames = new ArrayList(); - final Iterator cartridgeIterator = existingCartridges.iterator(); - for(int i = 0; i < existingCartridges.size(); i++) { - existingCartridgeNames.add(cartridgeIterator.next().getName()); - } - - Assertions.assertThat(existingCartridgeNames).isEqualTo(Arrays.asList(expectedCartridgeNames)); - return this; - - } - -} diff --git a/src/test/java/com/openshift/client/utils/GearGroupsAssert.java b/src/test/java/com/openshift/client/utils/GearGroupsAssert.java deleted file mode 100644 index 37663a21..00000000 --- a/src/test/java/com/openshift/client/utils/GearGroupsAssert.java +++ /dev/null @@ -1,80 +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 static org.fest.assertions.Assertions.assertThat; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertNotNull; - -import java.util.Collection; -import java.util.Iterator; - -import org.fest.assertions.AssertExtension; - -import com.openshift.client.IGearGroup; -import com.openshift.internal.client.utils.StringUtils; - -/** - * @author André Dietisheim - */ -public class GearGroupsAssert implements AssertExtension { - - private Collection gearGroups; - - public GearGroupsAssert(Collection gearGroups) { - this.gearGroups = gearGroups; - } - - public GearGroupsAssert contains(String name) { - assertFalse(StringUtils.isEmpty(name)); - assertNotNull("Asserted GearGroups didn't contain group with name " + name, getByName(name)); - return this; - } - - public GearGroupAssert assertGroup(String name) { - assertFalse(StringUtils.isEmpty(name)); - contains(name); - return new GearGroupAssert(getByName(name)); - } - - public GearGroupAssert assertGroup(int number) { - assertThat(number).isGreaterThanOrEqualTo(0); - assertThat(number).isLessThanOrEqualTo(gearGroups.size()); - return new GearGroupAssert(getByNumber(number)); - } - - public GearGroupsAssert hasSize(int size) { - assertThat(gearGroups).isNotNull().hasSize(size); - return this; - } - - private IGearGroup getByName(String name) { - for (IGearGroup gearGroup : gearGroups) { - if (name.equals(gearGroup.getName())) { - return gearGroup; - } - } - return null; - } - - private IGearGroup getByNumber(int number) { - int i = 0; - Iterator iterator = gearGroups.iterator(); - while(iterator.hasNext() - && i <= number) { - if (i == number) { - return iterator.next(); - } - i++; - } - return null; - } -} diff --git a/src/test/java/com/openshift/client/utils/GearProfileTestUtils.java b/src/test/java/com/openshift/client/utils/GearProfileTestUtils.java deleted file mode 100644 index e599b036..00000000 --- a/src/test/java/com/openshift/client/utils/GearProfileTestUtils.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.openshift.client.utils; - -import com.openshift.client.IDomain; -import com.openshift.client.IGearProfile; -import com.openshift.internal.client.GearProfile; - -import java.util.List; - -/** - * Created by corey on 2/17/14. - */ -public class GearProfileTestUtils { - public static IGearProfile getFirstAvailableGearProfile(IDomain domain) { - IGearProfile gear = null; - List gears = domain.getAvailableGearProfiles(); - if (gears != null - && !gears.isEmpty()) { - gear = gears.get(0); - } - return gear; - } -} diff --git a/src/test/java/com/openshift/client/utils/MessageAssert.java b/src/test/java/com/openshift/client/utils/MessageAssert.java deleted file mode 100644 index b14904a4..00000000 --- a/src/test/java/com/openshift/client/utils/MessageAssert.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.utils; - -import static org.fest.assertions.Assertions.assertThat; -import static org.junit.Assert.assertEquals; - -import org.fest.assertions.AssertExtension; - -import com.openshift.client.IField; -import com.openshift.client.ISeverity; -import com.openshift.client.Message; - -/** - * @author Andre Dietisheim - */ -public class MessageAssert implements AssertExtension { - - private Message message; - - public MessageAssert(Message message) { - assertThat(message).isNotNull(); - this.message = message; - } - - public MessageAssert hasText() { - assertThat(message.getText()).isNotEmpty(); - return this; - } - - public MessageAssert hasText(String text) { - assertEquals(text, message.getText()); - return this; - } - - public MessageAssert hasSeverity(ISeverity severity) { - assertEquals(severity, message.getSeverity()); - return this; - } - - public MessageAssert hasExitCode(int exitCode) { - assertEquals(exitCode, message.getExitCode()); - return this; - } - - public MessageAssert hasField(IField field) { - assertThat(field).isEqualTo(message.getField()); - return this; - } -} diff --git a/src/test/java/com/openshift/client/utils/OpenShiftTestConfiguration.java b/src/test/java/com/openshift/client/utils/OpenShiftTestConfiguration.java deleted file mode 100644 index 461dfaa3..00000000 --- a/src/test/java/com/openshift/client/utils/OpenShiftTestConfiguration.java +++ /dev/null @@ -1,84 +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.io.File; -import java.io.FileNotFoundException; -import java.io.IOException; -import java.io.InputStream; -import java.util.Properties; - -import com.openshift.client.OpenShiftException; -import com.openshift.client.configuration.AbstractOpenshiftConfiguration; -import com.openshift.client.configuration.DefaultConfiguration; -import com.openshift.client.configuration.IOpenShiftConfiguration; -import com.openshift.client.configuration.SystemConfiguration; -import com.openshift.client.configuration.SystemProperties; -import com.openshift.client.configuration.UserConfiguration; -import com.openshift.client.fakes.SystemConfigurationFake; -import com.openshift.client.fakes.SystemPropertiesFake; -import com.openshift.client.fakes.UserConfigurationFake; -import com.openshift.internal.client.utils.StreamUtils; -import com.openshift.internal.client.utils.StringUtils; - -/** - * @author André Dietisheim - * @author Corey Daley - */ -public class OpenShiftTestConfiguration extends AbstractOpenshiftConfiguration { - - public static final String LIBRA_SERVER_STG = "https://stg.openshift.redhat.com"; - public static final String LIBRA_SERVER_PROD = "https://openshift.redhat.com"; - - private static final String INTEGRATION_TEST_PROPERTIES = "/integrationTest.properties"; - private static final String DEVSERVER_PREFIX = "https://ec2-"; - - public OpenShiftTestConfiguration() throws FileNotFoundException, IOException, OpenShiftException { - super(new SystemPropertiesFake( - new IntegrationTestConfiguration( - new UserConfigurationFake( - new SystemConfigurationFake( - new DefaultConfiguration()))))); - } - - public String getStagingServer() { - return LIBRA_SERVER_STG; - } - - public String getProductionServer() { - return LIBRA_SERVER_PROD; - } - - public boolean isDevelopmentServer() { - return !StringUtils.isEmpty(getLibraServer()) - && getLibraServer().startsWith(DEVSERVER_PREFIX); - } - - private static class IntegrationTestConfiguration extends AbstractOpenshiftConfiguration { - - public IntegrationTestConfiguration(IOpenShiftConfiguration parentConfiguration) - throws FileNotFoundException, IOException { - super(parentConfiguration); - } - - protected Properties getProperties(File file, Properties defaultProperties) - throws FileNotFoundException, IOException { - InputStream in = null; - try { - Properties properties = new Properties(defaultProperties); - properties.load(getClass().getResourceAsStream(INTEGRATION_TEST_PROPERTIES)); - return properties; - } finally { - StreamUtils.close(in); - } - } - } -} diff --git a/src/test/java/com/openshift/client/utils/ParametersMatcher.java b/src/test/java/com/openshift/client/utils/ParametersMatcher.java deleted file mode 100644 index 800d1818..00000000 --- a/src/test/java/com/openshift/client/utils/ParametersMatcher.java +++ /dev/null @@ -1,77 +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.utils; - -import static org.mockito.Matchers.argThat; - -import java.util.Arrays; - -import org.mockito.ArgumentMatcher; -import org.mockito.internal.matchers.VarargMatcher; - -import com.openshift.internal.client.httpclient.request.Parameter; - -/** - * Custom Mockito Matcher that verifies that the given RequestParameters matches - * the expected ones. - * - * @author Andre Dietisheim - * - */ -public class ParametersMatcher extends ArgumentMatcher implements VarargMatcher { - - private static final long serialVersionUID = 1L; - - private final Parameter[] expected; - - private ParametersMatcher(final Parameter... expected) { - this.expected = expected; - } - - @Override - public boolean matches(Object argument) { - if (!(argument instanceof Parameter[])) { - return false; - } - Parameter[] parameters = (Parameter[]) argument; - if (expected.length != parameters.length) { - return false; - } - - for (Parameter parameter : parameters) { - if (!isExpected(parameter)) { - return false; - } - } - return true; - } - - private boolean isExpected(Parameter parameter) { - for (Parameter expectedParameter : expected) { - if (expectedParameter.equals(parameter)) { - return true; - } - } - return false; - } - - public static Parameter[] eq(Parameter[] expected) { - return argThat(new ParametersMatcher(expected)); - } - - @Override - public String toString() { - return "RequestParametersMatcher [" - + "expected=" + Arrays.toString(expected) - + "]"; - } - -} \ No newline at end of file diff --git a/src/test/java/com/openshift/client/utils/ResourcePropertyAssert.java b/src/test/java/com/openshift/client/utils/ResourcePropertyAssert.java deleted file mode 100644 index c7ad8958..00000000 --- a/src/test/java/com/openshift/client/utils/ResourcePropertyAssert.java +++ /dev/null @@ -1,50 +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 static org.fest.assertions.Assertions.assertThat; - -import org.fest.assertions.AssertExtension; - -import com.openshift.internal.client.response.CartridgeResourceProperty; - -/** - * @author Andre Dietisheim - */ -public class ResourcePropertyAssert implements AssertExtension { - - private CartridgeResourceProperty property; - - public ResourcePropertyAssert(CartridgeResourceProperty property) { - assertThat(property).isNotNull(); - this.property = property; - } - - public ResourcePropertyAssert hasName(String name) { - assertThat(property.getName()).isEqualTo(name); - return this; - } - - public ResourcePropertyAssert hasDescription(String description) { - assertThat(property.getDescription()).isEqualTo(description); - return this; - } - - public ResourcePropertyAssert hasType(String type) { - assertThat(property.getType()).isEqualTo(type); - return this; - } - - public ResourcePropertyAssert hasValue(String value) { - assertThat(property.getValue()).isEqualTo(value); - return this; - } -} diff --git a/src/test/java/com/openshift/client/utils/SSHKeyTestUtils.java b/src/test/java/com/openshift/client/utils/SSHKeyTestUtils.java deleted file mode 100644 index 11699bcb..00000000 --- a/src/test/java/com/openshift/client/utils/SSHKeyTestUtils.java +++ /dev/null @@ -1,126 +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.utils; - -import static com.openshift.client.utils.FileUtils.createRandomTempFile; -import static org.junit.Assert.assertEquals; - -import java.io.IOException; -import java.util.List; - -import org.fest.assertions.AssertExtension; - -import com.jcraft.jsch.JSch; -import com.jcraft.jsch.JSchException; -import com.jcraft.jsch.KeyPair; -import com.openshift.client.IOpenShiftSSHKey; -import com.openshift.client.IUser; -import com.openshift.client.SSHKeyType; - -/** - * @author Andre Dietisheim - */ -public class SSHKeyTestUtils { - - public static final String DEFAULT_PASSPHRASE = "12345"; - - public static final String SSH_RSA = "ssh-rsa"; - public static final String SSH_DSA = "ssh-dss"; - - public static class SSHPublicKeyAssertion implements AssertExtension { - - private IOpenShiftSSHKey sshKey; - - public SSHPublicKeyAssertion(IOpenShiftSSHKey key) { - this.sshKey = key; - } - - public SSHPublicKeyAssertion hasName(String name) { - assertEquals(name, sshKey.getName()); - return this; - } - - public SSHPublicKeyAssertion hasPublicKey(String publicKey) { - assertEquals(publicKey, sshKey.getPublicKey()); - return this; - } - - public SSHPublicKeyAssertion isType(String type) { - assertEquals(type, sshKey.getKeyType().getTypeId()); - return this; - } - - public SSHPublicKeyAssertion isType(SSHKeyType type) { - assertEquals(type, sshKey.getKeyType()); - return this; - } - } - - /** - * Returns the key with the given name out of the keys in the given list of - * keys. Uses plain java means to look for the key (so that tests may limit - * theirself to test single bits of functionality). - * - * @param name - * @param keys - * @return - */ - public static IOpenShiftSSHKey getKey(String name, List keys) { - IOpenShiftSSHKey matchingKey = null; - for (IOpenShiftSSHKey key : keys) { - if (name.equals(key.getName())) { - matchingKey = key; - break; - } - } - return matchingKey; - } - - /** - * Creates a dsa key pair at the given paths for the public and private key. - * Uses external means (jsch KeyPair) and no internal functionality to - * create the keys (so that tests can limit theirselves to test single - * functionality bits). - * - * @param publicKeyPath - * @param privateKeyPath - * @throws IOException - * @throws JSchException - */ - public static void createDsaKeyPair(String publicKeyPath, String privateKeyPath) throws IOException, JSchException { - KeyPair keyPair = KeyPair.genKeyPair(new JSch(), KeyPair.DSA, 1024); - keyPair.setPassphrase(DEFAULT_PASSPHRASE); - keyPair.writePublicKey(publicKeyPath, "created by " + IUser.ID); - keyPair.writePrivateKey(privateKeyPath); - } - - public static String createDsaKeyPair() throws IOException, JSchException { - String publicKeyPath = createRandomTempFile().getAbsolutePath(); - String privateKeyPath = createRandomTempFile().getAbsolutePath(); - createDsaKeyPair(publicKeyPath, privateKeyPath); - return publicKeyPath; - } - - public static void silentlyDestroyKey(IOpenShiftSSHKey key) { - if (key == null) { - return; - } - try { - key.destroy(); - } catch (Exception e) { -// e.printStackTrace(); - } - } - - public static String createRandomKeyName() { - return String.valueOf(System.currentTimeMillis()); - } -} diff --git a/src/test/java/com/openshift/client/utils/Samples.java b/src/test/java/com/openshift/client/utils/Samples.java deleted file mode 100644 index 68ef1589..00000000 --- a/src/test/java/com/openshift/client/utils/Samples.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.client.utils; - -import java.io.InputStream; - -import org.apache.commons.io.IOUtils; - -/** - * @author Andre Dietisheim - */ -public enum Samples { - - // gear groups - GET_DOMAINS_FOOBARZ_APPLICATIONS_SPRINGEAP6_GEARGROUPS("get-domains-foobarz-applications-springeap6-geargroups.json"), // 1.2 - - // cartridges - GET_DOMAINS_FOOBARZ_APPLICATIONS_SPRINGEAP6_CARTRIDGES_1EMBEDDED("get-domains-foobarz-applications-springeap6-cartridges_1embedded.json"), // 1.2 - GET_DOMAINS_FOOBARZ_APPLICATIONS_SPRINGEAP6_CARTRIDGES_2EMBEDDED("get-domains-foobarz-applications-springeap6-cartridges_2embedded.json"), // 1.2 - GET_DOMAINS_FOOBARZ_APPLICATIONS_SPRINGEAP6_CARTRIDGES_3EMBEDDED("get-domains-foobarz-applications-springeap6-cartridges_3embedded.json"), // 1.2 - GET_DOMAINS_FOOBARZ_APPLICATIONS_SPRINGEAP6_CARTRIDGES_MYSQL("get-domains-foobarz-applications-springeap6-cartridges-mysql.json"), //1.2 - POST_MYSQL_DOMAINS_FOOBARZ_APPLICATIONS_SPRINGEAP6_CARTRIDGES("post-mysql-domains-foobarz-applications-springeap6-cartridges.json"), // 1.2 - - // application - GET_DOMAINS_FOOBARZ_APPLICATIONS_1EMBEDDED("get-domains-foobarz-applications_1embedded.json"), // 1.2 - GET_DOMAINS_FOOBARZ_APPLICATIONS_NOENVVARS("get-domains-foobarz-applications_noenvvars.json"), // 1.2 - GET_DOMAINS_FOOBARZ_APPLICATIONS_2EMBEDDED("get-domains-foobarz-applications_2embedded.json"), // 1.2 - GET_DOMAINS_FOOBARZ_APPLICATIONS_3EMBEDDED("get-domains-foobarz-applications_3embedded.json"), // 1.2 - GET_DOMAINS_FOOBARZ_APPLICATIONS_SPRINGEAP_SCALABLE_DOWNLOADABLECART("get-domains-foobarz-applications_springeap_scalable_downloadablecart.json"), // 1.2 - GET_DOMAINS_FOOBARZ_APPLICATIONS_NOAPPS("get-domains-foobarz-applications_noapps.json"), // 1.2 - GET_DOMAINS_FOOBARZ_APPLICATIONS_DOWNLOADABLECART("get-domains-foobarz-applications-downloadablecart.json"), // 1.2 - GET_DOMAINS_FOOBARZ_APPLICATIONS_SPRINGEAP6_1EMBEDDED("get-domains-foobarz-applications-springeap6_1embedded.json"), // 1.2 - GET_DOMAINS_FOOBARZ_APPLICATIONS_SPRINGEAP6_2EMBEDDED("get-domains-foobarz-applications-springeap6_2embedded.json"), // 1.2 - GET_DOMAINS_FOOBARZ_APPLICATIONS_SPRINGEAP6_2ALIAS("get-domains-foobarz-applications-springeap6_2alias.json"), // 1.2 - GET_DOMAINS_FOOBARZ_APPLICATIONS_SPRINGEAP6_0ALIAS("get-domains-foobarz-applications-springeap6_0alias.json"), // 1.2 - POST_STOP_DOMAINS_FOOBARZ_APPLICATIONS_SPRINGEAP6_EVENT("post-stop-domains-foobarz-applications-springeap6-events.json"), // 1.2 - POST_SCALABLE_DOMAINS_FOOBARZ_APPLICATIONS("post-scalable-domains-foobarz-applications.json"), // 1.2 - POST_JEKYLL_DOMAINS_FOOBARZ_APPLICATIONS("post-jekyll-domains-foobarz-applications.json"), // 1.2 - POST_ADD_ENVIRONMENT_VARIABLE_FOO_TO_FOOBARZ_SPRINGEAP6("post_add_environment_variable_foo_to_foobarz_springeap6.json"),//1.2 - POST_ADD_2_ENVIRONMENT_VARIABLES_TO_FOOBARZ_SPRINGEAP6("post_add_2_environment_variables_to_foobarz_springeap6.json"),//1.2 - GET_2_ENVIRONMENT_VARIABLES_FOOBARZ_SPRINGEAP6("get_two_environment_variabls_foobarz_springeap6.json"),//1.2 - GET_1_ENVIRONMENT_VARIABLES_FOOBARZ_SPRINGEAP6("get_1_environment_variables_foobarz_springeap6.json"), - GET_0_ENVIRONMENT_VARIABLES_FOOBARZ_SPRINGEAP6("get_0_environment_variables_foobarz_springeap6.json"), - GET_4_ENVIRONMENT_VARIABLES_FOOBARZ_SPRINGEAP6("get_four_environment_variables_foobarz_springeap6.json"), - PUT_FOO_ENVIRONMENT_VARIABLE_FOOBARZ_SPRINGEAP6("put_foo_environment_variable_foobarz_springeap6.json"),//1.2 - - // domain - DELETE_DOMAINS_FOOBAR_KO("delete-domains-foobar_ko.json"), // 1.2 - DELETE_DOMAINS_FOOBARZ("delete-domains-foobarz.json"), // 1.2 - DELETE_DOMAINS_FOOBARZ_KO_EXISTINGAPPS("delete-domains-foobarz_ko-existingapps.json"), // 1.2 - GET_DOMAINS_FOOBAR_KO_NOTFOUND("get-domains-foobar_ko-notfound.json"), // 1.2 - GET_DOMAINS_FOOBARZ("get-domains-foobarz.json"), // 1.2 - GET_DOMAINS_FOOBARS("get-domains-foobars.json"), // 1.2 - GET_DOMAINS("get-domains.json"), // 1.2 - GET_DOMAINS_EMPTY("get-domains_empty.json"), // 1.2 - POST_FOOBAR_DOMAINS_KO_INUSE("post-foobar-domains_ko-inuse.json"), // 1.2 - - // user - GET_API("get-api.json"), // 1.2 - GET_USER("get-user.json"), // 1.2 - GET_USER_KEYS_2KEYS("get-user-keys_2keys.json"), // 1.2 - GET_USER_KEYS_NONE("get-user-keys_none.json"), // 1.2 - GET_USER_KEYS_1KEY("get-user-keys_1key.json"), // 1.2 - PUT_BBCC_DSA_USER_KEYS_SOMEKEY("put-bbcc-dsa-user-keys-somekey.json"), // 1.2 - - // cartridges - GET_CARTRIDGES("get-cartridges.json"), // 1.2 - - // links - LINKS_UNKNOWN_LINKPARAMETERTYPE("links-unknown-linkparametertype.json"); // 1.2 - - private static final String SAMPLES_FOLDER = "/samples/"; - - private String filePath; - - Samples(String fileName) { - this.filePath = SAMPLES_FOLDER + fileName; - } - - public String getContentAsString() { - String content = null; - try { - final InputStream contentStream = Samples.class.getResourceAsStream(filePath); - content = IOUtils.toString(contentStream); - } catch (Throwable e) { - e.printStackTrace(); - throw new RuntimeException("Could not read file " + filePath + ": " + e.getMessage()); - } - return content; - } -} diff --git a/src/test/java/com/openshift/client/utils/StandaloneCartridgeAssert.java b/src/test/java/com/openshift/client/utils/StandaloneCartridgeAssert.java deleted file mode 100644 index 41805cf5..00000000 --- a/src/test/java/com/openshift/client/utils/StandaloneCartridgeAssert.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.utils; - -import com.openshift.client.cartridge.IStandaloneCartridge; - -/** - * @author André Dietisheim - */ -public class StandaloneCartridgeAssert extends CartridgeAssert { - - public StandaloneCartridgeAssert(IStandaloneCartridge cartridge) { - super(cartridge); - } -} diff --git a/src/test/java/com/openshift/client/utils/StateVerifier.java b/src/test/java/com/openshift/client/utils/StateVerifier.java deleted file mode 100644 index 88647e42..00000000 --- a/src/test/java/com/openshift/client/utils/StateVerifier.java +++ /dev/null @@ -1,28 +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.utils; - -import org.junit.rules.Verifier; -import org.junit.runners.model.FrameworkMethod; -import org.junit.runners.model.Statement; - -/** - * @author Xavier Coulon - * - */ -public class StateVerifier extends Verifier { - - @Override - public Statement apply(Statement base, FrameworkMethod method, Object target) { - return super.apply(base, method, target); - } - -} diff --git a/src/test/java/com/openshift/client/utils/StringUtils.java b/src/test/java/com/openshift/client/utils/StringUtils.java deleted file mode 100644 index 5a59f4ff..00000000 --- a/src/test/java/com/openshift/client/utils/StringUtils.java +++ /dev/null @@ -1,22 +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.utils; - -/** - * @author Andre Dietisheim - */ -public class StringUtils { - - public static String createRandomString() { - return String.valueOf(System.currentTimeMillis()); - } - -} diff --git a/src/test/java/com/openshift/client/utils/TestConnectionFactory.java b/src/test/java/com/openshift/client/utils/TestConnectionFactory.java deleted file mode 100644 index 7d1e045a..00000000 --- a/src/test/java/com/openshift/client/utils/TestConnectionFactory.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.utils; - -import java.io.FileNotFoundException; -import java.io.IOException; - -import com.openshift.client.IHttpClient; -import com.openshift.client.IOpenShiftConnection; -import com.openshift.client.NoopSSLCertificateCallback; -import com.openshift.client.OpenShiftConnectionFactory; -import com.openshift.client.OpenShiftException; - -/** - * User Builder, used to establish a connection and retrieve a user. - * - * @author Andre Dietisheim - * - */ -public class TestConnectionFactory extends OpenShiftConnectionFactory { - - public IOpenShiftConnection getConnection() throws FileNotFoundException, IOException, OpenShiftException { - - OpenShiftTestConfiguration configuration = new OpenShiftTestConfiguration(); - - return getConnection( - configuration.getClientId() - , configuration.getRhlogin() - , configuration.getPassword() - , null - , null - , configuration.getLibraServer() - , new NoopSSLCertificateCallback()); - } - - public IOpenShiftConnection getConnection(String password, String server, IHttpClient httpClient) throws FileNotFoundException, IOException, OpenShiftException { - OpenShiftTestConfiguration configuration = new OpenShiftTestConfiguration(); - return getConnection( - configuration.getClientId(), - configuration.getRhlogin(), - password, - server, - httpClient); - } - - public IOpenShiftConnection getConnection(IHttpClient httpClient) throws FileNotFoundException, IOException, OpenShiftException { - OpenShiftTestConfiguration configuration = new OpenShiftTestConfiguration(); - return getConnection(configuration.getPassword(), configuration.getLibraServer(), httpClient); - } -} diff --git a/src/test/java/com/openshift/client/utils/UrlEndsWithMatcher.java b/src/test/java/com/openshift/client/utils/UrlEndsWithMatcher.java deleted file mode 100644 index d07e3d66..00000000 --- a/src/test/java/com/openshift/client/utils/UrlEndsWithMatcher.java +++ /dev/null @@ -1,56 +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.utils; - -import static org.mockito.Matchers.argThat; - -import java.net.URL; - -import org.mockito.ArgumentMatcher; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -/** - * Custom Mockito Matcher that verifies that the given URL ends with a given - * suffix. - * - * @author Xavier Coulon - * - */ -public class UrlEndsWithMatcher extends ArgumentMatcher { - - private static final Logger LOGGER = LoggerFactory.getLogger(UrlEndsWithMatcher.class); - - private final String urlSuffix; - - private UrlEndsWithMatcher(final String urlSuffix) { - this.urlSuffix = urlSuffix; - } - - @Override - public boolean matches(Object argument) { - if (argument == null) { - return false; - } - URL url = (URL) argument; - final boolean match = url.toExternalForm().endsWith(urlSuffix); - if (match) { - LOGGER.trace("Matching {}", urlSuffix); - } - return match; - } - - /** More friendly way to call the {@link UrlEndsWithMatcher}. */ - public static URL urlEndsWith(String suffix) { - return argThat(new UrlEndsWithMatcher(suffix)); - } - -} \ No newline at end of file diff --git a/src/test/java/com/openshift/internal/client/APIResourceIntegrationTest.java b/src/test/java/com/openshift/internal/client/APIResourceIntegrationTest.java deleted file mode 100644 index 0a723de3..00000000 --- a/src/test/java/com/openshift/internal/client/APIResourceIntegrationTest.java +++ /dev/null @@ -1,125 +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 static org.fest.assertions.Assertions.assertThat; - -import java.io.IOException; -import java.util.List; - -import org.junit.Before; -import org.junit.Test; - -import com.openshift.client.IDomain; -import com.openshift.client.IOpenShiftConnection; -import com.openshift.client.OpenShiftException; -import com.openshift.client.cartridge.IEmbeddableCartridge; -import com.openshift.client.cartridge.IStandaloneCartridge; -import com.openshift.client.utils.DomainAssert; -import com.openshift.client.utils.DomainTestUtils; -import com.openshift.client.utils.TestConnectionFactory; - -/** - * @author André Dietisheim - */ -public class APIResourceIntegrationTest extends TestTimer { - - private IOpenShiftConnection connection; - - @Before - public void setUp() throws OpenShiftException, IOException { - this.connection = new TestConnectionFactory().getConnection(); - } - - @Test - public void shouldListEmbeddableCartridges() throws OpenShiftException { - // pre-condition - - // operation - final List cartridges = connection.getEmbeddableCartridges(); - - // verification - assertThat(cartridges).isNotEmpty(); - } - - @Test - public void shouldListStandaloneCartridges() throws OpenShiftException { - // pre-condition - - // operation - final List cartridges = connection.getStandaloneCartridges(); - - // verification - assertThat(cartridges).isNotEmpty(); - } - - @Test - public void shouldHaveDescriptionInAvailableEmbeddableCartridges() throws OpenShiftException { - // pre-condition - - // operation - final List cartridges = connection.getEmbeddableCartridges(); - - // verification - assertThat(cartridges).onProperty("description").isNotEmpty(); - } - - @Test - public void shouldHaveDescriptionInAvailableStandaloneCartridges() throws OpenShiftException { - // pre-condition - - // operation - final List cartridges = connection.getStandaloneCartridges(); - - // verification - assertThat(cartridges).onProperty("description").isNotEmpty(); - } - - @Test - public void shouldHaveDisplayNameInAvailableEmbeddableCartridges() throws OpenShiftException { - // pre-condition - - // operation - final List cartridges = connection.getEmbeddableCartridges(); - - // verification - assertThat(cartridges).onProperty("displayName").isNotEmpty(); - } - - @Test - public void shouldHaveDisplayNameInAvailableStandaloneCartridges() throws OpenShiftException { - // pre-condition - - // operation - final List cartridges = connection.getStandaloneCartridges(); - - // verification - assertThat(cartridges).onProperty("displayName").isNotEmpty(); - } - - @Test - public void shouldShowDomain() throws Exception { - // pre-condition - IDomain domain = DomainTestUtils.ensureHasDomain(connection.getUser()); - assertThat(domain).isNotNull(); - String domainId = domain.getId(); - assertThat(domainId).isNotEmpty(); - IOpenShiftConnection connection = new TestConnectionFactory().getConnection(); - APIResource api = ((APIResource) connection); - - // operation - IDomain retrievedDomain = api.showDomain(domainId); - - // verification - new DomainAssert(retrievedDomain).hasId(domainId); - } - -} diff --git a/src/test/java/com/openshift/internal/client/APIResourceTest.java b/src/test/java/com/openshift/internal/client/APIResourceTest.java deleted file mode 100644 index 43ddefed..00000000 --- a/src/test/java/com/openshift/internal/client/APIResourceTest.java +++ /dev/null @@ -1,76 +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 static org.fest.assertions.Assertions.assertThat; - -import java.util.List; - -import org.junit.Before; -import org.junit.Test; - -import com.openshift.client.IOpenShiftConnection; -import com.openshift.client.cartridge.IEmbeddableCartridge; -import com.openshift.client.cartridge.IStandaloneCartridge; -import com.openshift.client.utils.Cartridges; -import com.openshift.client.utils.TestConnectionFactory; - -/** - * @author Xavier Coulon - * @author Andre Dietisheim - */ -public class APIResourceTest extends TestTimer { - - private IOpenShiftConnection connection; - - @Before - public void setup() throws Throwable { - connection = new TestConnectionFactory().getConnection(new HttpClientMockDirector().client()); - } - - @Test - public void shouldLoadListOfStandaloneCartridges() throws Throwable { - // pre-conditions - // operation - final List cartridges = connection.getStandaloneCartridges(); - // verifications - assertThat(cartridges) - .hasSize(15) - .onProperty("name") - .contains(Cartridges.NODEJS_06_NAME - , Cartridges.JBOSSAS_7_NAME - , Cartridges.JBOSSEAP_6_NAME - , Cartridges.JBOSSEWS_1_NAME - , Cartridges.JBOSSEWS_2_NAME) - .excludes(Cartridges.MONGODB_22_NAME - , Cartridges.MYSQL_51_NAME - , Cartridges.SWITCHYARD_06_NAME); - } - - @Test - public void shouldListEmbeddableCartridges() throws Throwable { - // pre-conditions - // operation - final List cartridges = connection.getEmbeddableCartridges(); - // verifications - assertThat(cartridges) - .hasSize(11) - .onProperty("name") - .excludes(Cartridges.NODEJS_06_NAME - , Cartridges.JBOSSAS_7_NAME - , Cartridges.JBOSSEAP_6_NAME - , Cartridges.JBOSSEWS_1_NAME - , Cartridges.JBOSSEWS_2_NAME) - .contains(Cartridges.MONGODB_22_NAME - , Cartridges.MYSQL_51_NAME - , Cartridges.SWITCHYARD_06_NAME); - } -} diff --git a/src/test/java/com/openshift/internal/client/ApplicationResourceIntegrationTest.java b/src/test/java/com/openshift/internal/client/ApplicationResourceIntegrationTest.java deleted file mode 100755 index e7af75b1..00000000 --- a/src/test/java/com/openshift/internal/client/ApplicationResourceIntegrationTest.java +++ /dev/null @@ -1,460 +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 static org.fest.assertions.Assertions.assertThat; -import static org.junit.Assert.assertTrue; -import static org.junit.Assert.fail; - -import java.io.IOException; -import java.net.MalformedURLException; -import java.util.Collection; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import org.junit.Before; -import org.junit.Test; - -import com.openshift.client.ApplicationScale; -import com.openshift.client.IApplication; -import com.openshift.client.IDomain; -import com.openshift.client.IEnvironmentVariable; -import com.openshift.client.IGearGroup; -import com.openshift.client.IOpenShiftConnection; -import com.openshift.client.IUser; -import com.openshift.client.OpenShiftEndpointException; -import com.openshift.client.OpenShiftException; -import com.openshift.client.cartridge.IStandaloneCartridge; -import com.openshift.client.cartridge.selector.LatestVersionOf; -import com.openshift.client.utils.ApplicationTestUtils; -import com.openshift.client.utils.DomainTestUtils; -import com.openshift.client.utils.GearGroupsAssert; -import com.openshift.client.utils.StringUtils; -import com.openshift.client.utils.TestConnectionFactory; - -/** - * @author André Dietisheim - * @author Syed Iqbal - * @author Martes G Wigglesworth - */ -public class ApplicationResourceIntegrationTest extends TestTimer { - - private static final long WAIT_TIMEOUT = 3 * 60 * 1000; - - private IUser user; - private IDomain domain; - - @Before - public void setUp() throws Exception { - IOpenShiftConnection connection = new TestConnectionFactory().getConnection(); - this.user = connection.getUser(); - this.domain = DomainTestUtils.ensureHasDomain(user); - } - - @Test - public void shouldReturnGears() throws Exception { - // pre-conditions - ApplicationTestUtils.destroyIfMoreThan(2, domain); - - // operation - String applicationName = - ApplicationTestUtils.createRandomApplicationName(); - IStandaloneCartridge jbossas = LatestVersionOf.jbossAs().get(user); - IApplication application = - domain.createApplication(applicationName, jbossas); - - Collection gearGroups = application.getGearGroups(); - assertThat(new GearGroupsAssert(gearGroups)).hasSize(1); - assertThat(new GearGroupsAssert(gearGroups)) - .assertGroup(0).hasUUID().hasGears() - .assertGear(0).hasId().hasState(); - } - - @Test - public void shouldDestroyApplication() throws Exception { - // pre-condition - IApplication application = ApplicationTestUtils.getOrCreateApplication(domain); - assertThat(application.getName()).isNotEmpty(); - - // operation - application.destroy(); - - // verification - assertThat(domain.hasApplicationByName(application.getName())).isFalse(); - - } - - @Test - public void shouldStopApplication() throws Exception { - // pre-condition - IApplication application = ApplicationTestUtils.getOrCreateApplication(domain); - - // operation - application.stop(); - } - - @Test - public void shouldStartStoppedApplication() throws Exception { - // pre-condition - IApplication application = ApplicationTestUtils.getOrCreateApplication(domain); - application.stop(); - - // operation - application.start(); - } - - @Test - public void shouldStartStartedApplication() throws Exception { - // pre-condition - IApplication application = ApplicationTestUtils.getOrCreateApplication(domain); - application.start(); - - // operation - application.start(); - - // verification - // there's currently no API to verify the application state - } - - @Test - public void shouldStopStoppedApplication() throws Exception { - // pre-condition - IApplication application = ApplicationTestUtils.getOrCreateApplication(domain); - application.stop(); - - // operation - application.stop(); - - // verification - // there's currently no API to verify the application state - } - - @Test - public void shouldRestartStartedApplication() throws Exception { - // pre-condition - IApplication application = ApplicationTestUtils.getOrCreateApplication(domain); - application.start(); - - // operation - application.restart(); - - // verification - // there's currently no API to verify the application state - } - - @Test - public void shouldRestartStoppedApplication() throws Exception { - // pre-condition - IApplication application = ApplicationTestUtils.getOrCreateApplication(domain); - application.stop(); - - // operation - application.restart(); - - // verification - // there's currently no API to verify the application state - } - - @Test(expected = OpenShiftEndpointException.class) - public void shouldNotScaleDownIfNotScaledUpApplication() throws Throwable { - // pre-condition - ApplicationTestUtils.silentlyDestroyAllApplications(domain); - IApplication application = domain.createApplication( - DomainTestUtils.createRandomName(), LatestVersionOf.jbossAs().get(user), ApplicationScale.NO_SCALE); - - // operation - application.scaleDown(); - - // verification - // there's currently no API to verify the application state - } - - @Test(expected = OpenShiftEndpointException.class) - public void shouldNotScaleUpApplication() throws Throwable { - // pre-condition - ApplicationTestUtils.silentlyDestroyAllApplications(domain); - IApplication application = domain.createApplication( - DomainTestUtils.createRandomName(), LatestVersionOf.jbossAs().get(user), ApplicationScale.NO_SCALE); - - // operation - application.scaleUp(); - - // verification - // there's currently no API to verify the application state - } - - public void shouldScaleUpApplication() throws Throwable { - // pre-condition - ApplicationTestUtils.silentlyDestroyAllApplications(domain); - IApplication application = domain.createApplication( - DomainTestUtils.createRandomName(), LatestVersionOf.jbossAs().get(user), ApplicationScale.SCALE); - - // operation - application.scaleUp(); - - // verification - // there's currently no API to verify the application state - } - - @Test - public void shouldScaleDownApplication() throws Throwable { - // pre-condition - ApplicationTestUtils.silentlyDestroyAllApplications(domain); - IApplication application = domain.createApplication( - DomainTestUtils.createRandomName(), LatestVersionOf.jbossAs().get(user), ApplicationScale.SCALE); - application.scaleUp(); - - // operation - application.scaleDown(); - - // verification - // there's currently no API to verify the application state - } - - @Test - public void shouldAddAliasToApplication() throws Throwable { - // pre-condition - IApplication application = ApplicationTestUtils.getOrCreateApplication(domain); - String alias = createAlias(); - // operation - - application.addAlias(alias); - - // verification - assertThat(application.getAliases()).contains(alias); - } - - @Test - public void shouldRemoveAliasOfApplication() throws Throwable { - // pre-condition - IApplication application = ApplicationTestUtils.getOrCreateApplication(domain); - String alias = createAlias(); - application.addAlias(alias); - assertThat(application.getAliases()).contains(alias); - - // operation - application.removeAlias(alias); - - // verification - assertThat(alias).isNotIn(application.getAliases()); - } - - @Test(expected = OpenShiftEndpointException.class) - public void shouldNotAddExistingAliasToApplication() throws Throwable { - // pre-condition - IApplication application = ApplicationTestUtils.getOrCreateApplication(domain); - String alias = String.valueOf(System.currentTimeMillis()); - application.addAlias(alias); - assertThat(application.getAliases()).contains(alias); - - // operation - application.addAlias(alias); - } - - /** - * https://issues.jboss.org/browse/JBIDE-13569 - */ - @Test - public void shouldWaitForApplication() throws OpenShiftException, MalformedURLException, IOException { - // pre-condition - ApplicationTestUtils.destroyIfMoreThan(2, domain); - long startTime = System.currentTimeMillis(); - IApplication application = domain.createApplication(StringUtils.createRandomString(), LatestVersionOf.jbossAs().get(user)); - - // operation - boolean successfull = application.waitForAccessible(WAIT_TIMEOUT); - - if (successfull) { - assertTrue(System.currentTimeMillis() <= startTime + WAIT_TIMEOUT); - } else { - assertTrue(System.currentTimeMillis() >= startTime + WAIT_TIMEOUT); - } - } - - /** - * https://issues.jboss.org/browse/JBIDE-14721 - */ - private String createAlias() { - return new StringBuilder(String.valueOf(System.currentTimeMillis())) - // valid alias is "/\A[a-z0-9]+(-[a-z0-9]+)*(\.[a-z0-9]+(-[a-z0-9]+)*)+\z/" - .append('.') - .append('1') - .toString(); - } - - @Test - public void shouldAddOneEnvironmentVariable() throws Throwable{ - //pre-conditions - IApplication application = ApplicationTestUtils.getOrCreateApplication(domain); - - //operation - IEnvironmentVariable environmentVariable = application.addEnvironmentVariable("FOO","123"); - - //vaerification - assertThat(environmentVariable).isNotNull(); - assertThat(environmentVariable.getName()).isEqualTo("FOO"); - assertThat(environmentVariable.getValue()).isEqualTo("123"); - } - - @Test - public void shouldAddEnvironmentVariables() throws Throwable { - // pre-conditions - IApplication application = ApplicationTestUtils.getOrCreateApplication(domain); - ApplicationTestUtils.destroyAllEnvironmentVariables(application); - - // operation - Map environmentVariables = new HashMap(); - environmentVariables.put("X_NAME", "X_VALUE"); - environmentVariables.put("Y_NAME", "Y_VALUE"); - Map variables = application.addEnvironmentVariables(environmentVariables); - - // verification - assertThat(variables.size()).isEqualTo(2); - } - - @Test - public void shouldUpdateOneEnvironmentVariable() throws Throwable{ - //pre-conditions - IApplication application = ApplicationTestUtils.getOrCreateApplication(domain); - - //operation - IEnvironmentVariable environmentVariable = application.addEnvironmentVariable("FOO","123"); - assertThat(environmentVariable.getValue()).isEqualTo("123"); - application.updateEnvironmentVariable("FOO","321"); - - //vaerification - assertThat(environmentVariable).isNotNull(); - assertThat(environmentVariable.getName()).isEqualTo("FOO"); - assertThat(environmentVariable.getValue()).isEqualTo("321"); - } - - @Test - public void shouldGetEnvironmentVariableByName() throws Throwable { - // pre-conditions - IApplication application = ApplicationTestUtils.getOrCreateApplication(domain); - ApplicationTestUtils.destroyAllEnvironmentVariables(application); - application.addEnvironmentVariable("Z_NAME", "Z_VALUE"); - - // operation - IEnvironmentVariable environmentVariable = application.getEnvironmentVariable("Z_NAME"); - - // verification - assertThat(environmentVariable).isNotNull(); - assertThat(environmentVariable.getName()).isEqualTo("Z_NAME"); - assertThat(environmentVariable.getValue()).isEqualTo("Z_VALUE"); - } - - @Test - public void shouldGetEnvironmentVariableValueByName() throws Throwable { - // pre-conditions - IApplication application = ApplicationTestUtils.getOrCreateApplication(domain); - ApplicationTestUtils.destroyAllEnvironmentVariables(application); - application.addEnvironmentVariable("Z_NAME", "Z_VALUE"); - - // verification - assertTrue(application.hasEnvironmentVariable("Z_NAME")); - assertThat(application.getEnvironmentVariableValue("Z_NAME")).isEqualTo("Z_VALUE"); - } - - @Test - public void shouldRemoveEnvironmentVariable() throws Throwable{ - //pre-conditions - IApplication application = ApplicationTestUtils.getOrCreateApplication(domain); - ApplicationTestUtils.destroyAllEnvironmentVariables(application); - IEnvironmentVariable environmentVariable = application.addEnvironmentVariable("FOOBAR","123"); - assertThat(application.getEnvironmentVariables().size()).isEqualTo(1); - - //operation - application.removeEnvironmentVariable(environmentVariable.getName()); - - //verification - assertThat(application.getEnvironmentVariables().size()).isEqualTo(0); - assertThat(application.hasEnvironmentVariable("FOOBAR")).isFalse(); - } - - @Test - public void shouldRemoveEnvironmentVariableByInstance() throws Throwable{ - //pre-conditions - IApplication application = ApplicationTestUtils.getOrCreateApplication(domain); - ApplicationTestUtils.destroyAllEnvironmentVariables(application); - IEnvironmentVariable environmentVariable = application.addEnvironmentVariable("FOOBAR","123"); - assertThat(application.getEnvironmentVariables().size()).isEqualTo(1); - - //operation - application.removeEnvironmentVariable(environmentVariable); - - //verification - assertThat(application.getEnvironmentVariables().size()).isEqualTo(0); - assertThat(application.hasEnvironmentVariable("FOOBAR")).isFalse(); - } - - @Test - public void shouldNotAddExistingEnvironmentVariableToApplication() throws Throwable { - // precondition - IApplication application = ApplicationTestUtils.getOrCreateApplication(domain); - ApplicationTestUtils.destroyAllEnvironmentVariables(application); - application.addEnvironmentVariable("A_NAME", "A_VALUE"); - - // operation - try { - application.addEnvironmentVariable("A_NAME", "A_NEW_VALUE"); - fail("Should not be able to add same variable a 2nd time"); - } catch(OpenShiftException e) { - // success - } - } - - - @Test - public void shouldGetMapOfAllEnvironmentVariables() throws Throwable { - // preconditions - ApplicationTestUtils.silentlyDestroyAllApplications(domain); - IApplication application = ApplicationTestUtils.getOrCreateApplication(domain); - Map environmentVariableMap = new HashMap(); - environmentVariableMap.put("X_NAME", "X_VALUE"); - environmentVariableMap.put("Y_NAME", "Y_VALUE"); - environmentVariableMap.put("Z_NAME", "Z_VALUE"); - application.addEnvironmentVariables(environmentVariableMap); - - // operation - Map environmentVariables = application.getEnvironmentVariables(); - - // verifications - assertThat(environmentVariables).hasSize(3); - } - - - @Test - public void shouldLoadEmptyMapOfEnvironmentVariables() throws Throwable{ - //precondition - ApplicationTestUtils.silentlyDestroyAllApplications(domain); - IApplication application = ApplicationTestUtils.getOrCreateApplication(domain); - - //operation - Map environmentVariables = application.getEnvironmentVariables(); - - //verifications - assertThat(environmentVariables).isEmpty(); - } - - @Test - public void shouldCanGetCanUpdateEnvironmentVariables() throws Throwable { - // pre-conditions - IApplication application = ApplicationTestUtils.getOrCreateApplication(domain); - - // operation - // verifications - assertThat(application.canUpdateEnvironmentVariables()).isTrue(); - //verify list environment variables - assertThat(application.canGetEnvironmentVariables()).isTrue(); - } -} diff --git a/src/test/java/com/openshift/internal/client/ApplicationResourceTest.java b/src/test/java/com/openshift/internal/client/ApplicationResourceTest.java deleted file mode 100644 index 64539ff3..00000000 --- a/src/test/java/com/openshift/internal/client/ApplicationResourceTest.java +++ /dev/null @@ -1,792 +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 static com.openshift.client.utils.Cartridges.FOREMAN_DOWNLOAD_URL; -import static com.openshift.client.utils.Cartridges.MYSQL_51_NAME; -import static com.openshift.client.utils.Samples.*; -import static org.fest.assertions.Assertions.assertThat; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertTrue; -import static org.junit.Assert.fail; - -import java.net.SocketTimeoutException; -import java.net.URL; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import org.junit.Before; -import org.junit.Ignore; -import org.junit.Test; -import org.mockito.Mockito; - -import com.openshift.client.IApplication; -import com.openshift.client.IApplicationPortForwarding; -import com.openshift.client.IDomain; -import com.openshift.client.IEnvironmentVariable; -import com.openshift.client.IField; -import com.openshift.client.OpenShiftEndpointException; -import com.openshift.client.OpenShiftException; -import com.openshift.client.OpenShiftTimeoutException; -import com.openshift.client.cartridge.EmbeddableCartridge; -import com.openshift.client.cartridge.IEmbeddableCartridge; -import com.openshift.client.cartridge.IEmbeddedCartridge; -import com.openshift.client.utils.CartridgeAssert; -import com.openshift.client.utils.Cartridges; -import com.openshift.client.utils.EmbeddedCartridgeAssert; -import com.openshift.client.utils.MessageAssert; -import com.openshift.client.utils.Samples; -import com.openshift.internal.client.httpclient.HttpClientException; -import com.openshift.internal.client.httpclient.InternalServerErrorException; - -/** - * @author Xavier Coulon - * @author Andre Dietisheim - * @author Nicolas Spano - * @author Syed Iqbal - */ -public class ApplicationResourceTest extends TestTimer { - - private IDomain domain; - private HttpClientMockDirector mockDirector; - - @Before - public void setup() throws Throwable { - this.mockDirector = new HttpClientMockDirector() - .mockGetDomains(GET_DOMAINS) - .mockGetApplications("foobarz", GET_DOMAINS_FOOBARZ_APPLICATIONS_1EMBEDDED) - .mockGetApplication("foobarz", "springeap6", GET_DOMAINS_FOOBARZ_APPLICATIONS_SPRINGEAP6_1EMBEDDED) - .mockGetApplicationCartridges("foobarz", "springeap6", - GET_DOMAINS_FOOBARZ_APPLICATIONS_SPRINGEAP6_CARTRIDGES_1EMBEDDED); - this.domain = mockDirector.getDomain("foobarz"); - assertThat(domain).isNotNull(); - } - - @Test - public void shouldDestroyApplication() throws Throwable { - // pre-conditions - assertThat(domain).isNotNull(); - final IApplication app = domain.getApplicationByName("springeap6"); - assertThat(app).isNotNull(); - - // operation - app.destroy(); - - // verifications - assertThat(domain.getApplications()).hasSize(1).excludes(app); - } - - @Test - public void shouldStopApplication() throws Throwable { - // pre-conditions - mockDirector.mockPostApplicationEvent( - "foobarz", "springeap6", POST_STOP_DOMAINS_FOOBARZ_APPLICATIONS_SPRINGEAP6_EVENT); - final IApplication app = domain.getApplicationByName("springeap6"); - - // operation - app.stop(); - - // verifications - mockDirector.verifyPostApplicationEvent("foobarz", "springeap6"); - } - - @Test - public void shouldForceStopApplication() throws Throwable { - // pre-conditions - mockDirector - .mockPostApplicationEvent( - "honkabonka2", "springeap6", POST_STOP_DOMAINS_FOOBARZ_APPLICATIONS_SPRINGEAP6_EVENT); - final IApplication app = domain.getApplicationByName("springeap6"); - - // operation - app.stop(true); - - // verifications - mockDirector.verifyPostApplicationEvent("foobarz", "springeap6"); - } - - @Test - public void shouldStartApplication() throws Throwable { - // pre-conditions - mockDirector - .mockPostApplicationEvent( - "honkabonka2", "springeap6", POST_STOP_DOMAINS_FOOBARZ_APPLICATIONS_SPRINGEAP6_EVENT); - final IApplication app = domain.getApplicationByName("springeap6"); - - // operation - app.start(); - - // verifications - mockDirector.verifyPostApplicationEvent("foobarz", "springeap6"); - } - - @Test - public void shouldRestartApplication() throws Throwable { - // pre-conditions - mockDirector - .mockPostApplicationEvent( - "honkabonka2", "springeap6", POST_STOP_DOMAINS_FOOBARZ_APPLICATIONS_SPRINGEAP6_EVENT); - final IApplication app = domain.getApplicationByName("springeap6"); - - // operation - app.restart(); - - // verifications - mockDirector.verifyPostApplicationEvent("foobarz", "springeap6"); - } - - @Ignore("Need higher quotas on stg") - @Test - public void shouldScaleDownApplication() throws Throwable { - } - - @Test - public void shouldNotScaleDownApplication() throws Throwable { - // pre-conditions - mockDirector - .mockPostApplicationEvent( - "foobarz", - "springeap6", - new InternalServerErrorException( - "Failed to add event scale-down to application springeap6 due to: Cannot scale a non-scalable application")); - final IApplication app = domain.getApplicationByName("springeap6"); - - // operation - try { - app.scaleDown(); - fail("Expected an exception here.."); - } catch (OpenShiftEndpointException e) { - - // verifications - assertThat(e.getCause()).isInstanceOf(InternalServerErrorException.class); - } - - mockDirector.verifyPostApplicationEvent("foobarz", "springeap6"); - } - - @Ignore("Need higher quotas on stg") - @Test - public void shouldScaleUpApplication() throws Throwable { - } - - @Test - public void shouldNotScaleUpApplication() throws Throwable { - // pre-conditions - mockDirector - .mockPostApplicationEvent( - "foobarz", "springeap6", POST_STOP_DOMAINS_FOOBARZ_APPLICATIONS_SPRINGEAP6_EVENT) - .mockPostApplicationEvent( - "foobarz", - "springeap6", - new InternalServerErrorException( - "Failed to add event scale-up to application springeap6 due to: Cannot scale a non-scalable application")); - final IApplication app = domain.getApplicationByName("springeap6"); - - // operation - try { - app.scaleUp(); - fail("Expected an exception here.."); - } catch (OpenShiftEndpointException e) { - - // verifications - assertThat(e.getCause()).isInstanceOf(InternalServerErrorException.class); - } - - mockDirector.verifyPostApplicationEvent("foobarz", "springeap6"); - } - - @Test - public void shouldAddAliasToApplication() throws Throwable { - // pre-conditions - mockDirector.mockPostApplicationEvent( - "foobarz", "springeap6", GET_DOMAINS_FOOBARZ_APPLICATIONS_SPRINGEAP6_2ALIAS); - final IApplication app = domain.getApplicationByName("springeap6"); - assertThat(app.getAliases()).hasSize(1).contains("jbosstools.org"); - - // operation - app.addAlias("redhat.com"); - - // verifications - mockDirector.verifyPostApplicationEvent("foobarz", "springeap6"); - assertThat(app.getAliases()).hasSize(2).contains("jbosstools.org", "redhat.com"); - } - - @Test - public void shouldNotAddExistingAliasToApplication() throws Throwable { - // pre-conditions - mockDirector - .mockPostApplicationEvent( - "foobarz", - "springeap6", - new InternalServerErrorException( - "Failed to add event add-alias to application springeap6 due to: Alias 'jbosstools.org' already exists for 'springeap6'")); - final IApplication app = domain.getApplicationByName("springeap6"); - assertThat(app.getAliases()).hasSize(1).contains("jbosstools.org"); - - // operation - try { - app.addAlias("jbosstools.org"); - fail("Expected an exception.."); - } catch (OpenShiftEndpointException e) { - - // verifications - assertThat(e.getCause()).isInstanceOf(InternalServerErrorException.class); - } - assertThat(app.getAliases()).hasSize(1).contains("jbosstools.org"); - mockDirector.verifyPostApplicationEvent("foobarz", "springeap6"); - } - - @Test - public void shouldRemoveAliasFromApplication() throws Throwable { - // pre-conditions - mockDirector - .mockPostApplicationEvent( - "foobarz", "springeap6", GET_DOMAINS_FOOBARZ_APPLICATIONS_SPRINGEAP6_0ALIAS); - final IApplication app = domain.getApplicationByName("springeap6"); - assertThat(app.getAliases()).hasSize(1).contains("jbosstools.org"); - - // operation - app.removeAlias("jbosstools.org"); - - // verifications - mockDirector.verifyPostApplicationEvent("foobarz", "springeap6"); - assertThat(app.getAliases()).hasSize(0); - } - - @Test - public void shouldNotRemoveAliasFromApplication() throws Throwable { - // pre-conditions - mockDirector - .mockPostApplicationEvent( - "foobarz", - "springeap6", - new InternalServerErrorException( - "Failed to add event remove-alias to application springeap6 due to: Alias 'openshift-origin.org' does not exist for 'springeap6'")); - final IApplication app = domain.getApplicationByName("springeap6"); - assertThat(app).isNotNull(); - assertThat(app.getAliases()).hasSize(1).contains("jbosstools.org"); - // operation - try { - app.removeAlias("openshift-origin.org"); - fail("Expected an exception.."); - } catch (OpenShiftEndpointException e) { - - // verifications - assertThat(e.getCause()).isInstanceOf(InternalServerErrorException.class); - } - assertThat(app.getAliases()).hasSize(1).contains("jbosstools.org"); - mockDirector.verifyPostApplicationEvent("foobarz", "springeap6"); - } - - @Test - public void shouldListExistingCartridges() throws Throwable { - // pre-conditions - mockDirector - .mockGetApplications("foobarz", - GET_DOMAINS_FOOBARZ_APPLICATIONS_2EMBEDDED) - .mockGetApplicationCartridges("foobarz", "springeap6", - GET_DOMAINS_FOOBARZ_APPLICATIONS_SPRINGEAP6_CARTRIDGES_2EMBEDDED); - - final IApplication app = domain.getApplicationByName("springeap6"); - - // operation - final List embeddedCartridges = app.getEmbeddedCartridges(); - - // verifications - assertThat(embeddedCartridges).hasSize(2); - } - - @Test - public void shouldGetEmbeddableCartridgeByCartridge() throws Throwable { - // pre-conditions - // operation - final IApplication app = domain.getApplicationByName("springeap6"); - IEmbeddedCartridge mongo = app.getEmbeddedCartridge(Cartridges.mongodb22()); - // verifications - // embedded cartridge should get updated with name, description and - // display name - new EmbeddedCartridgeAssert(mongo); - } - - @Test - public void shouldGetDownloadableEmbeddableCartridgeByCartridge() throws Throwable { - // pre-conditions - mockDirector - .mockGetApplications("foobarz", - Samples.GET_DOMAINS_FOOBARZ_APPLICATIONS_SPRINGEAP_SCALABLE_DOWNLOADABLECART); - - IDomain domain = mockDirector.getDomain("foobarz"); - IApplication application = domain.getApplicationByName("downloadablecart"); - assertThat(application).isNotNull(); - - IEmbeddableCartridge foreman = new EmbeddableCartridge(null, new URL(FOREMAN_DOWNLOAD_URL)); - new CartridgeAssert(foreman) - .hasUrl(Cartridges.FOREMAN_DOWNLOAD_URL) - .hasName(null) - .hasDescription(null) - .hasDisplayName(null); - - // operation - IEmbeddedCartridge embeddedForeman = application.getEmbeddedCartridge(foreman); - // verifications - // embedded cartridge should get updated with name, description and - // display name - new EmbeddedCartridgeAssert(embeddedForeman) - .hasUrl(Cartridges.FOREMAN_DOWNLOAD_URL); - } - - @Test - public void shouldReloadExistingEmbeddedCartridges() throws Throwable { - // pre-conditions - final IApplication app = domain.getApplicationByName("springeap6"); - assertThat(app.getEmbeddedCartridges()).hasSize(1); - // simulate new content on openshift, that should be grabbed while doing - // a refresh() - mockDirector.mockGetApplicationCartridges("foobarz", "springeap6", - GET_DOMAINS_FOOBARZ_APPLICATIONS_SPRINGEAP6_CARTRIDGES_2EMBEDDED); - - // operation - app.refresh(); - - // verify - // get app resource wont load embedded cartridges, only refresh does - // (thus should occur 1x) - mockDirector.verifyListEmbeddableCartridges(1, "foobarz", "springeap6"); - assertThat(app.getEmbeddedCartridges()).hasSize(2); - } - - @Test - public void shouldAddCartridgeToApplication() throws Throwable { - // pre-conditions - mockDirector.mockAddEmbeddableCartridge("foobarz", "springeap6", - POST_MYSQL_DOMAINS_FOOBARZ_APPLICATIONS_SPRINGEAP6_CARTRIDGES); - final IApplication app = domain.getApplicationByName("springeap6"); - assertThat(app.getEmbeddedCartridges()).hasSize(1); - - // operation - app.addEmbeddableCartridge(Cartridges.mysql51()); - - // verifications - mockDirector.verifyAddEmbeddableCartridge("foobarz", "springeap6"); - assertThat(app.getEmbeddedCartridges()).hasSize(2); - IEmbeddedCartridge mySqlCartridge = app.getEmbeddedCartridge(MYSQL_51_NAME); - new EmbeddedCartridgeAssert(mySqlCartridge) - .hasMessages() - .hasDescription() - .hasName(MYSQL_51_NAME); - - new MessageAssert(mySqlCartridge.getMessages().getFirstBy(IField.DEFAULT)) - .hasExitCode(-1) - .hasText("Added mysql-5.1 to application springeap6"); - new MessageAssert(mySqlCartridge.getMessages().getFirstBy(IField.RESULT)) - .hasExitCode(0) - .hasText( - "\nMySQL 5.1 database added. Please make note of these credentials:\n\n" - + " Root User: adminnFC22YQ\n Root Password: U1IX8AIlrEcl\n Database Name: springeap6\n\n" - + "Connection URL: mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/\n\n" - + "You can manage your new MySQL database by also embedding phpmyadmin-3.4.\n" - + "The phpmyadmin username and password will be the same as the MySQL credentials above.\n"); - new MessageAssert(mySqlCartridge.getMessages().getFirstBy(IField.APPINFO)) - .hasExitCode(0) - .hasText("Connection URL: mysql://127.13.125.1:3306/\n"); - - } - - @Test - public void shouldNotAddCartridgeToApplication() throws Throwable { - // pre-conditions - mockDirector - .mockGetApplications("foobarz", GET_DOMAINS_FOOBARZ_APPLICATIONS_2EMBEDDED) - .mockAddEmbeddableCartridge("foobarz", "springeap6", new SocketTimeoutException("mock...")); - final IApplication app = domain.getApplicationByName("springeap6"); - assertThat(app.getEmbeddedCartridges()).hasSize(2); - - // operation - try { - app.addEmbeddableCartridge(new EmbeddableCartridge(Cartridges.POSTGRESQL_84_NAME)); - fail("Expected an exception here..."); - } catch (OpenShiftTimeoutException e) { - // ok - } - - // verifications - mockDirector.verifyAddEmbeddableCartridge("foobarz", "springeap6"); - assertThat(app.getEmbeddedCartridge(Cartridges.POSTGRESQL_84_NAME)).isNull(); - assertThat(app.getEmbeddedCartridges()).hasSize(2); - } - - @Test - public void shouldRemoveCartridgeFromApplication() throws Throwable { - // pre-conditions - mockDirector - .mockGetApplications( - "foobarz", GET_DOMAINS_FOOBARZ_APPLICATIONS_2EMBEDDED) - .mockGetApplication( - "foobarz", "springeap6", GET_DOMAINS_FOOBARZ_APPLICATIONS_SPRINGEAP6_2EMBEDDED) - .mockGetApplicationCartridges( - "foobarz", "springeap6", GET_DOMAINS_FOOBARZ_APPLICATIONS_SPRINGEAP6_CARTRIDGES_2EMBEDDED); - final IApplication application = domain.getApplicationByName("springeap6"); - assertThat(application.getEmbeddedCartridges()).hasSize(2); - - // operation - application.getEmbeddedCartridge("mysql-5.1").destroy(); - - // verifications - mockDirector.verifyDeleteEmbeddableCartridge("foobarz", "springeap6", "mysql-5.1"); - assertThat(application.getEmbeddedCartridge("mysql-5.1")).isNull(); - assertThat(application.getEmbeddedCartridges()).hasSize(1); - } - - @Test - public void shouldNotRemoveCartridgeFromApplication() throws Throwable { - // pre-conditions - mockDirector - .mockGetApplications( - "foobarz", GET_DOMAINS_FOOBARZ_APPLICATIONS_2EMBEDDED) - .mockGetApplicationCartridges( - "foobarz", "springeap6", GET_DOMAINS_FOOBARZ_APPLICATIONS_SPRINGEAP6_CARTRIDGES_2EMBEDDED) - .mockRemoveEmbeddableCartridge("foobarz", "springeap6", "mysql-5.1", - new SocketTimeoutException("mock...")); - final IApplication application = domain.getApplicationByName("springeap6"); - assertThat(application.getEmbeddedCartridges()).hasSize(2); - - // operation - final IEmbeddedCartridge mysql = application.getEmbeddedCartridge("mysql-5.1"); - try { - mysql.destroy(); - fail("Expected an exception here.."); - } catch (OpenShiftTimeoutException e) { - // ok - } - - // verifications - mockDirector.verifyDeleteEmbeddableCartridge("foobarz", "springeap6", "mysql-5.1"); - assertThat(application.getEmbeddedCartridges()).hasSize(2).contains(mysql); - } - - @Test - public void shouldWaitUntilTimeout() throws HttpClientException, Throwable { - // pre-conditions - final IApplication app = domain.getApplicationByName("springeap6"); - assertThat(app).isNotNull().isInstanceOf(ApplicationResource.class); - ApplicationResource spy = Mockito.spy(((ApplicationResource) app)); - Mockito.doReturn(false).when(spy).canResolv(Mockito.anyString()); - long timeout = 2 * 1000; - long startTime = System.currentTimeMillis(); - - // operation - boolean successfull = spy.waitForAccessible(timeout); - - // verification - assertFalse(successfull); - assertTrue(System.currentTimeMillis() >= (startTime + timeout)); - } - - @Test - public void shouldEndBeforeTimeout() throws HttpClientException, Throwable { - // pre-conditions - long startTime = System.currentTimeMillis(); - long timeout = 10 * 1000; - final IApplication app = domain.getApplicationByName("springeap6"); - assertThat(app).isNotNull().isInstanceOf(ApplicationResource.class); - ApplicationResource spy = Mockito.spy(((ApplicationResource) app)); - Mockito.doReturn(true).when(spy).canResolv(Mockito.anyString()); - - // operation - boolean successfull = spy.waitForAccessible(timeout); - - // verification - assertTrue(successfull); - assertTrue(System.currentTimeMillis() < (startTime + timeout)); - } - - @Test - public void shouldGetForwardablePorts() throws Throwable { - // pre-conditions - final IApplication app = domain.getApplicationByName("springeap6"); - assertThat(app).isNotNull().isInstanceOf(ApplicationResource.class); - String[] rhcListPortsOutput = new String[] { - "haproxy -> 127.7.233.2:8080", - " haproxy -> 127.7.233.3:8080", - " java -> 127.7.233.1:3528", - " java -> 127.7.233.1:4447", - " java -> 127.7.233.1:5445", - " java -> 127.7.233.1:5455", - " java -> 127.7.233.1:8080", - " java -> 127.7.233.1:9990", - " java -> 127.7.233.1:9999", - " mysql -> 5190d701500446506a0000e4-foobarz.rhcloud.com:56756" }; - ApplicationResource spy = Mockito.spy(((ApplicationResource) app)); - Mockito.doReturn(Arrays.asList(rhcListPortsOutput)).when(spy) - .sshExecCmd(Mockito.anyString(), (ApplicationResource.SshStreams) Mockito.any()); - - // operation - List forwardablePorts = spy.getForwardablePorts(); - - // verification - assertThat(forwardablePorts).isNotEmpty().hasSize(10); - assertThat(forwardablePorts) - .onProperty("name").containsExactly("haproxy", "haproxy", "java", "java", "java", "java", "java", - "java", "java", "mysql"); - assertThat(forwardablePorts) - .onProperty("remoteAddress").containsExactly("127.7.233.2", "127.7.233.3", "127.7.233.1", - "127.7.233.1", "127.7.233.1", "127.7.233.1", "127.7.233.1", "127.7.233.1", "127.7.233.1", - "5190d701500446506a0000e4-foobarz.rhcloud.com"); - assertThat(forwardablePorts) - .onProperty("remotePort").containsExactly(8080, 8080, 3528, 4447, 5445, 5455, 8080, 9990, 9999, 56756); - } - - @Test - public void shouldCanGetEnvironmentVariables() throws Throwable { - // pre-conditions - mockDirector - .mockAddEnvironmentVariable("foobarz", "springeap6", - POST_ADD_ENVIRONMENT_VARIABLE_FOO_TO_FOOBARZ_SPRINGEAP6) - .mockGetEnvironmentVariables("foobarz", "springeap6", GET_0_ENVIRONMENT_VARIABLES_FOOBARZ_SPRINGEAP6, - GET_1_ENVIRONMENT_VARIABLES_FOOBARZ_SPRINGEAP6); - - // operation - final IApplication app = domain.getApplicationByName("springeap6"); - - // verification - assertThat(app.canGetEnvironmentVariables()).isTrue(); - } - - @Test - public void shouldUpdateEnvironmentVariables() throws Throwable { - // pre-conditions - mockDirector - .mockAddEnvironmentVariable("foobarz", "springeap6", - POST_ADD_ENVIRONMENT_VARIABLE_FOO_TO_FOOBARZ_SPRINGEAP6) - .mockGetEnvironmentVariables("foobarz", "springeap6", GET_0_ENVIRONMENT_VARIABLES_FOOBARZ_SPRINGEAP6, - GET_1_ENVIRONMENT_VARIABLES_FOOBARZ_SPRINGEAP6); - - // operation - final IApplication app = domain.getApplicationByName("springeap6"); - - // verification - assertThat(app.canUpdateEnvironmentVariables()).isTrue(); - } - - @Test - public void shouldAddOneEnvironmentVariableToApplication() throws Throwable { - // pre-conditions - mockDirector - .mockAddEnvironmentVariable("foobarz", "springeap6", - POST_ADD_ENVIRONMENT_VARIABLE_FOO_TO_FOOBARZ_SPRINGEAP6) - .mockGetEnvironmentVariables("foobarz", "springeap6", GET_0_ENVIRONMENT_VARIABLES_FOOBARZ_SPRINGEAP6, - GET_1_ENVIRONMENT_VARIABLES_FOOBARZ_SPRINGEAP6); - - // operation - final IApplication app = domain.getApplicationByName("springeap6"); - IEnvironmentVariable environmentVariable = app.addEnvironmentVariable("FOO", "123"); - - // verification - assertThat(environmentVariable).isNotNull(); - assertThat(environmentVariable.getName()).isEqualTo("FOO"); - assertThat(environmentVariable.getValue()).isEqualTo("123"); - } - - @Test - public void shouldAddEnvironmentVariablesToApplication() throws Throwable { - // pre-conditions - mockDirector - .mockAddEnvironmentVariable("foobarz", "springeap6", - POST_ADD_2_ENVIRONMENT_VARIABLES_TO_FOOBARZ_SPRINGEAP6) - .mockGetEnvironmentVariables("foobarz", "springeap6", GET_2_ENVIRONMENT_VARIABLES_FOOBARZ_SPRINGEAP6); - - // operation - final IApplication app = domain.getApplicationByName("springeap6"); - Map environmentVariables = new HashMap(); - environmentVariables.put("X_NAME", "X_VALUE"); - environmentVariables.put("Y_NAME", "Y_VALUE"); - Map environmentVariablesList = app.addEnvironmentVariables(environmentVariables); - // verification - assertThat(environmentVariablesList).hasSize(2); - } - - @Test - public void shouldUpdateOneEnvironmentVariableToApplication() throws Throwable { - // pre-conditions - mockDirector - .mockAddEnvironmentVariable("foobarz", "springeap6", - POST_ADD_ENVIRONMENT_VARIABLE_FOO_TO_FOOBARZ_SPRINGEAP6) - .mockGetEnvironmentVariables("foobarz", "springeap6", GET_0_ENVIRONMENT_VARIABLES_FOOBARZ_SPRINGEAP6, - GET_1_ENVIRONMENT_VARIABLES_FOOBARZ_SPRINGEAP6) - .mockUpdateEnvironmentVariableValue("foobarz", "springeap6", "FOO", PUT_FOO_ENVIRONMENT_VARIABLE_FOOBARZ_SPRINGEAP6);; - - // operation - final IApplication app = domain.getApplicationByName("springeap6"); - IEnvironmentVariable environmentVariable = app.addEnvironmentVariable("FOO", "123"); - assertThat(environmentVariable.getValue()).isEqualTo("123"); - app.updateEnvironmentVariable("FOO","321"); - - // verification - assertThat(environmentVariable).isNotNull(); - assertThat(environmentVariable.getName()).isEqualTo("FOO"); - assertThat(environmentVariable.getValue()).isEqualTo("321"); - } - - @Test - public void shouldRefreshEnvironmentVariables() throws Throwable { - // pre-conditions - mockDirector - .mockGetEnvironmentVariables("foobarz", "springeap6", - GET_1_ENVIRONMENT_VARIABLES_FOOBARZ_SPRINGEAP6, GET_2_ENVIRONMENT_VARIABLES_FOOBARZ_SPRINGEAP6); - final IApplication app = domain.getApplicationByName("springeap6"); - assertThat(app.getEnvironmentVariables()).hasSize(1); - // operation - app.refresh(); - // verification - assertThat(app.getEnvironmentVariables()).hasSize(2); - } - - @Test - public void shouldGetEnvironmentVariableByNameFromApplication() throws Throwable { - // precondition - mockDirector.mockGetEnvironmentVariables("foobarz", "springeap6", - GET_1_ENVIRONMENT_VARIABLES_FOOBARZ_SPRINGEAP6); - // operation - final IApplication app = domain.getApplicationByName("springeap6"); - IEnvironmentVariable environmentVariable = app.getEnvironmentVariable("FOO"); - // verification - assertThat(environmentVariable).isNotNull(); - assertThat(environmentVariable.getName()).isEqualTo("FOO"); - assertThat(environmentVariable.getValue()).isEqualTo("123"); - } - - @Test - public void shouldGetEnvironmentVariableValueByNameFromApplication() throws Throwable { - // precondition - mockDirector.mockGetEnvironmentVariables("foobarz", "springeap6", - GET_1_ENVIRONMENT_VARIABLES_FOOBARZ_SPRINGEAP6); - // operation - final IApplication app = domain.getApplicationByName("springeap6"); - // verification - assertTrue(app.hasEnvironmentVariable("FOO")); - assertThat(app.getEnvironmentVariableValue("FOO")).isEqualTo("123"); - } - - @Test - public void shouldNotAddExistingEnvironmentVariable() throws Throwable { - // precondition - mockDirector.mockGetEnvironmentVariables("foobarz", "springeap6", - GET_1_ENVIRONMENT_VARIABLES_FOOBARZ_SPRINGEAP6); - final IApplication app = domain.getApplicationByName("springeap6"); - assertThat(app.getEnvironmentVariables()).hasSize(1); - IEnvironmentVariable existingEnvironmentVariable = app.getEnvironmentVariables().get("FOO"); - assertThat(existingEnvironmentVariable.getName()).isEqualTo("FOO"); - - // operation - try { - app.addEnvironmentVariable("FOO", "123"); - fail("Expected an exception here..."); - } catch (OpenShiftException e) { - // expected - } - - // verification - assertThat(app.getEnvironmentVariables()).hasSize(1); - } - - @Test - public void shouldRemoveEnvironmentVariableByName() throws Throwable { - // precondition - mockDirector.mockGetEnvironmentVariables("foobarz", "springeap6", - GET_1_ENVIRONMENT_VARIABLES_FOOBARZ_SPRINGEAP6, GET_0_ENVIRONMENT_VARIABLES_FOOBARZ_SPRINGEAP6); - final IApplication app = domain.getApplicationByName("springeap6"); - assertThat(app.getEnvironmentVariables()).hasSize(1); - assertThat(app.getEnvironmentVariables().get("FOO").getName() == "FOO"); - - // operation - app.removeEnvironmentVariable("FOO"); - - // verification - assertThat(app.getEnvironmentVariables()).hasSize(0); - assertThat(app.hasEnvironmentVariable("FOO")).isFalse(); - } - - @Test - public void shouldRemoveEnvironmentVariable() throws Throwable { - // precondition - mockDirector.mockGetEnvironmentVariables("foobarz", "springeap6", - GET_1_ENVIRONMENT_VARIABLES_FOOBARZ_SPRINGEAP6, GET_0_ENVIRONMENT_VARIABLES_FOOBARZ_SPRINGEAP6); - final IApplication app = domain.getApplicationByName("springeap6"); - assertThat(app.getEnvironmentVariables()).hasSize(1); - IEnvironmentVariable environmentVariable = app.getEnvironmentVariables().get("FOO"); - assertThat(environmentVariable.getName()).isEqualTo("FOO"); - - // operation - app.removeEnvironmentVariable(environmentVariable); - - // verification - assertThat(app.getEnvironmentVariables()).hasSize(0); - assertThat(app.hasEnvironmentVariable("FOO")).isFalse(); - } - - @Test - public void shouldGetMapOfAllEnvironmentVariablesFromApplication() throws Throwable { - // preconditions - mockDirector.mockGetEnvironmentVariables("foobarz", "springeap6", - GET_4_ENVIRONMENT_VARIABLES_FOOBARZ_SPRINGEAP6); - - // operation - final IApplication app = domain.getApplicationByName("springeap6"); - Map environmentVariables = app.getEnvironmentVariables(); - - // verifications - assertThat(environmentVariables).isNotEmpty(); - assertThat(environmentVariables).hasSize(4); - - } - - @Test - public void shouldLoadEmptyMapOfEnvironmentVariables() throws Throwable { - // precondition - mockDirector - .mockGetEnvironmentVariables("foobarz", "springeap6", GET_0_ENVIRONMENT_VARIABLES_FOOBARZ_SPRINGEAP6); - // operation - final IApplication application = domain.getApplicationByName("springeap6"); - Map environmentVariables = application.getEnvironmentVariables(); - // verifications - assertThat(environmentVariables).isEmpty(); - } - - /** - * Tests if IApplication#refresh works even when environment variables are not supported - * - * @see https://issues.jboss.org/browse/JBIDE-15939 - */ - @Test - public void shouldRefreshWithoutLoadingEnvironmentVariablesIfNotSupported() throws Throwable { - // precondition - mockDirector - .mockGetApplications("foobarz", GET_DOMAINS_FOOBARZ_APPLICATIONS_NOENVVARS); - IApplication application = domain.getApplicationByName("springeap6"); - // operation - application.refresh(); - // verifications - } - - @Test - public void shouldEqualApplication() throws Throwable { - // precondition - // operation - IDomain domain = mockDirector.getDomain("foobarz"); - // verifications - assertThat(domain).isEqualTo(this.domain); - assertTrue(domain != this.domain); - } - - -} diff --git a/src/test/java/com/openshift/internal/client/CertTrustIntegrationTest.java b/src/test/java/com/openshift/internal/client/CertTrustIntegrationTest.java deleted file mode 100755 index 7a888a9a..00000000 --- a/src/test/java/com/openshift/internal/client/CertTrustIntegrationTest.java +++ /dev/null @@ -1,60 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2007 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 org.junit.Before; -import org.junit.Test; - -import com.openshift.client.IUser; -import com.openshift.client.OpenShiftException; - -/** - * @author William DeCoste - */ -public class CertTrustIntegrationTest extends TestTimer { - - private IUser user; - - @Before - public void setUp() throws OpenShiftException, IOException { -// service = new OpenShiftService(TestUser.ID, new OpenShiftConfiguration().getLibraServer()); -// service.setEnableSSLCertChecks(Boolean.parseBoolean(System.getProperty("enableSSLCertChecks"))); -// -// user = new TestUser(service); - } - - @Test - public void testValidationSwitch() throws Exception { -// -// try { -// service.setEnableSSLCertChecks(true); -// service.getUserInfo(user); -// fail("Expected cert validation exception"); -// } catch (Exception e) { -// } -// -// service.setEnableSSLCertChecks(false); -// service.getUserInfo(user); -// -// try { -// service.setEnableSSLCertChecks(true); -// service.getUserInfo(user); -// fail("Expected cert validation exception"); -// } catch (Exception e) { -// } -// -// service.setEnableSSLCertChecks(false); -// service.getUserInfo(user); - } -} diff --git a/src/test/java/com/openshift/internal/client/ConfigurationTest.java b/src/test/java/com/openshift/internal/client/ConfigurationTest.java deleted file mode 100644 index 7f0e799a..00000000 --- a/src/test/java/com/openshift/internal/client/ConfigurationTest.java +++ /dev/null @@ -1,261 +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 static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertNotNull; -import static org.junit.Assert.assertNull; -import static org.junit.Assert.assertTrue; - -import java.io.File; -import java.io.FileReader; -import java.io.IOException; -import java.io.Writer; -import java.util.Properties; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -import org.junit.Test; - -import com.openshift.client.OpenShiftException; -import com.openshift.client.configuration.DefaultConfiguration; -import com.openshift.client.configuration.IOpenShiftConfiguration; -import com.openshift.client.configuration.SystemConfiguration; -import com.openshift.client.fakes.EmptySystemPropertiesFake; -import com.openshift.client.fakes.SystemConfigurationFake; -import com.openshift.client.fakes.UserConfigurationFake; -import com.openshift.internal.client.utils.StreamUtils; -import com.openshift.internal.client.utils.UrlUtils; - -/** - * @author André Dietisheim - */ -public class ConfigurationTest extends TestTimer { - - private static final String USERNAME_REGEX = "[^=]+=(.+)"; - private static final String USERNAME = "dummyUser"; - private static final String USERNAME2 = "André"; - private static final String USERNAME3 = "Dietisheim"; - private static final String ANOTHER_USERNAME = "anotherUser"; - protected static final String LIBRA_SERVER = "openshift.redhat.com"; - protected static final String SIGLEQUOTED_LIBRA_SERVER = "'openshift.redhat.com'"; - protected static final String DOUBLEQUOTED_LIBRA_SERVER = "\"openshift.redhat.com\""; - - @Test - public void versionTest() throws OpenShiftException, IOException { - // operation - String version = new RestServiceProperties().getVersion(); - - // verification - assertNotNull(version); - assertFalse(version.contains("pom")); - } - - @Test - public void canReadUsername() throws OpenShiftException, IOException { - UserConfigurationFake userConfiguration = new UserConfigurationFake() { - - protected void initFile(Writer writer) throws IOException { - writer.append(KEY_RHLOGIN).append('=').append(USERNAME).append('\n'); - } - - }; - assertEquals(USERNAME, userConfiguration.getRhlogin()); - } - - @Test - public void canStoreUsername() throws OpenShiftException, IOException { - // pre-condition - UserConfigurationFake userConfiguration = new UserConfigurationFake() { - - protected void initFile(Writer writer) throws IOException { - writer.append(KEY_RHLOGIN).append('=').append(USERNAME).append('\n'); - } - - }; - - // operation - userConfiguration.setRhlogin(ANOTHER_USERNAME); - userConfiguration.save(); - - // verification - File userConfigurationFile = userConfiguration.getFile(); - assertNotNull(userConfigurationFile); - String fileContent = StreamUtils.readToString(new FileReader(userConfigurationFile)); - Pattern pattern = Pattern.compile(USERNAME_REGEX); - Matcher matcher = pattern.matcher(fileContent); - assertTrue(matcher.find()); - assertEquals(1, matcher.groupCount()); - assertEquals(ANOTHER_USERNAME, matcher.group(1)); - } - - @Test - public void canStoreAndReadUsername() throws OpenShiftException, IOException { - // pre-condition - UserConfigurationFake userConfiguration = new UserConfigurationFake() { - - protected void initFile(Writer writer) throws IOException { - writer.append(KEY_RHLOGIN).append('=').append(USERNAME).append('\n'); - } - }; - assertEquals(USERNAME, userConfiguration.getRhlogin()); - - // operation - userConfiguration.setRhlogin(ANOTHER_USERNAME); - userConfiguration.save(); - final File userConfigurationFile = userConfiguration.getFile(); - assertNotNull(userConfigurationFile); - UserConfigurationFake userConfiguration2 = new UserConfigurationFake() { - - protected File createFile() { - return userConfigurationFile; - } - - protected void initFile(File file) { - } - }; - - // verification - assertEquals(ANOTHER_USERNAME, userConfiguration2.getRhlogin()); - } - - @Test - public void canReadUsernameIfItsInSystemConfigurationOnly() throws OpenShiftException, IOException { - SystemConfiguration systemConfiguration = new SystemConfigurationFake(new DefaultConfiguration()) { - - protected void init(Properties properties) { - properties.put(KEY_RHLOGIN, USERNAME); - } - - }; - UserConfigurationFake userConfiguration = new UserConfigurationFake(systemConfiguration); - assertEquals(USERNAME, userConfiguration.getRhlogin()); - } - - @Test - public void usernameInUserconfigOverridesUsernameInSystemconfig() throws OpenShiftException, IOException { - SystemConfiguration systemConfiguration = new SystemConfigurationFake(new DefaultConfiguration()) { - - protected void init(Properties properties) { - properties.put(KEY_RHLOGIN, USERNAME); - } - - }; - UserConfigurationFake userConfiguration = new UserConfigurationFake(systemConfiguration) { - - protected void initFile(Writer writer) throws IOException { - writer.append(KEY_RHLOGIN).append('=').append(USERNAME2).append('\n'); - } - - }; - assertEquals(USERNAME2, userConfiguration.getRhlogin()); - } - - @Test - public void quotedLibraServerIsReturnedWithoutQuotes() throws OpenShiftException, IOException { - SystemConfiguration systemConfiguration = new SystemConfigurationFake(new DefaultConfiguration()) { - - protected void init(Properties properties) { - properties.put(KEY_LIBRA_SERVER, SIGLEQUOTED_LIBRA_SERVER); - } - - }; - UserConfigurationFake userConfiguration = new UserConfigurationFake(systemConfiguration); - assertEquals(UrlUtils.SCHEME_HTTPS + LIBRA_SERVER, userConfiguration.getLibraServer()); - } - - @Test - public void doubleQuotedLibraServerIsReturnedWithoutQuotes() throws OpenShiftException, IOException { - SystemConfiguration systemConfiguration = new SystemConfigurationFake(new DefaultConfiguration()) { - - protected void init(Properties properties) { - properties.put(KEY_LIBRA_SERVER, DOUBLEQUOTED_LIBRA_SERVER); - } - - }; - UserConfigurationFake userConfiguration = new UserConfigurationFake(systemConfiguration); - assertEquals(UrlUtils.SCHEME_HTTPS + LIBRA_SERVER, userConfiguration.getLibraServer()); - } - - @Test - public void nonQuotedLibraServerIsReturnedAsIs() throws OpenShiftException, IOException { - SystemConfiguration systemConfiguration = new SystemConfigurationFake(new DefaultConfiguration()) { - - protected void init(Properties properties) { - properties.put(KEY_LIBRA_SERVER, LIBRA_SERVER); - } - - }; - UserConfigurationFake userConfiguration = new UserConfigurationFake(systemConfiguration); - assertEquals(UrlUtils.SCHEME_HTTPS + LIBRA_SERVER, userConfiguration.getLibraServer()); - } - - @Test - public void nullLibraServerIsReturnedAsNull() throws OpenShiftException, IOException { - SystemConfiguration systemConfiguration = new SystemConfigurationFake(); - assertNull(systemConfiguration.getLibraServer()); - } - - @Test - public void systemPropsOverrideSystemconfig() throws OpenShiftException, IOException { - SystemConfiguration systemConfiguration = new SystemConfigurationFake(new DefaultConfiguration()) { - - @Override - protected void init(Properties properties) { - properties.put(KEY_RHLOGIN, USERNAME); - } - - }; - UserConfigurationFake userConfiguration = new UserConfigurationFake(systemConfiguration) { - - @Override - protected void initFile(Writer writer) throws IOException { - writer.append(KEY_RHLOGIN).append('=').append(USERNAME2).append('\n'); - } - - }; - IOpenShiftConfiguration configuration = new EmptySystemPropertiesFake(userConfiguration); - configuration.setRhlogin(USERNAME3); - assertEquals(USERNAME3, configuration.getRhlogin()); - } - - @Test - public void emptySystemPropertiesDefaultToUserConfig() throws OpenShiftException, IOException { - SystemConfiguration systemConfiguration = new SystemConfigurationFake(new DefaultConfiguration()) { - - @Override - protected void init(Properties properties) { - properties.put(KEY_RHLOGIN, USERNAME); - } - - }; - UserConfigurationFake userConfiguration = new UserConfigurationFake(systemConfiguration) { - - @Override - protected void initFile(Writer writer) throws IOException { - writer.append(KEY_RHLOGIN).append('=').append(USERNAME2).append('\n'); - } - - }; - IOpenShiftConfiguration configuration = new EmptySystemPropertiesFake(userConfiguration); - assertEquals(USERNAME2, configuration.getRhlogin()); - } - - @Test - public void fallsBackToDefaultUrl() throws OpenShiftException, IOException { - IOpenShiftConfiguration configuration = new EmptySystemPropertiesFake( - new UserConfigurationFake(new SystemConfigurationFake(new DefaultConfiguration()))); - assertNotNull(configuration.getLibraServer()); - assertTrue(configuration.getLibraServer().contains(DefaultConfiguration.LIBRA_SERVER)); - assertNull(configuration.getRhlogin()); - } -} diff --git a/src/test/java/com/openshift/internal/client/DomainResourceIntegrationTest.java b/src/test/java/com/openshift/internal/client/DomainResourceIntegrationTest.java deleted file mode 100755 index 63ec9c38..00000000 --- a/src/test/java/com/openshift/internal/client/DomainResourceIntegrationTest.java +++ /dev/null @@ -1,443 +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 static org.fest.assertions.Assertions.assertThat; -import static org.junit.Assert.assertNotNull; -import static org.junit.Assert.fail; - -import java.io.FileNotFoundException; -import java.io.IOException; -import java.net.SocketTimeoutException; -import java.util.List; - -import com.openshift.client.utils.*; -import org.junit.Before; -import org.junit.Test; - -import com.openshift.client.ApplicationScale; -import com.openshift.client.IApplication; -import com.openshift.client.IDomain; -import com.openshift.client.IField; -import com.openshift.client.IGearProfile; -import com.openshift.client.ISeverity; -import com.openshift.client.IUser; -import com.openshift.client.Message; -import com.openshift.client.OpenShiftEndpointException; -import com.openshift.client.OpenShiftException; -import com.openshift.client.cartridge.IEmbeddableCartridge; -import com.openshift.client.cartridge.IStandaloneCartridge; -import com.openshift.client.cartridge.selector.LatestVersionOf; - -/** - * @author Andre Dietisheim - */ -public class DomainResourceIntegrationTest extends TestTimer { - - private static final String QUICKSTART_REVEALJS_GITURL = "git://github.com/openshift-quickstart/reveal.js-openshift-quickstart.git"; - private static final String REVEALJS_INDEX = "revealjs.html"; - - private static final int CREATE_TIMEOUT = 5 * 60 * 1000; - - private IUser user; - private IDomain domain; - - @Before - public void setUp() throws OpenShiftException, IOException { - this.user = new TestConnectionFactory().getConnection().getUser(); - this.domain = DomainTestUtils.ensureHasDomain(user); - } - - @Test - public void shouldSetNamespace() throws Exception { - // pre-condition - IDomain domain = DomainTestUtils.ensureHasDomain(user); - String namespace = DomainTestUtils.createRandomName(); - // cannot set namespace if there are applications - ApplicationTestUtils.destroyAllApplications(domain); - - // operation - domain.rename(namespace); - - // verification - IDomain domainByNamespace = user.getDomain(namespace); - assertThat(domainByNamespace.getId()).isEqualTo(namespace); - } - - @Test - public void shouldDeleteDomainWithoutApplications() throws Exception { - // pre-condition - IDomain domain = DomainTestUtils.ensureHasDomain(user); - String id = domain.getId(); - ApplicationTestUtils.destroyAllApplications(domain); - assertThat(domain.getApplications()).isEmpty(); - - // operation - domain.destroy(); - - // verification - IDomain domainByNamespace = user.getDomain(id); - assertThat(domainByNamespace).isNull(); - } - - @Test - public void shouldNotDeleteDomainWithApplications() throws OpenShiftException { - IDomain domain = null; - try { - // pre-condition - domain = DomainTestUtils.ensureHasDomain(user); - ApplicationTestUtils.getOrCreateApplication(domain); - assertThat(domain.getApplications()).isNotEmpty(); - - // operation - domain.destroy(); - // verification - fail("OpenShiftEndpointException did not occurr"); - } catch (OpenShiftEndpointException e) { - // verification - } - } - - @Test - public void shouldContainErrorMessageAndContainErrorCode128() throws OpenShiftException { - IDomain domain = null; - try { - // pre-condition - domain = DomainTestUtils.ensureHasDomain(user); - ApplicationTestUtils.getOrCreateApplication(domain); - assertThat(domain.getApplications()).isNotEmpty(); - - // operation - domain.destroy(); - fail("OpenShiftEndpointException did not occurr"); - } catch (OpenShiftEndpointException e) { - // verification - assertThat(e.getRestResponseMessages().size()).isEqualTo(1); - List messages = e.getRestResponseMessage(IField.DEFAULT); - new MessageAssert(messages.get(0)) - .hasExitCode(128) - .hasSeverity(ISeverity.ERROR) - .hasText(); - } - } - - @Test - public void shouldDeleteDomainWithApplications() throws OpenShiftException, SocketTimeoutException { - // pre-condition - IDomain domain = DomainTestUtils.ensureHasDomain(user); - ApplicationTestUtils.getOrCreateApplication(domain); - assertThat(domain.getApplications()).isNotEmpty(); - - // operation - domain.destroy(true); - - // verification - assertThat(domain).isNotIn(user.getDomains()); - domain = null; - } - - @Test - public void shouldSeeNewApplicationAfterRefresh() throws OpenShiftException, FileNotFoundException, IOException { - // pre-condition - IDomain domain = DomainTestUtils.ensureHasDomain(user); - int numOfApplications = domain.getApplications().size(); - - IUser otherUser = new TestConnectionFactory().getConnection().getUser(); - IDomain otherDomain = otherUser.getDomain(domain.getId()); - assertNotNull(otherDomain); - - // operation - String applicationName = StringUtils.createRandomString(); - otherDomain.createApplication(applicationName, LatestVersionOf.php().get(otherUser)); - assertThat(domain.getApplications().size()).isEqualTo(numOfApplications); - domain.refresh(); - - // verification - assertThat(domain.getApplications().size()).isEqualTo(numOfApplications + 1); - } - - @Test - public void shouldMissApplicationAfterRefresh() throws OpenShiftException, FileNotFoundException, IOException { - // pre-condition - IDomain domain = DomainTestUtils.ensureHasDomain(user); - IApplication application = ApplicationTestUtils.getOrCreateApplication(domain); - assertThat(application).isNotNull(); - IUser otherUser = new TestConnectionFactory().getConnection().getUser(); - IDomain otherDomain = otherUser.getDomain(domain.getId()); - assertNotNull(otherDomain); - IApplication otherDomainApplication = otherDomain.getApplicationByName(application.getName()); - assertThat(otherDomainApplication).isNotNull(); - - // operation - otherDomainApplication.destroy(); - assertThat(otherDomain.getApplicationByName(application.getName())).isNull(); - domain.refresh(); - - // verification - assertThat(domain.getApplicationByName(application.getName())).isNull(); - } - - @Test - public void shouldGetApplicationByNameCaseInsensitive() throws OpenShiftException, FileNotFoundException, IOException { - // pre-condition - IDomain domain = DomainTestUtils.ensureHasDomain(user); - IApplication application = ApplicationTestUtils.ensureHasExactly1Application(LatestVersionOf.jbossAs(), domain); - assertThat(application).isNotNull(); - String name = application.getName(); - assertThat(name).isNotNull(); - - // operation - IApplication exactNameQueryResult = domain.getApplicationByName(name); - IApplication upperCaseNameQueryResult = domain.getApplicationByName(name.toUpperCase()); - - // verification - assertThat(exactNameQueryResult).isNotNull(); - assertThat(exactNameQueryResult.getName()).isEqualTo(name); - assertThat(upperCaseNameQueryResult).isNotNull(); - assertThat(upperCaseNameQueryResult.getName()).isEqualTo(name); - } - - @Test - public void shouldCreateNonScalableApplication() throws Exception { - // pre-conditions - ApplicationTestUtils.destroyIfMoreThan(2, domain); - - // operation - String applicationName = - ApplicationTestUtils.createRandomApplicationName(); - IStandaloneCartridge jbossas = LatestVersionOf.jbossAs().get(user); - IApplication application = - domain.createApplication(applicationName, jbossas); - - // verification - assertThat(new ApplicationAssert(application)) - .hasName(applicationName) - .hasUUID() - .hasCreationTime() - .hasCartridge(jbossas) - .hasValidApplicationUrl() - .hasValidGitUrl() - .hasNoInitialGitUrl() - .hasEmbeddedCartridges() - .hasAlias(); - } - - @Test - public void shouldCreateNonScalableApplicationWithSmallGear() throws Exception { - // pre-conditions - ApplicationTestUtils.destroyIfMoreThan(2, domain); - - // operation - String applicationName = - ApplicationTestUtils.createRandomApplicationName(); - IStandaloneCartridge jbossas = LatestVersionOf.jbossAs().get(user); - IApplication application = domain.createApplication(applicationName, jbossas, GearProfileTestUtils.getFirstAvailableGearProfile(domain)); - - // verification - assertThat(new ApplicationAssert(application)) - .hasName(applicationName) - .hasUUID() - .hasCreationTime() - .hasCartridge(jbossas) - .hasValidApplicationUrl() - .hasValidGitUrl() - .hasNoInitialGitUrl() - .hasEmbeddedCartridges() - .hasAlias(); - } - - @Test - public void shouldCreateNonScalableApplicationWithSmallGearAndGitUrl() throws Exception { - // pre-conditions - - ApplicationTestUtils.destroyIfMoreThan(2, domain); - - // operation - String applicationName = - ApplicationTestUtils.createRandomApplicationName(); - IStandaloneCartridge php = LatestVersionOf.php().get(user); - IApplication application = domain.createApplication( - applicationName, php, ApplicationScale.NO_SCALE, GearProfileTestUtils.getFirstAvailableGearProfile(domain), QUICKSTART_REVEALJS_GITURL); - - // verification - new ApplicationAssert(application) - .hasName(applicationName) - .hasUUID() - .hasCreationTime() - .hasCartridge(php) - .hasValidApplicationUrl() - .hasInitialGitUrl(QUICKSTART_REVEALJS_GITURL) - .hasEmbeddedCartridges() - .hasAlias() - .hasContent(REVEALJS_INDEX, "Reveal.js"); - } - - @Test - public void shouldCreateNonScalableApplicationWithEmbeddedCartridge() throws Exception { - // pre-conditions - ApplicationTestUtils.destroyIfMoreThan(2, domain); - String applicationName = - ApplicationTestUtils.createRandomApplicationName(); - IStandaloneCartridge php = LatestVersionOf.php().get(user); - IEmbeddableCartridge mySql = LatestVersionOf.mySQL().get(domain.getUser()); - int timeout = 5 * 60 * 1000; - - // operation - IApplication application = domain.createApplication( - applicationName, php, ApplicationScale.NO_SCALE, GearProfileTestUtils.getFirstAvailableGearProfile(domain), null, timeout, mySql); - - // verification - new ApplicationAssert(application) - .hasName(applicationName) - .hasUUID() - .hasCreationTime() - .hasCartridge(php) - .hasValidApplicationUrl() - .hasEmbeddedCartridgeNames(mySql.getName()) - .hasAlias(); - } - - @Test - public void shouldCreateScalableApplication() throws Exception { - // pre-conditions - ApplicationTestUtils.destroyAllApplications(domain); - String applicationName = - ApplicationTestUtils.createRandomApplicationName(); - IStandaloneCartridge jbossas = LatestVersionOf.jbossAs().get(user); - - // operation - IApplication application = domain.createApplication( - applicationName, jbossas, ApplicationScale.SCALE, GearProfileTestUtils.getFirstAvailableGearProfile(domain)); - - // verification - assertThat(new ApplicationAssert(application)) - .hasName(applicationName) - .hasUUID() - .hasCreationTime() - .hasCartridge(jbossas) - .hasValidApplicationUrl() - .hasValidGitUrl() - .hasNoInitialGitUrl() - // scalable apps always have ha-proxy embedded automatically - .hasEmbeddedCartridge(LatestVersionOf.haProxy()) - .hasAlias(); - } - - @Test - public void shouldCreateJenkinsApplication() throws Exception { - // pre-conditions - ApplicationTestUtils.destroyAllApplications(domain); - String applicationName = - ApplicationTestUtils.createRandomApplicationName(); - IStandaloneCartridge jenkins = LatestVersionOf.jenkins().get(user); - - // operation - IApplication application = domain.createApplication( - applicationName, jenkins ); - - // verification - assertThat(new ApplicationAssert(application)) - .hasName(applicationName) - .hasUUID() - .hasCreationTime() - .hasCartridge(jenkins) - .hasValidApplicationUrl() - .hasValidGitUrl() - .hasNoInitialGitUrl() - .hasEmbeddedCartridges() - .hasAlias(); - } - - @Test - public void shouldCreateApplicationWithDownloadableCartridge() throws Throwable { - // pre-conditions - ApplicationTestUtils.destroyAllApplications(domain); - String applicationName = - ApplicationTestUtils.createRandomApplicationName(); - - // operation - final IApplication app = domain.createApplication( - applicationName, Cartridges.go11(), ApplicationScale.NO_SCALE, GearProfileTestUtils.getFirstAvailableGearProfile(domain), null, CREATE_TIMEOUT); - - // verifications - new ApplicationAssert(app) - .hasName(applicationName) - .hasGearProfile(GearProfileTestUtils.getFirstAvailableGearProfile(domain)) - .hasCreationTime() - .hasUUID() - .hasValidApplicationUrl() - .hasValidGitUrl() - .hasCartridge(Cartridges.go11()) - .hasEmbeddableCartridges(0); - } - - @Test - public void shouldCreateApplicationWithJBossAsAndDownloadableCartridge() throws Throwable { - // pre-conditions - ApplicationTestUtils.destroyAllApplications(domain); - String applicationName = - ApplicationTestUtils.createRandomApplicationName(); - IStandaloneCartridge jbossAs = LatestVersionOf.jbossAs().get(user); - - // operation - final IApplication app = domain.createApplication( - applicationName, jbossAs, ApplicationScale.NO_SCALE, GearProfileTestUtils.getFirstAvailableGearProfile(domain), null, CREATE_TIMEOUT, - Cartridges.foreman063()); - - // verifications - new ApplicationAssert(app) - .hasName(applicationName) - .hasGearProfile(GearProfileTestUtils.getFirstAvailableGearProfile(domain)) - .hasCreationTime() - .hasUUID() - .hasValidApplicationUrl() - .hasValidGitUrl() - .hasCartridge(jbossAs) - .hasEmbeddedCartridge(Cartridges.foreman063()); - } - - - @Test - public void shouldHaveCredentialsInMessage() throws Exception { - // pre-conditions - ApplicationTestUtils.destroyAllApplications(domain); - String applicationName = - ApplicationTestUtils.createRandomApplicationName(); - IStandaloneCartridge jenkins = LatestVersionOf.jenkins().get(user); - - // operation - IApplication application = domain.createApplication( - applicationName, jenkins ); - - // verification - new ApplicationAssert(application) - .hasResultFieldOrResultSeverityMessage(); - } - - @Test(expected = OpenShiftException.class) - public void createDuplicateApplicationThrowsException() throws Exception { - // pre-condition - IApplication application = ApplicationTestUtils.getOrCreateApplication(domain); - - // operation - domain.createApplication(application.getName(), LatestVersionOf.jbossAs().get(user)); - } - - @Test(expected = OpenShiftException.class) - public void createApplicationWithSameButUppercaseNameThrowsException() throws Exception { - // pre-condition - IApplication application = ApplicationTestUtils.getOrCreateApplication(domain); - String name = application.getName(); - - // operation - domain.createApplication(name.toUpperCase(), LatestVersionOf.jbossAs().get(user)); - } -} diff --git a/src/test/java/com/openshift/internal/client/DomainResourceTest.java b/src/test/java/com/openshift/internal/client/DomainResourceTest.java deleted file mode 100644 index 074c8214..00000000 --- a/src/test/java/com/openshift/internal/client/DomainResourceTest.java +++ /dev/null @@ -1,664 +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 static com.openshift.client.utils.Cartridges.JBOSSAS_7_NAME; -import static com.openshift.client.utils.Cartridges.JENKINS_14_NAME; -import static com.openshift.client.utils.Cartridges.MONGODB_22_NAME; -import static com.openshift.client.utils.Samples.DELETE_DOMAINS_FOOBARZ; -import static com.openshift.client.utils.Samples.GET_DOMAINS_EMPTY; -import static com.openshift.client.utils.Samples.GET_DOMAINS_FOOBARS; -import static com.openshift.client.utils.Samples.GET_DOMAINS_FOOBARZ; -import static com.openshift.client.utils.Samples.GET_DOMAINS_FOOBARZ_APPLICATIONS_1EMBEDDED; -import static com.openshift.client.utils.Samples.GET_DOMAINS_FOOBARZ_APPLICATIONS_DOWNLOADABLECART; -import static com.openshift.client.utils.Samples.GET_DOMAINS_FOOBARZ_APPLICATIONS_NOAPPS; -import static com.openshift.client.utils.Samples.POST_JEKYLL_DOMAINS_FOOBARZ_APPLICATIONS; -import static com.openshift.client.utils.Samples.POST_SCALABLE_DOMAINS_FOOBARZ_APPLICATIONS; -import static org.fest.assertions.Assertions.assertThat; -import static org.junit.Assert.assertTrue; -import static org.junit.Assert.fail; -import static org.mockito.Mockito.reset; - -import java.net.SocketTimeoutException; -import java.util.List; - -import com.openshift.client.utils.*; -import org.junit.Before; -import org.junit.Ignore; -import org.junit.Rule; -import org.junit.Test; -import org.junit.rules.ErrorCollector; -import org.junit.rules.ExpectedException; - -import com.openshift.client.ApplicationScale; -import com.openshift.client.IApplication; -import com.openshift.client.IDomain; -import com.openshift.client.IField; -import com.openshift.client.IGearProfile; -import com.openshift.client.IHttpClient; -import com.openshift.client.ISeverity; -import com.openshift.client.IUser; -import com.openshift.client.InvalidCredentialsOpenShiftException; -import com.openshift.client.Message; -import com.openshift.client.Messages; -import com.openshift.client.OpenShiftEndpointException; -import com.openshift.client.OpenShiftException; -import com.openshift.client.cartridge.IStandaloneCartridge; -import com.openshift.internal.client.httpclient.BadRequestException; -import com.openshift.internal.client.httpclient.HttpClientException; -import com.openshift.internal.client.httpclient.UnauthorizedException; -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.utils.IOpenShiftJsonConstants; - -/** - * @author Xavier Coulon - * @author Andre Dietisheim - */ -public class DomainResourceTest extends TestTimer { - - private IUser user; - private IDomain domain; - private IHttpClient clientMock; - private HttpClientMockDirector mockDirector; - - @Rule - public ExpectedException expectedException = ExpectedException.none(); - - @Rule - public ErrorCollector errorCollector = new ErrorCollector(); - - @Before - public void setup() throws Throwable { - this.mockDirector = new HttpClientMockDirector(); - this.clientMock = mockDirector.mockGetDomains(Samples.GET_DOMAINS).client(); - this.user = new TestConnectionFactory().getConnection(clientMock).getUser(); - this.domain = user.getDomain("foobarz"); - } - - @Test - public void shouldLoadEmptyListOfDomains() throws Throwable { - // pre-conditions - HttpClientMockDirector mockBuilder = new HttpClientMockDirector(); - IHttpClient clientMock = mockBuilder.mockGetDomains(GET_DOMAINS_EMPTY).client(); - IUser user = new TestConnectionFactory().getConnection(clientMock).getUser(); - // operation - final List domains = user.getDomains(); - // verifications - assertThat(domains).hasSize(0); - // 3 calls: /API + /API/user + /API/domains - mockBuilder - .verifyGetAny(3) - .verifyGetDomains(); - } - - @Test - public void shouldLoadDomains() throws Throwable { - // pre-conditions - // operation - final List domains = user.getDomains(); - // verifications - assertThat(domains).hasSize(2); - // 3 calls: /API + /API/user + /API/domains - mockDirector.verifyGetAny(3); - } - - @Test - public void shouldCreateNewDomain() throws Throwable { - // pre-conditions - mockDirector.mockCreateDomain(GET_DOMAINS_FOOBARS); - int numOfDomains = user.getDomains().size(); - // operation - final IDomain domain = user.createDomain("foobars"); - // verifications - assertThat(user.getDomains().size()).isSameAs(numOfDomains + 1); - assertThat(domain.getId()).isEqualTo("foobars"); - assertThat(domain.getSuffix()).isEqualTo("rhcloud.com"); - } - - @Test(expected = OpenShiftException.class) - public void shouldNotRecreateExistingDomain() throws Throwable { - // pre-conditions - // operation - user.createDomain("foobarz"); - // verifications - // expect an exception - } - - @Test - public void shouldDestroyDomain() throws Throwable { - // pre-conditions - mockDirector.mockDeleteDomain("foobarz", DELETE_DOMAINS_FOOBARZ); - // operation - final IDomain domain = user.getDomain("foobarz"); - domain.destroy(); - // verifications - assertThat(user.getDomain("foobarz")).isNull(); - // 2 domains, 1 destroyed - assertThat(user.getDomains()).hasSize(1); - } - - @Test - public void shouldNotDestroyDomainWithApp() throws Throwable { - // pre-conditions - mockDirector.mockDeleteDomain("foobarz", - new BadRequestException("Domain contains applications. Delete applications first or set force to true.", null)); - // operation - final IDomain domain = user.getDomain("foobarz"); - try { - domain.destroy(); - fail("Expected an exception here.."); - } catch (OpenShiftEndpointException e) { - assertThat(e.getCause()).isInstanceOf(BadRequestException.class); - } - // verifications - assertThat(domain).isNotNull(); - assertThat(user.getDomains()).isNotEmpty().contains(domain); - } - - @Test - public void shouldUpdateDomainId() throws Throwable { - // pre-conditions - mockDirector.mockRenameDomain("foobarz", GET_DOMAINS_FOOBARS); - final IDomain domain = user.getDomain("foobarz"); - // operation - domain.rename("foobars"); - // verifications - assertThat(domain.getId()).isEqualTo("foobars"); - final IDomain updatedDomain = user.getDomain("foobars"); - assertThat(updatedDomain).isNotNull(); - assertThat(updatedDomain.getId()).isEqualTo("foobars"); - mockDirector.verifyRenameDomain("foobarz"); - } - - @Test - public void shouldListAvailableGearSizes() throws Throwable { - // pre-conditions - final IDomain domain = user.getDomain("foobarz"); - // operation - List availableGearSizes = domain.getAvailableGearProfiles(); - // verifications - assertThat(availableGearSizes.size() > 0); - } - - @Test - public void shouldRefreshDomainAndLoadApplications() throws Throwable { - // pre-conditions - mockDirector - .mockGetDomain("foobarz", GET_DOMAINS_FOOBARZ) - .mockGetApplications("foobarz", GET_DOMAINS_FOOBARZ_APPLICATIONS_1EMBEDDED); - - final IDomain domain = user.getDomain("foobarz"); - assertThat(domain).isNotNull(); - - // operation - domain.refresh(); - - // verifications - mockDirector - .verifyGetDomain("foobarz") // explicit refresh - .verifyGetApplications("foobarz", 1); // two calls, before and while refresh - } - - @Test - public void shouldRefreshDomainAndReloadApplications() throws Throwable { - // pre-conditions - mockDirector - .mockGetDomain("foobarz", GET_DOMAINS_FOOBARZ) - .mockGetApplications("foobarz", GET_DOMAINS_FOOBARZ_APPLICATIONS_1EMBEDDED); - - final IDomain domain = user.getDomain("foobarz"); - assertThat(domain).isNotNull(); - - // operation - domain.getApplications(); - domain.refresh(); - - // verifications - mockDirector - .verifyGetDomain("foobarz") // explicit refresh - .verifyGetApplications("foobarz", 2); // two calls, before and while refresh - } - - - @Test - public void shouldLoadListOfApplicationsWithNoElement() throws Throwable { - // pre-conditions - mockDirector.mockGetApplications("foobarz", GET_DOMAINS_FOOBARZ_APPLICATIONS_NOAPPS); - // operation - final List apps = domain.getApplications(); - // verifications - assertThat(apps).isEmpty(); - mockDirector - .verifyGetAPI() - .verifyGetUser() - .verifyGetDomains() - .verifyGetApplications("foobarz", 1) - .verifyGetAny(4); - } - - @Test - public void shouldLoadListOfApplicationsWith2Elements() throws Throwable { - // pre-conditions - mockDirector.mockGetApplications("foobarz", GET_DOMAINS_FOOBARZ_APPLICATIONS_1EMBEDDED); - // operation - final List apps = domain.getApplications(); - // verifications - assertThat(apps).hasSize(2); - mockDirector - .verifyGetAPI() - .verifyGetUser() - .verifyGetDomains() - .verifyGetApplications("foobarz", 1) - .verifyGetAny(4); - } - - @Test - public void shouldNotLoadApplicationTwice() throws Throwable { - // pre-conditions - mockDirector.mockGetApplications("foobarz", GET_DOMAINS_FOOBARZ_APPLICATIONS_1EMBEDDED); - // operation - List apps = domain.getApplications(); - assertThat(apps).hasSize(2); - - // verifications - reset(clientMock); - apps = domain.getApplications(); // dont do new client request - mockDirector.verifyGetAny(0); - } - - @Test(expected = InvalidCredentialsOpenShiftException.class) - public void shouldNotLoadListOfApplicationsWithInvalidCredentials() - throws OpenShiftException, HttpClientException, SocketTimeoutException { - // pre-conditions - mockDirector.mockGetApplications("foobarz", new UnauthorizedException("invalid credentials (mock)", null)); - // operation - domain.getApplications(); - // verifications - mockDirector.verifyGetAPI() - .verifyGetUser() - .verifyGetAny(2); - } - - @Test - public void shouldCreateApplicationWithDownloadableCartridge() throws Throwable { - // pre-conditions - mockDirector - .mockGetApplications("foobarz", GET_DOMAINS_FOOBARZ_APPLICATIONS_NOAPPS) - .mockCreateApplication("foobarz", Samples.GET_DOMAINS_FOOBARZ_APPLICATIONS_DOWNLOADABLECART); - - // operation - final IApplication app = domain.createApplication( - "downloadablecart", Cartridges.go11(), null, null, null, IHttpClient.NO_TIMEOUT, - Cartridges.foreman063(), - Cartridges.mysql51()); - - // verifications - new ApplicationAssert(app) - .hasName("downloadablecart") - .hasGearProfile(GearProfileTestUtils.getFirstAvailableGearProfile(domain)) - .hasCreationTime() - .hasUUID() - .hasDomain(domain) - .hasEmbeddableCartridges(2) - .hasEmbeddedCartridge(Cartridges.mysql51()) - .hasEmbeddedCartridge(Cartridges.foreman063()); - new DomainAssert(domain) - .hasApplications(app) - .hasApplications(1); - } - - @Test - public void shouldUpdateDownloadableStandaloneCartridgeAfterDeploy() throws Throwable { - // pre-conditions - mockDirector - .mockGetApplications("foobarz", GET_DOMAINS_FOOBARZ_APPLICATIONS_NOAPPS) - .mockCreateApplication("foobarz", GET_DOMAINS_FOOBARZ_APPLICATIONS_DOWNLOADABLECART); - new CartridgeAssert(Cartridges.go11()) - .hasName(null) - .hasDescription(null) - .hasDisplayName(null) - .hasUrl(Cartridges.GO_DOWNLOAD_URL); - - // operation - final IApplication app = domain.createApplication( - "springeap6", Cartridges.eap6(), null, null, null, IHttpClient.NO_TIMEOUT, - Cartridges.foreman063(), - Cartridges.mysql51()); - - // verifications - // cartridge was updated with name, description, display name - new CartridgeAssert(app.getCartridge()) - .hasName("smarterclayton-go-1.1") - .hasDescription("OpenShift Go cartridge") - .hasDisplayName("Go 1.1") - .hasUrl(Cartridges.GO_DOWNLOAD_URL); - } - - @Test - public void shouldRequestCreateApplicationWithDownloadableCartridge() throws Throwable { - // pre-conditions - mockDirector - .mockGetApplications("foobarz", GET_DOMAINS_FOOBARZ_APPLICATIONS_NOAPPS) - .mockCreateApplication("foobarz", Samples.GET_DOMAINS_FOOBARZ_APPLICATIONS_DOWNLOADABLECART); - - // operation - domain.createApplication( - "downloadablecart", Cartridges.go11(), null, null, null, IHttpClient.NO_TIMEOUT, - Cartridges.foreman063(), - Cartridges.mysql51()); - - // verifications - mockDirector.verifyCreateApplication("foobarz", IHttpClient.NO_TIMEOUT, - new StringParameter(IOpenShiftJsonConstants.PROPERTY_NAME, "downloadablecart"), - new Parameter(IOpenShiftJsonConstants.PROPERTY_CARTRIDGES, - new ParameterValueArray() - .add(new ParameterValueMap().add(IOpenShiftJsonConstants.PROPERTY_URL, Cartridges.GO_DOWNLOAD_URL)) - .add(new ParameterValueMap().add(IOpenShiftJsonConstants.PROPERTY_URL, Cartridges.FOREMAN_DOWNLOAD_URL)) - .add(new ParameterValueMap().add(IOpenShiftJsonConstants.PROPERTY_NAME, Cartridges.mysql51().getName())))); - } - - @Test - public void shouldHaveMessagesWhenCreating() throws Throwable { - // pre-conditions - mockDirector - .mockGetApplications("foobarz", GET_DOMAINS_FOOBARZ_APPLICATIONS_NOAPPS) - .mockCreateApplication("foobarz", POST_JEKYLL_DOMAINS_FOOBARZ_APPLICATIONS); - // operation - final IApplication app = domain.createApplication("jekyll", Cartridges.jenkins14()); - // verifications - Messages messages = app.getMessages(); - assertThat(messages).isNotNull(); - assertThat(messages.getAll()).hasSize(3); - List defaultMessages = messages.getBy(IField.DEFAULT); - assertThat(defaultMessages).hasSize(3); - List infoSeverityMessages = messages.getBy(IField.DEFAULT, ISeverity.INFO); - assertThat(infoSeverityMessages).hasSize(1); - new MessageAssert(infoSeverityMessages.get(0)) - .hasExitCode(0) - .hasText("Application jekyll was created."); - List debugSeverityMessages = app.getMessages().getBy(IField.DEFAULT, ISeverity.DEBUG); - assertThat(debugSeverityMessages).hasSize(1); - new MessageAssert(debugSeverityMessages.get(0)) - .hasExitCode(0) - .hasText("The cartridge jenkins deployed a template application"); - List resultSeverityMessages = messages.getBy(IField.DEFAULT, ISeverity.RESULT); - assertThat(resultSeverityMessages).hasSize(1); - new MessageAssert(resultSeverityMessages.get(0)) - .hasExitCode(0) - .hasText("Jenkins created successfully. " - + "Please make note of these credentials:\n User: admin\n Password: wLwSzJPh6dqN\n" - + "Note: You can change your password at: https://jekyll-foobarz.rhcloud.com/me/configure\n"); - } - - @Test - public void shouldRequestCreateApplicationWithNameAndCartridgeOnly() throws Throwable { - // pre-conditions - mockDirector - .mockGetApplications("foobarz", GET_DOMAINS_FOOBARZ_APPLICATIONS_NOAPPS) - .mockCreateApplication("foobarz", POST_SCALABLE_DOMAINS_FOOBARZ_APPLICATIONS); - // operation - domain.createApplication("foo", Cartridges.as7()); - - // verification - mockDirector.verifyCreateApplication( - "foobarz", - IHttpClient.NO_TIMEOUT, - new StringParameter(IOpenShiftJsonConstants.PROPERTY_NAME, "foo"), - new Parameter(IOpenShiftJsonConstants.PROPERTY_CARTRIDGES, - new ParameterValueArray() - .add(new ParameterValueMap().add( - IOpenShiftJsonConstants.PROPERTY_NAME, Cartridges.JBOSSAS_7_NAME)))); - } - - @Test - public void shouldRequestCreateApplicationWithNameCartridgeAndScaleOnly() throws Throwable { - // pre-conditions - mockDirector - .mockGetApplications("foobarz", GET_DOMAINS_FOOBARZ_APPLICATIONS_NOAPPS) - .mockCreateApplication("foobarz", POST_SCALABLE_DOMAINS_FOOBARZ_APPLICATIONS); - // operation - domain.createApplication("foo", Cartridges.as7(), ApplicationScale.SCALE); - - // verification - mockDirector.verifyCreateApplication("foobarz", IHttpClient.NO_TIMEOUT, - new StringParameter(IOpenShiftJsonConstants.PROPERTY_NAME, "foo"), - new Parameter(IOpenShiftJsonConstants.PROPERTY_CARTRIDGES, - new ParameterValueArray() - .add(new ParameterValueMap().add(IOpenShiftJsonConstants.PROPERTY_NAME, JBOSSAS_7_NAME))), - new StringParameter(IOpenShiftJsonConstants.PROPERTY_SCALE, ApplicationScale.SCALE.getValue())); - } - - @Test - public void shouldRequestCreateApplicationWithNameCartridgeScaleGearProfileOnly() throws Throwable { - // pre-conditions - mockDirector - .mockGetApplications("foobarz", GET_DOMAINS_FOOBARZ_APPLICATIONS_NOAPPS) - .mockCreateApplication("foobarz", POST_SCALABLE_DOMAINS_FOOBARZ_APPLICATIONS); - // operation - domain.createApplication("foo", Cartridges.as7(), ApplicationScale.SCALE, GearProfileTestUtils.getFirstAvailableGearProfile(domain)); - - // verification - mockDirector.verifyCreateApplication("foobarz", IHttpClient.NO_TIMEOUT, - new StringParameter(IOpenShiftJsonConstants.PROPERTY_NAME, "foo"), - new Parameter(IOpenShiftJsonConstants.PROPERTY_CARTRIDGES, - new ParameterValueArray() - .add(new ParameterValueMap().add(IOpenShiftJsonConstants.PROPERTY_NAME, JBOSSAS_7_NAME))), - new StringParameter(IOpenShiftJsonConstants.PROPERTY_SCALE, ApplicationScale.SCALE.getValue()), - new StringParameter(IOpenShiftJsonConstants.PROPERTY_GEAR_PROFILE, GearProfileTestUtils.getFirstAvailableGearProfile(domain).getName()) - ); - } - - @Test - public void shouldRequestCreateApplicationWithNameCartridgeScaleGearProfileAndGitUrl() throws Throwable { - // pre-conditions - mockDirector - .mockGetApplications("foobarz", GET_DOMAINS_FOOBARZ_APPLICATIONS_NOAPPS) - .mockCreateApplication("foobarz", POST_SCALABLE_DOMAINS_FOOBARZ_APPLICATIONS); - // operation - domain.createApplication( - "foo", Cartridges.as7(), - ApplicationScale.SCALE, - GearProfileTestUtils.getFirstAvailableGearProfile(domain), - "git://github.com/adietish/openshift-java-client.git"); - - // verification - mockDirector.verifyCreateApplication("foobarz", IHttpClient.NO_TIMEOUT, - new StringParameter(IOpenShiftJsonConstants.PROPERTY_NAME, "foo"), - new Parameter(IOpenShiftJsonConstants.PROPERTY_CARTRIDGES, - new ParameterValueArray() - .add(new ParameterValueMap().add(IOpenShiftJsonConstants.PROPERTY_NAME, JBOSSAS_7_NAME))), - new StringParameter(IOpenShiftJsonConstants.PROPERTY_SCALE, ApplicationScale.SCALE.getValue()), - new StringParameter(IOpenShiftJsonConstants.PROPERTY_GEAR_PROFILE, GearProfileTestUtils.getFirstAvailableGearProfile(domain).getName()), - new StringParameter(IOpenShiftJsonConstants.PROPERTY_INITIAL_GIT_URL, "git://github.com/adietish/openshift-java-client.git") - ); - } - - @Test - public void shouldRequestCreateApplicationWithEmbeddableCartridges() throws Throwable { - // pre-conditions - mockDirector - .mockGetApplications("foobarz", GET_DOMAINS_FOOBARZ_APPLICATIONS_NOAPPS) - .mockCreateApplication("foobarz", POST_SCALABLE_DOMAINS_FOOBARZ_APPLICATIONS); - - // operation - domain.createApplication( - "jekyll", - Cartridges.jenkins14(), - ApplicationScale.SCALE, - GearProfileTestUtils.getFirstAvailableGearProfile(domain), - "git://github.com/adietish/openshift-java-client.git", - 42001, - Cartridges.mongodb22(), - Cartridges.mysql51()); - - // verification - mockDirector.verifyCreateApplication( - "foobarz", - 42001, - new StringParameter(IOpenShiftJsonConstants.PROPERTY_NAME, "jekyll"), - new StringParameter(IOpenShiftJsonConstants.PROPERTY_SCALE, ApplicationScale.SCALE.getValue()), - new StringParameter(IOpenShiftJsonConstants.PROPERTY_GEAR_PROFILE, GearProfileTestUtils.getFirstAvailableGearProfile(domain).getName()), - new StringParameter(IOpenShiftJsonConstants.PROPERTY_INITIAL_GIT_URL, "git://github.com/adietish/openshift-java-client.git"), - new Parameter(IOpenShiftJsonConstants.PROPERTY_CARTRIDGES, - new ParameterValueArray() - .add(new ParameterValueMap().add(IOpenShiftJsonConstants.PROPERTY_NAME, - JENKINS_14_NAME)) - .add(new ParameterValueMap().add(IOpenShiftJsonConstants.PROPERTY_NAME, - MONGODB_22_NAME)) - .add(new ParameterValueMap().add(IOpenShiftJsonConstants.PROPERTY_NAME, - Cartridges.MYSQL_51_NAME)))); - } - - @Test(expected = OpenShiftException.class) - public void shouldNotCreateApplicationWithMissingName() throws Throwable { - // pre-conditions - mockDirector.mockGetApplications("foobarz", GET_DOMAINS_FOOBARZ_APPLICATIONS_1EMBEDDED); - // operation - domain.createApplication(null, Cartridges.as7(), null, null); - // verifications - // expected exception - } - - @Test(expected = OpenShiftException.class) - public void shouldNotCreateApplicationWithMissingCartridge() throws Throwable { - // pre-conditions - mockDirector.mockGetApplications("foobarz", GET_DOMAINS_FOOBARZ_APPLICATIONS_NOAPPS); - // operation - domain.createApplication("foo", null, null, null); - // verifications - // expected exception - } - - @Test - public void shouldNotRecreateExistingApplication() throws Throwable { - // pre-conditions - mockDirector.mockGetApplications("foobarz", GET_DOMAINS_FOOBARZ_APPLICATIONS_1EMBEDDED); - // operation - try { - domain.createApplication("springeap6", Cartridges.as7(), null, null); - // expect an exception - fail("Expected exception here..."); - } catch (OpenShiftException e) { - // OK - } - // verifications - assertThat(domain.getApplications()).hasSize(2); - } - - @Test - public void shouldGetApplicationByNameCaseInsensitive() throws Throwable { - // pre-conditions - mockDirector.mockGetApplications("foobarz", GET_DOMAINS_FOOBARZ_APPLICATIONS_1EMBEDDED); - // operation - IApplication lowerCaseQueryResult = domain.getApplicationByName("springeap6"); - IApplication upperCaseQueryResult = domain.getApplicationByName("SPRINGEAP6"); - - // verifications - assertThat(lowerCaseQueryResult).isNotNull(); - assertThat(lowerCaseQueryResult.getName()).isEqualTo("springeap6"); - assertThat(upperCaseQueryResult).isNotNull(); - assertThat(upperCaseQueryResult.getName()).isEqualTo("springeap6"); - } - - @Test - @Ignore - public void shouldRefreshDomain() throws Throwable { - fail("not implemented yet"); - } - - @Test - @Ignore - public void shouldNotReloadDomainTwice() throws Throwable { - fail("not implemented yet"); - } - - @Test - @Ignore - public void shouldNotifyAfterDomainCreated() throws Throwable { - fail("not implemented yet"); - } - - @Test - @Ignore - public void shouldNotifyAfterDomainUpdated() throws Throwable { - fail("not implemented yet"); - } - - @Test - @Ignore - public void shouldNotifyAfterDomainDestroyed() throws Throwable { - fail("not implemented yet"); - } - - @Test - public void shouldPassTimeoutToClient() throws Throwable { - // pre-conditions - int timeout = 42 * 1000; - mockDirector - .mockGetApplications("foobarz", GET_DOMAINS_FOOBARZ_APPLICATIONS_NOAPPS) - .mockCreateApplication("foobarz", POST_SCALABLE_DOMAINS_FOOBARZ_APPLICATIONS); - - // operation - domain.createApplication("scalable", Cartridges.as7(), ApplicationScale.NO_SCALE, GearProfileTestUtils.getFirstAvailableGearProfile(domain), null, timeout); - - // verifications - mockDirector.verifyCreateApplication("foobarz", timeout, - new StringParameter(IOpenShiftJsonConstants.PROPERTY_SCALE, String.valueOf(Boolean.FALSE)), - new StringParameter(IOpenShiftJsonConstants.PROPERTY_GEAR_PROFILE, GearProfileTestUtils.getFirstAvailableGearProfile(domain).getName()), - new Parameter(IOpenShiftJsonConstants.PROPERTY_CARTRIDGES, - new ParameterValueArray().add( - new ParameterValueMap().add(IOpenShiftJsonConstants.PROPERTY_NAME, JBOSSAS_7_NAME))), - new StringParameter(IOpenShiftJsonConstants.PROPERTY_NAME, "scalable")); - } - - @Test - public void shouldReportCannotCreateAppWithEnvVars() throws Throwable { - // pre-conditions - IDomain domain = user.getDomain("foobarz"); - assertThat(domain).isNotNull(); - - // operation - boolean canCreateWithEnvVars = domain.canCreateApplicationWithEnvironmentVariables(); - - // verifications - assertThat(canCreateWithEnvVars).isFalse(); - } - - @Test - public void shouldReportCanCreateAppWithEnvVars() throws Throwable { - // pre-conditions - IDomain domain = user.getDomain("foogoo"); - assertThat(domain).isNotNull(); - - // operation - boolean canCreateWithEnvVars = domain.canCreateApplicationWithEnvironmentVariables(); - - // verifications - assertThat(canCreateWithEnvVars).isTrue(); - } - - @Test - public void shouldEqualDomainFromOtherUser() throws Throwable { - // pre-conditions - IUser user = new TestConnectionFactory().getConnection(clientMock).getUser(); - - // operation - final IDomain domain = user.getDomain("foobarz"); - - // verifications - assertThat(domain).isEqualTo(this.domain); - assertTrue(domain != this.domain); // not same objects - } - -} diff --git a/src/test/java/com/openshift/internal/client/EmbeddableCartridgeTest.java b/src/test/java/com/openshift/internal/client/EmbeddableCartridgeTest.java deleted file mode 100644 index 5443431d..00000000 --- a/src/test/java/com/openshift/internal/client/EmbeddableCartridgeTest.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.internal.client; - -import static org.fest.assertions.Assertions.assertThat; - -import java.net.MalformedURLException; -import java.net.URL; - -import org.junit.Before; -import org.junit.Test; - -import com.openshift.client.IHttpClient; -import com.openshift.client.IOpenShiftConnection; -import com.openshift.client.cartridge.EmbeddableCartridge; -import com.openshift.client.cartridge.IEmbeddableCartridge; -import com.openshift.client.cartridge.StandaloneCartridge; -import com.openshift.client.utils.CartridgeAssert; -import com.openshift.client.utils.Cartridges; -import com.openshift.client.utils.Samples; -import com.openshift.client.utils.TestConnectionFactory; - -/** - * @author Andre Dietisheim - */ -public class EmbeddableCartridgeTest extends TestTimer { - - private IOpenShiftConnection connection; - - @Before - public void setup() throws Throwable { - IHttpClient client = new HttpClientMockDirector() - .mockGetCartridges(Samples.GET_CARTRIDGES) - .client(); - this.connection = new TestConnectionFactory().getConnection(client); - } - - @Test - public void shouldNonDownloadableEqualsNonDownloadable() { - // pre-coniditions - // operation - // verification - assertThat(new EmbeddableCartridge("redhat")) - .isEqualTo(new EmbeddableCartridge("redhat")); - assertThat(new EmbeddableCartridge("redhat")) - .isNotEqualTo(new EmbeddableCartridge("jboss")); - } - - @Test - public void shouldDownloadableEqualsDownloadable() throws MalformedURLException { - // pre-coniditions - // operation - // verification - assertThat(new EmbeddableCartridge(new URL(Cartridges.FOREMAN_DOWNLOAD_URL))) - .isEqualTo(new EmbeddableCartridge(new URL(Cartridges.FOREMAN_DOWNLOAD_URL))); - } - - @Test - public void shouldDownloadableWithNonEqualNameEqualsDownloadable() throws MalformedURLException { - // pre-coniditions - // operation - // verification - assertThat(new EmbeddableCartridge("redhat", new URL(Cartridges.FOREMAN_DOWNLOAD_URL))) - .isEqualTo(new EmbeddableCartridge(null, new URL(Cartridges.FOREMAN_DOWNLOAD_URL))); - // should equal if url is equal, name doesnt matter - // (name is updated as soon as cartridge is deployed) - assertThat(new EmbeddableCartridge("jboss", new URL(Cartridges.FOREMAN_DOWNLOAD_URL))) - .isEqualTo(new EmbeddableCartridge("redhat", new URL(Cartridges.FOREMAN_DOWNLOAD_URL))); - } - - @Test - public void shouldDownloadableStandaloneNotEqualsDownloadableEmbeddable() throws MalformedURLException { - // pre-coniditions - // operation - // verification - assertThat(new EmbeddableCartridge(null, new URL(Cartridges.FOREMAN_DOWNLOAD_URL))) - .isNotEqualTo(new StandaloneCartridge(null, new URL(Cartridges.GO_DOWNLOAD_URL))); - } - - @Test - public void shouldHaveNameDisplaynameDescription() throws Throwable { - // pre-condition - IEmbeddableCartridge mongoDb = connection.getEmbeddableCartridges().get(0); - CartridgeAssert cartridgeAssert = new CartridgeAssert(mongoDb); - - // operation - // verifcation - cartridgeAssert - .hasName("mongodb-2.2") - .hasDisplayName("MongoDB NoSQL Database 2.2") - .hasDescription("MongoDB is a scalable, high-performance, open source NoSQL database."); - } - -} diff --git a/src/test/java/com/openshift/internal/client/EmbeddedCartridgeResourceIntegrationTest.java b/src/test/java/com/openshift/internal/client/EmbeddedCartridgeResourceIntegrationTest.java deleted file mode 100755 index c2e7719c..00000000 --- a/src/test/java/com/openshift/internal/client/EmbeddedCartridgeResourceIntegrationTest.java +++ /dev/null @@ -1,502 +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 static org.fest.assertions.Assertions.assertThat; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; - -import java.io.FileNotFoundException; -import java.io.IOException; -import java.net.SocketTimeoutException; -import java.net.URISyntaxException; -import java.util.List; - -import org.fest.assertions.Condition; -import org.junit.Before; -import org.junit.Test; - -import com.openshift.client.IApplication; -import com.openshift.client.IDomain; -import com.openshift.client.IUser; -import com.openshift.client.OpenShiftEndpointException; -import com.openshift.client.OpenShiftException; -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.selector.LatestVersionOf; -import com.openshift.client.utils.ApplicationAssert; -import com.openshift.client.utils.ApplicationTestUtils; -import com.openshift.client.utils.Cartridges; -import com.openshift.client.utils.DomainTestUtils; -import com.openshift.client.utils.EmbeddedCartridgeAssert; -import com.openshift.client.utils.EmbeddedCartridgeTestUtils; -import com.openshift.client.utils.TestConnectionFactory; - -/** - * @author André Dietisheim - */ -public class EmbeddedCartridgeResourceIntegrationTest extends TestTimer { - - private IDomain domain; - private IUser user; - - @Before - public void setUp() throws OpenShiftException, IOException { - this.user = new TestConnectionFactory().getConnection().getUser(); - this.domain = DomainTestUtils.ensureHasDomain(user); - } - - @Test - public void shouldReturnEmbeddedCartridgesForApplication() throws SocketTimeoutException, OpenShiftException { - // pre-conditions - IStandaloneCartridge jbossAs = LatestVersionOf.jbossAs().get(user); - assertThat(jbossAs).isNotNull(); - IApplication application = ApplicationTestUtils.ensureHasExactly1Application(jbossAs, domain); - - // operation - List embeddedCartridges = application.getEmbeddedCartridges(); - // verification - assertThat(embeddedCartridges).isNotNull(); - } - - @Test - public void shouldNotContainTypeInEmbeddedCartridges() throws SocketTimeoutException, OpenShiftException { - // pre-conditions - final IStandaloneCartridge jbossAs = LatestVersionOf.jbossAs().get(user); - assertThat(jbossAs).isNotNull(); - IApplication application = ApplicationTestUtils.ensureHasExactly1Application(jbossAs, domain); - - // operation - List embeddedCartridges = application.getEmbeddedCartridges(); - // verification - assertThat(embeddedCartridges).doesNotSatisfy(new Condition>() { - - @Override - public boolean matches(List values) { - for(Object value : values) { - if (!(value instanceof ICartridge)) { - continue; - } - if (jbossAs.getName().equals(((ICartridge)value).getName())) { - return true; - }; - } - return false; - } - }); - } - - @Test - public void shouldEmbedMySQL() throws SocketTimeoutException, OpenShiftException, URISyntaxException { - // pre-conditions - IApplication application = ApplicationTestUtils.ensureHasExactly1Application( - LatestVersionOf.jbossAs(), domain); - EmbeddedCartridgeTestUtils.silentlyDestroyAllEmbeddedCartridges(application); - IEmbeddableCartridge mysql = LatestVersionOf.mySQL().get(user); - assertThat(mysql).isNotNull(); - assertThat(new ApplicationAssert(application)).hasNotEmbeddableCartridge(mysql); - int numOfEmbeddedCartridges = application.getEmbeddedCartridges().size(); - - // operation - application.addEmbeddableCartridge(mysql); - - // verification - assertThat(new ApplicationAssert(application)) - .hasEmbeddableCartridges(numOfEmbeddedCartridges + 1) - .hasEmbeddedCartridge(LatestVersionOf.mySQL()); - } - - /** - * Verify in application created with different user instance. - */ - @Test - public void shouldHaveUrlInEmbeddedMySQL() throws OpenShiftException, URISyntaxException, FileNotFoundException, - IOException { - // pre-conditions - IApplication application = ApplicationTestUtils.ensureHasExactly1Application( - LatestVersionOf.jbossAs(), domain); - EmbeddedCartridgeTestUtils.ensureHasEmbeddedCartridges(LatestVersionOf.mySQL(), application); - // verify using user instance that's not the one used to create - IUser user2 = new TestConnectionFactory().getConnection().getUser(); - IApplication user2Application = user2.getDefaultDomain().getApplicationByName(application.getName()); - assertThat(new ApplicationAssert(user2Application)) - .hasEmbeddedCartridge(LatestVersionOf.mySQL()); - - // operation - - // verification - IEmbeddableCartridge mysql = - LatestVersionOf.mySQL().get(user2); - assertThat(mysql).isNotNull(); - new EmbeddedCartridgeAssert(user2Application.getEmbeddedCartridge(mysql)) - .hasUrlProperty(); - } - - /** - * Verify in application created with different user instance. - */ - @Test - public void shouldHaveDescriptionAndDisplayNameInEmbeddedMySQL() throws OpenShiftException, URISyntaxException, FileNotFoundException, - IOException { - // pre-conditions - IApplication application = ApplicationTestUtils.ensureHasExactly1Application( - LatestVersionOf.jbossAs(), domain); - EmbeddedCartridgeTestUtils.ensureHasEmbeddedCartridges(LatestVersionOf.mySQL(), application); - // verify using user instance that's not the one used to create - - // operation - IEmbeddedCartridge mysql = application.getEmbeddedCartridge(LatestVersionOf.mySQL().get(user)); - - // verification - new EmbeddedCartridgeAssert(mysql) - .hasDescription() - .hasDisplayName(); - } - - @Test - public void shouldReturnThatHasMySQL() throws OpenShiftException, FileNotFoundException, IOException { - // pre-conditions - IApplication application = ApplicationTestUtils.ensureHasExactly1Application( - LatestVersionOf.jbossAs(), domain); - EmbeddedCartridgeTestUtils.ensureHasEmbeddedCartridges( - LatestVersionOf.mySQL(), application); - // verify using user instance that's not the one used to create - IUser user2 = new TestConnectionFactory().getConnection().getUser(); - IApplication user2Application = user2.getDefaultDomain().getApplicationByName(application.getName()); - EmbeddedCartridgeTestUtils.ensureHasEmbeddedCartridges( - LatestVersionOf.mySQL(), user2Application); - - // operation - - // verification - assertThat(new ApplicationAssert(user2Application)) - .hasEmbeddedCartridge(LatestVersionOf.mySQL()); - } - - @Test - public void shouldEmbedPostgreSQL() throws SocketTimeoutException, OpenShiftException, URISyntaxException { - // pre-conditions - IApplication application = ApplicationTestUtils.ensureHasExactly1Application( - LatestVersionOf.jbossAs(), domain); - EmbeddedCartridgeTestUtils.silentlyDestroyAllEmbeddedCartridges(application); - IEmbeddableCartridge postgres = LatestVersionOf.postgreSQL().get(user); - assertThat(new ApplicationAssert(application)) - .hasNotEmbeddableCartridge(postgres); - - // operation - application.addEmbeddableCartridge(postgres); - - // verification - assertThat(new ApplicationAssert(application)) - .hasEmbeddedCartridge(LatestVersionOf.postgreSQL()); - new EmbeddedCartridgeAssert(application.getEmbeddedCartridge(postgres)) - .hasUrlProperty(); - } - - @Test - public void shouldHaveUrlInEmbeddedPostgres() throws OpenShiftException, URISyntaxException, FileNotFoundException, - IOException { - // pre-conditions - IApplication application = ApplicationTestUtils.ensureHasExactly1Application( - LatestVersionOf.jbossAs(), domain); - EmbeddedCartridgeTestUtils.ensureHasEmbeddedCartridges( - LatestVersionOf.postgreSQL(), application); - // verify using user instance that's not the one used to create - IUser user2 = new TestConnectionFactory().getConnection().getUser(); - IApplication user2Application = user2.getDefaultDomain().getApplicationByName(application.getName()); - assertThat(new ApplicationAssert(user2Application)).hasEmbeddedCartridge( - LatestVersionOf.postgreSQL()); - - // operation - - // verification - IEmbeddableCartridge postgres2 = LatestVersionOf.postgreSQL().get(user2); - new EmbeddedCartridgeAssert(user2Application.getEmbeddedCartridge(postgres2)) - .hasUrlProperty(); - } - - @Test - public void shouldEmbedMongo() throws Exception { - // pre-conditions - IApplication application = ApplicationTestUtils.ensureHasExactly1Application(LatestVersionOf.jbossAs(), domain); - EmbeddedCartridgeTestUtils.silentlyDestroyAllEmbeddedCartridges(application); - IEmbeddableCartridge mongo = LatestVersionOf.mongoDB().get(user); - assertThat(new ApplicationAssert(application)) - .hasNotEmbeddableCartridge(mongo); - - // operation - application.addEmbeddableCartridge(LatestVersionOf.mongoDB().get(user)); - - // verification - assertThat(new ApplicationAssert(application) - .hasEmbeddedCartridge(LatestVersionOf.mongoDB())); - new EmbeddedCartridgeAssert(application.getEmbeddedCartridge(mongo)) - .hasUrlProperty(); - } - - @Test - public void shouldHaveUrlInEmbeddedMongo() throws OpenShiftException, URISyntaxException, FileNotFoundException, - IOException { - // pre-conditions - IApplication jbossAs = ApplicationTestUtils.getOrCreateApplication(domain, LatestVersionOf.jbossAs().get(user)); - EmbeddedCartridgeTestUtils.silentlyDestroyAllEmbeddedCartridges(jbossAs); - - // operation - jbossAs.addEmbeddableCartridge(LatestVersionOf.mongoDB().get(user)); - - // verification - new EmbeddedCartridgeAssert(jbossAs.getEmbeddedCartridge(LatestVersionOf.mongoDB().get(user))) - .hasUrlProperty(); - // verify using user instance that's not the one used to create - IUser user2 = new TestConnectionFactory().getConnection().getUser(); - IApplication user2Application = user2.getDefaultDomain().getApplicationByName(jbossAs.getName()); - IEmbeddableCartridge mongo = LatestVersionOf.mongoDB().get(user2); - new EmbeddedCartridgeAssert(user2Application.getEmbeddedCartridge(mongo)) - .hasUrlProperty(); - } - - @Test - public void shouldEmbedRockMongo() throws Exception { - // pre-conditions - // have to make sure have non-scalable app without cartridges - IApplication jbossAs = ApplicationTestUtils.getOrCreateApplication(domain, LatestVersionOf.jbossAs().get(user)); - jbossAs = ApplicationTestUtils.destroyAndRecreateIfScalable(jbossAs); - EmbeddedCartridgeTestUtils.silentlyDestroyAllEmbeddedCartridges(jbossAs); - - assertThat(new ApplicationAssert(jbossAs) - .hasNotEmbeddableCartridges(LatestVersionOf.mongoDB()) - .hasNotEmbeddableCartridges(LatestVersionOf.rockMongo())); - - // operation - jbossAs.addEmbeddableCartridge(LatestVersionOf.mongoDB().get(user)); - jbossAs.addEmbeddableCartridge(LatestVersionOf.rockMongo().get(user)); - - // verification - assertThat(new ApplicationAssert(jbossAs) - .hasEmbeddedCartridge(LatestVersionOf.mongoDB()) - .hasEmbeddedCartridge(LatestVersionOf.rockMongo())); - } - - @Test - public void shouldHaveUrlInEmbeddedRockMongo() - throws OpenShiftException, URISyntaxException, FileNotFoundException, IOException { - // pre-conditions - IApplication jbossAs = ApplicationTestUtils.getOrCreateApplication(domain, LatestVersionOf.jbossAs().get(user)); - jbossAs = ApplicationTestUtils.destroyAndRecreateIfScalable(jbossAs); - EmbeddedCartridgeTestUtils.silentlyDestroyAllEmbeddedCartridges(jbossAs); - assertThat(new ApplicationAssert(jbossAs) - .hasNotEmbeddableCartridges(LatestVersionOf.mongoDB()) - .hasNotEmbeddableCartridges(LatestVersionOf.rockMongo())); - - // operation - jbossAs.addEmbeddableCartridge(LatestVersionOf.mongoDB().get(user)); - jbossAs.addEmbeddableCartridge(LatestVersionOf.rockMongo().get(user)); - - // verification - IEmbeddableCartridge rockMongo = LatestVersionOf.rockMongo().get(user); - new EmbeddedCartridgeAssert(jbossAs.getEmbeddedCartridge(rockMongo)) - .hasUrlProperty(); - // verify using user instance that's not the one used to create - IUser user2 = new TestConnectionFactory().getConnection().getUser(); - IApplication user2Application = user2.getDefaultDomain().getApplicationByName(jbossAs.getName()); - assertThat(new ApplicationAssert(user2Application)).hasEmbeddedCartridges( - LatestVersionOf.mongoDB(), LatestVersionOf.rockMongo()); - new EmbeddedCartridgeAssert(user2Application.getEmbeddedCartridge(rockMongo)) - .hasUrlProperty(); - } - - @Test - public void shouldEmbedPhpMyAdmin() throws Exception { - // pre-conditions - IApplication jbossAs = ApplicationTestUtils.getOrCreateApplication(domain, LatestVersionOf.jbossAs().get(user)); - jbossAs = ApplicationTestUtils.destroyAndRecreateIfScalable(jbossAs); - EmbeddedCartridgeTestUtils.silentlyDestroyAllEmbeddedCartridges(jbossAs); - assertThat(new ApplicationAssert(jbossAs) - .hasNotEmbeddableCartridges(LatestVersionOf.mySQL()) - .hasNotEmbeddableCartridges(LatestVersionOf.phpMyAdmin())); - - // operation - jbossAs.addEmbeddableCartridge(LatestVersionOf.mySQL().get(user)); - jbossAs.addEmbeddableCartridge(LatestVersionOf.phpMyAdmin().get(user)); - - // verification - assertThat(new ApplicationAssert(jbossAs) - .hasEmbeddedCartridge(LatestVersionOf.mySQL())) - .hasEmbeddedCartridge(LatestVersionOf.phpMyAdmin()); - } - - @Test - public void shouldHaveUrlInEmbeddedPhpMyadmin() - throws OpenShiftException, URISyntaxException, FileNotFoundException, IOException { - // pre-conditions - // pre-conditions - IApplication jbossAs = ApplicationTestUtils.getOrCreateApplication(domain, LatestVersionOf.jbossAs().get(user)); - jbossAs = ApplicationTestUtils.destroyAndRecreateIfScalable(jbossAs); - EmbeddedCartridgeTestUtils.silentlyDestroyAllEmbeddedCartridges(jbossAs); - assertThat(new ApplicationAssert(jbossAs) - .hasNotEmbeddableCartridges(LatestVersionOf.mySQL()) - .hasNotEmbeddableCartridges(LatestVersionOf.phpMyAdmin())); - - // operation - jbossAs.addEmbeddableCartridge(LatestVersionOf.mySQL().get(user)); - jbossAs.addEmbeddableCartridge(LatestVersionOf.phpMyAdmin().get(user)); - - // verification - IEmbeddableCartridge phpMyadmin = LatestVersionOf.phpMyAdmin().get(user); - new EmbeddedCartridgeAssert(jbossAs.getEmbeddedCartridge(phpMyadmin)) - .hasUrlProperty(); - // verify using user instance that's not the one used to create - IUser user2 = new TestConnectionFactory().getConnection().getUser(); - IApplication user2Application = user2.getDefaultDomain().getApplicationByName(jbossAs.getName()); - IEmbeddableCartridge phpMyAdmin = LatestVersionOf.phpMyAdmin().get(user2); - new EmbeddedCartridgeAssert(user2Application.getEmbeddedCartridge(phpMyAdmin)) - .hasUrlProperty(); - } - - @Test - public void shouldEmbedJenkinsClient() throws Exception { - // pre-conditions - // need 2 free gears; jenkins + builder - IApplication application = ApplicationTestUtils.ensureHasExactly1Application( - LatestVersionOf.jbossAs(), domain); - EmbeddedCartridgeTestUtils.silentlyDestroyAllEmbeddedCartridges(application); - ApplicationTestUtils.createApplication( - LatestVersionOf.jenkins().get(user), domain); - - // operation - application.addEmbeddableCartridge(LatestVersionOf.jenkinsClient().get(user)); - - // verification - assertThat(new ApplicationAssert(application) - .hasEmbeddedCartridge(LatestVersionOf.jenkinsClient())); - } - - /** - * Verify in application created with different user instance. - * - * @throws SocketTimeoutException - * @throws OpenShiftException - * @throws URISyntaxException - */ - @Test - public void shouldHaveUrlInEmbeddedJenkinsClient() throws OpenShiftException, URISyntaxException, - FileNotFoundException, IOException { - // pre-conditions - IApplication jbossAs = ApplicationTestUtils.getOrCreateApplication(domain, LatestVersionOf.jbossAs().get(user)); - jbossAs = ApplicationTestUtils.destroyAndRecreateIfScalable(jbossAs); - EmbeddedCartridgeTestUtils.silentlyDestroyAllEmbeddedCartridges(jbossAs); - ApplicationTestUtils.getOrCreateApplication(domain, LatestVersionOf.jenkins().get(user)); - - // operation - EmbeddedCartridgeTestUtils.ensureHasEmbeddedCartridges(LatestVersionOf.jenkinsClient(), jbossAs); - - // verification - new EmbeddedCartridgeAssert(jbossAs.getEmbeddedCartridge(LatestVersionOf.jenkinsClient().get(user))) - .hasUrlProperty(); - // verify using user instance that's not the one used to create - IUser user2 = new TestConnectionFactory().getConnection().getUser(); - IApplication user2Application = user2.getDefaultDomain().getApplicationByName(jbossAs.getName()); - IEmbeddableCartridge jenkinsClient = - LatestVersionOf.jenkinsClient().get(user2); - new EmbeddedCartridgeAssert(user2Application.getEmbeddedCartridge(jenkinsClient)) - .hasUrlProperty(); - } - - @Test - public void shouldEmbedDownloadableCartridge() throws Exception { - // pre-conditions - IApplication application = ApplicationTestUtils.ensureHasExactly1Application(LatestVersionOf.jbossAs(), domain); - EmbeddedCartridgeTestUtils.silentlyDestroyAllEmbeddedCartridges(application); - assertThat(new ApplicationAssert(application)) - .hasNotEmbeddableCartridge(Cartridges.foreman063()); - - // operation - application.addEmbeddableCartridge(Cartridges.foreman063()); - - // verification - new ApplicationAssert(application) - .hasEmbeddedCartridgeNames(Cartridges.foreman063().getName()); - } - - @Test(expected = OpenShiftEndpointException.class) - public void shouldNotAddEmbeddedCartridgeTwice() throws Exception { - // pre-conditions - IApplication application = ApplicationTestUtils.ensureHasExactly1Application( - LatestVersionOf.jbossAs(), domain); - EmbeddedCartridgeTestUtils.ensureHasEmbeddedCartridges(LatestVersionOf.mySQL(), application); - - // operation - application.addEmbeddableCartridge(LatestVersionOf.mySQL().get(user)); - } - - @Test - public void shouldRemoveEmbeddedCartridge() throws Exception { - // pre-conditions - IApplication application = ApplicationTestUtils.ensureHasExactly1Application( - LatestVersionOf.jbossAs(), domain); - EmbeddedCartridgeTestUtils.ensureHasEmbeddedCartridges(LatestVersionOf.mySQL(), application); - int numOfEmbeddedCartridges = application.getEmbeddedCartridges().size(); - - // operation - application.removeEmbeddedCartridge(LatestVersionOf.mySQL().get(user)); - - // verification - assertTrue(application.getEmbeddedCartridges().size() == numOfEmbeddedCartridges - 1); - assertThat(new ApplicationAssert(application)) - .hasNotEmbeddableCartridge(LatestVersionOf.mySQL()); - } - - @Test - public void shouldNotRemoveEmbeddedCartridgeThatWasNotAdded() throws SocketTimeoutException, OpenShiftException { - // pre-conditions - IApplication application = ApplicationTestUtils.ensureHasExactly1Application( - LatestVersionOf.jbossAs(), domain); - EmbeddedCartridgeTestUtils.silentlyDestroy(LatestVersionOf.mySQL(), application); - int numOfEmbeddedCartridges = application.getEmbeddedCartridges().size(); - - // operation - application.removeEmbeddedCartridge(LatestVersionOf.mySQL().get(user)); - - // verification - IEmbeddableCartridge mySql = LatestVersionOf.mySQL().get(user); - assertThat(new ApplicationAssert(application)) - .hasEmbeddableCartridges(numOfEmbeddedCartridges) - .hasNotEmbeddableCartridge(mySql.getName()); - } - - @Test - public void shouldSeeCartridgeRemovedWithOtherUser() throws Exception { - // pre-condition - IApplication application = ApplicationTestUtils.ensureHasExactly1Application( - LatestVersionOf.jbossAs(), domain); - IEmbeddableCartridge mySqlEmbeddableCartridge = - LatestVersionOf.mySQL().get(user); - EmbeddedCartridgeTestUtils.ensureHasEmbeddedCartridge(mySqlEmbeddableCartridge, application); - assertThat(new ApplicationAssert(application) - .hasEmbeddedCartridge(LatestVersionOf.mySQL())); - - // operation - // use user instance that's not the one used to create - IUser user2 = new TestConnectionFactory().getConnection().getUser(); - IApplication user2Application = user2.getDefaultDomain().getApplicationByName(application.getName()); - user2Application.removeEmbeddedCartridge(LatestVersionOf.mySQL().get(user2)); - assertThat(new ApplicationAssert(user2Application) - .hasNotEmbeddableCartridges(LatestVersionOf.mySQL())); - - // verification - application.refresh(); - assertThat(new ApplicationAssert(application) - .hasNotEmbeddableCartridges(LatestVersionOf.mySQL())); - assertEquals(application.getEmbeddedCartridges().size(), user2Application.getEmbeddedCartridges().size()); - } -} diff --git a/src/test/java/com/openshift/internal/client/EmbeddedCartridgeResourceTest.java b/src/test/java/com/openshift/internal/client/EmbeddedCartridgeResourceTest.java deleted file mode 100644 index bb26fcb7..00000000 --- a/src/test/java/com/openshift/internal/client/EmbeddedCartridgeResourceTest.java +++ /dev/null @@ -1,286 +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 static com.openshift.client.utils.Cartridges.FOREMAN_DOWNLOAD_URL; -import static com.openshift.client.utils.Samples.GET_DOMAINS; -import static com.openshift.client.utils.Samples.GET_DOMAINS_FOOBARZ_APPLICATIONS_2EMBEDDED; -import static com.openshift.client.utils.Samples.GET_DOMAINS_FOOBARZ_APPLICATIONS_3EMBEDDED; -import static com.openshift.client.utils.Samples.GET_DOMAINS_FOOBARZ_APPLICATIONS_DOWNLOADABLECART; -import static com.openshift.client.utils.Samples.GET_DOMAINS_FOOBARZ_APPLICATIONS_SPRINGEAP6_CARTRIDGES_2EMBEDDED; -import static com.openshift.client.utils.Samples.GET_DOMAINS_FOOBARZ_APPLICATIONS_SPRINGEAP6_CARTRIDGES_3EMBEDDED; -import static org.fest.assertions.Assertions.assertThat; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; - -import java.net.MalformedURLException; -import java.net.SocketTimeoutException; -import java.net.URL; -import java.util.HashSet; - -import org.junit.Before; -import org.junit.Test; -import org.mockito.Mockito; - -import com.openshift.client.IApplication; -import com.openshift.client.IDomain; -import com.openshift.client.IHttpClient; -import com.openshift.client.IUser; -import com.openshift.client.cartridge.EmbeddableCartridge; -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.cartridge.selector.UrlPropertyQuery; -import com.openshift.client.utils.CartridgeAssert; -import com.openshift.client.utils.Cartridges; -import com.openshift.client.utils.EmbeddedCartridgeAssert; -import com.openshift.client.utils.ResourcePropertyAssert; -import com.openshift.client.utils.Samples; -import com.openshift.client.utils.TestConnectionFactory; -import com.openshift.internal.client.httpclient.HttpClientException; -import com.openshift.internal.client.response.CartridgeResourceDTO; -import com.openshift.internal.client.response.CartridgeResourceProperties; -import com.openshift.internal.client.response.CartridgeResourceProperty; - -/** - * @author Andre Dietisheim - */ -public class EmbeddedCartridgeResourceTest extends TestTimer { - - private IApplication application; - private HttpClientMockDirector mockDirector; - - @Before - public void setUp() throws SocketTimeoutException, HttpClientException, Throwable { - // pre-conditions - this.mockDirector = new HttpClientMockDirector() - .mockGetDomains(GET_DOMAINS) - .mockGetApplications( - "foobarz", GET_DOMAINS_FOOBARZ_APPLICATIONS_2EMBEDDED) - .mockGetApplicationCartridges( - "foobarz", "springeap6", - GET_DOMAINS_FOOBARZ_APPLICATIONS_SPRINGEAP6_CARTRIDGES_2EMBEDDED); - IDomain domain = mockDirector.getDomain("foobarz"); - this.application = domain.getApplicationByName("springeap6"); - } - - @Test - public void shouldEmbeddedCartridgeEqualsEmbeddableCartridge() { - // pre-coniditions - IEmbeddedCartridge embeddedCartridgeFake = createEmbeddedCartridgeFake("redhat"); - - // operation - // verification - assertThat(new EmbeddableCartridge("redhat")).isEqualTo(embeddedCartridgeFake); - assertThat(embeddedCartridgeFake).isEqualTo(new EmbeddableCartridge("redhat")); - assertThat(new EmbeddableCartridge("redhat")).isNotEqualTo(new EmbeddableCartridge("jboss")); - } - - @Test - public void shouldHaveSameHashCode() { - // pre-coniditions - IEmbeddedCartridge embeddedCartridgeFake = createEmbeddedCartridgeFake("redhat"); - // operation - // verification - assertThat(embeddedCartridgeFake.hashCode()).isEqualTo(new EmbeddableCartridge("redhat").hashCode()); - } - - @Test - public void shouldEmbeddableCartridgeWithNameEqualsEmbeddedCartridgeWithoutName() throws MalformedURLException { - // pre-coniditions - // operation - // verification - assertEquals(new EmbeddableCartridge(null, new URL(Cartridges.FOREMAN_DOWNLOAD_URL)), - new EmbeddableCartridge("redhat", new URL(Cartridges.FOREMAN_DOWNLOAD_URL))); - } - - @Test - public void shouldRemoveEmbeddedCartridgeInASetByEmbeddableCartridge() { - // pre-coniditions - IEmbeddedCartridge embeddedCartridgeMock = createEmbeddedCartridgeFake("redhat"); - HashSet cartridges = new HashSet(); - cartridges.add(embeddedCartridgeMock); - assertEquals(cartridges.size(), 1); - // operation - boolean removed = cartridges.remove(new EmbeddableCartridge("redhat")); - - // verification - assertTrue(removed); - assertEquals(0, cartridges.size()); - } - - @Test - public void shouldHaveUrlProperty() throws Throwable { - // pre-conditions - // operation - IEmbeddedCartridge mongo = application.getEmbeddedCartridge(Cartridges.MONGODB_22_NAME); - IEmbeddedCartridge mysql = application.getEmbeddedCartridge(Cartridges.MYSQL_51_NAME); - - // verifications - UrlPropertyQuery selector = new UrlPropertyQuery(); - CartridgeResourceProperty property = selector.getMatchingProperty(mysql); - assertThat(property).isNotNull(); - assertThat(property.getValue()).isEqualTo("mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/"); - property = selector.getMatchingProperty(mongo); - assertThat(property).isNotNull(); - assertThat(property.getValue()).isEqualTo("mongodb://$OPENSHIFT_MONGODB_DB_HOST:$OPENSHIFT_MONGODB_DB_PORT/"); - } - - @Test - public void shouldNotHaveUrlInNonDownloadableCartridge() throws Throwable { - // pre-conditions - IEmbeddableCartridge mysql = new EmbeddableCartridge(Cartridges.MYSQL_51_NAME); - assertThat(mysql.getUrl()).isNull(); - - // operation - IEmbeddedCartridge embeddedMysql = application.getEmbeddedCartridge(mysql); - // verifications - new EmbeddedCartridgeAssert(embeddedMysql) - .hasNoUrl(); - } - - @Test - public void shouldHaveNameDescriptionDisplayNameUrlInDownloadableCartridge() throws Throwable { - // pre-conditions - mockDirector - .mockGetApplications("foobarz", - Samples.GET_DOMAINS_FOOBARZ_APPLICATIONS_SPRINGEAP_SCALABLE_DOWNLOADABLECART) - .mockGetApplication("foobarz", "downloadablecart", - GET_DOMAINS_FOOBARZ_APPLICATIONS_DOWNLOADABLECART); - - IDomain domain = mockDirector.getDomain("foobarz"); - IApplication downloadablecartApp = domain.getApplicationByName("downloadablecart"); - assertThat(downloadablecartApp).isNotNull(); - - IEmbeddableCartridge foreman = new EmbeddableCartridge(new URL(FOREMAN_DOWNLOAD_URL)); - new CartridgeAssert(foreman) - .hasUrl(Cartridges.FOREMAN_DOWNLOAD_URL) - .hasName(null) - .hasDescription(null) - .hasDisplayName(null); - - // operation - IEmbeddedCartridge embeddedForeman = downloadablecartApp.getEmbeddedCartridge(foreman); - // verifications - // embedded cartridge should get updated with name, description and display name - new EmbeddedCartridgeAssert(embeddedForeman) - .hasUrl(Cartridges.FOREMAN_DOWNLOAD_URL) - .hasName("andygoldstein-foreman-0.63.0") - .hasDescription("Foreman TODO") - .hasDisplayName("Foreman"); - } - - @Test - public void shouldHaveDisplayName() throws Throwable { - // pre-conditions - // operation - IEmbeddedCartridge mysql = application.getEmbeddedCartridge("mysql-5.1"); - - // verifications - assertThat(mysql.getDisplayName()).isEqualTo("MySQL Database 5.1"); - } - - @Test - public void shouldHaveDescription() throws Throwable { - // pre-conditions - // operation - IEmbeddedCartridge mysql = application.getEmbeddedCartridge("mysql-5.1"); - - // verifications - assertThat(mysql.getDescription()) - .isEqualTo( - "MySQL is a multi-user, multi-threaded SQL database server."); - } - - @Test - public void shouldUpdatePropertiesWhenRefreshed() throws Throwable { - // pre-conditions - HttpClientMockDirector mockDirector = new HttpClientMockDirector(); - IHttpClient client = mockDirector - .mockGetDomains(GET_DOMAINS) - .mockGetApplications( - "foobarz", GET_DOMAINS_FOOBARZ_APPLICATIONS_3EMBEDDED) - .mockGetApplicationCartridges( - "foobarz", "springeap6", - GET_DOMAINS_FOOBARZ_APPLICATIONS_SPRINGEAP6_CARTRIDGES_3EMBEDDED) - .client(); - IUser user = new TestConnectionFactory().getConnection(client).getUser(); - IDomain domain = user.getDomain("foobarz"); - IApplication application = domain.getApplicationByName("springeap6"); - assertThat(application.getEmbeddedCartridges()).onProperty("name").contains("switchyard-0"); - - // operation - IEmbeddedCartridge switchyard = application.getEmbeddedCartridge("switchyard-0"); - // no properties in embedded block (within application) - assertThat(switchyard.getProperties().size()).isEqualTo(0); - switchyard.refresh(); - - // verification - mockDirector.verifyGetApplicationCartridges(1, "foobarz", "springeap6"); - CartridgeResourceProperties properties = switchyard.getProperties(); - // 1 property in embedded block in cartridges - assertThat(properties.size()).isEqualTo(1); - new ResourcePropertyAssert(properties.getAll().iterator().next()) - .hasName("module_path") - .hasDescription("Module Path") - .hasType("cart_data"); - } - - @Test - public void shouldRemoveRemovedCartridge() throws Throwable { - // pre-conditions - // contains mongo and mysql - assertThat(application.getEmbeddedCartridges().size()).isEqualTo(2); - assertThat(application.getEmbeddedCartridge("mysql-5.1")).isNotNull(); - mockDirector.mockGetCartridges(Samples.GET_DOMAINS_FOOBARZ_APPLICATIONS_SPRINGEAP6_CARTRIDGES_1EMBEDDED); - - // operation - // triggers app to load updated list without mysql, only mongo - application.refresh(); - - // verifications - mockDirector.verifyGetApplicationCartridges(1, application.getDomain().getId(), application.getName()); - // mysql missing now - assertThat(application.getEmbeddedCartridges().size()).isEqualTo(1); - assertThat(application.getEmbeddedCartridge("mysql-5.1")).isNull(); - } - - @Test - public void shouldBeDownloadableCartridges() throws Throwable { - // pre-conditions - // operation - // verifications - assertThat(Cartridges.go11().isDownloadable()).isTrue(); - assertThat(Cartridges.foreman063().isDownloadable()).isTrue(); - } - - @Test - public void shouldNotBeDownloadableCartridge() throws Throwable { - // pre-conditions - IStandaloneCartridge jbossAsCartridge = new StandaloneCartridge("jboss-7"); - IStandaloneCartridge jbossEapCartridge = new StandaloneCartridge("jbosseap-6"); - - // operation - // verifications - assertThat(jbossAsCartridge.isDownloadable()).isFalse(); - assertThat(jbossAsCartridge.getUrl()).isNull(); - assertThat(jbossEapCartridge.isDownloadable()).isFalse(); - assertThat(jbossEapCartridge.getUrl()).isNull(); - } - - private IEmbeddedCartridge createEmbeddedCartridgeFake(String name) { - ApplicationResource applicationResourceMock = Mockito.mock(ApplicationResource.class); - CartridgeResourceDTO cartridgeDTO = new CartridgeResourceDTO(name, null, null) { - }; - return new EmbeddedCartridgeResource(cartridgeDTO, applicationResourceMock); - } -} diff --git a/src/test/java/com/openshift/internal/client/EnvironmentVariableResourceIntegrationTest.java b/src/test/java/com/openshift/internal/client/EnvironmentVariableResourceIntegrationTest.java deleted file mode 100644 index 7b86c79f..00000000 --- a/src/test/java/com/openshift/internal/client/EnvironmentVariableResourceIntegrationTest.java +++ /dev/null @@ -1,79 +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 static org.fest.assertions.Assertions.assertThat; - -import org.junit.Before; -import org.junit.Test; - -import com.openshift.client.IApplication; -import com.openshift.client.IDomain; -import com.openshift.client.IEnvironmentVariable; -import com.openshift.client.IOpenShiftConnection; -import com.openshift.client.IUser; -import com.openshift.client.utils.ApplicationTestUtils; -import com.openshift.client.utils.DomainTestUtils; -import com.openshift.client.utils.TestConnectionFactory; - - -/** - * @author Syed Iqbal - */ -public class EnvironmentVariableResourceIntegrationTest extends TestTimer { - - private IUser user; - private IDomain domain; - private IApplication application; - - @Before - public void setUp() throws Exception { - IOpenShiftConnection connection = new TestConnectionFactory().getConnection(); - this.user = connection.getUser(); - this.domain = DomainTestUtils.ensureHasDomain(user); - ApplicationTestUtils.silentlyDestroyAllApplications(domain); - this.application = ApplicationTestUtils.getOrCreateApplication(domain); - } - - @Test - public void shouldGetEnvironmentVariableNameAndValue() throws Throwable { - // operation - IEnvironmentVariable environmentVariable = application.addEnvironmentVariable("X_NAME", "X_VALUE"); - // verification - assertThat(environmentVariable).isNotNull(); - assertThat(environmentVariable.getName()).isEqualTo("X_NAME"); - assertThat(environmentVariable.getValue()).isEqualTo("X_VALUE"); - } - - @Test - public void shouldUpdateEnvironmentVariableValue() throws Throwable { - // precondition - IEnvironmentVariable environmentVariable = application.addEnvironmentVariable("Y_NAME", "Y_VALUE"); - // operation - assertThat(environmentVariable).isNotNull(); - assertThat(environmentVariable.getName()).isEqualTo("Y_NAME"); - assertThat(environmentVariable.getValue()).isEqualTo("Y_VALUE"); - application.updateEnvironmentVariable("Y_NAME","UPDATED_Y_VALUE"); - assertThat(environmentVariable.getValue()).isEqualTo("UPDATED_Y_VALUE"); - } - - @Test - public void shouldDeleteEnvironmentVariableValue() throws Throwable { - // precondition - application.addEnvironmentVariable("Z_NAME", "Z_VALUE"); - // operation - IEnvironmentVariable zEnvironmentVariable = application.getEnvironmentVariable("Z_NAME"); - application.removeEnvironmentVariable(zEnvironmentVariable); - //application.refresh(); - zEnvironmentVariable = application.getEnvironmentVariable("Z_NAME"); - assertThat(zEnvironmentVariable).isNull(); - } - -} diff --git a/src/test/java/com/openshift/internal/client/EnvironmentVariableResourceTest.java b/src/test/java/com/openshift/internal/client/EnvironmentVariableResourceTest.java deleted file mode 100644 index ddda1305..00000000 --- a/src/test/java/com/openshift/internal/client/EnvironmentVariableResourceTest.java +++ /dev/null @@ -1,91 +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 static com.openshift.client.utils.Samples.GET_0_ENVIRONMENT_VARIABLES_FOOBARZ_SPRINGEAP6; -import static com.openshift.client.utils.Samples.GET_1_ENVIRONMENT_VARIABLES_FOOBARZ_SPRINGEAP6; -import static com.openshift.client.utils.Samples.GET_DOMAINS; -import static com.openshift.client.utils.Samples.GET_DOMAINS_FOOBARZ_APPLICATIONS_1EMBEDDED; -import static com.openshift.client.utils.Samples.GET_DOMAINS_FOOBARZ_APPLICATIONS_SPRINGEAP6_1EMBEDDED; -import static com.openshift.client.utils.Samples.PUT_FOO_ENVIRONMENT_VARIABLE_FOOBARZ_SPRINGEAP6; -import static org.fest.assertions.Assertions.assertThat; - -import org.junit.Before; -import org.junit.Test; - -import com.openshift.client.IApplication; -import com.openshift.client.IEnvironmentVariable; - -/** - * @author Syed Iqbal - * @author Martes G Wigglesworth - */ -public class EnvironmentVariableResourceTest extends TestTimer { - - private IApplication application; - private HttpClientMockDirector mockDirector; - @Before - public void setup() throws Throwable{ - - this.mockDirector = new HttpClientMockDirector() - .mockGetDomains(GET_DOMAINS) - .mockGetApplications("foobarz", GET_DOMAINS_FOOBARZ_APPLICATIONS_1EMBEDDED) - .mockGetApplication("foobarz", "springeap6", GET_DOMAINS_FOOBARZ_APPLICATIONS_SPRINGEAP6_1EMBEDDED); - this.application = mockDirector.getDomain("foobarz").getApplicationByName("springeap6"); - assertThat(application).isNotNull(); - - } - - @Test - public void shouldGetEnvironmentVariableName() throws Throwable{ - //precondition - mockDirector.mockGetEnvironmentVariables("foobarz", "springeap6", GET_1_ENVIRONMENT_VARIABLES_FOOBARZ_SPRINGEAP6); - //operartion - IEnvironmentVariable environmentVariable = application.getEnvironmentVariable("FOO"); - //verification - assertThat(environmentVariable.getName()).isEqualTo("FOO"); - } - - @Test - public void shouldGetEnvironmentVariableValue() throws Throwable{ - //precondition - mockDirector.mockGetEnvironmentVariables("foobarz", "springeap6", GET_1_ENVIRONMENT_VARIABLES_FOOBARZ_SPRINGEAP6); - //operartion - IEnvironmentVariable environmentVariable = application.getEnvironmentVariable("FOO"); - //verification - assertThat(environmentVariable.getValue()).isEqualTo("123"); - } - - @Test - public void shouldDeleteEnvironmentVariable() throws Throwable{ - //precondition - mockDirector.mockGetEnvironmentVariables("foobarz", "springeap6", GET_1_ENVIRONMENT_VARIABLES_FOOBARZ_SPRINGEAP6,GET_0_ENVIRONMENT_VARIABLES_FOOBARZ_SPRINGEAP6); - //operation - IEnvironmentVariable environmentVariable = application.getEnvironmentVariable("FOO"); - assertThat(environmentVariable).isNotNull(); - application.removeEnvironmentVariable(environmentVariable); - application.refresh(); - environmentVariable = application.getEnvironmentVariable("FOO"); - assertThat(environmentVariable).isNull(); - } - - @Test - public void shouldUpdateEnvironmentVariableValue() throws Throwable{ - //precondition - mockDirector.mockGetEnvironmentVariables("foobarz", "springeap6", GET_1_ENVIRONMENT_VARIABLES_FOOBARZ_SPRINGEAP6,GET_1_ENVIRONMENT_VARIABLES_FOOBARZ_SPRINGEAP6) - .mockUpdateEnvironmentVariableValue("foobarz", "springeap6","FOO", PUT_FOO_ENVIRONMENT_VARIABLE_FOOBARZ_SPRINGEAP6); - //operation - IEnvironmentVariable environmentVariable = application.getEnvironmentVariable("FOO"); - assertThat(environmentVariable.getValue()).isEqualTo("123"); - application.updateEnvironmentVariable("FOO","321"); - assertThat(environmentVariable.getValue()).isEqualTo("321"); - } -} diff --git a/src/test/java/com/openshift/internal/client/GearGroupsResourceTest.java b/src/test/java/com/openshift/internal/client/GearGroupsResourceTest.java deleted file mode 100644 index 76f0c100..00000000 --- a/src/test/java/com/openshift/internal/client/GearGroupsResourceTest.java +++ /dev/null @@ -1,73 +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 static com.openshift.client.utils.Samples.GET_DOMAINS; -import static com.openshift.client.utils.Samples.GET_DOMAINS_FOOBARZ_APPLICATIONS_1EMBEDDED; -import static com.openshift.client.utils.Samples.GET_DOMAINS_FOOBARZ_APPLICATIONS_SPRINGEAP6_1EMBEDDED; -import static com.openshift.client.utils.Samples.GET_DOMAINS_FOOBARZ_APPLICATIONS_SPRINGEAP6_GEARGROUPS; -import static org.fest.assertions.Assertions.assertThat; - -import java.util.Collection; - -import org.junit.Before; -import org.junit.Test; - -import com.openshift.client.GearState; -import com.openshift.client.IApplication; -import com.openshift.client.IDomain; -import com.openshift.client.IGearGroup; -import com.openshift.client.IHttpClient; -import com.openshift.client.IUser; -import com.openshift.client.utils.GearGroupsAssert; -import com.openshift.client.utils.TestConnectionFactory; - -/** - * @author Xavier Coulon - * @author Andre Dietisheim - */ -public class GearGroupsResourceTest extends TestTimer { - - private IDomain domain; - - @Before - public void setup() throws Throwable { - IHttpClient client = new HttpClientMockDirector() - .mockGetDomains(GET_DOMAINS) - .mockGetApplications("foobarz", GET_DOMAINS_FOOBARZ_APPLICATIONS_1EMBEDDED) - .mockGetApplication("foobarz", "springeap6", GET_DOMAINS_FOOBARZ_APPLICATIONS_SPRINGEAP6_1EMBEDDED) - .mockGetGearGroups("foobarz", "springeap6", GET_DOMAINS_FOOBARZ_APPLICATIONS_SPRINGEAP6_GEARGROUPS) - .client(); - IUser user = new TestConnectionFactory().getConnection(client).getUser(); - this.domain = user.getDomain("foobarz"); - } - - @Test - public void shouldGetGearGroups() throws Throwable { - // pre-conditions - final IApplication app = domain.getApplicationByName("springeap6"); - // operation - final Collection gearGroups = app.getGearGroups(); - // verifications - assertThat(new GearGroupsAssert(gearGroups)).hasSize(2); - assertThat(new GearGroupsAssert(gearGroups)).assertGroup("514207b84382ec1fef0000ab") - .hasUUID("514207b84382ec1fef0000ab") - .assertGear("514207b84382ec1fef000098").inState(new GearState("idle")) - .assertGear("514207b84382ec1fef000098").hasSshUrl("ssh://52380549e0b8cd1e0e000032@springeap6-foobarz.rhcloud.com") - .assertGear("5146f047500446f12d00002e").inState(new GearState("building")) - .hasCartridges("jbosseap-6", "mongodb-2.2"); - assertThat(new GearGroupsAssert(gearGroups)).assertGroup("514212ce500446b64e0000c0") - .hasUUID("514212ce500446b64e0000c0") - .assertGear("514212ce500446b64e0000b4").hasSshUrl("ssh://523809b75973ca569600019b@523809b75973ca569600019b-foobarz.rhcloud.com") - .assertGear("514212ce500446b64e0000b4").inState(new GearState("deploying")) - .hasCartridges("mongodb-2.2"); - } -} diff --git a/src/test/java/com/openshift/internal/client/GearTest.java b/src/test/java/com/openshift/internal/client/GearTest.java deleted file mode 100644 index 63a755ee..00000000 --- a/src/test/java/com/openshift/internal/client/GearTest.java +++ /dev/null @@ -1,57 +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 static org.fest.assertions.Assertions.assertThat; - -import org.junit.Test; - -import com.openshift.client.GearState; - -/** - * @author Xavier Coulon - * @author Andre Dietisheim - */ -public class GearTest extends TestTimer { - - @Test - public void nullShouldCreateUnknownGearState() { - // operation - GearState state = new GearState(null); - // verification - assertThat(state).isEqualTo(new GearState("UNKNOWN")); - } - - @Test - public void emptyShouldCreateUnknownGearState() { - // operation - GearState state = new GearState(""); - // verification - assertThat(state).isEqualTo(new GearState("UNKNOWN")); - } - - @Test - public void stateCaseShouldNotMatter() { - // operation - GearState state = new GearState("sTaRtEd"); - // verification - assertThat(state).isEqualTo(new GearState("STARTED")); - } - - @Test - public void bogusStateShouldBeUnknown() { - // operation - GearState state = new GearState("BOGUS!"); - // verification - assertThat(state).isEqualTo(new GearState("BOGUS!")); - } - -} diff --git a/src/test/java/com/openshift/internal/client/HttpClientMockDirector.java b/src/test/java/com/openshift/internal/client/HttpClientMockDirector.java deleted file mode 100644 index 8bd8b12d..00000000 --- a/src/test/java/com/openshift/internal/client/HttpClientMockDirector.java +++ /dev/null @@ -1,539 +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 static com.openshift.client.utils.ParametersMatcher.eq; -import static com.openshift.client.utils.UrlEndsWithMatcher.urlEndsWith; -import static org.mockito.Matchers.any; -import static org.mockito.Matchers.anyInt; -import static org.mockito.Matchers.eq; -import static org.mockito.Mockito.times; -import static org.mockito.Mockito.verify; -import static org.mockito.Mockito.when; - -import java.io.FileNotFoundException; -import java.io.IOException; -import java.net.MalformedURLException; -import java.net.SocketTimeoutException; -import java.net.URL; - -import org.mockito.Matchers; -import org.mockito.Mockito; - -import com.openshift.client.IDomain; -import com.openshift.client.IHttpClient; -import com.openshift.client.IUser; -import com.openshift.client.OpenShiftException; -import com.openshift.client.utils.Samples; -import com.openshift.client.utils.TestConnectionFactory; -import com.openshift.internal.client.httpclient.EncodingException; -import com.openshift.internal.client.httpclient.HttpClientException; -import com.openshift.internal.client.httpclient.request.IMediaType; -import com.openshift.internal.client.httpclient.request.Parameter; - -/** - * @author Andre Dietisheim - * @author Syed Iqbal - */ -public class HttpClientMockDirector { - - private IHttpClient client; - - public HttpClientMockDirector() throws SocketTimeoutException, HttpClientException { - this.client = Mockito.mock(IHttpClient.class); - mockGetAPI(Samples.GET_API) - .mockGetCartridges(Samples.GET_CARTRIDGES) - .mockGetUser(Samples.GET_USER); - } - - public HttpClientMockDirector mockGetAny(String response) throws SocketTimeoutException, HttpClientException { - when(client.get(any(URL.class), anyInt())).thenReturn(response); - return this; - } - - public HttpClientMockDirector mockGetAny(Exception exception) throws SocketTimeoutException, HttpClientException { - when(client.get(any(URL.class), anyInt())).thenThrow(exception); - return this; - } - - public HttpClientMockDirector mockHeadAny(String response) throws SocketTimeoutException, HttpClientException { - when(client.head(any(URL.class), anyInt())).thenReturn(response); - return this; - } - - public HttpClientMockDirector mockHeadtAny(Exception exception) throws SocketTimeoutException, HttpClientException { - when(client.head(any(URL.class), anyInt())).thenThrow(exception); - return this; - } - - public HttpClientMockDirector mockPostAny(Samples postRequestResponse) - throws SocketTimeoutException, HttpClientException, EncodingException { - return mockPostAny(postRequestResponse.getContentAsString()); - } - - public HttpClientMockDirector mockPostAny(String jsonResponse) - throws SocketTimeoutException, HttpClientException, EncodingException { - when(client.post(any(URL.class), any(IMediaType.class), anyInt(), Matchers.anyVararg())) - .thenReturn(jsonResponse); - return this; - } - - public HttpClientMockDirector mockPostAny(Exception exception) - throws SocketTimeoutException, HttpClientException, EncodingException { - when(client.post(any(URL.class), any(IMediaType.class), anyInt(), Matchers.anyVararg())) - .thenThrow(exception); - return this; - } - - public HttpClientMockDirector mockPatchAny(Samples postRequestResponse) - throws SocketTimeoutException, HttpClientException, EncodingException { - return mockPatchAny(postRequestResponse.getContentAsString()); - } - - public HttpClientMockDirector mockPatchAny(String jsonResponse) - throws SocketTimeoutException, HttpClientException, EncodingException { - when(client.patch(any(URL.class), any(IMediaType.class), anyInt(), Matchers.anyVararg())) - .thenReturn(jsonResponse); - return this; - } - - public HttpClientMockDirector mockPatchAny(Exception exception) - throws SocketTimeoutException, HttpClientException, EncodingException { - when(client.patch(any(URL.class), any(IMediaType.class), anyInt(), Matchers.anyVararg())) - .thenThrow(exception); - return this; - } - - public HttpClientMockDirector mockPutAny(String jsonResponse) - throws SocketTimeoutException, HttpClientException, EncodingException { - when(client.put(any(URL.class), any(IMediaType.class), anyInt(), Matchers.anyVararg())) - .thenReturn(jsonResponse); - return this; - } - - public HttpClientMockDirector mockDeleteAny(String jsonResponse) - throws SocketTimeoutException, HttpClientException, EncodingException { - when(client.delete(any(URL.class), any(IMediaType.class), anyInt(), Matchers.anyVararg())) - .thenReturn(jsonResponse); - return this; - } - - public HttpClientMockDirector mockGetAPI(Samples getApiResourceResponse) - throws HttpClientException, SocketTimeoutException { - when(client.get(urlEndsWith("/api"), anyInt())) - .thenReturn(getApiResourceResponse.getContentAsString()); - return this; - } - - public HttpClientMockDirector mockGetAPI(Exception exception) throws SocketTimeoutException { - when(client.get(urlEndsWith("/api"), anyInt())) - .thenThrow(exception); - return this; - } - - public HttpClientMockDirector mockGetCartridges(Samples cartridgesResourceResponse) throws HttpClientException, - SocketTimeoutException { - when(client.get(urlEndsWith("/cartridges"), anyInt())) - .thenReturn(cartridgesResourceResponse.getContentAsString()); - return this; - } - - public HttpClientMockDirector mockGetUser(Samples userResourceResponse) throws HttpClientException, - SocketTimeoutException { - when(client.get(urlEndsWith("/user"), anyInt())) - .thenReturn(userResourceResponse.getContentAsString()); - return this; - } - - public HttpClientMockDirector mockGetKeys(Samples keysRequestResponse) throws SocketTimeoutException, HttpClientException { - when(client.get(urlEndsWith("/user/keys"), anyInt())) - .thenReturn(keysRequestResponse.getContentAsString()); - return this; - } - - public HttpClientMockDirector mockCreateKey(Samples createKeyRequestResponse) - throws SocketTimeoutException, HttpClientException, EncodingException { - when(client.post( - urlEndsWith("/user/keys"), - any(IMediaType.class), anyInt(), - Matchers.anyVararg())) - .thenReturn(createKeyRequestResponse.getContentAsString()); - return this; - } - - public HttpClientMockDirector mockUpdateKey(String keyName, Samples updateKeyRequestResponse, Parameter... parameters) - throws SocketTimeoutException, HttpClientException, EncodingException { - when(client.put( - urlEndsWith("/user/keys/" + keyName), - any(IMediaType.class), anyInt(), - Matchers.anyVararg())) - .thenReturn(updateKeyRequestResponse.getContentAsString()); - return this; - } - - public HttpClientMockDirector mockGetDomains(Samples domainsResourceResponse) - throws SocketTimeoutException, HttpClientException { - when(client.get(urlEndsWith("/domains"), anyInt())) - .thenReturn(domainsResourceResponse.getContentAsString()); - return this; - } - - public HttpClientMockDirector mockCreateDomain(Samples domainResourceResponse) - throws SocketTimeoutException, HttpClientException, EncodingException { - when(client.post(urlEndsWith("/domains"), any(IMediaType.class), anyInt(), Matchers.anyVararg())) - .thenReturn(domainResourceResponse.getContentAsString()); - return this; - } - - public HttpClientMockDirector mockDeleteDomain(String domainId, Samples deleteDomainResourceResponse) - throws SocketTimeoutException, HttpClientException, EncodingException { - when(client.delete(urlEndsWith("/domains/" + domainId), any(IMediaType.class), anyInt(), Matchers.anyVararg())) - .thenReturn(deleteDomainResourceResponse.getContentAsString()); - return this; - } - - public HttpClientMockDirector mockDeleteDomain(String domainId, Exception exception) - throws SocketTimeoutException, HttpClientException, EncodingException { - when(client.delete(urlEndsWith("/domains/" + domainId), any(IMediaType.class), anyInt(), Matchers.anyVararg())) - .thenThrow(exception); - return this; - } - - public HttpClientMockDirector mockRenameDomain(String domainId, Samples getDomainsResourceResponse) - throws SocketTimeoutException, HttpClientException, EncodingException { - when(client.put(urlEndsWith("/domains/" + domainId), any(IMediaType.class), anyInt(), Matchers.anyVararg())) - .thenReturn(getDomainsResourceResponse.getContentAsString()); - return this; - } - - public HttpClientMockDirector mockGetDomain(String domainId, Samples domainResourceResponse) - throws SocketTimeoutException, HttpClientException { - when(client.get(urlEndsWith("/domains/" + domainId), anyInt())) - .thenReturn(domainResourceResponse.getContentAsString()); - return this; - - } - - public HttpClientMockDirector mockGetApplications(String domainId, Samples applicationsResourceResponse) - throws SocketTimeoutException, HttpClientException { - when(client.get(urlEndsWith("/domains/" + domainId + "/applications?include=cartridges"), anyInt())) - .thenReturn(applicationsResourceResponse.getContentAsString()); - return this; - } - - public HttpClientMockDirector mockGetApplications(String domainId, Exception exception) - throws SocketTimeoutException, HttpClientException { - when(client.get(urlEndsWith("/domains/" + domainId + "/applications?include=cartridges"), anyInt())) - .thenThrow(exception); - return this; - } - - public HttpClientMockDirector mockCreateApplication(String domainId, Samples postDomainsResourceResponse) - throws SocketTimeoutException, HttpClientException, EncodingException { - when(client.post( - urlEndsWith("/domains/" + domainId + "/applications?include=cartridges"), any(IMediaType.class), anyInt(), Matchers.anyVararg())) - .thenReturn(postDomainsResourceResponse.getContentAsString()); - return this; - } - - public HttpClientMockDirector mockPostApplicationEvent(String domainId, String applicationName, - Samples postApplicationEvent) - throws SocketTimeoutException, HttpClientException, EncodingException { - when(client.post( - urlEndsWith("/domains/" + domainId + "/applications/" + applicationName + "/events"), - any(IMediaType.class), anyInt(), - Matchers.anyVararg())) - .thenReturn(postApplicationEvent.getContentAsString()); - return this; - } - - public HttpClientMockDirector mockGetApplication(String domainId, String applicationName, - Samples applicationResourceResponse) - throws SocketTimeoutException, HttpClientException { - when(client.get(urlEndsWith("/domains/" + domainId + "/applications/" + applicationName), anyInt())) - .thenReturn(applicationResourceResponse.getContentAsString()); - return this; - } - - public HttpClientMockDirector mockGetApplicationCartridges(String domainId, String applicationName, - Samples cartridgesResourceResponse) - throws SocketTimeoutException, HttpClientException { - when(client.get( - urlEndsWith("/domains/" + domainId + "/applications/" + applicationName + "/cartridges"), - anyInt())) - .thenReturn(cartridgesResourceResponse.getContentAsString()); - return this; - } - - public HttpClientMockDirector mockGetGearGroups(String domainId, String applicationName, - Samples gearGroupsResourceResponse) - throws SocketTimeoutException, HttpClientException { - when(client.get( - urlEndsWith("/domains/" + domainId + "/applications/" + applicationName + "/gear_groups"), - anyInt())) - .thenReturn(gearGroupsResourceResponse.getContentAsString()); - return this; - } - - public HttpClientMockDirector mockPostApplicationEvent(String domainId, String applicationName, Exception exception) - throws SocketTimeoutException, HttpClientException, EncodingException { - when(client.post( - urlEndsWith("/domains/" + domainId + "/applications/" + applicationName + "/events"), - any(IMediaType.class), anyInt(), - Matchers.anyVararg())) - .thenThrow(exception); - return this; - } - - public HttpClientMockDirector mockAddEmbeddableCartridge(String domainId, String applicationName, - Samples addEmbeddedCartridgeResponse) - throws SocketTimeoutException, HttpClientException, EncodingException { - when(client.post( - urlEndsWith("/domains/" + domainId + "/applications/" + applicationName + "/cartridges"), - any(IMediaType.class), anyInt(), - Matchers.anyVararg())) - .thenReturn(addEmbeddedCartridgeResponse.getContentAsString()); - return this; - } - - public HttpClientMockDirector mockAddEmbeddableCartridge(String domainId, String applicationName, - Exception exception) - throws SocketTimeoutException, HttpClientException, EncodingException { - when(client.post( - urlEndsWith("/domains/" + domainId + "/applications/" + applicationName + "/cartridges"), - any(IMediaType.class), anyInt(), - Matchers.anyVararg())) - .thenThrow(exception); - return this; - } - - public HttpClientMockDirector mockRemoveEmbeddableCartridge(String domainId, String applicationName, - String cartridgeName, - Exception exception) - throws SocketTimeoutException, HttpClientException, EncodingException { - when(client.delete( - urlEndsWith( - "/domains/" + domainId + "/applications/" + applicationName + "/cartridges/" + cartridgeName), - any(IMediaType.class), anyInt(), - Matchers.anyVararg())) - .thenThrow(exception); - return this; - } - - public HttpClientMockDirector verifyPostApplicationEvent(String domainId, String applicationName) - throws SocketTimeoutException, HttpClientException, EncodingException { - verify(client, times(1)).post( - urlEndsWith("/domains/" + domainId + "/applications/" + applicationName + "/events"), - any(IMediaType.class), anyInt(), - Matchers.anyVararg()); - return this; - } - - public HttpClientMockDirector verifyListEmbeddableCartridges(int times, String domainId, String applicationName) - throws SocketTimeoutException, HttpClientException { - verify(client, times(times)).get( - urlEndsWith("/domains/" + domainId + "/applications/" + applicationName + "/cartridges"), - anyInt()); - return this; - - } - - public HttpClientMockDirector verifyGetApplicationCartridges(int times, String domainId, String applicationName) - throws SocketTimeoutException, HttpClientException { - verify(client, times(times)).get( - urlEndsWith("/domains/" + domainId + "/applications/" + applicationName + "/cartridges"), - anyInt()); - return this; - } - - public HttpClientMockDirector verifyAddEmbeddableCartridge(String domainId, String applicationName) - throws SocketTimeoutException, HttpClientException, EncodingException { - verify(client, times(1)).post( - urlEndsWith("/domains/" + domainId + "/applications/" + applicationName + "/cartridges"), - any(IMediaType.class), anyInt(), - Matchers.anyVararg()); - return this; - } - - public HttpClientMockDirector verifyDeleteEmbeddableCartridge(String domainId, String applicationName, - String cartridgeName) - throws SocketTimeoutException, HttpClientException, EncodingException { - verify(client, times(1)).delete( - urlEndsWith("/domains/" + domainId + "/applications/" + applicationName + "/cartridges/" - + cartridgeName), - any(IMediaType.class), anyInt(), - Matchers.anyVararg()); - return this; - } - - public HttpClientMockDirector verifyGetAny(int times) throws SocketTimeoutException, HttpClientException { - verify(client, times(times)).get(any(URL.class), anyInt()); - return this; - } - - public HttpClientMockDirector verifyGet(String url, int times) - throws SocketTimeoutException, HttpClientException, MalformedURLException { - verify(client, times(times)).get(eq(new URL(url)), anyInt()); - return this; - } - - public HttpClientMockDirector verifyPostAny(int times) - throws SocketTimeoutException, HttpClientException, EncodingException { - verify(client, times(times)).post(any(URL.class), any(IMediaType.class), anyInt(),Matchers.anyVararg()); - return this; - } - - public HttpClientMockDirector verifyPost(Parameter... parameters) - throws SocketTimeoutException, HttpClientException, EncodingException { - verify(client).post(any(URL.class), any(IMediaType.class), anyInt(), eq(parameters)); - return this; - } - - public HttpClientMockDirector verifyPost(String url, int times) - throws SocketTimeoutException, HttpClientException, EncodingException, MalformedURLException { - verify(client, times(times)).post(new URL(url), any(IMediaType.class), anyInt(), Matchers.anyVararg()); - return this; - } - - public HttpClientMockDirector verifyPutAny(int times) - throws SocketTimeoutException, HttpClientException, EncodingException { - verify(client, times(times)).put(any(URL.class), any(IMediaType.class), anyInt(),Matchers.anyVararg()); - return this; - } - - public HttpClientMockDirector verifyPut(String url, int times) - throws SocketTimeoutException, HttpClientException, EncodingException, MalformedURLException { - verify(client, times(times)).put(new URL(url), any(IMediaType.class), anyInt(),Matchers.anyVararg()); - return this; - } - - public HttpClientMockDirector verifyDeleteAny(int times) - throws SocketTimeoutException, HttpClientException, EncodingException { - verify(client, times(times)).delete(any(URL.class), any(IMediaType.class), anyInt(),Matchers.anyVararg()); - return this; - } - - public HttpClientMockDirector verifyDelete(String url, int times) - throws SocketTimeoutException, HttpClientException, EncodingException, MalformedURLException { - verify(client, times(times)).delete(new URL(url), any(IMediaType.class), anyInt(), Matchers.anyVararg()); - return this; - } - - public HttpClientMockDirector verifyPatchAny(int times) - throws SocketTimeoutException, HttpClientException, EncodingException { - verify(client, times(times)).patch(any(URL.class), any(IMediaType.class), anyInt(),Matchers.anyVararg()); - return this; - } - - public HttpClientMockDirector verifyHeadAny(int times) - throws SocketTimeoutException, HttpClientException, EncodingException { - verify(client, times(times)).head(any(URL.class), anyInt()); - return this; - } - - public HttpClientMockDirector verifyGetDomains() throws SocketTimeoutException, HttpClientException { - verify(client, times(1)).get(urlEndsWith("/domains"), anyInt()); - return this; - } - - public HttpClientMockDirector verifyRenameDomain(String domainId) - throws SocketTimeoutException, HttpClientException, EncodingException { - verify(client, times(1)).put(urlEndsWith(domainId), any(IMediaType.class), anyInt(),Matchers.anyVararg()); - return this; - } - - public HttpClientMockDirector verifyGetDomain(String domainId) throws SocketTimeoutException, HttpClientException { - verify(client, times(1)).get(urlEndsWith("/domains/" + domainId), anyInt()); - return this; - } - - public HttpClientMockDirector verifyGetApplications(String domainId, int times) - throws SocketTimeoutException, HttpClientException { - verify(client, times(times)).get(urlEndsWith("/domains/" + domainId + "/applications?include=cartridges"), anyInt()); - return this; - } - - public HttpClientMockDirector verifyGetAPI() throws SocketTimeoutException, HttpClientException { - verify(client, times(1)).get(urlEndsWith("/broker/rest/api"), anyInt()); - return this; - } - - public HttpClientMockDirector verifyGetUser() throws SocketTimeoutException, HttpClientException { - verify(client, times(1)).get(urlEndsWith("/broker/rest/user"), anyInt()); - return this; - } - - public HttpClientMockDirector verifyCreateKey(Parameter... parameters) - throws SocketTimeoutException, HttpClientException, EncodingException { - verify(client).post( - urlEndsWith("/user/keys"), any(IMediaType.class), anyInt(), eq(parameters)); - return this; - } - - public HttpClientMockDirector verifyUpdateKey(String keyName, Parameter... parameters) - throws SocketTimeoutException, HttpClientException, EncodingException { - verify(client).put( - urlEndsWith("/user/keys/" + keyName), any(IMediaType.class), anyInt(), eq(parameters)); - return this; - } - - public HttpClientMockDirector verifyCreateApplication(String domainId, int timeout, Parameter... parameters) - throws SocketTimeoutException, HttpClientException, EncodingException { - verify(client).post( - urlEndsWith("/domains/" + domainId + "/applications?include=cartridges"), - any(IMediaType.class), eq(timeout), eq(parameters)); - return this; - } - - public IHttpClient client() { - return client; - } - - public IDomain getDomain(String string) throws OpenShiftException, FileNotFoundException, IOException { - IUser user = new TestConnectionFactory().getConnection(client).getUser(); - return user.getDomain("foobarz"); - } - - public HttpClientMockDirector mockAddEnvironmentVariable(String domainId, String applicationName, - Samples addEnvironmentVariableRequestResponse) - throws SocketTimeoutException, HttpClientException, EncodingException { - when(client.post(urlEndsWith("/domains/" + domainId + "/applications/" + applicationName + "/environment-variables"), - any(IMediaType.class), anyInt(), Matchers.anyVararg())) - .thenReturn(addEnvironmentVariableRequestResponse.getContentAsString()); - return this; - } - - public HttpClientMockDirector mockGetEnvironmentVariables(String domainId, String applicationName, - Samples getZeroEnvironmentVariableRequestResponse, Samples getOneEnvironmentVariableRequestResponse) - throws SocketTimeoutException, HttpClientException, EncodingException { - when(client.get(urlEndsWith("/domains/" + domainId + "/applications/" + applicationName + "/environment-variables"), - anyInt())) - .thenReturn(getZeroEnvironmentVariableRequestResponse.getContentAsString(), getOneEnvironmentVariableRequestResponse.getContentAsString()); - return this; - } - - public HttpClientMockDirector mockGetEnvironmentVariables(String domainId, String applicationName, - Samples getOneEnvironmentVariableRequestResponse) - throws SocketTimeoutException, HttpClientException, EncodingException { - when(client.get(urlEndsWith("/domains/" + domainId + "/applications/" + applicationName + "/environment-variables"), - anyInt())) - .thenReturn(getOneEnvironmentVariableRequestResponse.getContentAsString(),getOneEnvironmentVariableRequestResponse.getContentAsString()); - return this; - } - - public HttpClientMockDirector mockUpdateEnvironmentVariableValue(String domainId,String applicationName,String environmentName,Samples updateEnvironmentVariableValue) - throws SocketTimeoutException, HttpClientException, EncodingException { - when(client.put(urlEndsWith("/domains/" + domainId + "/applications/" + applicationName + "/environment-variables/"+ environmentName), - any(IMediaType.class), anyInt(), Matchers. anyVararg())) - .thenReturn(updateEnvironmentVariableValue.getContentAsString()); - return this; - } -} diff --git a/src/test/java/com/openshift/internal/client/LatestVersionQueryIntegrationTest.java b/src/test/java/com/openshift/internal/client/LatestVersionQueryIntegrationTest.java deleted file mode 100644 index 7ade661b..00000000 --- a/src/test/java/com/openshift/internal/client/LatestVersionQueryIntegrationTest.java +++ /dev/null @@ -1,190 +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 org.junit.Before; -import org.junit.Test; - -import com.openshift.client.IUser; -import com.openshift.client.OpenShiftException; -import com.openshift.client.cartridge.ICartridge; -import com.openshift.client.cartridge.IEmbeddedCartridge; -import com.openshift.client.cartridge.IStandaloneCartridge; -import com.openshift.client.cartridge.selector.LatestVersionOf; -import com.openshift.client.utils.CartridgeAssert; -import com.openshift.client.utils.TestConnectionFactory; - -/** - * @author Andre Dietisheim - */ -public class LatestVersionQueryIntegrationTest extends TestTimer { - - private IUser user; - - @Before - public void setUp() throws OpenShiftException, FileNotFoundException, IOException { - this.user = new TestConnectionFactory().getConnection().getUser(); - } - - @Test - public void shouldSelectJBossAs() { - // pre-coniditions - // operation - // verification - assertCartridge(IStandaloneCartridge.NAME_JBOSSAS, LatestVersionOf.jbossAs().get(user)); - } - - @Test - public void shouldSelectJBossEap() { - // pre-coniditions - // operation - // verification - assertCartridge(IStandaloneCartridge.NAME_JBOSSEAP, LatestVersionOf.jbossEap().get(user)); - } - - @Test - public void shouldSelectJBossEws() { - // pre-coniditions - // operation - // verification - assertCartridge(IStandaloneCartridge.NAME_JBOSSEWS, LatestVersionOf.jbossEws().get(user)); - } - - @Test - public void shouldSelectJenkins() { - // pre-coniditions - // operation - // verification - assertCartridge(IStandaloneCartridge.NAME_JENKINS, LatestVersionOf.jenkins().get(user)); - } - - @Test - public void shouldSelectPerl() { - // pre-coniditions - // operation - // verification - assertCartridge(IStandaloneCartridge.NAME_PERL, LatestVersionOf.perl().get(user)); - } - - @Test - public void shouldSelectPhp() { - // pre-coniditions - // operation - // verification - assertCartridge(IStandaloneCartridge.NAME_PHP, LatestVersionOf.php().get(user)); - } - - @Test - public void shouldSelectPython() { - // pre-coniditions - // operation - // verification - assertCartridge(IStandaloneCartridge.NAME_PYTHON, LatestVersionOf.python().get(user)); - } - - @Test - public void shouldSelectRuby() { - // pre-coniditions - // operation - // verification - assertCartridge(IStandaloneCartridge.NAME_RUBY, LatestVersionOf.ruby().get(user)); - } - - @Test - public void shouldSelectZend() { - // pre-coniditions - // operation - // verification - assertCartridge(IStandaloneCartridge.NAME_ZEND, LatestVersionOf.zend().get(user)); - } - - @Test - public void shouldSelectMmsAgent() { - // pre-coniditions - // operation - // verification - assertCartridge(IEmbeddedCartridge.NAME_10GEN_MMS_AGENT, LatestVersionOf.mmsAgent().get(user)); - } - - - @Test - public void shouldSelectHaProxy() { - // pre-coniditions - // operation - // verification - assertCartridge(IEmbeddedCartridge.NAME_HAPROXY, LatestVersionOf.haProxy().get(user)); - } - - @Test - public void shouldSelectJenkinsClient() { - // pre-coniditions - // operation - // verification - assertCartridge(IEmbeddedCartridge.NAME_JENKINS_CLIENT, LatestVersionOf.jenkinsClient().get(user)); - } - - @Test - public void shouldSelectMetrics() { - // pre-coniditions - // operation - // verification - assertCartridge(IEmbeddedCartridge.NAME_METRICS, LatestVersionOf.metrics().get(user)); - } - - @Test - public void shouldSelectMongoDb() { - // pre-coniditions - // operation - // verification - assertCartridge(IEmbeddedCartridge.NAME_MONGODB, LatestVersionOf.mongoDB().get(user)); - } - - @Test - public void shouldSelectMySql() { - // pre-coniditions - // operation - // verification - assertCartridge(IEmbeddedCartridge.NAME_MYSQL, LatestVersionOf.mySQL().get(user)); - } - - @Test - public void shouldSelectPhpMyAdmin() { - // pre-coniditions - // operation - // verification - assertCartridge(IEmbeddedCartridge.NAME_PHPMYADMIN, LatestVersionOf.phpMyAdmin().get(user)); - } - - @Test - public void shouldSelectpostgreSql() { - // pre-coniditions - // operation - // verification - assertCartridge(IEmbeddedCartridge.NAME_POSTGRESQL, LatestVersionOf.postgreSQL().get(user)); - } - - @Test - public void shouldSelectRockmongo() { - // pre-coniditions - // operation - // verification - assertCartridge(IEmbeddedCartridge.NAME_ROCKMONGO, LatestVersionOf.rockMongo().get(user)); - } - - private void assertCartridge(String expectedName, ICartridge cartridge) throws OpenShiftException { - new CartridgeAssert(cartridge) - .nameStartWith(expectedName); - } - -} diff --git a/src/test/java/com/openshift/internal/client/LinkRetriever.java b/src/test/java/com/openshift/internal/client/LinkRetriever.java deleted file mode 100644 index b0f46b36..00000000 --- a/src/test/java/com/openshift/internal/client/LinkRetriever.java +++ /dev/null @@ -1,59 +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 static org.junit.Assert.fail; - -import java.net.SocketTimeoutException; -import java.util.Map; - -import com.openshift.client.OpenShiftException; -import com.openshift.internal.client.response.Link; - -/** - * Utility class to validate that a link in a resources contains a given fragment. - * - * @author Xavier Coulon - * - */ - -public class LinkRetriever { - - /** - * Retrieves the link identified by the given name from the given resource. - * @throws OpenShiftException - * @throws SocketTimeoutException - * - */ - public static Link retrieveLink(final Object resource, final String linkName) { - try { - return ((AbstractOpenShiftResource)resource).getLink(linkName); - } catch (Exception e) { - fail("Failed to retrieve link for given resource: " + resource); - } - return null; - } - - /** - * Retrieves the links from the given resource. - * @throws OpenShiftException - * @throws SocketTimeoutException - * - */ - public static Map retrieveLinks(final Object resource) { - try { - return ((AbstractOpenShiftResource)resource).getLinks(); - } catch (Exception e) { - fail("Failed to retrieve links for given resource: " + resource); - } - return null; - } -} diff --git a/src/test/java/com/openshift/internal/client/OpenShiftExceptionTest.java b/src/test/java/com/openshift/internal/client/OpenShiftExceptionTest.java deleted file mode 100644 index b3c7342c..00000000 --- a/src/test/java/com/openshift/internal/client/OpenShiftExceptionTest.java +++ /dev/null @@ -1,110 +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 static com.openshift.client.utils.Samples.DELETE_DOMAINS_FOOBARZ_KO_EXISTINGAPPS; -import static com.openshift.client.utils.Samples.GET_DOMAINS; -import static com.openshift.client.utils.Samples.GET_DOMAINS_FOOBARZ_APPLICATIONS_1EMBEDDED; -import static org.fest.assertions.Assertions.assertThat; -import static org.junit.Assert.fail; - -import java.io.FileNotFoundException; -import java.io.IOException; -import java.net.ConnectException; - -import org.junit.Before; -import org.junit.Rule; -import org.junit.Test; -import org.junit.rules.ErrorCollector; -import org.junit.rules.ExpectedException; - -import com.openshift.client.IDomain; -import com.openshift.client.IHttpClient; -import com.openshift.client.IUser; -import com.openshift.client.Message; -import com.openshift.client.Messages; -import com.openshift.client.OpenShiftEndpointException; -import com.openshift.client.OpenShiftException; -import com.openshift.client.utils.MessageAssert; -import com.openshift.client.utils.TestConnectionFactory; -import com.openshift.internal.client.httpclient.BadRequestException; -import com.openshift.internal.client.httpclient.HttpClientException; - -/** - * @author Andre Dietisheim - */ -public class OpenShiftExceptionTest extends TestTimer { - - private IUser user; - private IHttpClient clientMock; - - @Rule - public ExpectedException expectedException = ExpectedException.none(); - - @Rule - public ErrorCollector errorCollector = new ErrorCollector(); - private HttpClientMockDirector mockDirector; - - @Before - public void setup() throws Throwable { - // pre-conditions - this.mockDirector = new HttpClientMockDirector(); - this.clientMock = mockDirector - .mockGetDomains(GET_DOMAINS) - .mockGetApplications("foobarz", GET_DOMAINS_FOOBARZ_APPLICATIONS_1EMBEDDED) - .client(); - this.user = new TestConnectionFactory().getConnection(clientMock).getUser(); - } - - @Test - public void shouldReportServerInTimeoutExceptionMessage() throws FileNotFoundException, OpenShiftException, IOException { - try { - // pre-conditions - mockDirector.mockGetAPI( - new HttpClientException(new ConnectException("java.net.ConnectException: Connection timed out"))); - // operation - new TestConnectionFactory().getConnection(clientMock); - // verification - fail("exception expected"); - } catch (OpenShiftEndpointException e) { - // verification - assertThat(e.getMessage()).contains("https://"); - } - } - - @Test - public void shouldThrowWithTextAndExistCode() throws Throwable { - // pre-conditions - try { - mockDirector.mockDeleteDomain("foobarz", - new BadRequestException( - DELETE_DOMAINS_FOOBARZ_KO_EXISTINGAPPS.getContentAsString(), - new IOException( - "IOException message: Server returned HTTP response code: 400 for URL: https://openshift.redhat.com/broker/rest/domains/foobarz"))); - IDomain domain = user.getDefaultDomain(); - // operation - domain.destroy(); - // verification - fail("exception expected"); - } catch (OpenShiftEndpointException e) { - // verification - assertThat(e.getRestResponse()).isNotNull(); - Messages messages = e.getRestResponse().getMessages(); - assertThat(messages.size()).isGreaterThan(0); - Message firstMessage = messages.getAll().iterator().next(); - new MessageAssert(firstMessage) - .hasExitCode(128) - .hasSeverity(Severity.ERROR) - .hasText("Domain contains applications. Delete applications first or set force to true."); - } - } - -} diff --git a/src/test/java/com/openshift/internal/client/OpenShiftIntegrationTestSuite.java b/src/test/java/com/openshift/internal/client/OpenShiftIntegrationTestSuite.java deleted file mode 100755 index 64cb2cf8..00000000 --- a/src/test/java/com/openshift/internal/client/OpenShiftIntegrationTestSuite.java +++ /dev/null @@ -1,33 +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 org.junit.runner.RunWith; -import org.junit.runners.Suite; - -@RunWith(Suite.class) -@Suite.SuiteClasses({ - APIResourceIntegrationTest.class, - LatestVersionQueryIntegrationTest.class, - SSHKeyIntegrationTest.class, - UserResourceIntegrationTest.class, - DomainResourceIntegrationTest.class, - ApplicationResourceIntegrationTest.class, - StandaloneCartridgesIntegrationTest.class, - EmbeddedCartridgeResourceIntegrationTest.class, - EnvironmentVariableResourceIntegrationTest.class -}) -/** - * @author André Dietisheim - */ -public class OpenShiftIntegrationTestSuite { - -} diff --git a/src/test/java/com/openshift/internal/client/OpenShiftTestSuite.java b/src/test/java/com/openshift/internal/client/OpenShiftTestSuite.java deleted file mode 100755 index 53564f8a..00000000 --- a/src/test/java/com/openshift/internal/client/OpenShiftTestSuite.java +++ /dev/null @@ -1,51 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2007 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 org.junit.runner.RunWith; -import org.junit.runners.Suite; - -import com.openshift.internal.client.httpclient.HttpClientTest; -import com.openshift.internal.client.httpclient.request.FormUrlEncodedMediaTypeTest; -import com.openshift.internal.client.httpclient.request.JsonMediaTypeTest; -import com.openshift.internal.client.response.OpenShiftJsonDTOFactoryTest; - -@RunWith(Suite.class) -@Suite.SuiteClasses({ - ConfigurationTest.class, - HttpClientTest.class, - RestServicePropertiesTest.class, - RestServiceTest.class, - OpenShiftJsonDTOFactoryTest.class, - DomainResourceTest.class, - ApplicationResourceTest.class, - APIResourceTest.class, - StandaloneCartridgeTest.class, - EmbeddableCartridgeTest.class, - EmbeddedCartridgeResourceTest.class, - QueryTest.class, - UserTest.class, - SSHKeyTest.class, - GearGroupsResourceTest.class, - GearTest.class, - GearTest.class, - OpenShiftExceptionTest.class, - FormUrlEncodedMediaTypeTest.class, - JsonMediaTypeTest.class, - EnvironmentVariableResourceTest.class -}) - -/** - * @author André Dietisheim - */ -public class OpenShiftTestSuite { - -} diff --git a/src/test/java/com/openshift/internal/client/QueryTest.java b/src/test/java/com/openshift/internal/client/QueryTest.java deleted file mode 100644 index 2ac7260f..00000000 --- a/src/test/java/com/openshift/internal/client/QueryTest.java +++ /dev/null @@ -1,447 +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 static org.fest.assertions.Assertions.assertThat; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertTrue; -import static org.mockito.Mockito.mock; -import static org.mockito.Mockito.when; - -import java.io.FileNotFoundException; -import java.io.IOException; -import java.util.Arrays; -import java.util.Collection; -import java.util.Collections; -import java.util.List; - -import org.junit.Before; -import org.junit.Test; - -import com.openshift.client.IHttpClient; -import com.openshift.client.IOpenShiftConnection; -import com.openshift.client.OpenShiftException; -import com.openshift.client.cartridge.EmbeddableCartridge; -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.cartridge.selector.LatestEmbeddableCartridge; -import com.openshift.client.cartridge.selector.LatestVersionOf; -import com.openshift.client.cartridge.selector.LatestVersionQuery; -import com.openshift.client.cartridge.selector.StringPropertyQuery; -import com.openshift.client.utils.CartridgeAssert; -import com.openshift.client.utils.Cartridges; -import com.openshift.client.utils.Samples; -import com.openshift.client.utils.TestConnectionFactory; - -/** - * @author Andre Dietisheim - */ -public class QueryTest extends TestTimer { - - private IOpenShiftConnection connection; - - @Before - public void setUp() throws OpenShiftException, FileNotFoundException, IOException { - IHttpClient client = new HttpClientMockDirector() - .mockGetCartridges(Samples.GET_CARTRIDGES) - .client(); - this.connection = new TestConnectionFactory().getConnection(client); - } - - @Test - public void shouldEqualsOtherCartridgeConstraint() { - // pre-coniditions - // operation - // verification - assertEquals( - new LatestVersionQuery("redhat"), - new LatestVersionQuery("redhat")); - assertFalse(new LatestVersionQuery("redhat").equals( - new LatestVersionQuery("jboss"))); - } - - @Test - public void shouldMatchEmbeddableCartridge() { - // pre-coniditions - LatestVersionQuery redhatSelector = new LatestVersionQuery("redhat"); - LatestVersionQuery jbossSelector = new LatestVersionQuery("jboss"); - IEmbeddableCartridge redhat10 = new EmbeddableCartridge("redhat-1.0"); - IEmbeddableCartridge redhat30 = new EmbeddableCartridge("redhat-3.0"); - IEmbeddableCartridge jboss10 = new EmbeddableCartridge("jboss-1.0"); - LatestVersionQuery closedSourceSelector = new LatestVersionQuery("closedsource"); - // operation - // verification - assertTrue(redhatSelector.matches(redhat10)); - assertTrue(redhatSelector.matches(redhat30)); - assertFalse(redhatSelector.matches(jboss10)); - assertTrue(jbossSelector.matches(jboss10)); - assertFalse(closedSourceSelector.matches(jboss10)); - } - - @Test - public void shouldReturnEmptyListOnNoCartridges() { - // pre-coniditions - List embeddedCartridges = Collections.emptyList(); - - LatestVersionQuery selector = new LatestVersionQuery("mysql"); - - // operation - IEmbeddedCartridge matchingCartridge = selector.get(embeddedCartridges); - - // verification - assertThat(matchingCartridge).isNull(); - } - - @Test - public void shouldReturnEmptyListOnNoMatchingCartridge() { - // pre-coniditions - List embeddedCartridges = Arrays.asList( - createEmbeddedCartridgeMock("eclipsecon-2013"), - createEmbeddedCartridgeMock("community") - ); - - LatestVersionQuery selector = new LatestVersionQuery("fun"); - - // operation - IEmbeddedCartridge matchingCartridge = selector.get(embeddedCartridges); - - // verification - assertThat(matchingCartridge).isNull(); - } - - @Test - public void shouldMatchMysql() { - // pre-coniditions - List embeddedCartridges = - Arrays.asList(createEmbeddedCartridgeMock(Cartridges.MYSQL_51_NAME)); - LatestVersionQuery cartridgeConstraint = new LatestVersionQuery("mysql"); - - // operation - IEmbeddedCartridge matchingCartridge = cartridgeConstraint.get(embeddedCartridges); - - // verification - assertThat(matchingCartridge).isNotNull(); - assertThat(matchingCartridge.getName()).isEqualTo(Cartridges.MYSQL_51_NAME); - } - - @Test - public void shouldMatchLatestMysql() { - // pre-coniditions - List embeddedCartridges = Arrays.asList( - createEmbeddedCartridgeMock(Cartridges.MYSQL_51_NAME), - createEmbeddedCartridgeMock("mysql-5.0") - ); - - LatestVersionQuery cartridgeSelector = new LatestVersionQuery("mysql"); - - // operation - IEmbeddedCartridge latestMysql = cartridgeSelector.get(embeddedCartridges); - - // verification - assertThat(latestMysql).isNotNull(); - assertThat(latestMysql.getName()).isEqualTo(Cartridges.MYSQL_51_NAME); - } - - @Test - public void shouldMatchMajorVersionedCartridge() { - // pre-coniditions - String cartridgeName = "vertx-2"; - List embeddedCartridges = Arrays.asList( - createEmbeddedCartridgeMock(cartridgeName), - createEmbeddedCartridgeMock("mysql") - ); - LatestEmbeddableCartridge constraint = new LatestEmbeddableCartridge("vertx"); - - // operation - IEmbeddedCartridge cartridge = constraint.get(embeddedCartridges); - - // verification - assertThat(cartridge).isNotNull(); - assertThat(cartridge.getName()).isEqualTo(cartridgeName); - } - - @Test - public void shouldMatchLaterMajorVersion() { - // pre-coniditions - String mysql6Name = "mysql-6"; - List embeddedCartridges = Arrays.asList( - createEmbeddedCartridgeMock(mysql6Name), - createEmbeddedCartridgeMock("mysql-5.0") - ); - - LatestVersionQuery cartridgeSelector = new LatestVersionQuery("mysql"); - - // operation - IEmbeddedCartridge latestMysql = cartridgeSelector.get(embeddedCartridges); - - // verification - assertThat(latestMysql).isNotNull(); - assertThat(latestMysql.getName()).isEqualTo(mysql6Name); - } - - @Test - public void shouldMatchAlphanumericVersionedCartridge() { - // pre-coniditions - String cartridgeName = "somecartridge-7b"; - List embeddedCartridges = Arrays.asList( - createEmbeddedCartridgeMock(cartridgeName), - createEmbeddedCartridgeMock("mysql-5.0") - ); - LatestVersionQuery constraint = new LatestVersionQuery("somecartridge"); - - // operation - IEmbeddedCartridge cartridge = constraint.get(embeddedCartridges); - - // verification - assertThat(cartridge).isNotNull(); - assertThat(cartridge.getName()).isEqualTo(cartridgeName); - } - - @Test - public void shouldMatchCartridgeNameWithDash() { - // pre-coniditions - String jenkins2 = "jenkins-client-2.0"; - List embeddedCartridges = Arrays.asList( - createEmbeddedCartridgeMock(jenkins2), - createEmbeddedCartridgeMock("jenkins-client-1.4") - ); - LatestVersionQuery constraint = new LatestVersionQuery("jenkins-client"); - - // operation - IEmbeddedCartridge cartridge = constraint.get(embeddedCartridges); - - // verification - assertThat(cartridge).isNotNull(); - assertThat(cartridge.getName()).isEqualTo(jenkins2); - } - - @Test - public void shouldMatchingCartridgeName() { - // pre-coniditions - List embeddedCartridges = Arrays.asList( - createEmbeddedCartridgeMock("Timberlake"), - createEmbeddedCartridgeMock("TimAndStrupi") - ); - - StringPropertyQuery selector = new StringPropertyQuery("Tim.*") { - - @Override - protected String getProperty(C cartridge) { - return cartridge.getName(); - } - - }; - - // operation - IEmbeddedCartridge matchingCartridge = selector.get(embeddedCartridges); - Collection matchingCartridges = selector.getAll(embeddedCartridges); - - // verification - assertThat(matchingCartridge).isNotNull(); - assertThat(matchingCartridge.getName()).isEqualTo("Timberlake"); - assertThat(matchingCartridges).onProperty("name").containsOnly("Timberlake", "TimAndStrupi"); - } - - @Test - public void shouldSelectNodeJsByDescriptionRegex() { - // pre-coniditions - List standaloneCartridges = Arrays.asList( - new StandaloneCartridge("bingobongo"), - new StandaloneCartridge("bongomongo"), - new StandaloneCartridge("nodejs-0.6", null, - "Node.js is a platform built on Chrome's JavaScript runtime for easily building fast, " - + "scalable network applications. Node.js is perfect for data-intensive real-time " - + "applications that run across distributed devices.") - ); - StringPropertyQuery query = new StringPropertyQuery(".+platform built on Chrome's JavaScript runtime.+") { - - @Override - protected String getProperty(C cartridge) { - return cartridge.getDescription(); - } - }; - // operation - IStandaloneCartridge nodeJs = query.get(standaloneCartridges); - - // verification - new CartridgeAssert(nodeJs) - .hasName("nodejs-0.6"); - - } - - @Test - public void shouldSelectJBossAs() { - // pre-coniditions - // operation - // verification - assertCartridge(IStandaloneCartridge.NAME_JBOSSAS, LatestVersionOf.jbossAs().get(connection.getStandaloneCartridges())); - } - - @Test - public void shouldSelectJBossEap() { - // pre-coniditions - // operation - // verification - assertCartridge(IStandaloneCartridge.NAME_JBOSSEAP, LatestVersionOf.jbossEap().get(connection.getStandaloneCartridges())); - } - - @Test - public void shouldSelectJBossEws() { - // pre-coniditions - // operation - // verification - assertCartridge(IStandaloneCartridge.NAME_JBOSSEWS, LatestVersionOf.jbossEws().get(connection.getStandaloneCartridges())); - } - - @Test - public void shouldSelectJenkins() { - // pre-coniditions - // operation - // verification - assertCartridge(IStandaloneCartridge.NAME_JENKINS, LatestVersionOf.jenkins().get(connection.getStandaloneCartridges())); - } - - @Test - public void shouldSelectPerl() { - // pre-coniditions - // operation - // verification - assertCartridge(IStandaloneCartridge.NAME_PERL, LatestVersionOf.perl().get(connection.getStandaloneCartridges())); - } - - @Test - public void shouldSelectPhp() { - // pre-coniditions - // operation - // verification - assertCartridge(IStandaloneCartridge.NAME_PHP, LatestVersionOf.php().get(connection.getStandaloneCartridges())); - } - - @Test - public void shouldSelectPython() { - // pre-coniditions - // operation - // verification - assertCartridge(IStandaloneCartridge.NAME_PYTHON, LatestVersionOf.python().get(connection.getStandaloneCartridges())); - } - - @Test - public void shouldSelectRuby() { - // pre-coniditions - // operation - // verification - assertCartridge(IStandaloneCartridge.NAME_RUBY, LatestVersionOf.ruby().get(connection.getStandaloneCartridges())); - } - - @Test - public void shouldSelectZend() { - // pre-coniditions - // operation - // verification - assertCartridge(IStandaloneCartridge.NAME_ZEND, LatestVersionOf.zend().get(connection.getStandaloneCartridges())); - } - - @Test - public void shouldSelectMmsAgent() { - // pre-coniditions - // operation - // verification - assertCartridge(IEmbeddedCartridge.NAME_10GEN_MMS_AGENT, - LatestVersionOf.mmsAgent().get(connection.getEmbeddableCartridges())); - } - - @Test - public void shouldSelectHaProxy() { - // pre-coniditions - // operation - // verification - assertCartridge(IEmbeddedCartridge.NAME_HAPROXY, - LatestVersionOf.haProxy().get(connection.getEmbeddableCartridges())); - } - - @Test - public void shouldSelectJenkinsClient() { - // pre-coniditions - // operation - // verification - assertCartridge(IEmbeddedCartridge.NAME_JENKINS_CLIENT, - LatestVersionOf.jenkinsClient().get(connection.getEmbeddableCartridges())); - } - - @Test - public void shouldSelectMetrics() { - // pre-coniditions - // operation - // verification - assertCartridge(IEmbeddedCartridge.NAME_METRICS, - LatestVersionOf.metrics().get(connection.getEmbeddableCartridges())); - } - - @Test - public void shouldSelectMongoDb() { - // pre-coniditions - // operation - // verification - assertCartridge(IEmbeddedCartridge.NAME_MONGODB, - LatestVersionOf.mongoDB().get(connection.getEmbeddableCartridges())); - } - - @Test - public void shouldSelectMySql() { - // pre-coniditions - // operation - // verification - assertCartridge(IEmbeddedCartridge.NAME_MYSQL, - LatestVersionOf.mySQL().get(connection.getEmbeddableCartridges())); - } - - @Test - public void shouldSelectPhpMyAdmin() { - // pre-coniditions - // operation - // verification - assertCartridge(IEmbeddedCartridge.NAME_PHPMYADMIN, - LatestVersionOf.phpMyAdmin().get(connection.getEmbeddableCartridges())); - } - - @Test - public void shouldSelectpostgreSql() { - // pre-coniditions - // operation - // verification - assertCartridge(IEmbeddedCartridge.NAME_POSTGRESQL, - LatestVersionOf.postgreSQL().get(connection.getEmbeddableCartridges())); - } - - @Test - public void shouldSelectRockmongo() { - // pre-coniditions - // operation - // verification - assertCartridge(IEmbeddedCartridge.NAME_ROCKMONGO, - LatestVersionOf.rockMongo().get(connection.getEmbeddableCartridges())); - } - - private IEmbeddedCartridge createEmbeddedCartridgeMock(String name) { - IEmbeddedCartridge mock = mock(IEmbeddedCartridge.class); - when(mock.getName()).thenReturn(name); - return mock; - } - - private void assertCartridge(String expectedName, ICartridge cartridge) { - assertThat(cartridge).isNotNull(); - assertThat(cartridge.getName()).startsWith(expectedName); - } -} diff --git a/src/test/java/com/openshift/internal/client/RestServicePropertiesTest.java b/src/test/java/com/openshift/internal/client/RestServicePropertiesTest.java deleted file mode 100644 index 07308d5b..00000000 --- a/src/test/java/com/openshift/internal/client/RestServicePropertiesTest.java +++ /dev/null @@ -1,72 +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 static org.fest.assertions.Assertions.assertThat; - -import java.io.FileNotFoundException; -import java.io.IOException; -import java.util.Properties; - -import org.junit.Before; -import org.junit.Test; - -import com.openshift.client.OpenShiftException; -import com.openshift.internal.client.httpclient.HttpClientException; - -/** - * @author Andre Dietisheim - */ -public class RestServicePropertiesTest extends TestTimer { - - private static final String VERSION = "0.0.1"; - private RestServiceProperties serviceProperties; - - @Before - public void setUp() throws FileNotFoundException, IOException, OpenShiftException, HttpClientException { - this.serviceProperties = new RestServiceProperties() { - protected Properties getProperties() throws IOException { - Properties properties = new Properties(); - properties.put(KEY_VERSION, VERSION); - properties.put(KEY_USERAGENTPATTERN, "{0} {1}"); - return properties; - } - }; - } - - @Test - public void shouldReturnClientIdAndVersion() { - // pre-conditions - String clientId = "properties-test"; - - // operation - String userAgent = serviceProperties.getUseragent(clientId); - - // verification - assertThat(userAgent).isNotEmpty(); - String[] clientIdAndVersion = userAgent.split(" "); - assertThat(clientIdAndVersion).isNotNull().hasSize(2).containsOnly(clientId, VERSION); - } - - @Test - public void shouldReturnUserAgentEvenIfClientIdIsNull() { - // pre-conditions - - // operation - String userAgent = serviceProperties.getUseragent(null); - - // verification - assertThat(userAgent).isNotEmpty(); - // length of version + space, no client-id - assertThat(userAgent).hasSize(VERSION.length() + 1); - } - -} diff --git a/src/test/java/com/openshift/internal/client/RestServiceTest.java b/src/test/java/com/openshift/internal/client/RestServiceTest.java deleted file mode 100644 index 51ff6601..00000000 --- a/src/test/java/com/openshift/internal/client/RestServiceTest.java +++ /dev/null @@ -1,430 +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 static org.fest.assertions.Assertions.assertThat; -import static org.junit.Assert.fail; -import static org.mockito.Mockito.mock; -import static org.mockito.Mockito.times; -import static org.mockito.Mockito.verify; - -import java.io.IOException; -import java.util.Arrays; -import java.util.List; -import java.util.Properties; - -import org.junit.Before; -import org.junit.Test; - -import com.openshift.client.HttpMethod; -import com.openshift.client.IHttpClient; -import com.openshift.client.Message; -import com.openshift.client.OpenShiftEndpointException; -import com.openshift.client.OpenShiftRequestException; -import com.openshift.client.utils.MessageAssert; -import com.openshift.client.utils.OpenShiftTestConfiguration; -import com.openshift.client.utils.Samples; -import com.openshift.internal.client.httpclient.HttpClientException; -import com.openshift.internal.client.httpclient.NotFoundException; -import com.openshift.internal.client.httpclient.request.JsonMediaType; -import com.openshift.internal.client.httpclient.request.Parameter; -import com.openshift.internal.client.httpclient.request.StringParameter; -import com.openshift.internal.client.response.Link; -import com.openshift.internal.client.response.LinkParameter; -import com.openshift.internal.client.response.LinkParameterType; -import com.openshift.internal.client.response.OpenShiftJsonDTOFactory; -import com.openshift.internal.client.response.RestResponse; - -/** - * @author Andre Dietisheim - */ -public class RestServiceTest extends TestTimer { - - protected static final String KEY_PROTOCOL_VERSION = "protocol_version"; - private IRestService service; - private HttpClientMockDirector mockDirector; - private IHttpClient clientMock; - - @Before - public void setUp() throws Exception { - this.mockDirector = new HttpClientMockDirector(); - String jsonResponse = "{}"; - this.clientMock = mockDirector - .mockGetAny(jsonResponse) - .mockPostAny(jsonResponse) - .mockPutAny(jsonResponse) - .mockDeleteAny(jsonResponse) - .client(); - - OpenShiftTestConfiguration configuration = new OpenShiftTestConfiguration(); - this.service = new RestService( - configuration.getStagingServer(), - configuration.getClientId(), - new JsonMediaType(), - IHttpClient.MEDIATYPE_APPLICATION_JSON, - new OpenShiftJsonDTOFactory(), - clientMock); - } - - @Test - public void shouldNotThrowIfNoReqiredParameter() throws Exception { - // operation - Link link = new TestLink("0 required parameter", "/dummy", HttpMethod.GET); - service.request(link); - } - - @Test - public void shouldGetIfGetHttpMethod() throws Exception { - // operation - service.request(new TestLink("0 required parameter", "http://www.redhat.com", HttpMethod.GET)); - // verifications - mockDirector.verifyGetAny(1); - } - - @Test - public void shouldPostIfPostHttpMethod() throws Exception { - // operation - service.request(new TestLink("0 required parameter", "http://www.redhat.com", HttpMethod.POST)); - // verifications - mockDirector.verifyPostAny(1); - } - - @Test - public void shouldPutIfPutHttpMethod() throws Exception { - // operation - service.request(new TestLink("0 required parameter", "http://www.redhat.com", HttpMethod.PUT)); - // verifications - mockDirector.verifyPutAny(1); - } - - @Test - public void shouldDeleteIfDeleteHttpMethod() throws Exception { - // operation - service.request(new TestLink("0 required parameter", "http://www.redhat.com", HttpMethod.DELETE)); - // verifications - mockDirector.verifyDeleteAny(1); - } - - @Test - public void shouldPatchIfPatchHttpMethod() throws Exception { - // operation - service.request(new TestLink("0 required parameter", "http://www.redhat.com", HttpMethod.PATCH)); - // verifications - mockDirector.verifyPatchAny(1); - } - - @Test - public void shouldHeadIfHeadHttpMethod() throws Exception { - // operation - service.request(new TestLink("0 required parameter", "http://www.redhat.com", HttpMethod.HEAD)); - // verifications - mockDirector.verifyHeadAny(1); - } - - @Test - public void shouldNotAddServerToAbsUrl() throws Exception { - // operation - String url = "http://www.redhat.com"; - service.request(new TestLink("0 required parameter", url, HttpMethod.GET)); - // verifications - mockDirector.verifyGet(url, 1); - } - - @Test - public void shouldAddServerToPath() throws Exception { - // operation - String url = "/adietisheim-redhat"; - service.request(new TestLink("0 require parameter", url, HttpMethod.GET)); - // verifications - String targetUrl = service.getServiceUrl() + url.substring(1, url.length()); - mockDirector.verifyGet(targetUrl, 1); - } - - @Test - public void shouldNotAddBrokerPathIfPresent() throws Exception { - // operation - String url = "/broker/rest/adietisheim-redhat"; - service.request(new TestLink("0 require parameter", url, HttpMethod.GET)); - // verifications - String targetUrl = service.getPlatformUrl() + url; - mockDirector.verifyGet(targetUrl, 1); - } - - @Test - public void shouldNotAddEmptyServerAndEmptyServicePath() throws Exception { - // pre-conditions - String href = "/adietisheim-redhat"; - Link link = new TestLink("0 require parameter", href , HttpMethod.GET); - String url = link.getHref(null, null); - // verifications - assertThat(url).isEqualTo(href); - } - - @Test - public void shouldAddParameters() throws Exception { - // pre-conditions - String href = "/broker/rest/adietisheim-redhat"; - Link link = new TestLink("0 require parameter", href , HttpMethod.GET); - // operation - String url = link.getHref(null, null, new Parameter("include", "cartridges"), new Parameter("exclude", "fridges")); - // verifications - assertThat(url).isEqualTo(href + "?include=cartridges&exclude=fridges"); - } - - @Test - public void shouldSubstituteUrlVariables() throws Exception { - // pre-conditions - String href = "/broker/rest/:company/adietisheim/:language/openshift-java-client"; - Link link = new TestLink("", href , HttpMethod.GET); - // operation - String url = link.getHref(null, null, Arrays.asList( - new StringParameter("company", "redhat"), - new StringParameter("language", "java")), - null); - // verifications - assertThat(url).isEqualTo("/broker/rest/redhat/adietisheim/java/openshift-java-client"); - } - - @Test - public void shouldNotSubstituteUrlVariables() throws Exception { - // pre-conditions - String href = "https://openshift.redhat.com/broker/rest/:company/adietisheim/:oss/openshift-java-client"; - Link link = new TestLink("", href , HttpMethod.GET); - // operation - String url = link.getHref(null, null, Arrays.asList( - new StringParameter("company", "redhat"), - new StringParameter("cloud", "redhat")), - null); - // verifications - assertThat(url).isEqualTo("https://openshift.redhat.com/broker/rest/redhat/adietisheim/:oss/openshift-java-client"); - } - - @Test - public void shouldSubstituteUrlVariablesTwice() throws Exception { - // pre-conditions - String href = "https://openshift.redhat.com/broker/rest/:cloud_company/adietisheim/:cloud_company/openshift-java-client"; - Link link = new TestLink("", href , HttpMethod.GET); - // operation - String url = link.getHref(null, null, - Arrays.asList(new StringParameter("cloud_company", "redhat")), - null); - // verifications - assertThat(url).isEqualTo("https://openshift.redhat.com/broker/rest/redhat/adietisheim/redhat/openshift-java-client"); - } - - @Test - public void shouldThrowExceptionWithResponseOnNotFound() throws Exception { - try { - // pre-conditions - mockDirector.mockGetAny(new NotFoundException(Samples.GET_DOMAINS_FOOBAR_KO_NOTFOUND.getContentAsString())); - // operation - service.request(new TestLink("0 require parameter", "/broker/rest/adietisheim", HttpMethod.GET)); - // verifications - fail("OpenShiftEndPointException expected, did not occurr"); - } catch (OpenShiftEndpointException e) { - assertThat(e.getRestResponse()).isNotNull(); - } - } - - @Test - public void shouldHaveMessageIfErrors() throws Exception { - try { - // pre-conditions - mockDirector - .mockPostAny(new HttpClientException(Samples.POST_FOOBAR_DOMAINS_KO_INUSE.getContentAsString())); - // operation - service.request(new TestLink("0 require parameter", "/broker/rest/domains", HttpMethod.POST)); - // verifications - fail("OpenShiftEndPointException expected, did not occurr"); - } catch (OpenShiftEndpointException e) { - RestResponse restResponse = e.getRestResponse(); - assertThat(restResponse).isNotNull(); - assertThat(restResponse.getMessages().size()).isEqualTo(1); - Message message = restResponse.getMessages().getAll().iterator().next(); - assertThat(new MessageAssert(message)) - .hasText("Namespace 'foobar' is already in use. Please choose another.") - .hasSeverity(Severity.ERROR) - .hasExitCode(103) - .hasField(new Field("id")); - } - } - - @Test - public void shouldReportPlatformUrlInException() throws Exception { - try { - // pre-conditions - mockDirector - .mockPostAny(new HttpClientException(Samples.POST_FOOBAR_DOMAINS_KO_INUSE.getContentAsString())); - // operation - service.request(new TestLink("0 require parameter", "/broker/rest/domains", HttpMethod.POST)); - // verifications - fail("OpenShiftEndPointException expected, did not occurr"); - } catch (OpenShiftEndpointException e) { - assertThat(e.getMessage()).contains(service.getPlatformUrl()); - } - } - - @Test - public void shouldReturnPlatformWithSchema() throws Exception { - // pre-conditions - final String serverUrl = "nonHttpUrl"; - IRestService service = new RestService( - serverUrl, - new OpenShiftTestConfiguration().getClientId(), - new JsonMediaType(), - IHttpClient.MEDIATYPE_APPLICATION_JSON, - new OpenShiftJsonDTOFactory(), - clientMock); - // operation - String platformUrl = service.getPlatformUrl(); - // verifications - assertThat(platformUrl).startsWith("https://"); - assertThat(platformUrl).isEqualTo("https://" + serverUrl); - } - - @Test - public void shouldReturnUnchangedPlatformUrl() throws Exception { - // pre-conditions - final String serverUrl = "http://fakeUrl"; - IRestService service = new RestService( - serverUrl, - new OpenShiftTestConfiguration().getClientId(), - new JsonMediaType(), - IHttpClient.MEDIATYPE_APPLICATION_JSON, - new OpenShiftJsonDTOFactory(), - clientMock); - // operation - String platformUrl = service.getPlatformUrl(); - // verifications - assertThat(platformUrl).isEqualTo(serverUrl); - } - - @Test - public void shouldSetUserAgentToHttpClient() throws Exception { - // pre-condition - RestServiceProperties properties = new RestServiceProperties() { - protected Properties getProperties() throws IOException { - Properties properties = new Properties(); - properties.put(KEY_USERAGENTPATTERN, "{0} {1}"); - return properties; - } - }; - IHttpClient httpClientMock = mock(IHttpClient.class); - - // operation - String clientId = "unit-test"; - new RestService("jboss.org", - clientId, - new JsonMediaType(), - IHttpClient.MEDIATYPE_APPLICATION_JSON, - new OpenShiftJsonDTOFactory(), - httpClientMock, - properties); - - // verifications - String userAgent = properties.getUseragent(clientId); - verify(httpClientMock, times(1)).setUserAgent(userAgent); - } - - @Test - public void shouldDefaultTo12ProtocolVersion() throws Exception { - // pre-condition - RestServiceProperties properties = new RestServiceProperties(); - IHttpClient httpClientMock = mock(IHttpClient.class); - - // operation - String clientId = "unit-test"; - new RestService( - "jboss.org", - clientId, - new JsonMediaType(), - IHttpClient.MEDIATYPE_APPLICATION_JSON, - new OpenShiftJsonDTOFactory(), - httpClientMock, - properties); - - // verifications - verify(clientMock, times(1)).setAcceptVersion("1.2"); - } - - @Test - public void shouldSetAcceptedMediaTypeJsonToHttpClient() throws Exception { - // pre-condition - IHttpClient httpClientMock = mock(IHttpClient.class); - RestServiceProperties properties = new RestServiceProperties(); - - // operation - new RestService( - "jboss.org", - "unit-test", - new JsonMediaType(), - IHttpClient.MEDIATYPE_APPLICATION_JSON, - new OpenShiftJsonDTOFactory(), - httpClientMock, - properties); - - // verifications - verify(httpClientMock, times(1)).setAcceptedMediaType(IHttpClient.MEDIATYPE_APPLICATION_JSON); - } - - @Test - public void shouldUseGivenProtocolVersion() throws Exception { - // pre-condition - RestServiceProperties properties = new RestServiceProperties(); - IHttpClient httpClientMock = mock(IHttpClient.class); - - // operation - String clientId = "unit-test"; - new RestService( - "jboss.org", - clientId, - "4.2", - new JsonMediaType(), - IHttpClient.MEDIATYPE_APPLICATION_JSON, - new OpenShiftJsonDTOFactory(), - httpClientMock, - properties); - - // verifications - verify(httpClientMock, times(1)).setAcceptVersion("4.2"); - } - - public class TestLink extends Link { - - public TestLink(String rel, String href, HttpMethod httpMethod, List requiredParams, - List optionalParams) { - super(rel, href, httpMethod, requiredParams, optionalParams); - } - - public TestLink(String rel, String href, HttpMethod httpMethod) { - super(rel, href, httpMethod); - } - - public TestLink(String rel, String href, String httpMethod, List requiredParams, - List optionalParams) { - super(rel, href, httpMethod, requiredParams, optionalParams); - } - } - - public class TestLinkParameter extends LinkParameter { - - public TestLinkParameter(String name, LinkParameterType type, String defaultValue, String description, - List validOptions) throws OpenShiftRequestException { - super(name, type, defaultValue, description, validOptions); - } - - public TestLinkParameter(String name, String type, String defaultValue, String description, - List validOptions) throws OpenShiftRequestException { - super(name, type, defaultValue, description, validOptions); - } - } - -} diff --git a/src/test/java/com/openshift/internal/client/SSHKeyIntegrationTest.java b/src/test/java/com/openshift/internal/client/SSHKeyIntegrationTest.java deleted file mode 100644 index d0859b0c..00000000 --- a/src/test/java/com/openshift/internal/client/SSHKeyIntegrationTest.java +++ /dev/null @@ -1,234 +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 static com.openshift.client.utils.FileUtils.createRandomTempFile; -import static org.fest.assertions.Assertions.assertThat; - -import java.io.FileNotFoundException; -import java.io.IOException; -import java.net.SocketTimeoutException; -import java.util.List; - -import org.junit.Before; -import org.junit.Test; - -import com.jcraft.jsch.JSchException; -import com.openshift.client.IOpenShiftSSHKey; -import com.openshift.client.ISSHPublicKey; -import com.openshift.client.IUser; -import com.openshift.client.OpenShiftException; -import com.openshift.client.SSHKeyPair; -import com.openshift.client.SSHKeyType; -import com.openshift.client.SSHPublicKey; -import com.openshift.client.utils.SSHKeyTestUtils; -import com.openshift.client.utils.TestConnectionFactory; -import com.openshift.internal.client.httpclient.HttpClientException; - -/** - * @author Andre Dietisheim - */ -public class SSHKeyIntegrationTest extends TestTimer { - - private IUser user; - - @Before - public void setUp() throws FileNotFoundException, IOException, OpenShiftException { - this.user = new TestConnectionFactory().getConnection().getUser(); - } - - @Test - public void shouldReturnExistingKeys() throws HttpClientException, Throwable { - // pre-conditions - // operation - List sshKeys = user.getSSHKeys(); - // verifications - assertThat(sshKeys).isNotNull(); - } - - @Test - public void shouldAddKey() throws SocketTimeoutException, HttpClientException, Throwable { - IOpenShiftSSHKey key = null; - try { - // pre-conditions - String publicKeyPath = SSHKeyTestUtils.createDsaKeyPair(); - ISSHPublicKey publicKey = new SSHPublicKey(publicKeyPath); - int numOfKeys = user.getSSHKeys().size(); - - // operation - String keyName = SSHKeyTestUtils.createRandomKeyName(); - key = user.putSSHKey(keyName, publicKey); - - // verifications - assertThat( - new SSHKeyTestUtils.SSHPublicKeyAssertion(key)) - .hasName(keyName) - .hasPublicKey(publicKey.getPublicKey()) - .isType(publicKey.getKeyType()); - List keys = user.getSSHKeys(); - assertThat(keys.size()).isEqualTo(numOfKeys + 1); - IOpenShiftSSHKey keyInList = SSHKeyTestUtils.getKey(keyName, keys); - assertThat(key).isEqualTo(keyInList); - } finally { - SSHKeyTestUtils.silentlyDestroyKey(key); - } - } - - @Test - public void shouldUpdatePublicKey() throws SocketTimeoutException, HttpClientException, Throwable { - IOpenShiftSSHKey key = null; - try { - // pre-conditions - String publicKeyPath = createRandomTempFile().getAbsolutePath(); - String privateKeyPath = createRandomTempFile().getAbsolutePath(); - SSHKeyPair keyPair = SSHKeyPair.create( - SSHKeyType.SSH_RSA, - SSHKeyTestUtils.DEFAULT_PASSPHRASE, - privateKeyPath, - publicKeyPath); - String keyName = SSHKeyTestUtils.createRandomKeyName(); - key = user.putSSHKey(keyName, keyPair); - - // operation - String publicKey = SSHKeyPair.create( - SSHKeyType.SSH_RSA, - SSHKeyTestUtils.DEFAULT_PASSPHRASE, - privateKeyPath, - publicKeyPath).getPublicKey(); - key.setPublicKey(publicKey); - - // verification - assertThat(key.getPublicKey()).isEqualTo(publicKey); - IOpenShiftSSHKey openshiftKey = user.getSSHKeyByName(keyName); - assertThat( - new SSHKeyTestUtils.SSHPublicKeyAssertion(openshiftKey)) - .hasName(keyName) - .hasPublicKey(publicKey) - .isType(openshiftKey.getKeyType()); - } finally { - SSHKeyTestUtils.silentlyDestroyKey(key); - } - - } - - @Test - public void shouldReturnKeyForName() throws SocketTimeoutException, HttpClientException, Throwable { - IOpenShiftSSHKey key = null; - try { - // pre-conditions - String publicKeyPath = SSHKeyTestUtils.createDsaKeyPair(); - ISSHPublicKey publicKey = new SSHPublicKey(publicKeyPath); - - // operation - String keyName = SSHKeyTestUtils.createRandomKeyName(); - key = user.putSSHKey(keyName, publicKey); - IOpenShiftSSHKey keyByName = user.getSSHKeyByName(keyName); - - // verifications - assertThat(key).isEqualTo(keyByName); - } finally { - SSHKeyTestUtils.silentlyDestroyKey(key); - } - } - - @Test - public void shouldReturnKeyForPublicKey() throws SocketTimeoutException, HttpClientException, Throwable { - IOpenShiftSSHKey key = null; - try { - // pre-conditions - String publicKeyPath = SSHKeyTestUtils.createDsaKeyPair(); - ISSHPublicKey publicKey = new SSHPublicKey(publicKeyPath); - - // operation - String keyName = SSHKeyTestUtils.createRandomKeyName(); - key = user.putSSHKey(keyName, publicKey); - IOpenShiftSSHKey keyByPublicKey = user.getSSHKeyByPublicKey(publicKey.getPublicKey()); - - // verifications - assertThat(key).isEqualTo(keyByPublicKey); - } finally { - SSHKeyTestUtils.silentlyDestroyKey(key); - } - - } - - @Test - public void shouldUpdateKeyTypeAndPublicKey() throws SocketTimeoutException, HttpClientException, Throwable { - IOpenShiftSSHKey key = null; - try { - // pre-conditions - String publicKeyPath = createRandomTempFile().getAbsolutePath(); - String privateKeyPath = createRandomTempFile().getAbsolutePath(); - SSHKeyTestUtils.createDsaKeyPair(publicKeyPath, privateKeyPath); - ISSHPublicKey publicKey = new SSHPublicKey(publicKeyPath); - assertThat(publicKey.getKeyType()).isEqualTo(SSHKeyType.SSH_DSA); - String keyName = SSHKeyTestUtils.createRandomKeyName(); - key = user.putSSHKey(keyName, publicKey); - SSHKeyPair keyPair = SSHKeyPair.create( - SSHKeyType.SSH_RSA, SSHKeyTestUtils.DEFAULT_PASSPHRASE, privateKeyPath, publicKeyPath); - - // operation - key.setKeyType(SSHKeyType.SSH_RSA, keyPair.getPublicKey()); - - // verification - assertThat(key.getKeyType()).isEqualTo(SSHKeyType.SSH_RSA); - assertThat(key.getPublicKey()).isEqualTo(keyPair.getPublicKey()); - } finally { - SSHKeyTestUtils.silentlyDestroyKey(key); - } - } - - @Test - public void shouldRemoveKey() throws IOException, JSchException, OpenShiftException { - IOpenShiftSSHKey key = null; - try { - // pre-conditions - String publicKeyPath = createRandomTempFile().getAbsolutePath(); - String privateKeyPath = createRandomTempFile().getAbsolutePath(); - SSHKeyTestUtils.createDsaKeyPair(publicKeyPath, privateKeyPath); - String keyName = SSHKeyTestUtils.createRandomKeyName(); - key = user.putSSHKey(keyName, new SSHPublicKey(publicKeyPath)); - - // operation - key.destroy(); - key = null; - - // verification - assertThat(user.getSSHKeyByName(keyName)).isNull(); - } finally { - SSHKeyTestUtils.silentlyDestroyKey(key); - } - } - - @Test - public void shouldRemoveKeybyName() throws IOException, JSchException, OpenShiftException { - IOpenShiftSSHKey key = null; - try { - // pre-conditions - String publicKeyPath = createRandomTempFile().getAbsolutePath(); - String privateKeyPath = createRandomTempFile().getAbsolutePath(); - SSHKeyTestUtils.createDsaKeyPair(publicKeyPath, privateKeyPath); - String keyName = SSHKeyTestUtils.createRandomKeyName(); - key = user.putSSHKey(keyName, new SSHPublicKey(publicKeyPath)); - int numOfKeys = user.getSSHKeys().size(); - - // operation - user.deleteKey(keyName); - - // verification - assertThat(user.getSSHKeyByName(keyName)).isNull(); - assertThat(user.getSSHKeys().size()).isEqualTo(numOfKeys -1); - } finally { - SSHKeyTestUtils.silentlyDestroyKey(key); - } - } - -} diff --git a/src/test/java/com/openshift/internal/client/SSHKeyTest.java b/src/test/java/com/openshift/internal/client/SSHKeyTest.java deleted file mode 100644 index 226e13aa..00000000 --- a/src/test/java/com/openshift/internal/client/SSHKeyTest.java +++ /dev/null @@ -1,307 +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 static com.openshift.client.utils.FileUtils.createRandomTempFile; -import static org.fest.assertions.Assertions.assertThat; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; -import static org.junit.Assert.assertTrue; - -import java.io.File; -import java.net.SocketTimeoutException; -import java.util.HashMap; -import java.util.List; - -import org.junit.Before; -import org.junit.Test; - -import com.openshift.client.IOpenShiftConnection; -import com.openshift.client.IOpenShiftSSHKey; -import com.openshift.client.ISSHPublicKey; -import com.openshift.client.IUser; -import com.openshift.client.OpenShiftSSHKeyException; -import com.openshift.client.OpenShiftUnknonwSSHKeyTypeException; -import com.openshift.client.SSHKeyPair; -import com.openshift.client.SSHKeyType; -import com.openshift.client.SSHPublicKey; -import com.openshift.client.utils.SSHKeyTestUtils; -import com.openshift.client.utils.SSHKeyTestUtils.SSHPublicKeyAssertion; -import com.openshift.client.utils.Samples; -import com.openshift.client.utils.TestConnectionFactory; -import com.openshift.internal.client.httpclient.HttpClientException; -import com.openshift.internal.client.httpclient.request.StringParameter; - -/** - * @author Andre Dietisheim - */ -public class SSHKeyTest extends TestTimer { - - private IUser user; - private HttpClientMockDirector mockDirector; - - @Before - public void setUp() throws SocketTimeoutException, HttpClientException, Throwable { - this.mockDirector = new HttpClientMockDirector(); - final IOpenShiftConnection connection = - new TestConnectionFactory().getConnection(mockDirector.client()); - this.user = connection.getUser(); - } - - @Test - public void shouldCreatePublicKey() throws Exception { - // pre-conditions - String publicKeyPath = createRandomTempFile().getAbsolutePath(); - String privateKeyPath = createRandomTempFile().getAbsolutePath(); - // operation - SSHKeyPair sshKey = SSHKeyPair.create(SSHKeyTestUtils.DEFAULT_PASSPHRASE, privateKeyPath, publicKeyPath); - // verification - String publicKey = sshKey.getPublicKey(); - assertNotNull(sshKey.getKeyType()); - String keyType = sshKey.getKeyType().getTypeId(); - assertNotNull(publicKey); - assertThat(publicKey) - // no identifier - .doesNotContain(SSHKeyTestUtils.SSH_RSA) - // no comment - .doesNotContain(" "); - assertEquals(SSHKeyType.SSH_RSA.getTypeId(), keyType); - } - - @Test - public void shouldLoadKeyPairRsa() throws Exception { - // pre-condition - String publicKeyPath = createRandomTempFile().getAbsolutePath(); - String privateKeyPath = createRandomTempFile().getAbsolutePath(); - SSHKeyPair.create(SSHKeyTestUtils.DEFAULT_PASSPHRASE, privateKeyPath, publicKeyPath); - // operation - SSHKeyPair sshKey = SSHKeyPair.load(privateKeyPath, publicKeyPath); - // verification - String publicKey = sshKey.getPublicKey(); - assertNotNull(sshKey.getKeyType()); - String keyType = sshKey.getKeyType().getTypeId(); - assertNotNull(publicKey); - assertThat(publicKey) - // no identifier - .doesNotContain(SSHKeyTestUtils.SSH_RSA) - // no comment - .doesNotContain(" "); - assertEquals(SSHKeyType.SSH_RSA.getTypeId(), keyType); - } - - @Test - public void shouldLoadKeyPairDsa() throws Exception { - // pre-conditions - String publicKeyPath = createRandomTempFile().getAbsolutePath(); - String privateKeyPath = createRandomTempFile().getAbsolutePath(); - SSHKeyTestUtils.createDsaKeyPair(publicKeyPath, privateKeyPath); - // operation - SSHKeyPair sshKey = SSHKeyPair.load(privateKeyPath, publicKeyPath); - // verification - String publicKey = sshKey.getPublicKey(); - assertNotNull(sshKey.getKeyType()); - String keyType = sshKey.getKeyType().getTypeId(); - assertNotNull(publicKey); - assertThat(publicKey) - // no identifier - .doesNotContain(SSHKeyTestUtils.SSH_DSA) - // no comment - .doesNotContain(" "); - assertEquals(SSHKeyType.SSH_DSA.getTypeId(), keyType); - } - - @Test - public void shouldLoadPublicKeyRsa() throws Exception { - // pre-conditions - String publicKeyPath = createRandomTempFile().getAbsolutePath(); - String privateKeyPath = createRandomTempFile().getAbsolutePath(); - SSHKeyPair.create(SSHKeyTestUtils.DEFAULT_PASSPHRASE, privateKeyPath, publicKeyPath); - ISSHPublicKey sshKey = new SSHPublicKey(new File(publicKeyPath)); - String publicKey = sshKey.getPublicKey(); - assertNotNull(sshKey.getKeyType()); - String keyType = sshKey.getKeyType().getTypeId(); - assertNotNull(publicKey); - assertThat(publicKey) - // no identifier - .doesNotContain(SSHKeyTestUtils.SSH_RSA) - // no comment - .doesNotContain(" "); - // operation - SSHKeyPair keyPair = SSHKeyPair.load(privateKeyPath, publicKeyPath); - assertEquals(publicKey, keyPair.getPublicKey()); - assertEquals(SSHKeyType.SSH_RSA.getTypeId(), keyType); - } - - @Test - public void shouldLoadPublicKeyDsa() throws Exception { - // pre-conditions - String publicKeyPath = createRandomTempFile().getAbsolutePath(); - String privateKeyPath = createRandomTempFile().getAbsolutePath(); - SSHKeyTestUtils.createDsaKeyPair(publicKeyPath, privateKeyPath); - ISSHPublicKey sshKey = new SSHPublicKey(publicKeyPath); - String publicKey = sshKey.getPublicKey(); - assertNotNull(sshKey.getKeyType()); - String keyType = sshKey.getKeyType().getTypeId(); - assertNotNull(publicKey); - assertThat(publicKey) - // no identifier - .doesNotContain(SSHKeyTestUtils.SSH_DSA) - // no comment - .doesNotContain(" "); - - // operation - SSHKeyPair keyPair = SSHKeyPair.load(privateKeyPath, publicKeyPath); - assertEquals(publicKey, keyPair.getPublicKey()); - assertEquals(SSHKeyType.SSH_DSA.getTypeId(), keyType); - } - - @Test - public void shouldGetKeyTypeByTypeId() throws OpenShiftUnknonwSSHKeyTypeException { - assertTrue(SSHKeyType.SSH_DSA == SSHKeyType.getByTypeId(SSHKeyTestUtils.SSH_DSA)); - assertTrue(SSHKeyType.SSH_RSA == SSHKeyType.getByTypeId(SSHKeyTestUtils.SSH_RSA)); - } - - @Test(expected = OpenShiftUnknonwSSHKeyTypeException.class) - public void getKeyTypeByTypeIdReturnsNullIfNoMatchingType() throws OpenShiftUnknonwSSHKeyTypeException { - SSHKeyType.getByTypeId("dummy"); - } - - @Test - public void shouldReturn2SSHKeys() throws HttpClientException, Throwable { - // pre-conditions - mockDirector.mockGetKeys(Samples.GET_USER_KEYS_2KEYS); - - // operation - List sshKeys = user.getSSHKeys(); - // verifications - assertThat(sshKeys).hasSize(2); - assertThat(new SSHPublicKeyAssertion(sshKeys.get(0))) - .hasName("default").hasPublicKey("ABBA").isType(SSHKeyTestUtils.SSH_RSA); - assertThat(new SSHPublicKeyAssertion(sshKeys.get(1))) - .hasName("default2").hasPublicKey("AABB").isType(SSHKeyTestUtils.SSH_DSA); - } - - @Test - public void shouldAddAndUpdateKey() throws SocketTimeoutException, HttpClientException, Throwable { - // pre-conditions - mockDirector - .mockGetKeys(Samples.GET_USER_KEYS_NONE) - .mockCreateKey(Samples.PUT_BBCC_DSA_USER_KEYS_SOMEKEY); - String publicKeyPath = createRandomTempFile().getAbsolutePath(); - String privateKeyPath = createRandomTempFile().getAbsolutePath(); - SSHKeyTestUtils.createDsaKeyPair(publicKeyPath, privateKeyPath); - SSHPublicKey publicKey = new SSHPublicKey(publicKeyPath); - assertThat(user.getSSHKeys()).isEmpty(); - - String keyName = "somekey"; - // operation - user.putSSHKey(keyName, publicKey); - mockDirector.mockGetKeys(Samples.GET_USER_KEYS_1KEY); - - // verifications - List keys = user.getSSHKeys(); - assertThat(keys).hasSize(1); - assertThat(new SSHPublicKeyAssertion(keys.get(0))) - .hasName(keyName) - .hasPublicKey("BBCC") - .isType(SSHKeyTestUtils.SSH_DSA); - } - - @Test - public void shouldUpdateKeyTypeAndPublicKey() throws SocketTimeoutException, HttpClientException, Throwable { - // pre-conditions - String newPublicKeyContent = "BBCC"; - String keyName = "somekey"; - mockDirector - .mockGetKeys(Samples.GET_USER_KEYS_1KEY) - .mockUpdateKey(keyName, Samples.PUT_BBCC_DSA_USER_KEYS_SOMEKEY); - - // operation - List keys = user.getSSHKeys(); - assertThat(keys).hasSize(1); - IOpenShiftSSHKey key = keys.get(0); - - // verification - assertThat(key.getKeyType()).isEqualTo(SSHKeyType.SSH_RSA); - - // operation - key.setKeyType(SSHKeyType.SSH_DSA, newPublicKeyContent); - - // verification - assertThat(key.getKeyType()).isEqualTo(SSHKeyType.SSH_DSA); - assertThat(key.getPublicKey()).isEqualTo(newPublicKeyContent); - mockDirector.verifyUpdateKey( - keyName, - new StringParameter("type", SSHKeyTestUtils.SSH_DSA), - new StringParameter("content", key.getPublicKey())); - } - - @Test - public void shouldUpdatePublicKey() throws SocketTimeoutException, HttpClientException, Throwable { - // pre-conditions - String newPublicKeyContent = "BBCC"; - String keyName = "somekey"; - mockDirector - .mockGetKeys(Samples.GET_USER_KEYS_1KEY) - .mockUpdateKey(keyName, Samples.PUT_BBCC_DSA_USER_KEYS_SOMEKEY); - - // operation - List keys = user.getSSHKeys(); - assertThat(keys).hasSize(1); - IOpenShiftSSHKey key = keys.get(0); - assertThat(key.getKeyType()).isEqualTo(SSHKeyType.SSH_RSA); - assertThat(key.getPublicKey()).isNotEqualTo(newPublicKeyContent); - key.setPublicKey(newPublicKeyContent); - - // verification - assertThat(key.getKeyType()).isEqualTo(SSHKeyType.SSH_DSA); - assertThat(key.getPublicKey()).isEqualTo(newPublicKeyContent); - HashMap parameterMap = new HashMap(); - parameterMap.put("type", SSHKeyTestUtils.SSH_RSA); - mockDirector.verifyUpdateKey( - keyName, - new StringParameter("type", SSHKeyTestUtils.SSH_RSA), - new StringParameter("content", key.getPublicKey())); - } - - @Test(expected = OpenShiftSSHKeyException.class) - public void shouldNotAddKeyWithExistingName() throws SocketTimeoutException, HttpClientException, Throwable { - // pre-conditions - mockDirector.mockGetKeys(Samples.GET_USER_KEYS_1KEY); - String publicKeyPath = createRandomTempFile().getAbsolutePath(); - String privateKeyPath = createRandomTempFile().getAbsolutePath(); - SSHKeyTestUtils.createDsaKeyPair(publicKeyPath, privateKeyPath); - SSHPublicKey publicKey = new SSHPublicKey(publicKeyPath); - - // operation - assertThat(user.getSSHKeys()).hasSize(1); - String existingKeyName = user.getSSHKeys().get(0).getName(); - user.putSSHKey(existingKeyName, publicKey); - } - - @Test(expected = OpenShiftSSHKeyException.class) - public void shouldNotAddKeyTwice() throws SocketTimeoutException, HttpClientException, Throwable { - // pre-conditions - String keyName = "somekey"; - mockDirector - .mockGetKeys(Samples.GET_USER_KEYS_1KEY) - .mockCreateKey(Samples.PUT_BBCC_DSA_USER_KEYS_SOMEKEY); - String publicKeyPath = createRandomTempFile().getAbsolutePath(); - String privateKeyPath = createRandomTempFile().getAbsolutePath(); - SSHKeyTestUtils.createDsaKeyPair(publicKeyPath, privateKeyPath); - SSHPublicKey publicKey = new SSHPublicKey(publicKeyPath); - - // operation - assertThat(user.getSSHKeys()).onProperty("name").contains(keyName); - user.putSSHKey(keyName, publicKey); // throws - } - -} diff --git a/src/test/java/com/openshift/internal/client/StandaloneCartridgeTest.java b/src/test/java/com/openshift/internal/client/StandaloneCartridgeTest.java deleted file mode 100644 index e90c49ed..00000000 --- a/src/test/java/com/openshift/internal/client/StandaloneCartridgeTest.java +++ /dev/null @@ -1,106 +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 static org.fest.assertions.Assertions.assertThat; - -import java.net.MalformedURLException; -import java.net.URL; - -import org.junit.Before; -import org.junit.Test; - -import com.openshift.client.IHttpClient; -import com.openshift.client.IOpenShiftConnection; -import com.openshift.client.cartridge.EmbeddableCartridge; -import com.openshift.client.cartridge.IStandaloneCartridge; -import com.openshift.client.cartridge.StandaloneCartridge; -import com.openshift.client.utils.CartridgeAssert; -import com.openshift.client.utils.Cartridges; -import com.openshift.client.utils.Samples; -import com.openshift.client.utils.TestConnectionFactory; - -/** - * @author Andre Dietisheim - */ -public class StandaloneCartridgeTest extends TestTimer { - - private IOpenShiftConnection connection; - - @Before - public void setup() throws Throwable { - IHttpClient client = new HttpClientMockDirector() - .mockGetCartridges(Samples.GET_CARTRIDGES) - .client(); - this.connection = new TestConnectionFactory().getConnection(client); - } - - @Test - public void shouldNonDownloadableEqualsNonDownloadable() { - // pre-coniditions - // operation - // verification - assertThat(new StandaloneCartridge("redhat")) - .isEqualTo(new StandaloneCartridge("redhat")); - assertThat(new StandaloneCartridge("redhat")) - .isNotEqualTo(new StandaloneCartridge("jboss")); - } - - @Test - public void shouldDownloadableEqualsDownloadable() throws MalformedURLException { - // pre-coniditions - // operation - // verification - assertThat(new StandaloneCartridge(new URL(Cartridges.GO_DOWNLOAD_URL))) - .isEqualTo(new StandaloneCartridge(new URL(Cartridges.GO_DOWNLOAD_URL))); - } - - @Test - public void shouldDownloadableWithDifferentNameEqualsDownloadable() throws MalformedURLException { - // pre-coniditions - // operation - // verification - assertThat(new StandaloneCartridge("redhat", new URL(Cartridges.GO_DOWNLOAD_URL))) - .isEqualTo(new StandaloneCartridge(new URL(Cartridges.GO_DOWNLOAD_URL))); - // should equal if url is equal, name doesnt matter - // (name is updated as soon as cartridge is deployed) - assertThat(new StandaloneCartridge("jboss", new URL(Cartridges.GO_DOWNLOAD_URL))) - .isEqualTo(new StandaloneCartridge("redhat", new URL(Cartridges.GO_DOWNLOAD_URL))); - } - - @Test - public void shouldDownloadableStandaloneNotEqualsDownloadableEmbeddable() throws MalformedURLException { - // pre-coniditions - // operation - // verification - assertThat(new StandaloneCartridge(new URL(Cartridges.GO_DOWNLOAD_URL))) - .isNotEqualTo(new EmbeddableCartridge(new URL(Cartridges.FOREMAN_DOWNLOAD_URL))); - } - - @Test - public void shouldHaveNameDisplaynameDescription() throws Throwable { - // pre-condition - IStandaloneCartridge nodeJs = connection.getStandaloneCartridges().get(0); - CartridgeAssert cartridgeAssert = new CartridgeAssert(nodeJs); - - // operation - // verifcation - cartridgeAssert - .hasName("nodejs-0.6") - .hasDisplayName("Node.js 0.6") - .hasDescription( - "Node.js is a platform built on Chrome's JavaScript runtime for easily building fast, " - + "scalable network applications. Node.js is perfect for data-intensive real-time " - + "applications that run across distributed devices."); - } - - -} diff --git a/src/test/java/com/openshift/internal/client/StandaloneCartridgesIntegrationTest.java b/src/test/java/com/openshift/internal/client/StandaloneCartridgesIntegrationTest.java deleted file mode 100755 index 150fef92..00000000 --- a/src/test/java/com/openshift/internal/client/StandaloneCartridgesIntegrationTest.java +++ /dev/null @@ -1,70 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2007 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 static org.fest.assertions.Assertions.assertThat; - -import java.io.IOException; -import java.net.URISyntaxException; - -import org.junit.Before; -import org.junit.Test; - -import com.openshift.client.IApplication; -import com.openshift.client.IDomain; -import com.openshift.client.IUser; -import com.openshift.client.OpenShiftException; -import com.openshift.client.cartridge.IStandaloneCartridge; -import com.openshift.client.utils.ApplicationTestUtils; -import com.openshift.client.utils.DomainTestUtils; -import com.openshift.client.utils.StandaloneCartridgeAssert; -import com.openshift.client.utils.TestConnectionFactory; - -/** - * @author André Dietisheim - */ -public class StandaloneCartridgesIntegrationTest extends TestTimer { - - private IUser user; - private IDomain domain; - private IApplication application; - - @Before - public void setUp() throws OpenShiftException, IOException { - this.user = new TestConnectionFactory().getConnection().getUser(); - this.domain = DomainTestUtils.ensureHasDomain(user); - this.application = ApplicationTestUtils.getOrCreateApplication(domain); - } - - @Test - public void shouldReportStandaloneCartridge() throws OpenShiftException, URISyntaxException { - // precondition - - // operation - IStandaloneCartridge cartridge = application.getCartridge(); - - // verification - assertThat(cartridge).isNotNull(); - assertThat(cartridge.getName()).isNotEmpty(); - IStandaloneCartridge availableCartridge = getAvailableCartridge(cartridge.getName()); - new StandaloneCartridgeAssert(cartridge).equals(availableCartridge); - } - - private IStandaloneCartridge getAvailableCartridge(String name) { - assertThat(name).isNotNull(); - for(IStandaloneCartridge cartridge : user.getConnection().getStandaloneCartridges()) { - if (name.equals(cartridge.getName())) { - return cartridge; - } - } - return null; - } -} diff --git a/src/test/java/com/openshift/internal/client/TestTimer.java b/src/test/java/com/openshift/internal/client/TestTimer.java deleted file mode 100644 index 769c87a5..00000000 --- a/src/test/java/com/openshift/internal/client/TestTimer.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.openshift.internal.client; - -import com.openshift.client.OpenShiftException; -import com.openshift.client.utils.TestConnectionFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Rule; -import org.junit.rules.TestName; - -import java.io.IOException; - -/** - * Created by cdaley on 3/13/14. - */ -public class TestTimer { - protected long startTime; - protected long endTime; - - @Rule - public TestName name = new TestName(); - - @Before - public void startTimer() throws OpenShiftException, IOException { - this.startTime = 0; - this.startTime = System.currentTimeMillis(); - } - - @After - public void endTimer() { - this.endTime = 0; - this.endTime = System.currentTimeMillis(); - calcExecTime(); - - - } - - public void calcExecTime() { - if (System.getProperty("showTestTimes") != null) { - System.out.println(this.getClass() +"#"+name.getMethodName() + " : " + (this.endTime - this.startTime)); - } - } -} diff --git a/src/test/java/com/openshift/internal/client/UserResourceIntegrationTest.java b/src/test/java/com/openshift/internal/client/UserResourceIntegrationTest.java deleted file mode 100755 index c3c8665f..00000000 --- a/src/test/java/com/openshift/internal/client/UserResourceIntegrationTest.java +++ /dev/null @@ -1,188 +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 static org.fest.assertions.Assertions.assertThat; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertNotNull; -import static org.junit.Assert.assertNull; -import static org.junit.Assert.assertTrue; - -import java.io.FileNotFoundException; -import java.io.IOException; -import java.util.List; - -import javax.xml.datatype.DatatypeConfigurationException; - -import org.junit.Before; -import org.junit.Test; - -import com.openshift.client.IDomain; -import com.openshift.client.IUser; -import com.openshift.client.InvalidCredentialsOpenShiftException; -import com.openshift.client.OpenShiftException; -import com.openshift.client.utils.DomainTestUtils; -import com.openshift.client.utils.OpenShiftTestConfiguration; -import com.openshift.client.utils.TestConnectionFactory; -import com.openshift.internal.client.httpclient.HttpClientException; - -/** - * @author André Dietisheim - */ -public class UserResourceIntegrationTest extends TestTimer { - - private IUser user; - - @Before - public void setUp() throws OpenShiftException, DatatypeConfigurationException, IOException { - this.user = new TestConnectionFactory().getConnection().getUser(); - } - - @Test(expected = InvalidCredentialsOpenShiftException.class) - public void shouldThrowIfInvalidCredentials() throws Exception { - // dont test on dev server - OpenShiftTestConfiguration configuration = new OpenShiftTestConfiguration(); - if (configuration.isDevelopmentServer()) { - throw new InvalidCredentialsOpenShiftException(null, new HttpClientException(""), null); - } - - new TestConnectionFactory().getConnection( - configuration.getClientId(), "bogus-password").getUser(); - } - - @Test - public void shouldReturnDomains() throws OpenShiftException { - // precondition - DomainTestUtils.ensureHasDomain(user); - // operation - List domains = user.getDomains(); - // verification - assertThat(domains).isNotEmpty(); - } - - @Test - public void shouldReturnNoDomains() throws OpenShiftException { - // precondition - DomainTestUtils.destroyAllDomains(user); - // operation - List domains = user.getDomains(); - // verification - assertThat(domains).isEmpty(); - } - - @Test - public void shouldCreateDomain() throws OpenShiftException { - // pre-condition - // cannot create domain if there's already one - DomainTestUtils.destroyAllDomains(user); - - // operation - String id = DomainTestUtils.createRandomName(); - IDomain domain = user.createDomain(id); - - // verification - assertThat(domain.getId()).isEqualTo(id); - } - - @Test - public void shouldReturnDomainByName() throws OpenShiftException { - // pre-condition - IDomain domain = DomainTestUtils.ensureHasDomain(user); - - // operation - IDomain domainByNamespace = user.getDomain(domain.getId()); - - // verification - assertThat(domainByNamespace.getId()).isEqualTo(domain.getId()); - } - - @Test - public void shouldGetDefaultDomain() throws OpenShiftException { - // precondition - DomainTestUtils.ensureHasDomain(user); - // operation - IDomain domain = user.getDefaultDomain(); - // verification - assertNotNull(domain); - assertNotNull(domain.getId()); - assertTrue(domain.getId().length() > 0); - assertNotNull(domain.getSuffix()); - assertTrue(domain.getSuffix().length() > 0); - } - - @Test - public void shouldReturnThatHasDomain() throws OpenShiftException { - // precondition - DomainTestUtils.ensureHasDomain(user); - // operation - Boolean hasDomain = user.hasDomain(); - // verification - assertTrue(hasDomain); - } - - @Test - public void shouldReturnThatHasNoDomain() throws OpenShiftException { - // precondition - DomainTestUtils.destroyAllDomains(user); - // operation - Boolean hasDomain = user.hasDomain(); - // verification - assertFalse(hasDomain); - } - - @Test - public void shouldReturnThatHasNamedDomain() throws OpenShiftException { - // precondition - IDomain domain = DomainTestUtils.ensureHasDomain(user); - // operation - Boolean hasDomain = user.hasDomain(domain.getId()); - // verification - assertTrue(hasDomain); - } - - @Test - public void shouldReturnThatHasntNamedDomain() throws OpenShiftException { - // precondition - // operation - Boolean hasDomain = user.hasDomain(DomainTestUtils.createRandomName()); - // verification - assertFalse(hasDomain); - } - - - @Test - public void shouldReturnEmptyDomains() throws OpenShiftException { - // precondition - DomainTestUtils.destroyAllDomains(user); - // operation - List domains = user.getDomains(); - // verification - assertThat(domains).isEmpty(); - } - - @Test - public void shouldNoDefaultDomainAfterRefresh() throws OpenShiftException, FileNotFoundException, IOException { - // precondition - IDomain domain = DomainTestUtils.ensureHasDomain(user); - assertNotNull(domain); - - IUser otherUser = new TestConnectionFactory().getConnection().getUser(); - DomainTestUtils.destroyAllDomains(otherUser); - assertNull(otherUser.getDefaultDomain()); - - // operation - user.refresh(); - - // verification - assertNull(user.getDefaultDomain()); - } - -} diff --git a/src/test/java/com/openshift/internal/client/UserTest.java b/src/test/java/com/openshift/internal/client/UserTest.java deleted file mode 100644 index 532b2950..00000000 --- a/src/test/java/com/openshift/internal/client/UserTest.java +++ /dev/null @@ -1,74 +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 static org.fest.assertions.Assertions.assertThat; - -import java.net.URL; - -import org.junit.Before; -import org.junit.Test; - -import com.openshift.client.IHttpClient; -import com.openshift.client.IOpenShiftConnection; -import com.openshift.client.IUser; -import com.openshift.client.utils.TestConnectionFactory; - -/** - * @author Xavier Coulon - * @author Andre Dietisheim - */ -public class UserTest extends TestTimer { - - private IUser user; - private static final String PASSWORD = "123490"; - private static final String SERVER = "openshift-origin-server.local"; - private IHttpClient clientMock; - private HttpClientMockDirector mockDirector; - - @Before - public void setup() throws Throwable { - this.mockDirector = new HttpClientMockDirector(); - this.clientMock = mockDirector.client(); - - final IOpenShiftConnection connection = - new TestConnectionFactory().getConnection(PASSWORD, SERVER, clientMock); - this.user = connection.getUser(); - } - - @Test - public void shouldReturnServer() throws Throwable { - // pre-conditions - // verifications - assertThat(new URL(user.getServer()).getHost()).isEqualTo(SERVER); - } - - @Test - public void shouldHaveCredentials() throws Throwable { - // pre-conditions - // verifications - assertThat(user.getPassword()).isEqualTo(PASSWORD); - } - - @Test - public void shouldHaveConsumedGears() throws Throwable { - // pre-conditions - // verifications - assertThat(user.getConsumedGears()).isEqualTo(3); - } - - @Test - public void shouldHaveMaxGears() throws Throwable { - // pre-conditions - // verifications - assertThat(user.getMaxGears()).isEqualTo(10); - } -} diff --git a/src/test/java/com/openshift/internal/client/httpclient/HttpClientTest.java b/src/test/java/com/openshift/internal/client/httpclient/HttpClientTest.java deleted file mode 100755 index 219d6ac2..00000000 --- a/src/test/java/com/openshift/internal/client/httpclient/HttpClientTest.java +++ /dev/null @@ -1,703 +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.httpclient; - -import static org.fest.assertions.Assertions.assertThat; -import static org.hamcrest.CoreMatchers.instanceOf; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; -import static org.junit.Assert.assertTrue; -import static org.junit.Assert.fail; - -import java.io.FileNotFoundException; -import java.io.IOException; -import java.io.Writer; -import java.net.HttpURLConnection; -import java.net.MalformedURLException; -import java.net.SocketTimeoutException; -import java.net.URL; -import java.security.KeyStoreException; -import java.security.cert.X509Certificate; -import java.util.Properties; -import java.util.Random; -import java.util.concurrent.Callable; -import java.util.concurrent.ExecutorService; -import java.util.concurrent.Executors; -import java.util.concurrent.Future; -import java.util.concurrent.TimeUnit; -import java.util.concurrent.TimeoutException; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -import javax.net.ssl.SSLHandshakeException; -import javax.net.ssl.SSLSession; - -import com.openshift.client.configuration.*; -import com.openshift.client.fakes.*; -import com.openshift.internal.client.TestTimer; -import org.junit.After; -import org.junit.Before; -import org.junit.Rule; -import org.junit.Test; -import org.junit.rules.ExpectedException; - -import com.openshift.client.IHttpClient; -import com.openshift.client.IHttpClient.ISSLCertificateCallback; -import com.openshift.client.OpenShiftException; -import com.openshift.client.utils.Base64Coder; -import com.openshift.client.utils.ExceptionCauseMatcher; -import com.openshift.internal.client.httpclient.request.FormUrlEncodedMediaType; -import com.openshift.internal.client.httpclient.request.StringParameter; -import sun.net.www.http.HttpClient; - -/** - * @author Andre Dietisheim - * @author Nicolas Spano - * @author Corey Daley - */ -public class HttpClientTest extends TestTimer { - - private static final String ACCEPT_APPLICATION_JSON = "Accept: application/json"; - private static final Pattern AUTHORIZATION_PATTERN = Pattern.compile("Authorization: Basic ([^\n]*)"); - - private HttpServerFake serverFake; - private IHttpClient httpClient; - private HttpsServerFake httpsServerFake; - private IOpenShiftConfiguration configuration; - - @Rule - public ExpectedException expectedException = ExpectedException.none(); - - @Before - public void setUp() throws Exception { - this.serverFake = startHttpServerFake(null); - this.httpsServerFake = startHttpsServerFake(null); - this.configuration = new OpenShiftConfigurationFake("10000","10000","10000",null); - this.httpClient = new UrlConnectionHttpClientBuilder() - .setAcceptMediaType(ACCEPT_APPLICATION_JSON) - .setUserAgent("com.openshift.client.test") - .setConfigTimeout(configuration.getTimeout()) - .client(); - } - - @After - public void tearDown() { - serverFake.stop(); - httpsServerFake.stop(); - } - - @Test(expected = HttpClientException.class) - public void shouldThrowIfNoAcceptedMediaType() throws SocketTimeoutException, HttpClientException, - MalformedURLException { - IHttpClient client = new UrlConnectionHttpClient( - "username", "password", "useragent", null, "42.0"); - client.get(serverFake.getUrl(), IHttpClient.NO_TIMEOUT); - } - - @Test - public void canGet() throws Throwable { - String response = httpClient.get(serverFake.getUrl(), IHttpClient.NO_TIMEOUT); - assertThat(response).startsWith("GET"); - } - - - @Test - public void canHead() throws Throwable { - String response = httpClient.head(serverFake.getUrl(), IHttpClient.NO_TIMEOUT); - assertThat(response).isEqualTo(""); - } - - @Test - public void canPost() throws Throwable { - String response = httpClient.post(serverFake.getUrl(), new FormUrlEncodedMediaType(), IHttpClient.NO_TIMEOUT); - assertThat(response).startsWith("POST"); - } - - @Test - public void canPut() throws SocketTimeoutException, HttpClientException, MalformedURLException, - EncodingException { - String response = httpClient.put(serverFake.getUrl(), new FormUrlEncodedMediaType(), IHttpClient.NO_TIMEOUT); - assertThat(response).startsWith("PUT"); - } - - @Test - public void canDelete() throws Throwable { - String response = httpClient.delete(serverFake.getUrl(), IHttpClient.NO_TIMEOUT); - assertThat(response).startsWith("DELETE"); - } - - @Test - public void canPatch() throws Throwable { - String response = httpClient.patch(serverFake.getUrl(), new FormUrlEncodedMediaType(), IHttpClient.NO_TIMEOUT); - assertThat(response).startsWith("POST"); - assertTrue(response.contains("X-Http-Method-Override: PATCH")); - } - - /** - * Assumes that the server is sending a certificate that is not known to the - * client. The test does this by having a custom ssl server with a self-signed certificate. - * - * @see HttpsServerFake - */ - @Test - public void shouldFailHttpsSelfsignedCertificateNoCallback() throws Throwable { - // pre-condition - expectedException.expect(new ExceptionCauseMatcher(instanceOf(SSLHandshakeException.class))); - - // operation - httpClient.get(httpsServerFake.getUrl(), IHttpClient.NO_TIMEOUT); - } - - /** - * Assumes that the server is sending a certificate that is not known to the - * client. The test does this by having a custom ssl server with a self-signed certificate. - * - * @see HttpsServerFake - */ - @Test - public void shouldSucceedHttpsSelfsignedCertificate() throws Throwable { - IHttpClient client = new UrlConnectionHttpClientBuilder() - .setAcceptMediaType(ACCEPT_APPLICATION_JSON) - .setUserAgent("com.openshift.client.test") - .setSSLCertificateCallback(new ISSLCertificateCallback() { - - @Override - public boolean allowHostname(String hostname, SSLSession session) { - return true; - } - - @Override - public boolean allowCertificate(X509Certificate[] chain) { - return true; - } - }) - .client(); - client.get(httpsServerFake.getUrl(), IHttpClient.NO_TIMEOUT); - } - - /** - * Assumes that the server is sending a certificate that is not known to the - * client. The test does this by having a custom ssl server with a self-signed certificate. - * - * @see HttpsServerFake - */ - @Test - public void shouldFailHttpsSelfsignedCertificate() throws Throwable { - // pre-condition - expectedException.expect(new ExceptionCauseMatcher(instanceOf(SSLHandshakeException.class))); - - IHttpClient client = new UrlConnectionHttpClientBuilder() - .setAcceptMediaType(ACCEPT_APPLICATION_JSON) - .setUserAgent("com.openshift.client.test") - .setSSLCertificateCallback(new ISSLCertificateCallback() { - - @Override - public boolean allowHostname(String hostname, SSLSession session) { - return true; - } - - @Override - public boolean allowCertificate(X509Certificate[] chain) { - return false; - } - }) - .client(); - - // operation - client.get(httpsServerFake.getUrl(), IHttpClient.NO_TIMEOUT); - } - - @Test - public void canAddAuthorization() throws SocketTimeoutException, HttpClientException, MalformedURLException { - String username = "andre.dietisheim@redhat.com"; - String password = "dummyPassword"; - IHttpClient httpClient = new UrlConnectionHttpClientBuilder() - .setAcceptMediaType(ACCEPT_APPLICATION_JSON) - .setUserAgent("com.openshift.client.test") - .setCredentials(username, password) - .client(); - - String response = httpClient.get(serverFake.getUrl(), IHttpClient.NO_TIMEOUT); - assertNotNull(response); - Matcher matcher = AUTHORIZATION_PATTERN.matcher(response); - assertTrue(matcher.find()); - assertEquals(1, matcher.groupCount()); - String credentials = matcher.group(1); - String cleartextCredentials = Base64Coder.decode(credentials); - assertThat(credentials) - .describedAs("credentials were not encoded in httpClient").isNotEqualTo(cleartextCredentials); - assertEquals(username + ":" + password, cleartextCredentials); - } - - @Test - public void shouldAcceptJson() throws SocketTimeoutException, HttpClientException, MalformedURLException { - String response = httpClient.get(serverFake.getUrl(), IHttpClient.NO_TIMEOUT); - assertNotNull(response); - assertTrue(response.indexOf(ACCEPT_APPLICATION_JSON) > 0); - } - - @Test - public void shouldEncodeParametersCorrectly() throws HttpClientException, FileNotFoundException, IOException, - OpenShiftException { - // pre-conditions - IHttpClient httpClient = new PayLoadReturningHttpClientFake(IHttpClient.MEDIATYPE_APPLICATION_JSON, "1.0"); - // operation - String response = httpClient.post(serverFake.getUrl(), - new FormUrlEncodedMediaType(), - IHttpClient.NO_TIMEOUT, - new StringParameter("adietish", "redhat"), - new StringParameter("xcoulon", "redhat")); - - // verification - String[] entries = response.split(String.valueOf(IHttpClient.AMPERSAND)); - assertEquals(2, entries.length); - String[] keyValuePair = entries[0].split(String.valueOf(IHttpClient.EQUALS)); - assertEquals(2, keyValuePair.length); - assertEquals("adietish", keyValuePair[0]); - assertEquals("redhat", keyValuePair[1]); - keyValuePair = entries[1].split(String.valueOf(IHttpClient.EQUALS)); - assertEquals(2, keyValuePair.length); - assertEquals("xcoulon", keyValuePair[0]); - assertEquals("redhat", keyValuePair[1]); - } - - @Test - public void shouldAddServiceVersionToAcceptHeader() throws Exception { - // pre-conditions - String version = "42.0"; - AcceptVersionClientFake clientFake = new AcceptVersionClientFake(version); - // operation - HttpURLConnection connection = clientFake.createConnection(); - // verification - assertThat(clientFake.getAcceptHeader(connection)).endsWith("; version=" + version); - } - - @Test(expected = NotFoundException.class) - public void shouldThrowNotFoundException() throws Exception { - HttpServerFake server = null; - try { - // precondition - this.serverFake.stop(); - server = startHttpServerFake("HTTP/1.0 404 Not Found"); - - // operation - httpClient.get(server.getUrl(), IHttpClient.NO_TIMEOUT); - } finally { - server.stop(); - } - } - - /** - * - * RFC 1945 6.1.1 / Reason Phrase is optional - *

- * 'HTTP/1.1 404 ' is equivalent to HTTP/1.1 404 Not Found' - * https://bugzilla.redhat.com/show_bug.cgi?id=913796 - * - * @throws IOException - */ - @Test(expected = NotFoundException.class) - public void shouldReasonPhraseIsOptional() throws Exception { - HttpServerFake server = null; - try { - // precondition - this.serverFake.stop(); - // RFC 1945 6.1.1 / Reason Phrase is optional - server = startHttpServerFake("HTTP/1.0 404 "); - - // operation - httpClient.get(server.getUrl(), IHttpClient.NO_TIMEOUT); - } finally { - server.stop(); - } - } - - @Test - public void shouldHaveURLInExceptionMessage() throws Exception { - HttpServerFake server = null; - try { - // precondition - this.serverFake.stop(); - // RFC 1945 6.1.1 / Reason Phrase is optional - server = startHttpServerFake("HTTP/1.0 404 Not Found"); - - // operation - httpClient.get(server.getUrl(), IHttpClient.NO_TIMEOUT); - fail("Expected NotFoundException not thrown"); - } catch (NotFoundException e) { - assertTrue(e.getMessage().contains(server.getUrl().toString())); - } finally { - server.stop(); - } - } - - @Test - public void shouldRespectGivenTimeoutPOST() throws Throwable { - // pre-conditions - final int timeout = 1000; - final int serverDelay = timeout * 4; - assertThat(timeout).isLessThan(IHttpClient.DEFAULT_READ_TIMEOUT); - WaitingHttpServerFake serverFake = startWaitingHttpServerFake(serverDelay); - long startTime = System.currentTimeMillis(); - // operations - try { - httpClient.post(serverFake.getUrl(), new FormUrlEncodedMediaType(), timeout); - fail("Timeout expected."); - } catch (SocketTimeoutException e) { - // assert - assertThat(System.currentTimeMillis() - startTime).isGreaterThan(timeout) - .isLessThan(serverDelay) - .isLessThan(IHttpClient.DEFAULT_READ_TIMEOUT); - } finally { - serverFake.stop(); - } - } - - @Test - public void shouldRespectGivenTimeoutDELETE() throws Throwable { - // pre-conditions - final int timeout = 1000; - final int serverDelay = timeout * 4; - assertThat(timeout).isLessThan(IHttpClient.DEFAULT_READ_TIMEOUT); - WaitingHttpServerFake serverFake = startWaitingHttpServerFake(serverDelay); - long startTime = System.currentTimeMillis(); - // operations - try { - httpClient.delete(serverFake.getUrl(), timeout); - fail("Timeout expected."); - } catch (SocketTimeoutException e) { - // assert - assertThat(System.currentTimeMillis() - startTime).isGreaterThan(timeout) - .isLessThan(serverDelay) - .isLessThan(IHttpClient.DEFAULT_READ_TIMEOUT); - } finally { - serverFake.stop(); - } - } - - @Test - public void shouldRespectGivenTimeoutPUT() throws Throwable { - // pre-conditions - final int timeout = 1000; - final int serverDelay = timeout * 4; - assertThat(timeout).isLessThan(IHttpClient.DEFAULT_READ_TIMEOUT); - WaitingHttpServerFake serverFake = startWaitingHttpServerFake(serverDelay); - long startTime = System.currentTimeMillis(); - // operations - try { - httpClient.put(serverFake.getUrl(), new FormUrlEncodedMediaType(), timeout); - fail("Timeout expected."); - } catch (SocketTimeoutException e) { - // assert - assertThat(System.currentTimeMillis() - startTime).isGreaterThan(timeout) - .isLessThan(serverDelay) - .isLessThan(IHttpClient.DEFAULT_READ_TIMEOUT); - } finally { - serverFake.stop(); - } - } - - @Test - public void shouldRespectGivenTimeoutGET() throws Throwable { - // pre-conditions - final int timeout = 1000; - final int serverDelay = timeout * 4; - assertThat(timeout).isLessThan(IHttpClient.DEFAULT_READ_TIMEOUT); - WaitingHttpServerFake serverFake = this.startWaitingHttpServerFake(serverDelay); - - long startTime = System.currentTimeMillis(); - // operations - try { - httpClient.get(serverFake.getUrl(), timeout); - fail("Timeout expected."); - } catch (SocketTimeoutException e) { - // assert - assertThat(System.currentTimeMillis() - startTime).isGreaterThan(timeout) - .isLessThan(serverDelay) - .isLessThan(IHttpClient.DEFAULT_READ_TIMEOUT); - } finally { - serverFake.stop(); - } - } - - @Test - public void shouldFallbackToOpenShiftTimeout() throws Throwable { - // pre-conditions - final int timeout = 1000; - final int serverDelay = timeout * 15; - assertThat(timeout).isLessThan(IHttpClient.DEFAULT_READ_TIMEOUT); - System.setProperty(IHttpClient.SYSPROP_OPENSHIFT_READ_TIMEOUT, String.valueOf(timeout)); - WaitingHttpServerFake serverFake = startWaitingHttpServerFake(serverDelay); - long startTime = System.currentTimeMillis(); - // operations - try { - httpClient.get(serverFake.getUrl(), IHttpClient.NO_TIMEOUT); - fail("Timeout expected."); - } catch (SocketTimeoutException e) { - // assert - assertThat(System.currentTimeMillis() - startTime).isGreaterThan(timeout) - .isLessThan(serverDelay) - .isLessThan(IHttpClient.DEFAULT_READ_TIMEOUT); - } finally { - serverFake.stop(); - System.clearProperty(IHttpClient.SYSPROP_OPENSHIFT_READ_TIMEOUT); - } - } - - @Test - public void shouldRespectDefaultTimeout() throws Throwable { - // pre-conditions - final int timeout = 1000; - final int serverDelay = timeout * 10000; - IOpenShiftConfiguration configuration = new OpenShiftConfigurationFake(null,null,null,"5000"); - IHttpClient httpClient = new UrlConnectionHttpClientBuilder() - .setAcceptMediaType(ACCEPT_APPLICATION_JSON) - .setUserAgent("com.openshift.client.test") - .setConfigTimeout(configuration.getTimeout()) - .client(); - WaitingHttpServerFake serverFake = startWaitingHttpServerFake(serverDelay); - long startTime = System.currentTimeMillis(); - // operations - try { - httpClient.get(serverFake.getUrl(), IHttpClient.NO_TIMEOUT); - fail("Timeout expected."); - } catch (SocketTimeoutException e) { - // assert - assertThat(System.currentTimeMillis() - startTime) - .isGreaterThan(configuration.getTimeout() - 20) - .isLessThan(configuration.getTimeout() + 20); - } finally { - serverFake.stop(); - } - } - - @Test - public void shouldRespectSystemConfigurationTimeoutOverridingDefaultTimeout() throws Throwable { - // pre-conditions - final int timeout = 1000; - final int serverDelay = timeout * 15; - IOpenShiftConfiguration configuration = new OpenShiftConfigurationFake(null,null,"2000","1000"); - IHttpClient httpClient = new UrlConnectionHttpClientBuilder() - .setAcceptMediaType(ACCEPT_APPLICATION_JSON) - .setUserAgent("com.openshift.client.test") - .setConfigTimeout(configuration.getTimeout()) - .client(); - WaitingHttpServerFake serverFake = startWaitingHttpServerFake(serverDelay); - long startTime = System.currentTimeMillis(); - // operations - try { - httpClient.get(serverFake.getUrl(), IHttpClient.NO_TIMEOUT); - fail("Timeout expected."); - } catch (SocketTimeoutException e) { - // assert - assertThat(System.currentTimeMillis() - startTime) - .isGreaterThan(configuration.getTimeout() - 20) - .isLessThan(configuration.getTimeout() + 20); - } finally { - serverFake.stop(); - } - } - - @Test - public void shouldRespectUserConfigurationTimeoutOverridingSystemConfigurationTimeout() throws Throwable { - // pre-conditions - final int timeout = 1000; - final int serverDelay = timeout * 15; - IOpenShiftConfiguration configuration = new OpenShiftConfigurationFake(null,"3000","2000","1000"); - IHttpClient httpClient = new UrlConnectionHttpClientBuilder() - .setAcceptMediaType(ACCEPT_APPLICATION_JSON) - .setUserAgent("com.openshift.client.test") - .setConfigTimeout(configuration.getTimeout()) - .client(); - WaitingHttpServerFake serverFake = startWaitingHttpServerFake(serverDelay); - long startTime = System.currentTimeMillis(); - // operations - try { - httpClient.get(serverFake.getUrl(), IHttpClient.NO_TIMEOUT); - fail("Timeout expected."); - } catch (SocketTimeoutException e) { - // assert - assertThat(System.currentTimeMillis() - startTime) - .isGreaterThan(configuration.getTimeout() - 20) - .isLessThan(configuration.getTimeout() + 20); - } finally { - serverFake.stop(); - } - } - - @Test - public void shouldRespectSystemPropertiesTimeoutOverridingUserConfigurationTimeout() throws Throwable { - // pre-conditions - final int timeout = 1000; - final int serverDelay = timeout * 15; - IOpenShiftConfiguration configuration = new OpenShiftConfigurationFake("4000","3000","2000","1000"); - IHttpClient httpClient = new UrlConnectionHttpClientBuilder() - .setAcceptMediaType(ACCEPT_APPLICATION_JSON) - .setUserAgent("com.openshift.client.test") - .setConfigTimeout(configuration.getTimeout()) - .client(); - WaitingHttpServerFake serverFake = startWaitingHttpServerFake(serverDelay); - long startTime = System.currentTimeMillis(); - // operations - try { - httpClient.get(serverFake.getUrl(), IHttpClient.NO_TIMEOUT); - fail("Timeout expected."); - } catch (SocketTimeoutException e) { - // assert - assertThat(System.currentTimeMillis() - startTime) - .isGreaterThan(configuration.getTimeout() - 20) - .isLessThan(configuration.getTimeout() + 20); - } finally { - serverFake.stop(); - } - } - - @Test - public void shouldFallbackToDefaultSystemPropertyTimeout() throws Throwable { - // pre-conditions - final int timeout = 1000; - final int serverDelay = timeout * 15; - System.clearProperty(IHttpClient.SYSPROP_OPENSHIFT_READ_TIMEOUT); - String timeoutBackup = System.getProperty(IHttpClient.SYSPROP_DEFAULT_READ_TIMEOUT); - System.setProperty(IHttpClient.SYSPROP_DEFAULT_READ_TIMEOUT, String.valueOf(timeout)); - WaitingHttpServerFake serverFake = startWaitingHttpServerFake(serverDelay); - long startTime = System.currentTimeMillis(); - // operations - try { - httpClient.get(serverFake.getUrl(), IHttpClient.NO_TIMEOUT); - fail("Timeout expected."); - } catch (SocketTimeoutException e) { - // assert - assertThat(System.currentTimeMillis() - startTime).isGreaterThan(timeout) - .isLessThan(serverDelay) - .isLessThan(IHttpClient.DEFAULT_READ_TIMEOUT); - } finally { - serverFake.stop(); - restoreSystemProperty(IHttpClient.SYSPROP_DEFAULT_READ_TIMEOUT, timeoutBackup); - } - } - - @Test - public void shouldFallbackToDefaultTimeout() throws Throwable { - // pre-conditions - final int serverDelay = 4 * 1000; - System.clearProperty(IHttpClient.SYSPROP_OPENSHIFT_READ_TIMEOUT); - final String timeoutBackup = System.getProperty(IHttpClient.SYSPROP_DEFAULT_READ_TIMEOUT); - System.clearProperty(IHttpClient.SYSPROP_DEFAULT_READ_TIMEOUT); - ExecutorService executor = Executors.newSingleThreadExecutor(); - final WaitingHttpServerFake serverFake = startWaitingHttpServerFake(serverDelay); - final long startTime = System.currentTimeMillis(); - // operations - Future future = executor.submit(new Callable() { - - @Override - public Long call() throws Exception { - try { - httpClient.get(serverFake.getUrl(), IHttpClient.NO_TIMEOUT); - return -1l; - } catch (SocketTimeoutException e) { - return -1l; - } - } - }); - long waited = -1; - try { - waited = future.get(serverDelay, TimeUnit.MILLISECONDS); - fail("get should have timed out"); - } catch (TimeoutException e) { - assertThat(waited).isGreaterThanOrEqualTo(-1); - assertThat(System.currentTimeMillis() - startTime) - .isGreaterThanOrEqualTo(serverDelay) - .isLessThan(IHttpClient.DEFAULT_READ_TIMEOUT); - } finally { - executor.shutdownNow(); - restoreSystemProperty(IHttpClient.SYSPROP_DEFAULT_READ_TIMEOUT, timeoutBackup); - } - } - - private HttpServerFake startHttpServerFake(String statusLine) throws Exception { - int port = new Random().nextInt(9 * 1024) + 1024; - HttpServerFake serverFake = null; - if (statusLine == null) { - serverFake = new HttpServerFake(port); - } else { - serverFake = new HttpServerFake(port, null, statusLine); - } - serverFake.start(); - return serverFake; - } - - private HttpsServerFake startHttpsServerFake(String statusLine) throws Exception { - int port = new Random().nextInt(9 * 1024) + 1024; - HttpsServerFake serverFake = null; - if (statusLine == null) { - serverFake = new HttpsServerFake(port); - } else { - serverFake = new HttpsServerFake(port, null, statusLine); - } - serverFake.start(); - return serverFake; - } - - private WaitingHttpServerFake startWaitingHttpServerFake(int delay) throws Exception { - WaitingHttpServerFake serverFake = new WaitingHttpServerFake(delay); - serverFake.start(); - return serverFake; - } - - private class UserAgentClientFake extends UrlConnectionHttpClientFake { - - public UserAgentClientFake(String userAgent) { - super(userAgent, null); - } - - public String getUserAgent(HttpURLConnection connection) { - return connection.getRequestProperty(PROPERTY_USER_AGENT); - } - - } - - private class AcceptVersionClientFake extends UrlConnectionHttpClientFake { - - public AcceptVersionClientFake(String acceptVersion) { - super(null, acceptVersion); - } - - public String getAcceptHeader(HttpURLConnection connection) { - return connection.getRequestProperty(PROPERTY_ACCEPT); - } - } - - private abstract class UrlConnectionHttpClientFake extends UrlConnectionHttpClient { - private UrlConnectionHttpClientFake(String userAgent, String acceptVersion) { - super("username", "password", userAgent, IHttpClient.MEDIATYPE_APPLICATION_JSON, acceptVersion, - "authkey", "authiv", null,IHttpClient.NO_TIMEOUT); - } - - private UrlConnectionHttpClientFake(String userAgent, String acceptVersion, ISSLCertificateCallback callback) { - super("username", "password", userAgent, IHttpClient.MEDIATYPE_APPLICATION_JSON, acceptVersion, - "authkey", "authiv", callback,IHttpClient.NO_TIMEOUT); - } - - public HttpURLConnection createConnection() throws IOException, KeyStoreException { - return super.createConnection(new URL("http://localhost"), username, password, authKey, authIV, - userAgent, acceptedVersion, acceptedMediaType, sslAuthorizationCallback, NO_TIMEOUT); - } - }; - - private void restoreSystemProperty(String property, String value) { - if (value == null) { - System.clearProperty(property); - } else { - System.setProperty(property, value); - } - } -} diff --git a/src/test/java/com/openshift/internal/client/httpclient/request/FormUrlEncodedMediaTypeTest.java b/src/test/java/com/openshift/internal/client/httpclient/request/FormUrlEncodedMediaTypeTest.java deleted file mode 100644 index 8f9a6cf5..00000000 --- a/src/test/java/com/openshift/internal/client/httpclient/request/FormUrlEncodedMediaTypeTest.java +++ /dev/null @@ -1,132 +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.httpclient.request; - -import static org.fest.assertions.Assertions.assertThat; - -import java.io.ByteArrayOutputStream; -import java.io.IOException; - -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -import com.openshift.client.OpenShiftException; - -/** - * @author Andre Dietisheim - */ -public class FormUrlEncodedMediaTypeTest { - - private FormUrlEncodedMediaType formUrlEncoder; - private ByteArrayOutputStream out; - - @Before - public void setUp() throws IOException { - this.formUrlEncoder = new FormUrlEncodedMediaType(); - this.out = new ByteArrayOutputStream(); - } - - @After - public void tearDown() { - } - - @Test - public void shouldEncodeSingleParameter() throws IOException { - // pre-condition - // operation - formUrlEncoder.writeTo( - new ParameterValueMap() - .add(new StringParameter("name", "adietish")) - , out); - // verification - assertThat(out.toString()).isEqualTo("name=adietish"); - } - - @Test - public void shouldNotStart2ndWriteWithAmpersand() throws IOException { - // pre-condition - formUrlEncoder.writeTo( - new ParameterValueMap() - .add(new StringParameter("name", "adietish")) - , out); - assertThat(out.toString()).isEqualTo("name=adietish"); - - // operation - out = new ByteArrayOutputStream(); - formUrlEncoder.writeTo( - new ParameterValueMap() - .add(new StringParameter("name", "adietish")) - , out); - // verification - assertThat(out.toString().startsWith("&")).isFalse();; - } - - @Test - public void shouldEncode3ParametersWithAmpersand() throws IOException { - // pre-condition - // operation - formUrlEncoder.writeTo( - new ParameterValueMap() - .add(new StringParameter("name", "adietish")) - .add(new StringParameter("company", "redhat")) - .add(new StringParameter("paas", "OpenShift")) - , out); - // verification - assertThat(out.toString()).isEqualTo("name=adietish&company=redhat&paas=OpenShift"); - } - - @Test(expected = OpenShiftException.class) - public void shouldNotAllowIdenticalNames() throws IOException { - // pre-condition - // operation - formUrlEncoder.writeTo( - new ParameterValueMap() - .add(new StringParameter("name", "adietish")) - .add(new StringParameter("name", "redhat")) - , out); - } - - @Test - public void shouldEncodeNestedMap() throws IOException { - // pre-condition - // operation - formUrlEncoder.writeTo( - new ParameterValueMap() - .add(new Parameter("honkabear", - new ParameterValueMap() - .add(new StringParameter("name", "adietish")) - .add(new StringParameter("company", "redhat")))) - , out); - // verification - assertThat(out.toString()).isEqualTo("honkabear[name]=adietish&honkabear[company]=redhat"); - } - - @Test - public void shouldEncodeMultipleNestedMaps() throws IOException { - // pre-condition - // operation - formUrlEncoder.writeTo( - new ParameterValueMap().add( - new Parameter("thirst", - new ParameterValueArray() - .add(new ParameterValueMap() - .add(new StringParameter("name", "adietish")) - .add(new StringParameter("company", "redhat"))) - .add(new ParameterValueMap() - .add(new StringParameter("name", "xcoulon")) - .add(new StringParameter("company", "redhat"))))) - , out); - // verification - assertThat(out.toString()).isEqualTo( - "thirst[][name]=adietish&thirst[][company]=redhat&thirst[][name]=xcoulon&thirst[][company]=redhat"); - } -} diff --git a/src/test/java/com/openshift/internal/client/httpclient/request/JsonMediaTypeTest.java b/src/test/java/com/openshift/internal/client/httpclient/request/JsonMediaTypeTest.java deleted file mode 100644 index 71be114d..00000000 --- a/src/test/java/com/openshift/internal/client/httpclient/request/JsonMediaTypeTest.java +++ /dev/null @@ -1,115 +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.httpclient.request; - -import static org.fest.assertions.Assertions.assertThat; - -import java.io.ByteArrayOutputStream; -import java.io.IOException; - -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -import com.openshift.client.OpenShiftException; - -/** - * @author Andre Dietisheim - */ -public class JsonMediaTypeTest { - - private JsonMediaType jsonEncoder; - private ByteArrayOutputStream out; - - @Before - public void setUp() throws IOException { - this.jsonEncoder = new JsonMediaType(); - this.out = new ByteArrayOutputStream(); - } - - @After - public void tearDown() { - } - - @Test - public void shouldEncodeSingleParameter() throws IOException { - // pre-condition - // operation - jsonEncoder.writeTo( - new ParameterValueMap() - .add(new StringParameter("name", "adietish")) - , out); - // verification - assertThat(out.toString()).isEqualTo("{\"name\" : \"adietish\"}"); - } - - @Test - public void shouldEncode3ParametersWithAmpersand() throws IOException { - // pre-condition - // operation - jsonEncoder.writeTo( - new ParameterValueMap() - .add(new StringParameter("name", "adietish")) - .add(new StringParameter("company", "redhat")) - .add(new StringParameter("paas", "OpenShift")) - , out); - // verification - assertThat(out.toString()).isEqualTo( - "{\"name\" : \"adietish\", \"company\" : \"redhat\", \"paas\" : \"OpenShift\"}"); - } - - @Test(expected = OpenShiftException.class) - public void shouldNotAllowIdenticalNames() throws IOException { - // pre-condition - // operation - jsonEncoder.writeTo( - new ParameterValueMap() - .add(new StringParameter("name", "adietish")) - .add(new StringParameter("name", "redhat")) - , out); - } - - @Test - public void shouldEncodeNestedMap() throws IOException { - // pre-condition - // operation - jsonEncoder.writeTo( - new ParameterValueMap() - .add(new Parameter("honkabear", - new ParameterValueMap() - .add(new StringParameter("name", "adietish")) - .add(new StringParameter("company", "redhat")))) - , out); - // verification - assertThat(out.toString()).isEqualTo( - "{\"honkabear\" : {\"name\" : \"adietish\", \"company\" : \"redhat\"}}"); - } - - @Test - public void shouldEncodeMultipleNestedMaps() throws IOException { - // pre-condition - // operation - jsonEncoder.writeTo( - new ParameterValueMap().add( - new Parameter("thirst", - new ParameterValueArray() - .add(new ParameterValueMap() - .add(new StringParameter("name", "adietish")) - .add(new StringParameter("company", "jboss"))) - .add(new ParameterValueMap() - .add(new StringParameter("name", "xcoulon")) - .add(new StringParameter("company", "redhat"))))) - , out); - // verification - assertThat(out.toString()).isEqualTo( - "{\"thirst\" : [{\"name\" : \"adietish\", \"company\" : \"jboss\"},{\"name\" : \"xcoulon\", \"company\" : \"redhat\"}]}"); - } -} diff --git a/src/test/java/com/openshift/internal/client/response/OpenShiftJsonDTOFactoryTest.java b/src/test/java/com/openshift/internal/client/response/OpenShiftJsonDTOFactoryTest.java deleted file mode 100755 index 311d9214..00000000 --- a/src/test/java/com/openshift/internal/client/response/OpenShiftJsonDTOFactoryTest.java +++ /dev/null @@ -1,452 +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.response; - -import static org.fest.assertions.Assertions.assertThat; -import static org.junit.Assert.assertNotNull; - -import java.util.Collection; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; - -import com.openshift.client.utils.*; -import com.openshift.internal.client.GearProfile; -import org.fest.assertions.Condition; -import org.junit.Test; - -import com.openshift.client.ApplicationScale; -import com.openshift.client.GearState; -import com.openshift.client.HttpMethod; -import com.openshift.client.IField; -import com.openshift.client.IGearProfile; -import com.openshift.client.Message; -import com.openshift.client.Messages; -import com.openshift.internal.client.CartridgeType; - -public class OpenShiftJsonDTOFactoryTest { - - private static final String LINK_ADD_APPLICATION = "ADD_APPLICATION"; - - private IRestResponseFactory factory = new OpenShiftJsonDTOFactory(); - - private static final class ValidLinkCondition extends Condition> { - @Override - public boolean matches(Map links) { - for (Entry entry : links.entrySet()) { - Link link = (Link) entry.getValue(); - if (link.getHref() == null || link.getHttpMethod() == null || link.getRel() == null) { - return false; - } - } - return true; - } - } - - @Test - public void shouldUnmarshallGetUserResponseBody() throws Throwable { - // pre-conditions - String content = Samples.GET_USER.getContentAsString(); - assertNotNull(content); - // operation - RestResponse response = factory.get(content); - // verifications - assertThat(response.getDataType()).isEqualTo(EnumDataType.user); - UserResourceDTO userResourceDTO = response.getData(); - assertThat(userResourceDTO.getRhLogin()).isEqualTo("foo@redhat.com"); - assertThat(userResourceDTO.getMaxGears()).isEqualTo(10); - assertThat(userResourceDTO.getConsumedGears()).isEqualTo(3); - assertThat(userResourceDTO.getLinks()).hasSize(2); - } - - @Test - public void shouldUnmarshallGetUserNoKeyResponseBody() throws Throwable { - // pre-conditions - String content = Samples.GET_USER_KEYS_NONE.getContentAsString(); - assertNotNull(content); - // operation - RestResponse response = factory.get(content); - // verifications - assertThat(response.getDataType()).isEqualTo(EnumDataType.keys); - List keys = response.getData(); - assertThat(keys).isEmpty(); - } - - @Test - public void shouldUnmarshallGetUserSingleKeyResponseBody() throws Throwable { - // pre-conditions - String content = Samples.GET_USER_KEYS_1KEY.getContentAsString(); - assertNotNull(content); - // operation - RestResponse response = factory.get(content); - // verifications - assertThat(response.getDataType()).isEqualTo(EnumDataType.keys); - List keys = response.getData(); - assertThat(keys).hasSize(1); - final KeyResourceDTO key = keys.get(0); - assertThat(key.getLinks()).hasSize(3); - assertThat(key.getName()).isEqualTo("somekey"); - assertThat(key.getType()).isEqualTo("ssh-rsa"); - assertThat(key.getContent()).isEqualTo("ABBA"); - } - - @Test - public void shouldUnmarshallGetUserMultipleKeyResponseBody() throws Throwable { - // pre-conditions - String content = Samples.GET_USER_KEYS_2KEYS.getContentAsString(); - assertNotNull(content); - // operation - RestResponse response = factory.get(content); - // verifications - assertThat(response.getDataType()).isEqualTo(EnumDataType.keys); - List keys = response.getData(); - final KeyResourceDTO key = keys.get(0); - assertThat(key.getLinks()).hasSize(3); - assertThat(key.getName()).isEqualTo("default"); - assertThat(key.getType()).isEqualTo("ssh-rsa"); - assertThat(key.getContent()).isEqualTo("ABBA"); - } - - @Test - public void shouldUnmarshallGetRootAPIResponseBody() throws Throwable { - // pre-conditions - String content = Samples.GET_API.getContentAsString(); - assertNotNull(content); - // operation - RestResponse response = factory.get(content); - // verifications - assertThat(response.getDataType()).isEqualTo(EnumDataType.links); - final Map links = response.getData(); - assertThat(links).hasSize(12); - assertThat(links).satisfies(new ValidLinkCondition()); - - } - - @Test - public void shouldUnmarshallGetDomainsWith2ExistingResponseBody() throws Throwable { - // pre-conditions - String content = Samples.GET_DOMAINS.getContentAsString(); - assertNotNull(content); - // operation - RestResponse response = factory.get(content); - // verifications - assertThat(response.getDataType()).isEqualTo(EnumDataType.domains); - final List domainDTOs = response.getData(); - assertThat(domainDTOs).isNotEmpty(); - assertThat(domainDTOs).hasSize(2); - final DomainResourceDTO domainDTO = domainDTOs.get(0); - assertThat(domainDTO.getId()).isEqualTo("foobarz"); - assertThat(domainDTO.getLinks()).hasSize(5); - final Link link = domainDTO.getLink(LINK_ADD_APPLICATION); - assertThat(link).isNotNull(); - assertThat(link.getHref()).isEqualTo("https://openshift.redhat.com/broker/rest/domains/foobarz/applications"); - assertThat(link.getRel()).isEqualTo("Create new application"); - assertThat(link.getHttpMethod()).isEqualTo(HttpMethod.POST); - final List requiredParams = link.getRequiredParams(); - assertThat(requiredParams).hasSize(1); - } - - @Test - public void shouldUnmarshallGetDomainsWithNoExistingResponseBody() throws Throwable { - // pre-conditions - String content = Samples.GET_DOMAINS_EMPTY.getContentAsString(); - assertNotNull(content); - // operation - RestResponse response = factory.get(content); - // verifications - assertThat(response.getDataType()).isEqualTo(EnumDataType.domains); - final List domains = response.getData(); - assertThat(domains).isEmpty(); - } - - @Test - public void shouldUnmarshallGetDomainResponseBody() throws Throwable { - // pre-conditions - String content = Samples.GET_DOMAINS_FOOBARZ.getContentAsString(); - assertNotNull(content); - // operation - RestResponse response = factory.get(content); - // verifications - assertThat(response.getDataType()).isEqualTo(EnumDataType.domain); - final DomainResourceDTO domain = response.getData(); - assertNotNull(domain); - assertThat(domain.getId()).isEqualTo("foobarz"); - assertThat(domain.getLinks()).hasSize(5); - } - - @Test - public void shouldUnmarshallDeleteDomainKoNotFoundResponseBody() throws Throwable { - // pre-conditions - String content = Samples.DELETE_DOMAINS_FOOBAR_KO.getContentAsString(); - assertNotNull(content); - // operation - RestResponse response = factory.get(content); - // verifications - assertThat(response.getDataType()).isNull(); - assertThat(response.getMessages().size()).isEqualTo(1); - } - - @Test - public void shouldUnmarshallGetApplicationsWith2AppsResponseBody() throws Throwable { - // pre-conditions - String content = Samples.GET_DOMAINS_FOOBARZ_APPLICATIONS_2EMBEDDED.getContentAsString(); - assertNotNull(content); - // operation - RestResponse response = factory.get(content); - // verifications - assertThat(response.getDataType()).isEqualTo(EnumDataType.applications); - final List applications = response.getData(); - assertThat(applications).hasSize(2); - ApplicationResourceDTO applicationDTO = applications.get(1); - assertThat(applicationDTO.getDomainId()).isEqualTo("foobarz"); - assertThat(applicationDTO.getCreationTime()).isEqualTo("2013-09-20T21:28:53Z"); - assertThat(applicationDTO.getApplicationUrl()).isEqualTo("http://springeap6-foobarz.rhcloud.com/"); - assertThat(applicationDTO.getSshUrl()).isEqualTo("ssh://523cbe15e0b8cd0a520001b6@springeap6-foobarz.rhcloud.com"); - assertThat(applicationDTO.getFramework()).isEqualTo(Cartridges.JBOSSEAP_6_NAME); - assertThat(applicationDTO.getName()).isEqualTo("springeap6"); - assertThat(applicationDTO.getApplicationScale()).isEqualTo(ApplicationScale.NO_SCALE); - assertThat(applicationDTO.getGitUrl()).isEqualTo( - "ssh://523cbe15e0b8cd0a520001b6@springeap6-foobarz.rhcloud.com/~/git/springeap6.git/"); - assertThat(applicationDTO.getInitialGitUrl()) - .isEqualTo("git://github.com/openshift/spring-eap6-quickstart.git"); - assertThat(applicationDTO.getUuid()).isEqualTo("523cbe15e0b8cd0a520001b6"); - assertThat(applicationDTO.getGearProfile()).isEqualTo(new GearProfile("small")); - assertThat(applicationDTO.getAliases()).containsExactly("jbosstools.org"); - assertThat(applicationDTO.getUuid()).isEqualTo("523cbe15e0b8cd0a520001b6"); - assertThat(applicationDTO.getCartridges().keySet()).containsOnly( - Cartridges.JBOSSEAP_6_NAME, - Cartridges.MONGODB_22_NAME, - Cartridges.MYSQL_51_NAME); - CartridgeResourceDTO cartridgeResourceDTO = - applicationDTO.getCartridges().get(Cartridges.MONGODB_22_NAME); - assertThat(cartridgeResourceDTO).isNotNull(); - assertThat(cartridgeResourceDTO.getType()).isEqualTo(CartridgeType.EMBEDDED); - assertThat(cartridgeResourceDTO.getName()).isEqualTo(Cartridges.MONGODB_22_NAME); - assertThat(cartridgeResourceDTO.getDescription()).startsWith("MongoDB is a scalable, high-performance, "); - assertThat(cartridgeResourceDTO.getDisplayName()).startsWith("MongoDB NoSQL Database "); - assertThat(cartridgeResourceDTO.getMessages()).isNull(); // dito - assertThat(cartridgeResourceDTO.getLinks()).hasSize(7); - List properties = cartridgeResourceDTO.getProperties().getAll(); - assertThat(properties).onProperty("name").containsExactly( - "username", "password", "database_name", "connection_url"); - } - - /** - * Should unmarshall get application response body. - * - * @throws Throwable - */ - @Test - public void shouldUnmarshallGetApplicationWithAliasesResponseBody() throws Throwable { - // pre-conditions - String content = Samples.GET_DOMAINS_FOOBARZ_APPLICATIONS_SPRINGEAP6_2ALIAS.getContentAsString(); - assertNotNull(content); - // operation - RestResponse response = factory.get(content); - // verifications - assertThat(response.getDataType()).isEqualTo(EnumDataType.application); - final ApplicationResourceDTO application = response.getData(); - assertThat(application.getUuid()).hasSize(24); - assertThat(application.getCreationTime()).startsWith("2013-"); - assertThat(application.getDomainId()).isEqualTo("foobarz"); - assertThat(application.getFramework()).isEqualTo(Cartridges.JBOSSEAP_6_NAME); - assertThat(application.getName()).isEqualTo("springeap6"); - assertThat(application.getLinks()).hasSize(18); - assertThat(application.getAliases()).contains("jbosstools.org", "redhat.com"); - } - - /** - * Should unmarshall get application response body. - * - * @throws Throwable - */ - @Test - public void shouldUnmarshallAddApplicationEmbeddedCartridgeResponseBody() throws Throwable { - // pre-conditions - String content = Samples.POST_MYSQL_DOMAINS_FOOBARZ_APPLICATIONS_SPRINGEAP6_CARTRIDGES.getContentAsString(); - assertNotNull(content); - - // operation - RestResponse response = factory.get(content); - - // verifications - Messages messages = response.getMessages(); - assertThat(messages.size()).isEqualTo(3); - Collection defaultMessages = messages.getBy(IField.DEFAULT); - assertThat(defaultMessages).isNotEmpty(); - new MessageAssert(defaultMessages.iterator().next()) - .hasField(IField.DEFAULT) - .hasExitCode(-1) - .hasText("Added mysql-5.1 to application springeap6"); - Collection resultMessages = messages.getBy(IField.RESULT); - assertThat(resultMessages).isNotEmpty(); - new MessageAssert(resultMessages.iterator().next()) - .hasField(IField.RESULT) - .hasExitCode(0) - .hasText( - "\nMySQL 5.1 database added. Please make note of these credentials:\n\n" - + " Root User: adminnFC22YQ\n Root Password: U1IX8AIlrEcl\n Database Name: springeap6\n\n" - + "Connection URL: mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/\n\n" - + "You can manage your new MySQL database by also embedding phpmyadmin-3.4.\n" - + "The phpmyadmin username and password will be the same as the MySQL credentials above.\n"); - Collection appInfoMessages = messages.getBy(IField.APPINFO); - assertThat(appInfoMessages).isNotEmpty(); - new MessageAssert(appInfoMessages.iterator().next()) - .hasField(IField.APPINFO) - .hasExitCode(0) - .hasText("Connection URL: mysql://127.13.125.1:3306/\n"); - - assertThat(response.getDataType()).isEqualTo(EnumDataType.cartridge); - final CartridgeResourceDTO cartridge = response.getData(); - assertThat(cartridge.getName()).isEqualTo(Cartridges.MYSQL_51_NAME); - assertThat(cartridge.getDisplayName()).isEqualTo("MySQL Database 5.1"); - assertThat(cartridge.getDescription()).isEqualTo("MySQL is a multi-user, multi-threaded SQL database server."); - assertThat(cartridge.getType()).isEqualTo(CartridgeType.EMBEDDED); - assertThat(cartridge.getUrl()).isNull(); - CartridgeResourceProperties properties = cartridge.getProperties(); - assertThat(properties).isNotNull(); - assertThat(properties.size()).isEqualTo(4); - new ResourcePropertyAssert(properties.getAll().get(0)) - .hasName("username") - .hasDescription("Root user on mysql database") - .hasType("cart_data") - .hasValue("adminnFC22YQ"); - new ResourcePropertyAssert(properties.getAll().get(1)) - .hasName("password") - .hasDescription("Password for root user on mysql database") - .hasType("cart_data") - .hasValue("U1IX8AIlrEcl"); - new ResourcePropertyAssert(properties.getAll().get(2)) - .hasName("database_name") - .hasDescription("MySQL DB name") - .hasType("cart_data") - .hasValue("springeap6"); - new ResourcePropertyAssert(properties.getAll().get(3)) - .hasName("connection_url") - .hasDescription("MySQL DB connection URL") - .hasType("cart_data") - .hasValue("mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/"); - assertThat(cartridge.getLinks()).hasSize(7); - - } - - /** - * Should unmarshall get application response body. - * - * @throws Throwable - */ - @Test - public void shouldUnmarshallGetApplicationCartridgesWith1ElementResponseBody() throws Throwable { - // pre-conditions - String content = Samples.GET_DOMAINS_FOOBARZ_APPLICATIONS_SPRINGEAP6_CARTRIDGES_2EMBEDDED.getContentAsString(); - assertNotNull(content); - // operation - RestResponse response = factory.get(content); - // verifications - assertThat(response.getMessages().size()).isEqualTo(0); - assertThat(response.getDataType()).isEqualTo(EnumDataType.cartridges); - final Map cartridges = response.getData(); - assertThat(cartridges).hasSize(3); // mysql, mongo, jbosseap - assertThat(cartridges.values()).onProperty("name").containsOnly( - Cartridges.MONGODB_22_NAME, - Cartridges.MYSQL_51_NAME, - Cartridges.JBOSSEAP_6_NAME); - } - - @Test - public void shouldUnmarshallGetApplicationCartridgesWith3ElementsResponseBody() throws Throwable { - // pre-conditions - String content = Samples.GET_DOMAINS_FOOBARZ_APPLICATIONS_SPRINGEAP6_CARTRIDGES_2EMBEDDED.getContentAsString(); - assertNotNull(content); - // operation - RestResponse response = factory.get(content); - // verifications - assertThat(response.getMessages().size()).isEqualTo(0); - assertThat(response.getDataType()).isEqualTo(EnumDataType.cartridges); - Map cartridges = response.getData(); - assertThat(cartridges).hasSize(3); - assertThat(cartridges.values()).onProperty("name").containsOnly( - Cartridges.MONGODB_22_NAME, - Cartridges.MYSQL_51_NAME, - Cartridges.JBOSSEAP_6_NAME); - } - - @Test - public void shouldUnmarshallGetApplicationGearGroupsResponseBody() throws Throwable { - // pre-conditions - String content = Samples.GET_DOMAINS_FOOBARZ_APPLICATIONS_SPRINGEAP6_GEARGROUPS.getContentAsString(); - assertNotNull(content); - // operation - RestResponse response = factory.get(content); - // verifications - Collection gearGroups = response.getData(); - assertThat(gearGroups.size()).isEqualTo(2); - GearGroupResourceDTO gearGroup = gearGroups.iterator().next(); - assertThat(gearGroup.getName()).isEqualTo("514207b84382ec1fef0000ab"); - assertThat(gearGroup.getUuid()).isEqualTo("514207b84382ec1fef0000ab"); - assertThat(gearGroup.getGears()).hasSize(2); - final GearResourceDTO gear = gearGroup.getGears().iterator().next(); - assertThat(gear.getUuid()).isEqualTo("514207b84382ec1fef000098"); - assertThat(gear.getState()).isEqualTo("idle"); - } - - @Test - public void shouldUnmarshallSingleValidOptionInResponseBody() throws Throwable { - // pre-conditions - String content = Samples.POST_MYSQL_DOMAINS_FOOBARZ_APPLICATIONS_SPRINGEAP6_CARTRIDGES.getContentAsString(); - assertNotNull(content); - // operation - RestResponse response = factory.get(content); - // verifications - final CartridgeResourceDTO cartridge = response.getData(); - final Link link = cartridge.getLink("RESTART"); - assertThat(link.getOptionalParams()).hasSize(0); - assertThat(link.getRequiredParams().get(0).getValidOptions()).containsExactly("restart"); - } - - @Test - public void shouldUnmarshallMultipleValidOptionInResponseBody() throws Throwable { - // pre-conditions - String content = Samples.PUT_BBCC_DSA_USER_KEYS_SOMEKEY.getContentAsString(); - assertNotNull(content); - // operation - RestResponse response = factory.get(content); - // verifications - final KeyResourceDTO key = response.getData(); - final Link link = key.getLink("UPDATE"); - assertThat(link.getOptionalParams()).hasSize(0); - assertThat(link.getRequiredParams().get(0).getValidOptions()).contains("ssh-rsa", "ssh-dss"); - } - - @Test - public void shouldUnmarshallLinksUnknwonLinkParameterType() throws Throwable { - // pre-conditions - String content = Samples.LINKS_UNKNOWN_LINKPARAMETERTYPE.getContentAsString(); - assertNotNull(content); - // operation - RestResponse response = factory.get(content); - // verifications - final Map links = response.getData(); - assertThat(links.size()).isEqualTo(1); - final Link link = links.get("POST1"); - assertThat(link).isNotNull(); - assertThat(link.getHref()).isEqualTo("https://openshift.redhat.com/broker/rest/post1"); - assertThat(link.getHttpMethod()).isEqualTo(HttpMethod.POST); - assertThat(link.getOptionalParams().size()).isEqualTo(0); - assertThat(link.getRequiredParams().size()).isEqualTo(1); - LinkParameter linkParameter = link.getRequiredParams().get(0); - assertThat(linkParameter).isNotNull(); - assertThat(linkParameter.getName()).isEqualTo("post1Required1Name"); - assertThat(linkParameter.getDescription()).isEqualTo("post1Required1Description"); - assertThat(linkParameter.getType()).isNotNull().isEqualTo(new LinkParameterType("unknown")); - } - -} diff --git a/src/test/resources/integrationTest.properties b/src/test/resources/integrationTest.properties deleted file mode 100755 index 47ca6939..00000000 --- a/src/test/resources/integrationTest.properties +++ /dev/null @@ -1,21 +0,0 @@ -client_id=openshift-java-client-rest-test - -#libra_server=ec2-23-22-230-135.compute-1.amazonaws.com -#libra_server=int.openshift.redhat.com -libra_server=openshift.redhat.com - -#default_rhlogin=bdecoste92e@gmail.com -#default_rhlogin=toolsjboss@gmail.com -default_rhlogin=toolsjboss@gmail.com - -#rhpassword=123456 -rhpassword=1q2w3e - -proxySet=true -proxyHost=file.rdu.redhat.com -proxyPort=3128 - -enableSSLCertChecks=false - -KNOWN_HOSTS=/home/bdecoste/.ssh/known_hosts -IDENTITY=/home/bdecoste/.ssh/libra.pem diff --git a/src/test/resources/log4j.xml b/src/test/resources/log4j.xml deleted file mode 100644 index 1c1925c6..00000000 --- a/src/test/resources/log4j.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/src/test/resources/samples/delete-domains-foobar_ko.json b/src/test/resources/samples/delete-domains-foobar_ko.json deleted file mode 100644 index dd7245c6..00000000 --- a/src/test/resources/samples/delete-domains-foobar_ko.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "data":null, - "errors":{ - - }, - "messages":[ - { - "exit_code":127, - "field":null, - "severity":"error", - "text":"Domain foobar not found" - } - ], - "status":"not_found", - "supported_api_versions":[ - 1.0, - 1.1, - 1.2, - 1.3, - 1.4 - ], - "type":null, - "version":"1.2" -} \ No newline at end of file diff --git a/src/test/resources/samples/delete-domains-foobarz.json b/src/test/resources/samples/delete-domains-foobarz.json deleted file mode 100644 index e69de29b..00000000 diff --git a/src/test/resources/samples/delete-domains-foobarz_ko-existingapps.json b/src/test/resources/samples/delete-domains-foobarz_ko-existingapps.json deleted file mode 100644 index a97b06f3..00000000 --- a/src/test/resources/samples/delete-domains-foobarz_ko-existingapps.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "data":null, - "errors":{ - - }, - "messages":[ - { - "exit_code":128, - "field":null, - "severity":"error", - "text":"Domain contains applications. Delete applications first or set force to true." - } - ], - "status":"bad_request", - "supported_api_versions":[ - 1.0, - 1.1, - 1.2, - 1.3, - 1.4 - ], - "type":null, - "version":"1.2" -} \ No newline at end of file diff --git a/src/test/resources/samples/delete-user-key-ko.json b/src/test/resources/samples/delete-user-key-ko.json deleted file mode 100644 index 345955eb..00000000 --- a/src/test/resources/samples/delete-user-key-ko.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "data":null, - "type":null, - "messages":[ - { - "severity":"error", - "exit_code":124, - "field":null, - "text":"Failed to delete SSH key default for user foobar+test@redhat.com due to:ERROR: Can't remove 'default' ssh key for user foobar+test@redhat.com" - } - ], - "version":"1.0", - "status":"internal_server_error" -} \ No newline at end of file diff --git a/src/test/resources/samples/get-api.json b/src/test/resources/samples/get-api.json deleted file mode 100644 index 7f5db2b5..00000000 --- a/src/test/resources/samples/get-api.json +++ /dev/null @@ -1,328 +0,0 @@ -{ - "data":{ - "API":{ - "href":"https://openshift.redhat.com/broker/rest/api", - "method":"GET", - "optional_params":[ - - ], - "rel":"API entry point", - "required_params":[ - - ] - }, - "GET_ENVIRONMENT":{ - "href":"https://openshift.redhat.com/broker/rest/environment", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get environment information", - "required_params":[ - - ] - }, - "GET_USER":{ - "href":"https://openshift.redhat.com/broker/rest/user", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get user information", - "required_params":[ - - ] - }, - "LIST_DOMAINS":{ - "href":"https://openshift.redhat.com/broker/rest/domains", - "method":"GET", - "optional_params":[ - - ], - "rel":"List domains", - "required_params":[ - - ] - }, - "ADD_DOMAIN":{ - "href":"https://openshift.redhat.com/broker/rest/domains", - "method":"POST", - "optional_params":[ - - ], - "rel":"Create new domain", - "required_params":[ - { - "description":"Name of the domain", - "invalid_options":[ - "amentra", - "aop", - "apiviz", - "arquillian", - "blacktie", - "boxgrinder", - "byteman", - "cirras", - "cloud", - "cloudforms", - "cygwin", - "davcache", - "dogtag", - "drools", - "drools", - "ejb3", - "errai", - "esb", - "fedora", - "freeipa", - "gatein", - "git", - "gfs", - "gravel", - "guvnor", - "hibernate", - "hornetq", - "iiop", - "infinispan", - "ironjacamar", - "javassist", - "jbcaa", - "jbcd", - "jboss", - "jbpm", - "jdcom", - "jgroups", - "jmx", - "jopr", - "jrunit", - "jsfunit", - "kosmos", - "liberation", - "makara", - "mass", - "maven", - "metajizer", - "metamatrix", - "mobicents", - "mod_cluster", - "modeshape", - "mugshot", - "mysql", - "netty", - "openshift", - "osgi", - "overlord", - "ovirt", - "penrose", - "picketbox", - "picketlink", - "portletbridge", - "portletswap", - "posse", - "pressgang", - "qumranet", - "railo", - "redhat", - "resteasy", - "rhca", - "rhcds", - "rhce", - "rhcsa", - "rhcss", - "rhct", - "rhcva", - "rhel", - "rhev", - "rhq", - "rhx", - "richfaces", - "riftsaw", - "savara", - "scribble", - "seam", - "shadowman", - "shotoku", - "shrinkwrap", - "snowdrop", - "solidice", - "spacewalk", - "spice", - "steamcannon", - "stormgrind", - "switchyard", - "tattletale", - "teiid", - "tohu", - "torquebox", - "weld", - "wise", - "xnio" - ], - "name":"id", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "LIST_CARTRIDGES":{ - "href":"https://openshift.redhat.com/broker/rest/cartridges", - "method":"GET", - "optional_params":[ - - ], - "rel":"List cartridges", - "required_params":[ - - ] - }, - "LIST_AUTHORIZATIONS":{ - "href":"https://openshift.redhat.com/broker/rest/user/authorizations", - "method":"GET", - "optional_params":[ - - ], - "rel":"List authorizations", - "required_params":[ - - ] - }, - "SHOW_AUTHORIZATION":{ - "href":"https://openshift.redhat.com/broker/rest/user/authorizations/:id", - "method":"GET", - "optional_params":[ - - ], - "rel":"Retrieve authorization :id", - "required_params":[ - { - "description":"Unique identifier of the authorization", - "invalid_options":[ - - ], - "name":":id", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "ADD_AUTHORIZATION":{ - "href":"https://openshift.redhat.com/broker/rest/user/authorizations", - "method":"POST", - "optional_params":[ - { - "default_value":"userinfo", - "description":"Select one or more scopes that this authorization will grant access to:\n\n* session\n Grants a client the authority to perform all API actions against your account. Valid for 1 day.\n* read\n Allows the client to access resources you own without making changes. Does not allow access to view authorization tokens. Valid for about 1 month.\n* userinfo\n Allows a client to view your login name, unique id, and your user capabilities. Valid for about 1 month.", - "name":"scope", - "type":"string", - "valid_options":[ - "session", - "read", - "userinfo" - ] - }, - { - "default_value":null, - "description":"A description to remind you what this authorization is for.", - "name":"note", - "type":"string", - "valid_options":[ - - ] - }, - { - "default_value":-1, - "description":"The number of seconds before this authorization expires. Out of range values will be set to the maximum allowed time.", - "name":"expires_in", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":false, - "description":"Attempt to locate and reuse an authorization that matches the scope and note and has not yet expired.", - "name":"reuse", - "type":"boolean", - "valid_options":[ - true, - false - ] - } - ], - "rel":"Add new authorization", - "required_params":[ - - ] - }, - "LIST_QUICKSTARTS":{ - "href":"https://www.openshift.com/api/v1/quickstarts/promoted.json", - "method":"GET", - "optional_params":[ - - ], - "rel":"List quickstarts", - "required_params":[ - - ] - }, - "SHOW_QUICKSTART":{ - "href":"https://www.openshift.com/api/v1/quickstarts/:id", - "method":"GET", - "optional_params":[ - - ], - "rel":"Retrieve quickstart with :id", - "required_params":[ - { - "description":"Unique identifier of the quickstart", - "invalid_options":[ - - ], - "name":":id", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "SEARCH_QUICKSTARTS":{ - "href":"https://www.openshift.com/api/v1/quickstarts.json", - "method":"GET", - "optional_params":[ - - ], - "rel":"Search quickstarts", - "required_params":[ - { - "description":"The search term to use for the quickstart", - "invalid_options":[ - - ], - "name":"search", - "type":"string", - "valid_options":[ - - ] - } - ] - } - }, - "messages":[ - - ], - "status":"ok", - "supported_api_versions":[ - 1.0, - 1.1, - 1.2, - 1.3, - 1.4 - ], - "type":"links", - "version":"1.2" -} \ No newline at end of file diff --git a/src/test/resources/samples/get-cartridges.json b/src/test/resources/samples/get-cartridges.json deleted file mode 100644 index 961293f0..00000000 --- a/src/test/resources/samples/get-cartridges.json +++ /dev/null @@ -1,737 +0,0 @@ -{ - "data":[ - { - "current_scale":0, - "description":"MongoDB is a scalable, high-performance, open source NoSQL database.", - "display_name":"MongoDB NoSQL Database 2.2", - "help_topics":[ - { - "Building with MongoDB":"https://openshift.redhat.com/community/developers/mongodb" - } - ], - "license":"ASL 2.0", - "license_url":"http://www.apache.org/licenses/LICENSE-2.0.txt", - "name":"mongodb-2.2", - "scales_from":1, - "scales_to":1, - "scales_with":"haproxy-1.4", - "supported_scales_from":1, - "supported_scales_to":1, - "tags":[ - "service", - "database", - "nosql", - "embedded" - ], - "type":"embedded", - "usage_rates":[ - - ], - "version":2.2, - "website":"http://www.10gen.com" - }, - { - "current_scale":0, - "description":"SwitchYard is a lightweight service delivery framework providing full lifecycle support for developing, deploying, and managing service-oriented applications.", - "display_name":"SwitchYard 0.6", - "help_topics":{ - "Developer Center":"https://openshift.redhat.com/community/developers" - }, - "license":"ASL 2.0", - "license_url":"", - "name":"switchyard-0.6", - "scales_from":1, - "scales_to":-1, - "scales_with":"haproxy-1.4", - "supported_scales_from":1, - "supported_scales_to":-1, - "tags":[ - "embedded" - ], - "type":"embedded", - "usage_rates":[ - - ], - "version":0.6, - "website":"http://www.jboss.org/switchyard" - }, - { - "current_scale":0, - "description":"Node.js is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications. Node.js is perfect for data-intensive real-time applications that run across distributed devices.", - "display_name":"Node.js 0.6", - "help_topics":{ - "Developer Center":"https://openshift.redhat.com/community/developers" - }, - "license":"ASL 2.0", - "license_url":"", - "name":"nodejs-0.6", - "scales_from":1, - "scales_to":-1, - "scales_with":"haproxy-1.4", - "supported_scales_from":1, - "supported_scales_to":-1, - "tags":[ - "service", - "javascript", - "nodejs", - "web_framework" - ], - "type":"standalone", - "usage_rates":[ - - ], - "version":0.6, - "website":"http://www.nodejs.org/" - }, - { - "current_scale":0, - "description":"JBoss Enterprise Web Server is the enterprise-class Java web container for large-scale lightweight web applications based on Tomcat 7. Build and deploy JSPs and Servlets in the cloud.", - "display_name":"Tomcat 7 (JBoss EWS 2.0)", - "help_topics":{ - "Developer Center":"https://openshift.redhat.com/community/developers" - }, - "license":"ASL 2.0", - "license_url":"", - "name":"jbossews-2.0", - "scales_from":1, - "scales_to":-1, - "scales_with":"haproxy-1.4", - "supported_scales_from":1, - "supported_scales_to":-1, - "tags":[ - "service", - "java", - "jboss", - "tomcat", - "tomcat7", - "web_framework" - ], - "type":"standalone", - "usage_rates":[ - - ], - "version":2.0, - "website":"http://www.redhat.com/products/jbossenterprisemiddleware/web-server/" - }, - { - "current_scale":0, - "description":"The Cron cartridge allows you to run command line programs at scheduled times. Use this for background jobs and periodic processing.", - "display_name":"Cron 1.4", - "help_topics":{ - "Getting Started Guide":"https://openshift.redhat.com/community/blogs/getting-started-with-cron-jobs-on-openshift" - }, - "license":"ASL 2.0", - "license_url":"http://www.apache.org/licenses/LICENSE-2.0.txt", - "name":"cron-1.4", - "scales_from":1, - "scales_to":1, - "scales_with":"haproxy-1.4", - "supported_scales_from":1, - "supported_scales_to":1, - "tags":[ - "embedded" - ], - "type":"embedded", - "usage_rates":[ - - ], - "version":1.4, - "website":"http://openshift.redhat.com/" - }, - { - "current_scale":0, - "description":"MySQL is a multi-user, multi-threaded SQL database server.", - "display_name":"MySQL Database 5.1", - "help_topics":[ - { - "Building with MySQL":"http://docs.redhat.com/docs/en-US/OpenShift/2.0/html/User_Guide/sect-User_Guide-Working_With_Database_Cartridges.html" - } - ], - "license":"ASL 2.0", - "license_url":"", - "name":"mysql-5.1", - "scales_from":1, - "scales_to":1, - "scales_with":"haproxy-1.4", - "supported_scales_from":1, - "supported_scales_to":1, - "tags":[ - "service", - "database", - "embedded" - ], - "type":"embedded", - "usage_rates":[ - - ], - "version":5.1, - "website":"http://www.mysql.com" - }, - { - "current_scale":0, - "description":"A PHP server by Zend for applications that require performance, reliability and security. Zend Server combined with Zend Studio offers code optimization, debugging, and code assist.", - "display_name":"Zend Server 5.6", - "help_topics":{ - "Developer Center":"https://openshift.redhat.com/community/developers" - }, - "license":"Commercial", - "license_url":"http://static.zend.com/topics/Zend-License-EULA-2010-09-2.pdf", - "name":"zend-5.6", - "scales_from":1, - "scales_to":1, - "scales_with":"haproxy-1.4", - "supported_scales_from":1, - "supported_scales_to":1, - "tags":[ - "service", - "php", - "web_framework" - ], - "type":"standalone", - "usage_rates":[ - - ], - "version":5.6, - "website":"http://www.zend.com" - }, - { - "current_scale":0, - "description":"Ruby is a dynamic, reflective, general-purpose object-oriented programming language. Popular development frameworks include Ruby on Rails and Sinatra.", - "display_name":"Ruby 1.9", - "help_topics":{ - "Developer Center":"https://openshift.redhat.com/community/developers" - }, - "license":"ASL 2.0", - "license_url":"", - "name":"ruby-1.9", - "scales_from":1, - "scales_to":-1, - "scales_with":"haproxy-1.4", - "supported_scales_from":1, - "supported_scales_to":-1, - "tags":[ - "service", - "ruby", - "web_framework" - ], - "type":"standalone", - "usage_rates":[ - - ], - "version":1.9, - "website":"http://www.ruby-lang.org" - }, - { - "current_scale":0, - "description":"PostgreSQL is an advanced Object-Relational database management system", - "display_name":"PostgreSQL Database 8.4", - "help_topics":[ - { - "Building with PostGreSQL":"http://docs.redhat.com/docs/en-US/OpenShift/2.0/html/User_Guide/sect-User_Guide-Working_With_Database_Cartridges.html" - } - ], - "license":"ASL 2.0", - "license_url":"", - "name":"postgresql-8.4", - "scales_from":1, - "scales_to":1, - "scales_with":"haproxy-1.4", - "supported_scales_from":1, - "supported_scales_to":1, - "tags":[ - "service", - "database", - "embedded" - ], - "type":"embedded", - "usage_rates":[ - - ], - "version":8.4, - "website":"http://www.postgresql.org" - }, - { - "current_scale":0, - "description":"Community supported Python 3.3 cartridge. See the community site for examples of bringing your cartridge to OpenShift. Python is a general-purpose, high-level programming language whose design philosophy emphasizes code readability. Popular development frameworks include: Django, Bottle, Pylons, Zope and TurboGears.", - "display_name":"Python 3.3 Community Cartridge", - "help_topics":{ - "Developer Center":"https://openshift.redhat.com/community/developers", - "Getting Started":"https://www.openshift.com/community/videos/getting-started-with-diy-applications-on-openshift" - }, - "license":"ASL 2.0", - "license_url":"http://www.apache.org/licenses/LICENSE-2.0.txt", - "name":"python-3.3", - "scales_from":1, - "scales_to":-1, - "scales_with":"haproxy-1.4", - "supported_scales_from":1, - "supported_scales_to":-1, - "tags":[ - "service", - "python", - "python3", - "web_framework", - "community" - ], - "type":"standalone", - "usage_rates":[ - - ], - "version":3.3, - "website":"http://www.python.org" - }, - { - "current_scale":0, - "description":"The leading open source Java EE6 application server for enterprise Java applications. Popular development frameworks include Seam, CDI, Weld, and Spring.", - "display_name":"JBoss Application Server 7.1", - "help_topics":{ - "Developer Center":"https://openshift.redhat.com/community/developers" - }, - "license":"ASL 2.0", - "license_url":"", - "name":"jbossas-7", - "scales_from":1, - "scales_to":-1, - "scales_with":"haproxy-1.4", - "supported_scales_from":1, - "supported_scales_to":-1, - "tags":[ - "service", - "web_framework", - "java", - "jboss" - ], - "type":"standalone", - "usage_rates":[ - - ], - "version":7, - "website":"http://www.jboss.org" - }, - { - "current_scale":0, - "description":"Acts as a load balancer for your web cartridge and will automatically scale up to handle incoming traffic. Is automatically added to scaled applications when they are created and cannot be removed or added to an application after the fact.", - "display_name":"OpenShift Web Balancer", - "help_topics":{ - - }, - "license":"unknown", - "license_url":"", - "name":"haproxy-1.4", - "scales_from":1, - "scales_to":1, - "scales_with":"haproxy-1.4", - "supported_scales_from":1, - "supported_scales_to":1, - "tags":[ - "web_proxy", - "scales", - "embedded" - ], - "type":"embedded", - "usage_rates":[ - - ], - "version":1.4, - "website":"http://haproxy.1wt.eu/" - }, - { - "current_scale":0, - "description":"MongoDB Monitoring Service (MMS) instruments MongoDB and provides information about current and historical operational metrics of your system.", - "display_name":"10gen Mongo Monitoring Service Agent 0.1", - "help_topics":{ - "MMS Manual":"https://mms.10gen.com/help/" - }, - "license":"unknown", - "license_url":"https://mms.10gen.com/links/terms-of-service", - "name":"10gen-mms-agent-0.1", - "scales_from":1, - "scales_to":1, - "scales_with":"haproxy-1.4", - "supported_scales_from":1, - "supported_scales_to":1, - "tags":[ - "embedded", - "database-support" - ], - "type":"embedded", - "usage_rates":[ - - ], - "version":0.1, - "website":"https://mms.10gen.com/" - }, - { - "current_scale":0, - "description":"Python is a general-purpose, high-level programming language whose design philosophy emphasizes code readability. Popular development frameworks include: Django, Bottle, Pylons, Zope and TurboGears.", - "display_name":"Python 2.6", - "help_topics":{ - "Developer Center":"https://openshift.redhat.com/community/developers" - }, - "license":"Python License", - "license_url":"http://docs.python.org/license.html", - "name":"python-2.6", - "scales_from":1, - "scales_to":-1, - "scales_with":"haproxy-1.4", - "supported_scales_from":1, - "supported_scales_to":-1, - "tags":[ - "python", - "python2", - "service", - "web_framework" - ], - "type":"standalone", - "usage_rates":[ - - ], - "version":2.6, - "website":"http://www.python.org" - }, - { - "current_scale":0, - "description":"Jenkins is a continuous integration (CI) build server that is deeply integrated into OpenShift. See the Jenkins info page for more.", - "display_name":"Jenkins Server 1.4", - "help_topics":{ - "Developer Center":"https://openshift.redhat.com/community/developers" - }, - "license":"ASL 2.0", - "license_url":"", - "name":"jenkins-1.4", - "scales_from":1, - "scales_to":1, - "scales_with":"haproxy-1.4", - "supported_scales_from":1, - "supported_scales_to":1, - "tags":[ - "web_framework", - "instant_app", - "ci", - "domain_scope" - ], - "type":"standalone", - "usage_rates":[ - - ], - "version":1.4, - "website":"http://www.jenkins-ci.org" - }, - { - "current_scale":0, - "description":"Ruby is a dynamic, reflective, general-purpose object-oriented programming language. We recommend using Ruby 1.9 for new applications.", - "display_name":"Ruby 1.8", - "help_topics":{ - "Developer Center":"https://openshift.redhat.com/community/developers" - }, - "license":"ASL 2.0", - "license_url":"", - "name":"ruby-1.8", - "scales_from":1, - "scales_to":-1, - "scales_with":"haproxy-1.4", - "supported_scales_from":1, - "supported_scales_to":-1, - "tags":[ - "service", - "ruby", - "web_framework" - ], - "type":"standalone", - "usage_rates":[ - - ], - "version":1.8, - "website":"http://www.ruby-lang.org" - }, - { - "current_scale":0, - "description":"Web based MySQL admin tool. Requires the MySQL cartridge to be installed first.", - "display_name":"phpMyAdmin 3.4", - "help_topics":{ - - }, - "license":"ASL 2.0", - "license_url":"", - "name":"phpmyadmin-3.4", - "scales_from":1, - "scales_to":1, - "scales_with":"haproxy-1.4", - "supported_scales_from":1, - "supported_scales_to":1, - "tags":[ - "embedded" - ], - "type":"embedded", - "usage_rates":[ - - ], - "version":3.4, - "website":"http://www.phpmyadmin.net/" - }, - { - "current_scale":0, - "description":"An experimental cartridge that demonstrates retrieving real-time statistics from your application. May be removed or replaced in the future.", - "display_name":"OpenShift Metrics 0.1", - "help_topics":{ - - }, - "license":"GPLv2", - "license_url":"", - "name":"metrics-0.1", - "scales_from":1, - "scales_to":1, - "scales_with":"haproxy-1.4", - "supported_scales_from":1, - "supported_scales_to":1, - "tags":[ - "embedded" - ], - "type":"embedded", - "usage_rates":[ - - ], - "version":"1.1.0", - "website":"https://openshift.redhat.com/" - }, - { - "current_scale":0, - "description":"Community supported Python 2.7 cartridge. See the community site for examples of bringing your cartridge to OpenShift. Python is a general-purpose, high-level programming language whose design philosophy emphasizes code readability. Popular development frameworks include: Django, Bottle, Pylons, Zope and TurboGears.", - "display_name":"Python 2.7 Community Cartridge", - "help_topics":{ - "Developer Center":"https://openshift.redhat.com/community/developers", - "Getting Started":"https://www.openshift.com/community/videos/getting-started-with-diy-applications-on-openshift" - }, - "license":"ASL 2.0", - "license_url":"http://www.apache.org/licenses/LICENSE-2.0.txt", - "name":"python-2.7", - "scales_from":1, - "scales_to":-1, - "scales_with":"haproxy-1.4", - "supported_scales_from":1, - "supported_scales_to":-1, - "tags":[ - "service", - "python", - "python2", - "web_framework", - "community" - ], - "type":"standalone", - "usage_rates":[ - - ], - "version":2.7, - "website":"http://www.python.org" - }, - { - "current_scale":0, - "description":"Market-leading open source enterprise platform for next-generation, highly transactional enterprise Java applications. Build and deploy enterprise Java in the cloud.", - "display_name":"JBoss Enterprise Application Platform 6.0", - "help_topics":{ - "Developer Center":"https://openshift.redhat.com/community/developers" - }, - "license":"ASL 2.0", - "license_url":"", - "name":"jbosseap-6", - "scales_from":1, - "scales_to":-1, - "scales_with":"haproxy-1.4", - "supported_scales_from":1, - "supported_scales_to":-1, - "tags":[ - "service", - "web_framework", - "java", - "jboss", - "jee_full_profile" - ], - "type":"standalone", - "usage_rates":[ - { - "plan_id":"silver", - "usd":0.03, - "cad":0.03, - "eur":0.02, - "duration":"hour" - } - ], - "version":6.0, - "website":"http://www.redhat.com/products/jbossenterprisemiddleware/application-platform/" - }, - { - "current_scale":0, - "description":"Web based MongoDB administration tool. Requires the MongoDB cartridge to be installed first.", - "display_name":"RockMongo 1.1", - "help_topics":{ - - }, - "license":"ASL 2.0", - "license_url":"", - "name":"rockmongo-1.1", - "scales_from":1, - "scales_to":1, - "scales_with":"haproxy-1.4", - "supported_scales_from":1, - "supported_scales_to":1, - "tags":[ - "embedded" - ], - "type":"embedded", - "usage_rates":[ - - ], - "version":1.1, - "website":"http://rockmongo.com/" - }, - { - "current_scale":0, - "description":"The Do-It-Yourself (DIY) application type is a blank slate for trying unsupported languages, frameworks, and middleware on OpenShift. See the community site for examples of bringing your favorite framework to OpenShift.", - "display_name":"Do-It-Yourself", - "help_topics":{ - "Getting Started":"https://www.openshift.com/community/videos/getting-started-with-diy-applications-on-openshift" - }, - "license":"ASL 2.0", - "license_url":"http://www.apache.org/licenses/LICENSE-2.0.txt", - "name":"diy-0.1", - "scales_from":1, - "scales_to":1, - "scales_with":"haproxy-1.4", - "supported_scales_from":1, - "supported_scales_to":1, - "tags":[ - "web_framework", - "experimental" - ], - "type":"standalone", - "usage_rates":[ - - ], - "version":0.1, - "website":"" - }, - { - "current_scale":0, - "description":"JBoss Enterprise Web Server is the enterprise-class Java web container for large-scale lightweight web applications based on Tomcat 6. Build and deploy JSPs and Servlets in the cloud.", - "display_name":"Tomcat 6 (JBoss EWS 1.0)", - "help_topics":{ - "Developer Center":"https://openshift.redhat.com/community/developers" - }, - "license":"ASL 2.0", - "license_url":"", - "name":"jbossews-1.0", - "scales_from":1, - "scales_to":-1, - "scales_with":"haproxy-1.4", - "supported_scales_from":1, - "supported_scales_to":-1, - "tags":[ - "service", - "java", - "jboss", - "tomcat", - "tomcat6", - "web_framework" - ], - "type":"standalone", - "usage_rates":[ - - ], - "version":1.0, - "website":"http://www.redhat.com/products/jbossenterprisemiddleware/web-server/" - }, - { - "current_scale":0, - "description":"The Jenkins client connects to your Jenkins application and enables builds and testing of your application. Requires the Jenkins Application to be created via the new application page.", - "display_name":"Jenkins Client 1.4", - "help_topics":{ - "Developer Center":"https://openshift.redhat.com/community/developers" - }, - "license":"ASL 2.0", - "license_url":"", - "name":"jenkins-client-1.4", - "scales_from":1, - "scales_to":1, - "scales_with":"haproxy-1.4", - "supported_scales_from":1, - "supported_scales_to":1, - "tags":[ - "ci_builder", - "embedded" - ], - "type":"embedded", - "usage_rates":[ - - ], - "version":1.4, - "website":"http://www.jenkins-ci.org" - }, - { - "current_scale":0, - "description":"PHP is a general-purpose server-side scripting language originally designed for Web development to produce dynamic Web pages. Popular development frameworks include: CakePHP, Zend, Symfony, and Code Igniter.", - "display_name":"PHP 5.3", - "help_topics":{ - "Developer Center":"https://openshift.redhat.com/community/developers" - }, - "license":"The PHP License, version 3.0", - "license_url":"http://www.php.net/license/3_0.txt", - "name":"php-5.3", - "scales_from":1, - "scales_to":-1, - "scales_with":"haproxy-1.4", - "supported_scales_from":1, - "supported_scales_to":-1, - "tags":[ - "service", - "php", - "web_framework" - ], - "type":"standalone", - "usage_rates":[ - - ], - "version":5.3, - "website":"http://www.php.net" - }, - { - "current_scale":0, - "description":"Perl is a high-level, general-purpose, interpreted, dynamic programming language. Dynamic content produced by Perl scripts can be served in response to incoming web requests.", - "display_name":"Perl 5.10", - "help_topics":{ - "Developer Center":"https://openshift.redhat.com/community/developers" - }, - "license":"ASL 2.0", - "license_url":"", - "name":"perl-5.10", - "scales_from":1, - "scales_to":-1, - "scales_with":"haproxy-1.4", - "supported_scales_from":1, - "supported_scales_to":-1, - "tags":[ - "service", - "perl", - "web_framework" - ], - "type":"standalone", - "usage_rates":[ - - ], - "version":5.1, - "website":"http://www.perl.org" - } - ], - "messages":[ - - ], - "status":"ok", - "supported_api_versions":[ - 1.0, - 1.1, - 1.2, - 1.3, - 1.4 - ], - "type":"cartridges", - "version":"1.2" -} \ No newline at end of file diff --git a/src/test/resources/samples/get-domains-foobar_ko-notfound.json b/src/test/resources/samples/get-domains-foobar_ko-notfound.json deleted file mode 100644 index bd7582fc..00000000 --- a/src/test/resources/samples/get-domains-foobar_ko-notfound.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "data":null, - "messages":[ - { - "exit_code":127, - "field":null, - "severity":"error", - "text":"Domain foobar not found." - } - ], - "status":"not_found", - "supported_api_versions":[ - 1.0, - 1.1, - 1.2, - 1.3, - 1.4 - ], - "type":null, - "version":"1.2" -} \ No newline at end of file diff --git a/src/test/resources/samples/get-domains-foobars.json b/src/test/resources/samples/get-domains-foobars.json deleted file mode 100644 index f25f3d7c..00000000 --- a/src/test/resources/samples/get-domains-foobars.json +++ /dev/null @@ -1,260 +0,0 @@ -{ - "data":{ - "id":"foobars", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobars", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get domain", - "required_params":[ - - ] - }, - "LIST_APPLICATIONS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobars/applications", - "method":"GET", - "optional_params":[ - - ], - "rel":"List applications", - "required_params":[ - - ] - }, - "ADD_APPLICATION":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobars/applications", - "method":"POST", - "optional_params":[ - { - "default_value":null, - "description":"Array of one or more cartridge names. i.e. [\"php-5.3\", \"mongodb-2.2\"]", - "name":"cartridges", - "type":"array", - "valid_options":[ - "nodejs-0.6", - "jbossews-2.0", - "zend-5.6", - "ruby-1.9", - "python-3.3", - "jbossas-7", - "python-2.6", - "jenkins-1.4", - "ruby-1.8", - "python-2.7", - "jbosseap-6", - "diy-0.1", - "jbossews-1.0", - "php-5.3", - "perl-5.10" - ] - }, - { - "default_value":false, - "description":"Mark application as scalable", - "name":"scale", - "type":"boolean", - "valid_options":[ - true, - false - ] - }, - { - "default_value":"small", - "description":"The size of the gear", - "name":"gear_profile", - "type":"string", - "valid_options":[ - "small", - "medium" - ] - }, - { - "default_value":null, - "description":"A URL to a Git source code repository that will be the basis for this application.", - "name":"initial_git_url", - "type":"string", - "valid_options":[ - - ] - } - ], - "rel":"Create new application", - "required_params":[ - { - "description":"Name of the application", - "invalid_options":[ - "amentra", - "aop", - "apiviz", - "arquillian", - "blacktie", - "boxgrinder", - "byteman", - "cirras", - "cloud", - "cloudforms", - "cygwin", - "davcache", - "dogtag", - "drools", - "drools", - "ejb3", - "errai", - "esb", - "fedora", - "freeipa", - "gatein", - "git", - "gfs", - "gravel", - "guvnor", - "hibernate", - "hornetq", - "iiop", - "infinispan", - "ironjacamar", - "javassist", - "jbcaa", - "jbcd", - "jboss", - "jbpm", - "jdcom", - "jgroups", - "jmx", - "jopr", - "jrunit", - "jsfunit", - "kosmos", - "liberation", - "makara", - "mass", - "maven", - "metajizer", - "metamatrix", - "mobicents", - "mod_cluster", - "modeshape", - "mugshot", - "mysql", - "netty", - "openshift", - "osgi", - "overlord", - "ovirt", - "penrose", - "picketbox", - "picketlink", - "portletbridge", - "portletswap", - "posse", - "pressgang", - "qumranet", - "railo", - "redhat", - "resteasy", - "rhca", - "rhcds", - "rhce", - "rhcsa", - "rhcss", - "rhct", - "rhcva", - "rhel", - "rhev", - "rhq", - "rhx", - "richfaces", - "riftsaw", - "savara", - "scribble", - "seam", - "shadowman", - "shotoku", - "shrinkwrap", - "snowdrop", - "solidice", - "spacewalk", - "spice", - "steamcannon", - "stormgrind", - "switchyard", - "tattletale", - "teiid", - "tohu", - "torquebox", - "weld", - "wise", - "xnio" - ], - "name":"name", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobars", - "method":"PUT", - "optional_params":[ - - ], - "rel":"Update domain", - "required_params":[ - { - "description":"Name of the domain", - "invalid_options":[ - - ], - "name":"id", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobars", - "method":"DELETE", - "optional_params":[ - { - "default_value":false, - "description":"Force delete domain. i.e. delete any applications under this domain", - "name":"force", - "type":"boolean", - "valid_options":[ - true, - false - ] - } - ], - "rel":"Delete domain", - "required_params":[ - - ] - } - }, - "suffix":"rhcloud.com" - }, - "errors":{ - - }, - "messages":[ - - ], - "status":"ok", - "supported_api_versions":[ - 1.0, - 1.1, - 1.2, - 1.3, - 1.4 - ], - "type":"domain", - "version":"1.2" -} \ No newline at end of file diff --git a/src/test/resources/samples/get-domains-foobarz-applications-downloadablecart.json b/src/test/resources/samples/get-domains-foobarz-applications-downloadablecart.json deleted file mode 100644 index defcd85c..00000000 --- a/src/test/resources/samples/get-domains-foobarz-applications-downloadablecart.json +++ /dev/null @@ -1,1079 +0,0 @@ -{ - "api_version":1.2, - "data":{ - "aliases":[ - - ], - "app_url":"http://downloadablecart-foobarz.rhcloud.com/", - "build_job_url":null, - "building_app":"jenkins", - "building_with":null, - "cartridges":[ - { - "additional_gear_storage":0, - "base_gear_storage":1, - "collocated_with":[ - "andygoldstein-foreman-0.63.0", - "mysql-5.1" - ], - "current_scale":1, - "description":"OpenShift Go cartridge", - "display_name":"Go 1.1", - "gear_profile":"small", - "help_topics":{ - "Building with MySQL":"http://docs.redhat.com/docs/en-US/OpenShift/2.0/html/User_Guide/sect-User_Guide-Working_With_Database_Cartridges.html" - }, - "license":"unknown", - "license_url":"", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/cartridges/smarterclayton-go-1.1", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get cartridge", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/cartridges/smarterclayton-go-1.1", - "method":"PUT", - "optional_params":[ - { - "default_value":null, - "description":"Additional filesystem storage in gigabytes on each gear having cartridge smarterclayton-go-1.1", - "name":"additional_gear_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Minimum number of gears having cartridge smarterclayton-go-1.1", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears having cartridge smarterclayton-go-1.1", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - } - ], - "rel":"Update cartridge configuration", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/cartridges/smarterclayton-go-1.1/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start embedded cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/cartridges/smarterclayton-go-1.1/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/cartridges/smarterclayton-go-1.1/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/cartridges/smarterclayton-go-1.1/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/cartridges/smarterclayton-go-1.1", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete cartridge", - "required_params":[ - - ] - } - }, - "name":"smarterclayton-go-1.1", - "properties":[ - - ], - "scales_from":1, - "scales_to":1, - "scales_with":null, - "status_messages":null, - "supported_scales_from":1, - "supported_scales_to":1, - "tags":[ - "service", - "golang", - "web_framework" - ], - "type":"standalone", - "url":"http://cartreflect-claytondev.rhcloud.com/reflect?github=smarterclayton/openshift-go-cart", - "usage_rates":[ - - ], - "version":"1.1", - "website":"https://github.com/smarterclayton/openshift-go-cart" - }, - { - "additional_gear_storage":0, - "base_gear_storage":1, - "collocated_with":[ - "smarterclayton-go-1.1", - "mysql-5.1" - ], - "current_scale":1, - "description":"Foreman TODO", - "display_name":"Foreman", - "gear_profile":"small", - "help_topics":{ - "Building with MySQL":"http://docs.redhat.com/docs/en-US/OpenShift/2.0/html/User_Guide/sect-User_Guide-Working_With_Database_Cartridges.html" - }, - "license":"ASL 2.0", - "license_url":"http://www.apache.org/licenses/LICENSE-2.0.txt", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/cartridges/andygoldstein-foreman-0.63.0", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get cartridge", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/cartridges/andygoldstein-foreman-0.63.0", - "method":"PUT", - "optional_params":[ - { - "default_value":null, - "description":"Additional filesystem storage in gigabytes on each gear having cartridge andygoldstein-foreman-0.63.0", - "name":"additional_gear_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Minimum number of gears having cartridge andygoldstein-foreman-0.63.0", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears having cartridge andygoldstein-foreman-0.63.0", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - } - ], - "rel":"Update cartridge configuration", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/cartridges/andygoldstein-foreman-0.63.0/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start embedded cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/cartridges/andygoldstein-foreman-0.63.0/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/cartridges/andygoldstein-foreman-0.63.0/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/cartridges/andygoldstein-foreman-0.63.0/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/cartridges/andygoldstein-foreman-0.63.0", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete cartridge", - "required_params":[ - - ] - } - }, - "name":"andygoldstein-foreman-0.63.0", - "properties":[ - - ], - "scales_from":1, - "scales_to":1, - "scales_with":null, - "status_messages":null, - "supported_scales_from":1, - "supported_scales_to":1, - "tags":[ - "embedded" - ], - "type":"embedded", - "url":"http://cartreflect-claytondev.rhcloud.com/reflect?github=ncdc/openshift-foreman-cartridge", - "usage_rates":[ - - ], - "version":"0.63.0", - "website":"https://github.com/ncdc/openshift-foreman-cartridge" - }, - { - "additional_gear_storage":0, - "base_gear_storage":1, - "collocated_with":[ - "smarterclayton-go-1.1", - "andygoldstein-foreman-0.63.0" - ], - "current_scale":1, - "description":"MySQL is a multi-user, multi-threaded SQL database server.", - "display_name":"MySQL Database 5.1", - "gear_profile":"small", - "help_topics":{ - "Building with MySQL":"http://docs.redhat.com/docs/en-US/OpenShift/2.0/html/User_Guide/sect-User_Guide-Working_With_Database_Cartridges.html" - }, - "license":"GPL", - "license_url":"", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/cartridges/mysql-5.1", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get cartridge", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/cartridges/mysql-5.1", - "method":"PUT", - "optional_params":[ - { - "default_value":null, - "description":"Additional filesystem storage in gigabytes on each gear having cartridge mysql-5.1", - "name":"additional_gear_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Minimum number of gears having cartridge mysql-5.1", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears having cartridge mysql-5.1", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - } - ], - "rel":"Update cartridge configuration", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/cartridges/mysql-5.1/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start embedded cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/cartridges/mysql-5.1/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/cartridges/mysql-5.1/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/cartridges/mysql-5.1/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/cartridges/mysql-5.1", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete cartridge", - "required_params":[ - - ] - } - }, - "name":"mysql-5.1", - "properties":[ - { - "name":"username", - "type":"cart_data", - "description":"Root user on mysql database", - "value":"adminiMvSSz3" - }, - { - "name":"password", - "type":"cart_data", - "description":"Password for root user on mysql database", - "value":"CZ1_Q4HiRAif" - }, - { - "name":"database_name", - "type":"cart_data", - "description":"MySQL DB name", - "value":"downloadablecart" - }, - { - "name":"connection_url", - "type":"cart_data", - "description":"MySQL DB connection URL", - "value":"mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/" - } - ], - "scales_from":1, - "scales_to":1, - "scales_with":null, - "status_messages":null, - "supported_scales_from":1, - "supported_scales_to":1, - "tags":[ - "service", - "database", - "embedded" - ], - "type":"embedded", - "url":null, - "usage_rates":[ - - ], - "version":"5.1", - "website":"http://www.mysql.com" - } - ], - "creation_time":"2013-09-16T15:43:38Z", - "domain_id":"foobarz", - "embedded":{ - "andygoldstein-foreman-0.63.0":{ - - }, - "mysql-5.1":{ - "connection_url":"mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/", - "username":"adminiMvSSz3", - "password":"CZ1_Q4HiRAif", - "database_name":"downloadablecart", - "info":"Connection URL: mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/" - } - }, - "framework":"smarterclayton-go-1.1", - "gear_count":1, - "gear_profile":"small", - "git_url":"ssh://5237272a50044636e60000b3@downloadablecart-foobarz.rhcloud.com/~/git/downloadablecart.git/", - "health_check_path":"health", - "initial_git_url":null, - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get application", - "required_params":[ - - ] - }, - "GET_DESCRIPTOR":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/descriptor", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get application descriptor", - "required_params":[ - - ] - }, - "GET_GEAR_GROUPS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/gear_groups", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get application gear groups", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "FORCE_STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Force stop application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "force-stop" - ] - } - ] - }, - "ADD_ALIAS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Add application alias", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "add-alias" - ] - }, - { - "description":"The server alias for the application", - "invalid_options":[ - - ], - "name":"alias", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "REMOVE_ALIAS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Remove application alias", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "remove-alias" - ] - }, - { - "description":"The application alias to be removed", - "invalid_options":[ - - ], - "name":"alias", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "SCALE_UP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Scale up application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "scale-up" - ] - } - ] - }, - "SCALE_DOWN":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Scale down application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "scale-down" - ] - } - ] - }, - "TIDY":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Tidy the application framework", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "tidy" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload the application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "THREAD_DUMP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Trigger thread dump", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "thread-dump" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete application", - "required_params":[ - - ] - }, - "ADD_CARTRIDGE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/cartridges", - "method":"POST", - "optional_params":[ - { - "default_value":null, - "description":"The component to colocate with", - "name":"colocate_with", - "type":"string", - "valid_options":[ - "smarterclayton-go-1.1", - "andygoldstein-foreman-0.63.0", - "mysql-5.1" - ] - }, - { - "default_value":null, - "description":"Minimum number of gears to run the component on.", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears to run the component on.", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Additional GB of space to request on all gears running this component.", - "name":"additional_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Add or Update application environment variables, e.g.:[{'name':'FOO', 'value':'123'}, {'name':'BAR', 'value':'abc'}]", - "name":"environment_variables", - "type":"array", - "valid_options":[ - - ] - } - ], - "rel":"Add embedded cartridge", - "required_params":[ - { - "description":"framework-type, e.g.: mongodb-2.2", - "invalid_options":[ - - ], - "name":"name", - "type":"string", - "valid_options":[ - "cron-1.4", - "phpmyadmin-4", - "rockmongo-1.1", - "switchyard-0", - "metrics-0.1", - "10gen-mms-agent-0.1", - "mysql-5.1", - "haproxy-1.4", - "postgresql-9.2", - "postgresql-8.4", - "mongodb-2.2", - "jenkins-client-1", - "andygoldstein-foreman-0.63.0" - ] - } - ] - }, - "LIST_CARTRIDGES":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/cartridges", - "method":"GET", - "optional_params":[ - - ], - "rel":"List embedded cartridges", - "required_params":[ - - ] - }, - "DNS_RESOLVABLE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/dns_resolvable", - "method":"GET", - "optional_params":[ - - ], - "rel":"Resolve DNS", - "required_params":[ - - ] - }, - "SET_UNSET_ENVIRONMENT_VARIABLES":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/environment-variables", - "method":"POST", - "optional_params":[ - { - "default_value":null, - "description":"Name of the environment variable to add/update", - "name":"name", - "type":"string", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Value of the environment variable", - "name":"value", - "type":"string", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Add/Update/Delete application environment variables, e.g. Add/Update: [{'name':'FOO', 'value':'123'}, {'name':'BAR', 'value':'abc'}], Delete: [{'name':'FOO'}, {'name':'BAR'}]", - "name":"environment_variables", - "type":"array", - "valid_options":[ - - ] - } - ], - "rel":"Add/Update/Delete one or more environment variables", - "required_params":[ - - ] - }, - "LIST_ENVIRONMENT_VARIABLES":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/environment-variables", - "method":"GET", - "optional_params":[ - - ], - "rel":"List all environment variables", - "required_params":[ - - ] - } - }, - "name":"downloadablecart", - "scalable":false, - "ssh_url":"ssh://5237272a50044636e60000b3@downloadablecart-foobarz.rhcloud.com", - "uuid":"5237272a50044636e60000b3" - }, - "messages":[ - { - "exit_code":0, - "field":null, - "severity":"info", - "text":"Application 'downloadablecart' found" - } - ], - "status":"ok", - "supported_api_versions":[ - 1.0, - 1.1, - 1.2, - 1.3, - 1.4, - 1.5, - 1.6 - ], - "type":"application", - "version":"1.2" -} \ No newline at end of file diff --git a/src/test/resources/samples/get-domains-foobarz-applications-springeap6-cartidges-mysql.json b/src/test/resources/samples/get-domains-foobarz-applications-springeap6-cartidges-mysql.json deleted file mode 100644 index fba7be75..00000000 --- a/src/test/resources/samples/get-domains-foobarz-applications-springeap6-cartidges-mysql.json +++ /dev/null @@ -1,243 +0,0 @@ -{ - "data":{ - "additional_gear_storage":0, - "base_gear_storage":1, - "collocated_with":[ - "jbosseap-6", - "mongodb-2.2" - ], - "current_scale":1, - "description":"MySQL is a multi-user, multi-threaded SQL database server.", - "display_name":"MySQL Database 5.1", - "gear_profile":"small", - "help_topics":[ - { - "Building with MySQL":"http://docs.redhat.com/docs/en-US/OpenShift/2.0/html/User_Guide/sect-User_Guide-Working_With_Database_Cartridges.html" - } - ], - "license":"ASL 2.0", - "license_url":"", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mysql-5.1", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get cartridge", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mysql-5.1", - "method":"PUT", - "optional_params":[ - { - "default_value":null, - "description":"Additional filesystem storage in gigabytes on each gear having cartridge mysql-5.1", - "name":"additional_gear_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Minimum number of gears having cartridge mysql-5.1", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears having cartridge mysql-5.1", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - } - ], - "rel":"Update cartridge configuration", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mysql-5.1/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start embedded cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mysql-5.1/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mysql-5.1/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mysql-5.1/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mysql-5.1", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete cartridge", - "required_params":[ - - ] - } - }, - "name":"mysql-5.1", - "properties":[ - { - "name":"username", - "type":"cart_data", - "description":"Root user on mysql database", - "value":"adminJ4BLdLx" - }, - { - "name":"password", - "type":"cart_data", - "description":"Password for root user on mysql database", - "value":"usgNUhI7yxXt" - }, - { - "name":"database_name", - "type":"cart_data", - "description":"MySQL DB name", - "value":"springeap6" - }, - { - "name":"connection_url", - "type":"cart_data", - "description":"MySQL DB connection URL", - "value":"mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/" - } - ], - "scales_from":1, - "scales_to":1, - "scales_with":null, - "status_messages":null, - "supported_scales_from":1, - "supported_scales_to":1, - "tags":[ - "service", - "database", - "embedded" - ], - "type":"embedded", - "usage_rates":[ - - ], - "version":5.1, - "website":"http://www.mysql.com" - }, - "errors":{ - - }, - "messages":[ - { - "exit_code":null, - "field":null, - "severity":"info", - "text":"Added mysql-5.1 to application springeap6" - }, - { - "exit_code":0, - "field":"result", - "severity":"info", - "text":"\nMySQL 5.1 database added. Please make note of these credentials:\n\n Root User: adminJ4BLdLx\n Root Password: usgNUhI7yxXt\n Database Name: springeap6\n\nConnection URL: mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/\n\nYou can manage your new MySQL database by also embedding phpmyadmin-3.4.\nThe phpmyadmin username and password will be the same as the MySQL credentials above.\n" - }, - { - "exit_code":0, - "field":"appinfo", - "severity":"info", - "text":"Connection URL: mysql://127.13.125.1:3306/\n" - } - ], - "status":"created", - "supported_api_versions":[ - 1.0, - 1.1, - 1.2, - 1.3, - 1.4 - ], - "type":"cartridge", - "version":"1.2" -} \ No newline at end of file diff --git a/src/test/resources/samples/get-domains-foobarz-applications-springeap6-cartridges_1embedded.json b/src/test/resources/samples/get-domains-foobarz-applications-springeap6-cartridges_1embedded.json deleted file mode 100644 index 77c5c158..00000000 --- a/src/test/resources/samples/get-domains-foobarz-applications-springeap6-cartridges_1embedded.json +++ /dev/null @@ -1,466 +0,0 @@ -{ - "data":[ - { - "additional_gear_storage":0, - "base_gear_storage":1, - "collocated_with":[ - "mongodb-2.2" - ], - "current_scale":1, - "description":"Market-leading open source enterprise platform for next-generation, highly transactional enterprise Java applications. Build and deploy enterprise Java in the cloud.", - "display_name":"JBoss Enterprise Application Platform 6.0", - "gear_profile":"small", - "help_topics":[ - { - "Building with MongoDB":"https://openshift.redhat.com/community/developers/mongodb" - } - ], - "license":"ASL 2.0", - "license_url":"", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get cartridge", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6", - "method":"PUT", - "optional_params":[ - { - "default_value":null, - "description":"Additional filesystem storage in gigabytes on each gear having cartridge jbosseap-6", - "name":"additional_gear_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Minimum number of gears having cartridge jbosseap-6", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears having cartridge jbosseap-6", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - } - ], - "rel":"Update cartridge configuration", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start embedded cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete cartridge", - "required_params":[ - - ] - } - }, - "name":"jbosseap-6", - "properties":[ - { - "name":"OPENSHIFT_JBOSSEAP_LOG_DIR", - "type":"environment", - "description":"Directory to store application log files." - }, - { - "name":"OPENSHIFT_TMP_DIR", - "type":"environment", - "description":"Directory to store application temporary files." - }, - { - "name":"OPENSHIFT_REPO_DIR", - "type":"environment", - "description":"Application root directory where application files reside. This directory is reset every time you do a git-push" - }, - { - "name":"OPENSHIFT_INTERNAL_PORT", - "type":"environment", - "description":"Internal port to which the web-framework binds to." - }, - { - "name":"OPENSHIFT_INTERNAL_IP", - "type":"environment", - "description":"Internal IP to which the web-framework binds to." - }, - { - "name":"OPENSHIFT_APP_DNS", - "type":"environment", - "description":"Fully qualified domain name for the application." - }, - { - "name":"OPENSHIFT_APP_NAME", - "type":"environment", - "description":"Application name" - }, - { - "name":"OPENSHIFT_DATA_DIR", - "type":"environment", - "description":"Directory to store application data files. Preserved across git-pushes. Not shared across gears." - }, - { - "name":"OPENSHIFT_APP_UUID", - "type":"environment", - "description":"Unique ID which identified the application. Does not change between gears." - }, - { - "name":"OPENSHIFT_GEAR_UUID", - "type":"environment", - "description":"Unique ID which identified the gear. This value changes between gears." - } - ], - "scales_from":1, - "scales_to":1, - "scales_with":null, - "status_messages":null, - "supported_scales_from":1, - "supported_scales_to":1, - "tags":[ - "service", - "web_framework", - "java", - "jboss", - "jee_full_profile" - ], - "type":"standalone", - "usage_rates":[ - { - "plan_id":"silver", - "usd":0.03, - "cad":0.03, - "eur":0.02, - "duration":"hour" - } - ], - "version":6.0, - "website":"http://www.redhat.com/products/jbossenterprisemiddleware/application-platform/" - }, - { - "additional_gear_storage":0, - "base_gear_storage":1, - "collocated_with":[ - "jbosseap-6" - ], - "current_scale":1, - "description":"MongoDB is a scalable, high-performance, open source NoSQL database.", - "display_name":"MongoDB NoSQL Database 2.2", - "gear_profile":"small", - "help_topics":[ - { - "Building with MongoDB":"https://openshift.redhat.com/community/developers/mongodb" - } - ], - "license":"ASL 2.0", - "license_url":"http://www.apache.org/licenses/LICENSE-2.0.txt", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get cartridge", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2", - "method":"PUT", - "optional_params":[ - { - "default_value":null, - "description":"Additional filesystem storage in gigabytes on each gear having cartridge mongodb-2.2", - "name":"additional_gear_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Minimum number of gears having cartridge mongodb-2.2", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears having cartridge mongodb-2.2", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - } - ], - "rel":"Update cartridge configuration", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start embedded cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete cartridge", - "required_params":[ - - ] - } - }, - "name":"mongodb-2.2", - "properties":[ - { - "name":"username", - "type":"cart_data", - "description":"Root user on mongo database", - "value":"admin" - }, - { - "name":"password", - "type":"cart_data", - "description":"Password for root user on mongo database", - "value":"NNxXMT1z8dVj" - }, - { - "name":"database_name", - "type":"cart_data", - "description":"Mongo DB name", - "value":"springeap6" - }, - { - "name":"connection_url", - "type":"cart_data", - "description":"Mongo DB connection URL", - "value":"mongodb://$OPENSHIFT_MONGODB_DB_HOST:$OPENSHIFT_MONGODB_DB_PORT/" - } - ], - "scales_from":1, - "scales_to":1, - "scales_with":null, - "status_messages":null, - "supported_scales_from":1, - "supported_scales_to":1, - "tags":[ - "service", - "database", - "nosql", - "embedded" - ], - "type":"embedded", - "usage_rates":[ - - ], - "version":2.2, - "website":"http://www.10gen.com" - } - ], - "messages":[ - - ], - "status":"ok", - "supported_api_versions":[ - 1.0, - 1.1, - 1.2, - 1.3, - 1.4 - ], - "type":"cartridges", - "version":"1.2" -} \ No newline at end of file diff --git a/src/test/resources/samples/get-domains-foobarz-applications-springeap6-cartridges_2embedded.json b/src/test/resources/samples/get-domains-foobarz-applications-springeap6-cartridges_2embedded.json deleted file mode 100644 index d6b6a191..00000000 --- a/src/test/resources/samples/get-domains-foobarz-applications-springeap6-cartridges_2embedded.json +++ /dev/null @@ -1,676 +0,0 @@ -{ - "data":[ - { - "additional_gear_storage":0, - "base_gear_storage":1, - "collocated_with":[ - "mongodb-2.2", - "mysql-5.1" - ], - "current_scale":1, - "description":"Market-leading open source enterprise platform for next-generation, highly transactional enterprise Java applications. Build and deploy enterprise Java in the cloud.", - "display_name":"JBoss Enterprise Application Platform 6.0", - "gear_profile":"small", - "help_topics":[ - { - "Building with MySQL":"http://docs.redhat.com/docs/en-US/OpenShift/2.0/html/User_Guide/sect-User_Guide-Working_With_Database_Cartridges.html" - } - ], - "license":"ASL 2.0", - "license_url":"", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get cartridge", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6", - "method":"PUT", - "optional_params":[ - { - "default_value":null, - "description":"Additional filesystem storage in gigabytes on each gear having cartridge jbosseap-6", - "name":"additional_gear_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Minimum number of gears having cartridge jbosseap-6", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears having cartridge jbosseap-6", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - } - ], - "rel":"Update cartridge configuration", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start embedded cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete cartridge", - "required_params":[ - - ] - } - }, - "name":"jbosseap-6", - "properties":[ - { - "name":"OPENSHIFT_JBOSSEAP_LOG_DIR", - "type":"environment", - "description":"Directory to store application log files." - }, - { - "name":"OPENSHIFT_TMP_DIR", - "type":"environment", - "description":"Directory to store application temporary files." - }, - { - "name":"OPENSHIFT_REPO_DIR", - "type":"environment", - "description":"Application root directory where application files reside. This directory is reset every time you do a git-push" - }, - { - "name":"OPENSHIFT_INTERNAL_PORT", - "type":"environment", - "description":"Internal port to which the web-framework binds to." - }, - { - "name":"OPENSHIFT_INTERNAL_IP", - "type":"environment", - "description":"Internal IP to which the web-framework binds to." - }, - { - "name":"OPENSHIFT_APP_DNS", - "type":"environment", - "description":"Fully qualified domain name for the application." - }, - { - "name":"OPENSHIFT_APP_NAME", - "type":"environment", - "description":"Application name" - }, - { - "name":"OPENSHIFT_DATA_DIR", - "type":"environment", - "description":"Directory to store application data files. Preserved across git-pushes. Not shared across gears." - }, - { - "name":"OPENSHIFT_APP_UUID", - "type":"environment", - "description":"Unique ID which identified the application. Does not change between gears." - }, - { - "name":"OPENSHIFT_GEAR_UUID", - "type":"environment", - "description":"Unique ID which identified the gear. This value changes between gears." - } - ], - "scales_from":1, - "scales_to":1, - "scales_with":null, - "status_messages":null, - "supported_scales_from":1, - "supported_scales_to":1, - "tags":[ - "service", - "web_framework", - "java", - "jboss", - "jee_full_profile" - ], - "type":"standalone", - "usage_rates":[ - { - "plan_id":"silver", - "usd":0.03, - "cad":0.03, - "eur":0.02, - "duration":"hour" - } - ], - "version":6.0, - "website":"http://www.redhat.com/products/jbossenterprisemiddleware/application-platform/" - }, - { - "additional_gear_storage":0, - "base_gear_storage":1, - "collocated_with":[ - "jbosseap-6", - "mysql-5.1" - ], - "current_scale":1, - "description":"MongoDB is a scalable, high-performance, open source NoSQL database.", - "display_name":"MongoDB NoSQL Database 2.2", - "gear_profile":"small", - "help_topics":[ - { - "Building with MySQL":"http://docs.redhat.com/docs/en-US/OpenShift/2.0/html/User_Guide/sect-User_Guide-Working_With_Database_Cartridges.html" - } - ], - "license":"ASL 2.0", - "license_url":"http://www.apache.org/licenses/LICENSE-2.0.txt", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get cartridge", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2", - "method":"PUT", - "optional_params":[ - { - "default_value":null, - "description":"Additional filesystem storage in gigabytes on each gear having cartridge mongodb-2.2", - "name":"additional_gear_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Minimum number of gears having cartridge mongodb-2.2", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears having cartridge mongodb-2.2", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - } - ], - "rel":"Update cartridge configuration", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start embedded cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete cartridge", - "required_params":[ - - ] - } - }, - "name":"mongodb-2.2", - "properties":[ - { - "name":"username", - "type":"cart_data", - "description":"Root user on mongo database", - "value":"admin" - }, - { - "name":"password", - "type":"cart_data", - "description":"Password for root user on mongo database", - "value":"NNxXMT1z8dVj" - }, - { - "name":"database_name", - "type":"cart_data", - "description":"Mongo DB name", - "value":"springeap6" - }, - { - "name":"connection_url", - "type":"cart_data", - "description":"Mongo DB connection URL", - "value":"mongodb://$OPENSHIFT_MONGODB_DB_HOST:$OPENSHIFT_MONGODB_DB_PORT/" - } - ], - "scales_from":1, - "scales_to":1, - "scales_with":null, - "status_messages":null, - "supported_scales_from":1, - "supported_scales_to":1, - "tags":[ - "service", - "database", - "nosql", - "embedded" - ], - "type":"embedded", - "usage_rates":[ - - ], - "version":2.2, - "website":"http://www.10gen.com" - }, - { - "additional_gear_storage":0, - "base_gear_storage":1, - "collocated_with":[ - "jbosseap-6", - "mongodb-2.2" - ], - "current_scale":1, - "description":"MySQL is a multi-user, multi-threaded SQL database server.", - "display_name":"MySQL Database 5.1", - "gear_profile":"small", - "help_topics":[ - { - "Building with MySQL":"http://docs.redhat.com/docs/en-US/OpenShift/2.0/html/User_Guide/sect-User_Guide-Working_With_Database_Cartridges.html" - } - ], - "license":"ASL 2.0", - "license_url":"", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mysql-5.1", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get cartridge", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mysql-5.1", - "method":"PUT", - "optional_params":[ - { - "default_value":null, - "description":"Additional filesystem storage in gigabytes on each gear having cartridge mysql-5.1", - "name":"additional_gear_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Minimum number of gears having cartridge mysql-5.1", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears having cartridge mysql-5.1", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - } - ], - "rel":"Update cartridge configuration", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mysql-5.1/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start embedded cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mysql-5.1/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mysql-5.1/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mysql-5.1/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mysql-5.1", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete cartridge", - "required_params":[ - - ] - } - }, - "name":"mysql-5.1", - "properties":[ - { - "name":"username", - "type":"cart_data", - "description":"Root user on mysql database", - "value":"adminnlqrBcW" - }, - { - "name":"password", - "type":"cart_data", - "description":"Password for root user on mysql database", - "value":"WseJ_fUhNY6z" - }, - { - "name":"database_name", - "type":"cart_data", - "description":"MySQL DB name", - "value":"springeap6" - }, - { - "name":"connection_url", - "type":"cart_data", - "description":"MySQL DB connection URL", - "value":"mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/" - } - ], - "scales_from":1, - "scales_to":1, - "scales_with":null, - "status_messages":null, - "supported_scales_from":1, - "supported_scales_to":1, - "tags":[ - "service", - "database", - "embedded" - ], - "type":"embedded", - "usage_rates":[ - - ], - "version":5.1, - "website":"http://www.mysql.com" - } - ], - "messages":[ - - ], - "status":"ok", - "supported_api_versions":[ - 1.0, - 1.1, - 1.2, - 1.3, - 1.4 - ], - "type":"cartridges", - "version":"1.2" -} \ No newline at end of file diff --git a/src/test/resources/samples/get-domains-foobarz-applications-springeap6-cartridges_3embedded.json b/src/test/resources/samples/get-domains-foobarz-applications-springeap6-cartridges_3embedded.json deleted file mode 100644 index 6e4301f2..00000000 --- a/src/test/resources/samples/get-domains-foobarz-applications-springeap6-cartridges_3embedded.json +++ /dev/null @@ -1,825 +0,0 @@ -{ - "api_version":1.2, - "data":[ - { - "additional_gear_storage":0, - "base_gear_storage":1, - "collocated_with":[ - "switchyard-0", - "cron-1.4", - "metrics-0.1" - ], - "current_scale":1, - "description":"Market-leading open source enterprise platform for next-generation, highly transactional enterprise Java applications. Build and deploy enterprise Java in the cloud.", - "display_name":"JBoss Enterprise Application Platform 6.1.0", - "gear_profile":"small", - "help_topics":{ - - }, - "license":"LGPL", - "license_url":"http://www.gnu.org/copyleft/lesser.txt", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get cartridge", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6", - "method":"PUT", - "optional_params":[ - { - "default_value":null, - "description":"Additional filesystem storage in gigabytes on each gear having cartridge jbosseap-6", - "name":"additional_gear_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Minimum number of gears having cartridge jbosseap-6", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears having cartridge jbosseap-6", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - } - ], - "rel":"Update cartridge configuration", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start embedded cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete cartridge", - "required_params":[ - - ] - } - }, - "name":"jbosseap-6", - "properties":[ - { - "name":"OPENSHIFT_JBOSSEAP_LOG_DIR", - "type":"environment", - "description":"Directory to store application log files." - }, - { - "name":"OPENSHIFT_TMP_DIR", - "type":"environment", - "description":"Directory to store application temporary files." - }, - { - "name":"OPENSHIFT_REPO_DIR", - "type":"environment", - "description":"Application root directory where application files reside. This directory is reset every time you do a git-push" - }, - { - "name":"OPENSHIFT_JBOSSEAP_HTTP_PORT", - "type":"environment", - "description":"Internal port to which the web-framework binds to." - }, - { - "name":"OPENSHIFT_JBOSSEAP_IP", - "type":"environment", - "description":"Internal IP to which the web-framework binds to." - }, - { - "name":"OPENSHIFT_APP_DNS", - "type":"environment", - "description":"Fully qualified domain name for the application." - }, - { - "name":"OPENSHIFT_APP_NAME", - "type":"environment", - "description":"Application name" - }, - { - "name":"OPENSHIFT_DATA_DIR", - "type":"environment", - "description":"Directory to store application data files. Preserved across git-pushes. Not shared across gears." - }, - { - "name":"OPENSHIFT_APP_UUID", - "type":"environment", - "description":"Unique ID which identified the application. Does not change between gears." - }, - { - "name":"OPENSHIFT_GEAR_UUID", - "type":"environment", - "description":"Unique ID which identified the gear. This value changes between gears." - } - ], - "scales_from":1, - "scales_to":1, - "scales_with":null, - "status_messages":null, - "supported_scales_from":1, - "supported_scales_to":1, - "tags":[ - "service", - "web_framework", - "java", - "jboss", - "jee_full_profile" - ], - "type":"standalone", - "url":null, - "usage_rates":[ - { - "plan_id":"silver", - "usd":0.03, - "cad":0.03, - "eur":0.02, - "duration":"hour" - } - ], - "version":"6", - "website":"http://www.redhat.com/products/jbossenterprisemiddleware/application-platform/" - }, - { - "additional_gear_storage":0, - "base_gear_storage":1, - "collocated_with":[ - "jbosseap-6", - "cron-1.4", - "metrics-0.1" - ], - "current_scale":1, - "description":"SwitchYard is a lightweight service delivery framework providing full lifecycle support for developing, deploying, and managing service-oriented applications.", - "display_name":"SwitchYard 0.8.0", - "gear_profile":"small", - "help_topics":{ - - }, - "license":"ASL 2.0", - "license_url":"", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/switchyard-0", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get cartridge", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/switchyard-0", - "method":"PUT", - "optional_params":[ - { - "default_value":null, - "description":"Additional filesystem storage in gigabytes on each gear having cartridge switchyard-0", - "name":"additional_gear_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Minimum number of gears having cartridge switchyard-0", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears having cartridge switchyard-0", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - } - ], - "rel":"Update cartridge configuration", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/switchyard-0/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start embedded cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/switchyard-0/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/switchyard-0/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/switchyard-0/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/switchyard-0", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete cartridge", - "required_params":[ - - ] - } - }, - "name":"switchyard-0", - "properties":[ - { - "name":"module_path", - "type":"cart_data", - "description":"Module Path" - } - ], - "scales_from":1, - "scales_to":1, - "scales_with":null, - "status_messages":null, - "supported_scales_from":1, - "supported_scales_to":1, - "tags":[ - "embedded" - ], - "type":"embedded", - "url":null, - "usage_rates":[ - - ], - "version":"0", - "website":"http://www.jboss.org/switchyard" - }, - { - "additional_gear_storage":0, - "base_gear_storage":1, - "collocated_with":[ - "jbosseap-6", - "switchyard-0", - "metrics-0.1" - ], - "current_scale":1, - "description":"The Cron cartridge allows you to run command line programs at scheduled times. Use this for background jobs and periodic processing.", - "display_name":"Cron 1.4", - "gear_profile":"small", - "help_topics":{ - - }, - "license":"ASL 2.0", - "license_url":"http://www.apache.org/licenses/LICENSE-2.0.txt", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/cron-1.4", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get cartridge", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/cron-1.4", - "method":"PUT", - "optional_params":[ - { - "default_value":null, - "description":"Additional filesystem storage in gigabytes on each gear having cartridge cron-1.4", - "name":"additional_gear_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Minimum number of gears having cartridge cron-1.4", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears having cartridge cron-1.4", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - } - ], - "rel":"Update cartridge configuration", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/cron-1.4/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start embedded cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/cron-1.4/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/cron-1.4/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/cron-1.4/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/cron-1.4", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete cartridge", - "required_params":[ - - ] - } - }, - "name":"cron-1.4", - "properties":[ - - ], - "scales_from":1, - "scales_to":1, - "scales_with":null, - "status_messages":null, - "supported_scales_from":1, - "supported_scales_to":1, - "tags":[ - "embedded" - ], - "type":"embedded", - "url":null, - "usage_rates":[ - - ], - "version":"1.4", - "website":"http://www.openshift.com/" - }, - { - "additional_gear_storage":0, - "base_gear_storage":1, - "collocated_with":[ - "jbosseap-6", - "switchyard-0", - "cron-1.4" - ], - "current_scale":1, - "description":"An experimental cartridge that demonstrates retrieving real-time statistics from your application. May be removed or replaced in the future.", - "display_name":"OpenShift Metrics 0.1", - "gear_profile":"small", - "help_topics":{ - - }, - "license":"GPLv2", - "license_url":"", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/metrics-0.1", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get cartridge", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/metrics-0.1", - "method":"PUT", - "optional_params":[ - { - "default_value":null, - "description":"Additional filesystem storage in gigabytes on each gear having cartridge metrics-0.1", - "name":"additional_gear_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Minimum number of gears having cartridge metrics-0.1", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears having cartridge metrics-0.1", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - } - ], - "rel":"Update cartridge configuration", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/metrics-0.1/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start embedded cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/metrics-0.1/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/metrics-0.1/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/metrics-0.1/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/metrics-0.1", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete cartridge", - "required_params":[ - - ] - } - }, - "name":"metrics-0.1", - "properties":[ - { - "name":"connection_url", - "type":"cart_data", - "description":"Application metrics URL", - "value":"https://springeap6-foobarz.rhcloud.com/metrics/" - } - ], - "scales_from":1, - "scales_to":1, - "scales_with":null, - "status_messages":null, - "supported_scales_from":1, - "supported_scales_to":1, - "tags":[ - "embedded" - ], - "type":"embedded", - "url":null, - "usage_rates":[ - - ], - "version":"0.1", - "website":"https://openshift.redhat.com/" - } - ], - "messages":[ - { - "exit_code":0, - "field":null, - "severity":"info", - "text":"Listing cartridges for application springeap6 under domain foobarz" - } - ], - "status":"ok", - "supported_api_versions":[ - 1.0, - 1.1, - 1.2, - 1.3, - 1.4, - 1.5, - 1.6 - ], - "type":"cartridges", - "version":"1.2" -} diff --git a/src/test/resources/samples/get-domains-foobarz-applications-springeap6-geargroups.json b/src/test/resources/samples/get-domains-foobarz-applications-springeap6-geargroups.json deleted file mode 100644 index 19ff28de..00000000 --- a/src/test/resources/samples/get-domains-foobarz-applications-springeap6-geargroups.json +++ /dev/null @@ -1,149 +0,0 @@ -{ - "data":[ - { - "additional_gear_storage":0, - "base_gear_storage":1, - "cartridges":[ - { - "name":"jbosseap-6", - "display_name":"JBoss Enterprise Application Platform 6.0", - "tags":[ - "service", - "web_framework", - "java", - "jboss", - "jee_full_profile" - ] - }, - { - "connection_url":"mongodb://$OPENSHIFT_MONGODB_DB_HOST:$OPENSHIFT_MONGODB_DB_PORT/", - "username":"admin", - "password":"NNxXMT1z8dVj", - "database_name":"springeap6", - "name":"mongodb-2.2", - "display_name":"MongoDB NoSQL Database 2.2", - "tags":[ - "service", - "database", - "nosql", - "embedded" - ] - } - ], - "gear_profile":"small", - "gears":[ - { - "id":"514207b84382ec1fef000098", - "state":"idle", - "ssh_url":"ssh://52380549e0b8cd1e0e000032@springeap6-foobarz.rhcloud.com", - "port_interfaces":[ - { - "_id":"52380576e0b8cd1e0e000050", - "cartridge_name":"jbossas-7", - "external_address":"54.226.57.149", - "external_port":"38526", - "internal_address":"127.2.37.129", - "internal_port":"8080" - }, - { - "_id":"52380576e0b8cd1e0e000051", - "cartridge_name":"jbossas-7", - "external_address":"54.226.57.149", - "external_port":"38527", - "internal_address":"127.2.37.129", - "internal_port":"7600" - }, - { - "_id":"52380576e0b8cd1e0e000052", - "cartridge_name":"jbossas-7", - "external_address":"54.226.57.149", - "external_port":"38528", - "internal_address":"127.2.37.129", - "internal_port":"5445" - }, - { - "_id":"52380576e0b8cd1e0e000053", - "cartridge_name":"jbossas-7", - "external_address":"54.226.57.149", - "external_port":"38529", - "internal_address":"127.2.37.129", - "internal_port":"5455" - }, - { - "_id":"52380576e0b8cd1e0e000054", - "cartridge_name":"jbossas-7", - "external_address":"54.226.57.149", - "external_port":"38530", - "internal_address":"127.2.37.129", - "internal_port":"4447" - } - - ] - }, - { - "id":"5146f047500446f12d00002e", - "state":"building" - } - ], - "name":"514207b84382ec1fef0000ab", - "scales_from":1, - "scales_to":1, - "uuid":"514207b84382ec1fef0000ab" - }, - { - "additional_gear_storage":0, - "base_gear_storage":1, - "cartridges":[ - { - "connection_url":"mongodb://514212ce50-foobarz.rhcloud.com:37076/", - "username":"admin", - "password":"DLCVKnnzuGfF", - "database_name":"sringeap6", - "name":"mongodb-2.2", - "display_name":"MongoDB NoSQL Database 2.2", - "tags":[ - "service", - "database", - "nosql", - "embedded" - ] - } - ], - "gear_profile":"small", - "gears":[ - { - "id":"514212ce500446b64e0000b4", - "state":"deploying", - "ssh_url":"ssh://523809b75973ca569600019b@523809b75973ca569600019b-foobarz.rhcloud.com", - "port_interfaces":[ - { - "_id":"52380a0a5973ca56960001b0", - "cartridge_name":"mongodb-2.2", - "external_address":"174.129.147.144", - "external_port":"52931", - "internal_address":"127.7.198.1", - "internal_port":"27017" - } - ] - } - ], - "name":"514212ce500446b64e0000c0", - "scales_from":null, - "scales_to":null, - "uuid":"514212ce500446b64e0000c0" - } - ], - "messages":[ - - ], - "status":"ok", - "supported_api_versions":[ - 1.0, - 1.1, - 1.2, - 1.3, - 1.4 - ], - "type":"gear_groups", - "version":"1.2" -} \ No newline at end of file diff --git a/src/test/resources/samples/get-domains-foobarz-applications-springeap6_0alias.json b/src/test/resources/samples/get-domains-foobarz-applications-springeap6_0alias.json deleted file mode 100644 index 892d28a8..00000000 --- a/src/test/resources/samples/get-domains-foobarz-applications-springeap6_0alias.json +++ /dev/null @@ -1,432 +0,0 @@ -{ - "data":{ - "aliases":[ - ], - "app_url":"http://springeap6-foobarz.rhcloud.com/", - "build_job_url":null, - "building_app":null, - "building_with":null, - "creation_time":"2013-04-30T17:00:41Z", - "domain_id":"foobarz", - "embedded":{ - "mongodb-2.2":{ - "connection_url":"mongodb://$OPENSHIFT_MONGODB_DB_HOST:$OPENSHIFT_MONGODB_DB_PORT/", - "username":"admin", - "password":"NNxXMT1z8dVj", - "database_name":"springeap6", - "info":"Connection URL: mongodb://$OPENSHIFT_MONGODB_DB_HOST:$OPENSHIFT_MONGODB_DB_PORT/" - } - }, - "framework":"jbosseap-6", - "gear_count":1, - "gear_profile":"small", - "git_url":"ssh://517ff8b9500446729b00008e@springeap6-foobarz.rhcloud.com/~/git/springeap6.git/", - "health_check_path":"health", - "initial_git_url":"git://github.com/openshift/spring-eap6-quickstart.git", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get application", - "required_params":[ - - ] - }, - "GET_DESCRIPTOR":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/descriptor", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get application descriptor", - "required_params":[ - - ] - }, - "GET_GEAR_GROUPS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/gear_groups", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get application gear groups", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "FORCE_STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Force stop application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "force-stop" - ] - } - ] - }, - "ADD_ALIAS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Add application alias", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "add-alias" - ] - }, - { - "description":"The server alias for the application", - "invalid_options":[ - - ], - "name":"alias", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "REMOVE_ALIAS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Remove application alias", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "remove-alias" - ] - }, - { - "description":"The application alias to be removed", - "invalid_options":[ - - ], - "name":"alias", - "type":"string", - "valid_options":[ - "jbosstools.org" - ] - } - ] - }, - "SCALE_UP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Scale up application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "scale-up" - ] - } - ] - }, - "SCALE_DOWN":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Scale down application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "scale-down" - ] - } - ] - }, - "TIDY":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Tidy the application framework", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "tidy" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload the application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "THREAD_DUMP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Trigger thread dump", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "thread-dump" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete application", - "required_params":[ - - ] - }, - "ADD_CARTRIDGE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges", - "method":"POST", - "optional_params":[ - { - "default_value":null, - "description":"The component to colocate with", - "name":"colocate_with", - "type":"string", - "valid_options":[ - "jbosseap-6", - "mongodb-2.2" - ] - }, - { - "default_value":null, - "description":"Minimum number of gears to run the component on.", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears to run the component on.", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Additional GB of space to request on all gears running this component.", - "name":"additional_storage", - "type":"integer", - "valid_options":[ - - ] - } - ], - "rel":"Add embedded cartridge", - "required_params":[ - { - "description":"framework-type, e.g.: mongodb-2.0", - "invalid_options":[ - - ], - "name":"name", - "type":"string", - "valid_options":[ - "mongodb-2.2", - "switchyard-0.6", - "cron-1.4", - "mysql-5.1", - "postgresql-8.4", - "haproxy-1.4", - "10gen-mms-agent-0.1", - "phpmyadmin-3.4", - "metrics-0.1", - "rockmongo-1.1", - "jenkins-client-1.4" - ] - } - ] - }, - "LIST_CARTRIDGES":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges", - "method":"GET", - "optional_params":[ - - ], - "rel":"List embedded cartridges", - "required_params":[ - - ] - }, - "DNS_RESOLVABLE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/dns_resolvable", - "method":"GET", - "optional_params":[ - - ], - "rel":"Resolve DNS", - "required_params":[ - - ] - } - }, - "name":"springeap6", - "scalable":false, - "ssh_url":"ssh://517ff8b9500446729b00008e@springeap6-foobarz.rhcloud.com", - "uuid":"517ff8b9500446729b00008e" - }, - "messages":[ - - ], - "status":"ok", - "supported_api_versions":[ - 1.0, - 1.1, - 1.2, - 1.3, - 1.4 - ], - "type":"application", - "version":"1.2" -} \ No newline at end of file diff --git a/src/test/resources/samples/get-domains-foobarz-applications-springeap6_1embedded.json b/src/test/resources/samples/get-domains-foobarz-applications-springeap6_1embedded.json deleted file mode 100644 index 19e53777..00000000 --- a/src/test/resources/samples/get-domains-foobarz-applications-springeap6_1embedded.json +++ /dev/null @@ -1,948 +0,0 @@ -{ - "api_version":1.2, - "data":{ - "aliases":[ - - ], - "app_url":"http://springeap6-foobarz.rhcloud.com/", - "build_job_url":null, - "building_app":null, - "building_with":null, - "cartridges":[ - { - "additional_gear_storage":0, - "base_gear_storage":1, - "collocated_with":[ - "mongodb-2.2" - ], - "current_scale":1, - "description":"Market-leading open source enterprise platform for next-generation, highly transactional enterprise Java applications. Build and deploy enterprise Java in the cloud.", - "display_name":"JBoss Enterprise Application Platform 6.1.0", - "gear_profile":"small", - "help_topics":{ - "Building with MongoDB":"https://www.openshift.com/developers/mongodb" - }, - "license":"LGPL", - "license_url":"http://www.gnu.org/copyleft/lesser.txt", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get cartridge", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6", - "method":"PUT", - "optional_params":[ - { - "default_value":null, - "description":"Additional filesystem storage in gigabytes on each gear having cartridge jbosseap-6", - "name":"additional_gear_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Minimum number of gears having cartridge jbosseap-6", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears having cartridge jbosseap-6", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - } - ], - "rel":"Update cartridge configuration", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start embedded cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete cartridge", - "required_params":[ - - ] - } - }, - "name":"jbosseap-6", - "properties":[ - { - "name":"OPENSHIFT_JBOSSEAP_LOG_DIR", - "type":"environment", - "description":"Directory to store application log files." - }, - { - "name":"OPENSHIFT_TMP_DIR", - "type":"environment", - "description":"Directory to store application temporary files." - }, - { - "name":"OPENSHIFT_REPO_DIR", - "type":"environment", - "description":"Application root directory where application files reside. This directory is reset every time you do a git-push" - }, - { - "name":"OPENSHIFT_JBOSSEAP_HTTP_PORT", - "type":"environment", - "description":"Internal port to which the web-framework binds to." - }, - { - "name":"OPENSHIFT_JBOSSEAP_IP", - "type":"environment", - "description":"Internal IP to which the web-framework binds to." - }, - { - "name":"OPENSHIFT_APP_DNS", - "type":"environment", - "description":"Fully qualified domain name for the application." - }, - { - "name":"OPENSHIFT_APP_NAME", - "type":"environment", - "description":"Application name" - }, - { - "name":"OPENSHIFT_DATA_DIR", - "type":"environment", - "description":"Directory to store application data files. Preserved across git-pushes. Not shared across gears." - }, - { - "name":"OPENSHIFT_APP_UUID", - "type":"environment", - "description":"Unique ID which identified the application. Does not change between gears." - }, - { - "name":"OPENSHIFT_GEAR_UUID", - "type":"environment", - "description":"Unique ID which identified the gear. This value changes between gears." - } - ], - "scales_from":1, - "scales_to":1, - "scales_with":null, - "status_messages":null, - "supported_scales_from":1, - "supported_scales_to":1, - "tags":[ - "service", - "web_framework", - "java", - "jboss", - "jee_full_profile" - ], - "type":"standalone", - "url":null, - "usage_rates":[ - { - "plan_id":"silver", - "usd":0.03, - "cad":0.03, - "eur":0.02, - "duration":"hour" - } - ], - "version":"6", - "website":"http://www.redhat.com/products/jbossenterprisemiddleware/application-platform/" - }, - { - "additional_gear_storage":0, - "base_gear_storage":1, - "collocated_with":[ - "jbosseap-6" - ], - "current_scale":1, - "description":"MongoDB is a scalable, high-performance, open source NoSQL database.", - "display_name":"MongoDB NoSQL Database 2.2", - "gear_profile":"small", - "help_topics":{ - "Building with MongoDB":"https://www.openshift.com/developers/mongodb" - }, - "license":"ASL 2.0", - "license_url":"", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get cartridge", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2", - "method":"PUT", - "optional_params":[ - { - "default_value":null, - "description":"Additional filesystem storage in gigabytes on each gear having cartridge mongodb-2.2", - "name":"additional_gear_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Minimum number of gears having cartridge mongodb-2.2", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears having cartridge mongodb-2.2", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - } - ], - "rel":"Update cartridge configuration", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start embedded cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete cartridge", - "required_params":[ - - ] - } - }, - "name":"mongodb-2.2", - "properties":[ - { - "name":"username", - "type":"cart_data", - "description":"Root user on mongo database", - "value":"admin" - }, - { - "name":"password", - "type":"cart_data", - "description":"Password for root user on mongo database", - "value":"VwFPWQEs1PEl" - }, - { - "name":"database_name", - "type":"cart_data", - "description":"Mongo DB name", - "value":"springeap6" - }, - { - "name":"connection_url", - "type":"cart_data", - "description":"Mongo DB connection URL", - "value":"mongodb://$OPENSHIFT_MONGODB_DB_HOST:$OPENSHIFT_MONGODB_DB_PORT/" - } - ], - "scales_from":1, - "scales_to":1, - "scales_with":null, - "status_messages":null, - "supported_scales_from":1, - "supported_scales_to":1, - "tags":[ - "service", - "database", - "nosql", - "embedded" - ], - "type":"embedded", - "url":null, - "usage_rates":[ - - ], - "version":"2.2", - "website":"http://www.10gen.com" - } - ], - "creation_time":"2013-09-20T21:28:53Z", - "domain_id":"foobarz", - "embedded":{ - "mongodb-2.2":{ - "connection_url":"mongodb://$OPENSHIFT_MONGODB_DB_HOST:$OPENSHIFT_MONGODB_DB_PORT/", - "username":"admin", - "password":"VwFPWQEs1PEl", - "database_name":"springeap6", - "info":"Connection URL: mongodb://$OPENSHIFT_MONGODB_DB_HOST:$OPENSHIFT_MONGODB_DB_PORT/" - } - }, - "framework":"jbosseap-6", - "gear_count":1, - "gear_profile":"small", - "git_url":"ssh://523cbe15e0b8cd0a520001b6@springeap6-foobarz.rhcloud.com/~/git/springeap6.git/", - "health_check_path":"health", - "initial_git_url":"git://github.com/openshift/spring-eap6-quickstart.git", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get application", - "required_params":[ - - ] - }, - "GET_DESCRIPTOR":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/descriptor", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get application descriptor", - "required_params":[ - - ] - }, - "GET_GEAR_GROUPS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/gear_groups", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get application gear groups", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "FORCE_STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Force stop application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "force-stop" - ] - } - ] - }, - "ADD_ALIAS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Add application alias", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "add-alias" - ] - }, - { - "description":"The server alias for the application", - "invalid_options":[ - - ], - "name":"alias", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "REMOVE_ALIAS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Remove application alias", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "remove-alias" - ] - }, - { - "description":"The application alias to be removed", - "invalid_options":[ - - ], - "name":"alias", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "SCALE_UP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Scale up application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "scale-up" - ] - } - ] - }, - "SCALE_DOWN":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Scale down application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "scale-down" - ] - } - ] - }, - "TIDY":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Tidy the application framework", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "tidy" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload the application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "THREAD_DUMP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Trigger thread dump", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "thread-dump" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete application", - "required_params":[ - - ] - }, - "ADD_CARTRIDGE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges", - "method":"POST", - "optional_params":[ - { - "default_value":null, - "description":"The component to colocate with", - "name":"colocate_with", - "type":"string", - "valid_options":[ - "jbosseap-6", - "mongodb-2.2" - ] - }, - { - "default_value":null, - "description":"Minimum number of gears to run the component on.", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears to run the component on.", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Additional GB of space to request on all gears running this component.", - "name":"additional_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Add or Update application environment variables, e.g.:[{'name':'FOO', 'value':'123'}, {'name':'BAR', 'value':'abc'}]", - "name":"environment_variables", - "type":"array", - "valid_options":[ - - ] - } - ], - "rel":"Add embedded cartridge", - "required_params":[ - { - "description":"framework-type, e.g.: mongodb-2.2", - "invalid_options":[ - - ], - "name":"name", - "type":"string", - "valid_options":[ - "cron-1.4", - "phpmyadmin-4", - "rockmongo-1.1", - "switchyard-0", - "metrics-0.1", - "10gen-mms-agent-0.1", - "mysql-5.1", - "haproxy-1.4", - "postgresql-9.2", - "postgresql-8.4", - "mongodb-2.2", - "jenkins-client-1" - ] - } - ] - }, - "LIST_CARTRIDGES":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges", - "method":"GET", - "optional_params":[ - - ], - "rel":"List embedded cartridges", - "required_params":[ - - ] - }, - "DNS_RESOLVABLE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/dns_resolvable", - "method":"GET", - "optional_params":[ - - ], - "rel":"Resolve DNS", - "required_params":[ - - ] - }, - "SET_UNSET_ENVIRONMENT_VARIABLES":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/environment-variables", - "method":"POST", - "optional_params":[ - { - "default_value":null, - "description":"Name of the environment variable to add/update", - "name":"name", - "type":"string", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Value of the environment variable", - "name":"value", - "type":"string", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Add/Update/Delete application environment variables, e.g. Add/Update: [{'name':'FOO', 'value':'123'}, {'name':'BAR', 'value':'abc'}], Delete: [{'name':'FOO'}, {'name':'BAR'}]", - "name":"environment_variables", - "type":"array", - "valid_options":[ - - ] - } - ], - "rel":"Add/Update/Delete one or more environment variables", - "required_params":[ - - ] - }, - "LIST_ENVIRONMENT_VARIABLES":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/environment-variables", - "method":"GET", - "optional_params":[ - - ], - "rel":"List all environment variables", - "required_params":[ - - ] - } - }, - "name":"springeap6", - "scalable":false, - "ssh_url":"ssh://523cbe15e0b8cd0a520001b6@springeap6-foobarz.rhcloud.com", - "uuid":"523cbe15e0b8cd0a520001b6" - }, - "messages":[ - { - "exit_code":0, - "field":null, - "severity":"info", - "text":"Application 'springeap6' found" - } - ], - "status":"ok", - "supported_api_versions":[ - 1.0, - 1.1, - 1.2, - 1.3, - 1.4, - 1.5, - 1.6 - ], - "type":"application", - "version":"1.2" -} \ No newline at end of file diff --git a/src/test/resources/samples/get-domains-foobarz-applications-springeap6_2alias.json b/src/test/resources/samples/get-domains-foobarz-applications-springeap6_2alias.json deleted file mode 100644 index f88d942e..00000000 --- a/src/test/resources/samples/get-domains-foobarz-applications-springeap6_2alias.json +++ /dev/null @@ -1,434 +0,0 @@ -{ - "data":{ - "aliases":[ - "jbosstools.org", - "redhat.com" - ], - "app_url":"http://springeap6-foobarz.rhcloud.com/", - "build_job_url":null, - "building_app":null, - "building_with":null, - "creation_time":"2013-04-30T17:00:41Z", - "domain_id":"foobarz", - "embedded":{ - "mongodb-2.2":{ - "connection_url":"mongodb://$OPENSHIFT_MONGODB_DB_HOST:$OPENSHIFT_MONGODB_DB_PORT/", - "username":"admin", - "password":"NNxXMT1z8dVj", - "database_name":"springeap6", - "info":"Connection URL: mongodb://$OPENSHIFT_MONGODB_DB_HOST:$OPENSHIFT_MONGODB_DB_PORT/" - } - }, - "framework":"jbosseap-6", - "gear_count":1, - "gear_profile":"small", - "git_url":"ssh://517ff8b9500446729b00008e@springeap6-foobarz.rhcloud.com/~/git/springeap6.git/", - "health_check_path":"health", - "initial_git_url":"git://github.com/openshift/spring-eap6-quickstart.git", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get application", - "required_params":[ - - ] - }, - "GET_DESCRIPTOR":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/descriptor", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get application descriptor", - "required_params":[ - - ] - }, - "GET_GEAR_GROUPS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/gear_groups", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get application gear groups", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "FORCE_STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Force stop application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "force-stop" - ] - } - ] - }, - "ADD_ALIAS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Add application alias", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "add-alias" - ] - }, - { - "description":"The server alias for the application", - "invalid_options":[ - - ], - "name":"alias", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "REMOVE_ALIAS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Remove application alias", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "remove-alias" - ] - }, - { - "description":"The application alias to be removed", - "invalid_options":[ - - ], - "name":"alias", - "type":"string", - "valid_options":[ - "jbosstools.org" - ] - } - ] - }, - "SCALE_UP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Scale up application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "scale-up" - ] - } - ] - }, - "SCALE_DOWN":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Scale down application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "scale-down" - ] - } - ] - }, - "TIDY":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Tidy the application framework", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "tidy" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload the application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "THREAD_DUMP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Trigger thread dump", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "thread-dump" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete application", - "required_params":[ - - ] - }, - "ADD_CARTRIDGE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges", - "method":"POST", - "optional_params":[ - { - "default_value":null, - "description":"The component to colocate with", - "name":"colocate_with", - "type":"string", - "valid_options":[ - "jbosseap-6", - "mongodb-2.2" - ] - }, - { - "default_value":null, - "description":"Minimum number of gears to run the component on.", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears to run the component on.", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Additional GB of space to request on all gears running this component.", - "name":"additional_storage", - "type":"integer", - "valid_options":[ - - ] - } - ], - "rel":"Add embedded cartridge", - "required_params":[ - { - "description":"framework-type, e.g.: mongodb-2.0", - "invalid_options":[ - - ], - "name":"name", - "type":"string", - "valid_options":[ - "mongodb-2.2", - "switchyard-0.6", - "cron-1.4", - "mysql-5.1", - "postgresql-8.4", - "haproxy-1.4", - "10gen-mms-agent-0.1", - "phpmyadmin-3.4", - "metrics-0.1", - "rockmongo-1.1", - "jenkins-client-1.4" - ] - } - ] - }, - "LIST_CARTRIDGES":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges", - "method":"GET", - "optional_params":[ - - ], - "rel":"List embedded cartridges", - "required_params":[ - - ] - }, - "DNS_RESOLVABLE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/dns_resolvable", - "method":"GET", - "optional_params":[ - - ], - "rel":"Resolve DNS", - "required_params":[ - - ] - } - }, - "name":"springeap6", - "scalable":false, - "ssh_url":"ssh://517ff8b9500446729b00008e@springeap6-foobarz.rhcloud.com", - "uuid":"517ff8b9500446729b00008e" - }, - "messages":[ - - ], - "status":"ok", - "supported_api_versions":[ - 1.0, - 1.1, - 1.2, - 1.3, - 1.4 - ], - "type":"application", - "version":"1.2" -} \ No newline at end of file diff --git a/src/test/resources/samples/get-domains-foobarz-applications-springeap6_2embedded.json b/src/test/resources/samples/get-domains-foobarz-applications-springeap6_2embedded.json deleted file mode 100644 index 1b3678ff..00000000 --- a/src/test/resources/samples/get-domains-foobarz-applications-springeap6_2embedded.json +++ /dev/null @@ -1,1165 +0,0 @@ -{ - "api_version":1.2, - "data":{ - "aliases":[ - - ], - "app_url":"http://springeap6-foobarz.rhcloud.com/", - "build_job_url":null, - "building_app":null, - "building_with":null, - "cartridges":[ - { - "additional_gear_storage":0, - "base_gear_storage":1, - "collocated_with":[ - "mongodb-2.2", - "mysql-5.1" - ], - "current_scale":1, - "description":"Market-leading open source enterprise platform for next-generation, highly transactional enterprise Java applications. Build and deploy enterprise Java in the cloud.", - "display_name":"JBoss Enterprise Application Platform 6.1.0", - "gear_profile":"small", - "help_topics":{ - "Building with MySQL":"http://docs.redhat.com/docs/en-US/OpenShift/2.0/html/User_Guide/sect-User_Guide-Working_With_Database_Cartridges.html" - }, - "license":"LGPL", - "license_url":"http://www.gnu.org/copyleft/lesser.txt", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get cartridge", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6", - "method":"PUT", - "optional_params":[ - { - "default_value":null, - "description":"Additional filesystem storage in gigabytes on each gear having cartridge jbosseap-6", - "name":"additional_gear_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Minimum number of gears having cartridge jbosseap-6", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears having cartridge jbosseap-6", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - } - ], - "rel":"Update cartridge configuration", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start embedded cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete cartridge", - "required_params":[ - - ] - } - }, - "name":"jbosseap-6", - "properties":[ - { - "name":"OPENSHIFT_JBOSSEAP_LOG_DIR", - "type":"environment", - "description":"Directory to store application log files." - }, - { - "name":"OPENSHIFT_TMP_DIR", - "type":"environment", - "description":"Directory to store application temporary files." - }, - { - "name":"OPENSHIFT_REPO_DIR", - "type":"environment", - "description":"Application root directory where application files reside. This directory is reset every time you do a git-push" - }, - { - "name":"OPENSHIFT_JBOSSEAP_HTTP_PORT", - "type":"environment", - "description":"Internal port to which the web-framework binds to." - }, - { - "name":"OPENSHIFT_JBOSSEAP_IP", - "type":"environment", - "description":"Internal IP to which the web-framework binds to." - }, - { - "name":"OPENSHIFT_APP_DNS", - "type":"environment", - "description":"Fully qualified domain name for the application." - }, - { - "name":"OPENSHIFT_APP_NAME", - "type":"environment", - "description":"Application name" - }, - { - "name":"OPENSHIFT_DATA_DIR", - "type":"environment", - "description":"Directory to store application data files. Preserved across git-pushes. Not shared across gears." - }, - { - "name":"OPENSHIFT_APP_UUID", - "type":"environment", - "description":"Unique ID which identified the application. Does not change between gears." - }, - { - "name":"OPENSHIFT_GEAR_UUID", - "type":"environment", - "description":"Unique ID which identified the gear. This value changes between gears." - } - ], - "scales_from":1, - "scales_to":1, - "scales_with":null, - "status_messages":null, - "supported_scales_from":1, - "supported_scales_to":1, - "tags":[ - "service", - "web_framework", - "java", - "jboss", - "jee_full_profile" - ], - "type":"standalone", - "url":null, - "usage_rates":[ - { - "plan_id":"silver", - "usd":0.03, - "cad":0.03, - "eur":0.02, - "duration":"hour" - } - ], - "version":"6", - "website":"http://www.redhat.com/products/jbossenterprisemiddleware/application-platform/" - }, - { - "additional_gear_storage":0, - "base_gear_storage":1, - "collocated_with":[ - "jbosseap-6", - "mysql-5.1" - ], - "current_scale":1, - "description":"MongoDB is a scalable, high-performance, open source NoSQL database.", - "display_name":"MongoDB NoSQL Database 2.2", - "gear_profile":"small", - "help_topics":{ - "Building with MySQL":"http://docs.redhat.com/docs/en-US/OpenShift/2.0/html/User_Guide/sect-User_Guide-Working_With_Database_Cartridges.html" - }, - "license":"ASL 2.0", - "license_url":"", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get cartridge", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2", - "method":"PUT", - "optional_params":[ - { - "default_value":null, - "description":"Additional filesystem storage in gigabytes on each gear having cartridge mongodb-2.2", - "name":"additional_gear_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Minimum number of gears having cartridge mongodb-2.2", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears having cartridge mongodb-2.2", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - } - ], - "rel":"Update cartridge configuration", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start embedded cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete cartridge", - "required_params":[ - - ] - } - }, - "name":"mongodb-2.2", - "properties":[ - { - "name":"username", - "type":"cart_data", - "description":"Root user on mongo database", - "value":"admin" - }, - { - "name":"password", - "type":"cart_data", - "description":"Password for root user on mongo database", - "value":"VwFPWQEs1PEl" - }, - { - "name":"database_name", - "type":"cart_data", - "description":"Mongo DB name", - "value":"springeap6" - }, - { - "name":"connection_url", - "type":"cart_data", - "description":"Mongo DB connection URL", - "value":"mongodb://$OPENSHIFT_MONGODB_DB_HOST:$OPENSHIFT_MONGODB_DB_PORT/" - } - ], - "scales_from":1, - "scales_to":1, - "scales_with":null, - "status_messages":null, - "supported_scales_from":1, - "supported_scales_to":1, - "tags":[ - "service", - "database", - "nosql", - "embedded" - ], - "type":"embedded", - "url":null, - "usage_rates":[ - - ], - "version":"2.2", - "website":"http://www.10gen.com" - }, - { - "additional_gear_storage":0, - "base_gear_storage":1, - "collocated_with":[ - "jbosseap-6", - "mongodb-2.2" - ], - "current_scale":1, - "description":"MySQL is a multi-user, multi-threaded SQL database server.", - "display_name":"MySQL Database 5.1", - "gear_profile":"small", - "help_topics":{ - "Building with MySQL":"http://docs.redhat.com/docs/en-US/OpenShift/2.0/html/User_Guide/sect-User_Guide-Working_With_Database_Cartridges.html" - }, - "license":"GPL", - "license_url":"", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mysql-5.1", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get cartridge", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mysql-5.1", - "method":"PUT", - "optional_params":[ - { - "default_value":null, - "description":"Additional filesystem storage in gigabytes on each gear having cartridge mysql-5.1", - "name":"additional_gear_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Minimum number of gears having cartridge mysql-5.1", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears having cartridge mysql-5.1", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - } - ], - "rel":"Update cartridge configuration", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mysql-5.1/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start embedded cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mysql-5.1/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mysql-5.1/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mysql-5.1/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mysql-5.1", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete cartridge", - "required_params":[ - - ] - } - }, - "name":"mysql-5.1", - "properties":[ - { - "name":"username", - "type":"cart_data", - "description":"Root user on mysql database", - "value":"adminBFyZLQZ" - }, - { - "name":"password", - "type":"cart_data", - "description":"Password for root user on mysql database", - "value":"pkMImy_mwUvL" - }, - { - "name":"database_name", - "type":"cart_data", - "description":"MySQL DB name", - "value":"springeap6" - }, - { - "name":"connection_url", - "type":"cart_data", - "description":"MySQL DB connection URL", - "value":"mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/" - } - ], - "scales_from":1, - "scales_to":1, - "scales_with":null, - "status_messages":null, - "supported_scales_from":1, - "supported_scales_to":1, - "tags":[ - "service", - "database", - "embedded" - ], - "type":"embedded", - "url":null, - "usage_rates":[ - - ], - "version":"5.1", - "website":"http://www.mysql.com" - } - ], - "creation_time":"2013-09-20T21:28:53Z", - "domain_id":"foobarz", - "embedded":{ - "mongodb-2.2":{ - "connection_url":"mongodb://$OPENSHIFT_MONGODB_DB_HOST:$OPENSHIFT_MONGODB_DB_PORT/", - "username":"admin", - "password":"VwFPWQEs1PEl", - "database_name":"springeap6", - "info":"Connection URL: mongodb://$OPENSHIFT_MONGODB_DB_HOST:$OPENSHIFT_MONGODB_DB_PORT/" - }, - "mysql-5.1":{ - "connection_url":"mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/", - "username":"adminBFyZLQZ", - "password":"pkMImy_mwUvL", - "database_name":"springeap6", - "info":"Connection URL: mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/" - } - }, - "framework":"jbosseap-6", - "gear_count":1, - "gear_profile":"small", - "git_url":"ssh://523cbe15e0b8cd0a520001b6@springeap6-foobarz.rhcloud.com/~/git/springeap6.git/", - "health_check_path":"health", - "initial_git_url":"git://github.com/openshift/spring-eap6-quickstart.git", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get application", - "required_params":[ - - ] - }, - "GET_DESCRIPTOR":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/descriptor", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get application descriptor", - "required_params":[ - - ] - }, - "GET_GEAR_GROUPS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/gear_groups", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get application gear groups", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "FORCE_STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Force stop application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "force-stop" - ] - } - ] - }, - "ADD_ALIAS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Add application alias", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "add-alias" - ] - }, - { - "description":"The server alias for the application", - "invalid_options":[ - - ], - "name":"alias", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "REMOVE_ALIAS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Remove application alias", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "remove-alias" - ] - }, - { - "description":"The application alias to be removed", - "invalid_options":[ - - ], - "name":"alias", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "SCALE_UP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Scale up application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "scale-up" - ] - } - ] - }, - "SCALE_DOWN":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Scale down application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "scale-down" - ] - } - ] - }, - "TIDY":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Tidy the application framework", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "tidy" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload the application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "THREAD_DUMP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Trigger thread dump", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "thread-dump" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete application", - "required_params":[ - - ] - }, - "ADD_CARTRIDGE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges", - "method":"POST", - "optional_params":[ - { - "default_value":null, - "description":"The component to colocate with", - "name":"colocate_with", - "type":"string", - "valid_options":[ - "jbosseap-6", - "mongodb-2.2", - "mysql-5.1" - ] - }, - { - "default_value":null, - "description":"Minimum number of gears to run the component on.", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears to run the component on.", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Additional GB of space to request on all gears running this component.", - "name":"additional_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Add or Update application environment variables, e.g.:[{'name':'FOO', 'value':'123'}, {'name':'BAR', 'value':'abc'}]", - "name":"environment_variables", - "type":"array", - "valid_options":[ - - ] - } - ], - "rel":"Add embedded cartridge", - "required_params":[ - { - "description":"framework-type, e.g.: mongodb-2.2", - "invalid_options":[ - - ], - "name":"name", - "type":"string", - "valid_options":[ - "cron-1.4", - "phpmyadmin-4", - "rockmongo-1.1", - "switchyard-0", - "metrics-0.1", - "10gen-mms-agent-0.1", - "mysql-5.1", - "haproxy-1.4", - "postgresql-9.2", - "postgresql-8.4", - "mongodb-2.2", - "jenkins-client-1" - ] - } - ] - }, - "LIST_CARTRIDGES":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges", - "method":"GET", - "optional_params":[ - - ], - "rel":"List embedded cartridges", - "required_params":[ - - ] - }, - "DNS_RESOLVABLE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/dns_resolvable", - "method":"GET", - "optional_params":[ - - ], - "rel":"Resolve DNS", - "required_params":[ - - ] - }, - "SET_UNSET_ENVIRONMENT_VARIABLES":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/environment-variables", - "method":"POST", - "optional_params":[ - { - "default_value":null, - "description":"Name of the environment variable to add/update", - "name":"name", - "type":"string", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Value of the environment variable", - "name":"value", - "type":"string", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Add/Update/Delete application environment variables, e.g. Add/Update: [{'name':'FOO', 'value':'123'}, {'name':'BAR', 'value':'abc'}], Delete: [{'name':'FOO'}, {'name':'BAR'}]", - "name":"environment_variables", - "type":"array", - "valid_options":[ - - ] - } - ], - "rel":"Add/Update/Delete one or more environment variables", - "required_params":[ - - ] - }, - "LIST_ENVIRONMENT_VARIABLES":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/environment-variables", - "method":"GET", - "optional_params":[ - - ], - "rel":"List all environment variables", - "required_params":[ - - ] - } - }, - "name":"springeap6", - "scalable":false, - "ssh_url":"ssh://523cbe15e0b8cd0a520001b6@springeap6-foobarz.rhcloud.com", - "uuid":"523cbe15e0b8cd0a520001b6" - }, - "messages":[ - { - "exit_code":0, - "field":null, - "severity":"info", - "text":"Application 'springeap6' found" - } - ], - "status":"ok", - "supported_api_versions":[ - 1.0, - 1.1, - 1.2, - 1.3, - 1.4, - 1.5, - 1.6 - ], - "type":"application", - "version":"1.2" -} \ No newline at end of file diff --git a/src/test/resources/samples/get-domains-foobarz-applications_1embedded.json b/src/test/resources/samples/get-domains-foobarz-applications_1embedded.json deleted file mode 100644 index 15f5990c..00000000 --- a/src/test/resources/samples/get-domains-foobarz-applications_1embedded.json +++ /dev/null @@ -1,1841 +0,0 @@ -{ - "api_version":1.2, - "data":[ - { - "aliases":[ - - ], - "app_url":"http://scalable-foobarz.rhcloud.com/", - "build_job_url":null, - "building_app":null, - "building_with":null, - "cartridges":[ - { - "additional_gear_storage":0, - "base_gear_storage":1, - "collocated_with":[ - "haproxy-1.4" - ], - "current_scale":1, - "description":"The leading open source Java EE6 application server for enterprise Java applications. Popular development frameworks include Seam, CDI, Weld, and Spring.", - "display_name":"JBoss Application Server 7", - "gear_profile":"small", - "help_topics":{ - - }, - "license":"LGPL", - "license_url":"http://www.gnu.org/copyleft/lesser.txt", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/jbossas-7", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get cartridge", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/jbossas-7", - "method":"PUT", - "optional_params":[ - { - "default_value":null, - "description":"Additional filesystem storage in gigabytes on each gear having cartridge jbossas-7", - "name":"additional_gear_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Minimum number of gears having cartridge jbossas-7", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears having cartridge jbossas-7", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - } - ], - "rel":"Update cartridge configuration", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/jbossas-7/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start embedded cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/jbossas-7/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/jbossas-7/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/jbossas-7/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/jbossas-7", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete cartridge", - "required_params":[ - - ] - } - }, - "name":"jbossas-7", - "properties":[ - { - "name":"OPENSHIFT_JBOSSAS_LOG_DIR", - "type":"environment", - "description":"Directory to store application log files." - }, - { - "name":"OPENSHIFT_TMP_DIR", - "type":"environment", - "description":"Directory to store application temporary files." - }, - { - "name":"OPENSHIFT_REPO_DIR", - "type":"environment", - "description":"Application root directory where application files reside. This directory is reset every time you do a git-push" - }, - { - "name":"OPENSHIFT_JBOSSAS_HTTP_PORT", - "type":"environment", - "description":"Internal port to which the web-framework binds to." - }, - { - "name":"OPENSHIFT_JBOSSAS_IP", - "type":"environment", - "description":"Internal IP to which the web-framework binds to." - }, - { - "name":"OPENSHIFT_APP_DNS", - "type":"environment", - "description":"Fully qualified domain name for the application." - }, - { - "name":"OPENSHIFT_APP_NAME", - "type":"environment", - "description":"Application name" - }, - { - "name":"OPENSHIFT_DATA_DIR", - "type":"environment", - "description":"Directory to store application data files. Preserved across git-pushes. Not shared across gears." - }, - { - "name":"OPENSHIFT_APP_UUID", - "type":"environment", - "description":"Unique ID which identified the application. Does not change between gears." - }, - { - "name":"OPENSHIFT_GEAR_UUID", - "type":"environment", - "description":"Unique ID which identified the gear. This value changes between gears." - } - ], - "scales_from":1, - "scales_to":-1, - "scales_with":"haproxy-1.4", - "status_messages":null, - "supported_scales_from":1, - "supported_scales_to":-1, - "tags":[ - "service", - "web_framework", - "java", - "jboss", - "jee_full_profile" - ], - "type":"standalone", - "url":null, - "usage_rates":[ - - ], - "version":"7", - "website":"http://www.jboss.org" - }, - { - "additional_gear_storage":0, - "base_gear_storage":1, - "collocated_with":[ - "jbossas-7" - ], - "current_scale":1, - "description":"Acts as a load balancer for your web cartridge and will automatically scale up to handle incoming traffic. Is automatically added to scaled applications when they are created and cannot be removed or added to an application after the fact.", - "display_name":"OpenShift Web Balancer", - "gear_profile":"small", - "help_topics":{ - - }, - "license":"GPLv2+", - "license_url":"http://www.gnu.org/licenses/gpl-2.0.html", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/haproxy-1.4", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get cartridge", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/haproxy-1.4", - "method":"PUT", - "optional_params":[ - { - "default_value":null, - "description":"Additional filesystem storage in gigabytes on each gear having cartridge haproxy-1.4", - "name":"additional_gear_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Minimum number of gears having cartridge haproxy-1.4", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears having cartridge haproxy-1.4", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - } - ], - "rel":"Update cartridge configuration", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/haproxy-1.4/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start embedded cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/haproxy-1.4/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/haproxy-1.4/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/haproxy-1.4/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/haproxy-1.4", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete cartridge", - "required_params":[ - - ] - } - }, - "name":"haproxy-1.4", - "properties":[ - - ], - "scales_from":1, - "scales_to":1, - "scales_with":"haproxy-1.4", - "status_messages":null, - "supported_scales_from":1, - "supported_scales_to":1, - "tags":[ - "web_proxy", - "scales", - "embedded" - ], - "type":"embedded", - "url":null, - "usage_rates":[ - - ], - "version":"1.4", - "website":"http://haproxy.1wt.eu/" - } - ], - "creation_time":"2013-09-20T21:20:49Z", - "domain_id":"foobarz", - "embedded":{ - "haproxy-1.4":{ - - } - }, - "framework":"jbossas-7", - "gear_count":1, - "gear_profile":"small", - "git_url":"ssh://523cbc31e0b8cdae1e0000ac@scalable-foobarz.rhcloud.com/~/git/scalable.git/", - "health_check_path":"health", - "initial_git_url":null, - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get application", - "required_params":[ - - ] - }, - "GET_DESCRIPTOR":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/descriptor", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get application descriptor", - "required_params":[ - - ] - }, - "GET_GEAR_GROUPS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/gear_groups", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get application gear groups", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "FORCE_STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Force stop application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "force-stop" - ] - } - ] - }, - "ADD_ALIAS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Add application alias", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "add-alias" - ] - }, - { - "description":"The server alias for the application", - "invalid_options":[ - - ], - "name":"alias", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "REMOVE_ALIAS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Remove application alias", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "remove-alias" - ] - }, - { - "description":"The application alias to be removed", - "invalid_options":[ - - ], - "name":"alias", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "SCALE_UP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Scale up application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "scale-up" - ] - } - ] - }, - "SCALE_DOWN":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Scale down application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "scale-down" - ] - } - ] - }, - "TIDY":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Tidy the application framework", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "tidy" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload the application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "THREAD_DUMP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Trigger thread dump", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "thread-dump" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete application", - "required_params":[ - - ] - }, - "ADD_CARTRIDGE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges", - "method":"POST", - "optional_params":[ - { - "default_value":null, - "description":"The component to colocate with", - "name":"colocate_with", - "type":"string", - "valid_options":[ - "jbossas-7", - "haproxy-1.4" - ] - }, - { - "default_value":null, - "description":"Minimum number of gears to run the component on.", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears to run the component on.", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Additional GB of space to request on all gears running this component.", - "name":"additional_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Add or Update application environment variables, e.g.:[{'name':'FOO', 'value':'123'}, {'name':'BAR', 'value':'abc'}]", - "name":"environment_variables", - "type":"array", - "valid_options":[ - - ] - } - ], - "rel":"Add embedded cartridge", - "required_params":[ - { - "description":"framework-type, e.g.: mongodb-2.2", - "invalid_options":[ - - ], - "name":"name", - "type":"string", - "valid_options":[ - "cron-1.4", - "phpmyadmin-4", - "rockmongo-1.1", - "switchyard-0", - "metrics-0.1", - "10gen-mms-agent-0.1", - "mysql-5.1", - "haproxy-1.4", - "postgresql-9.2", - "postgresql-8.4", - "mongodb-2.2", - "jenkins-client-1" - ] - } - ] - }, - "LIST_CARTRIDGES":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges", - "method":"GET", - "optional_params":[ - - ], - "rel":"List embedded cartridges", - "required_params":[ - - ] - }, - "DNS_RESOLVABLE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/dns_resolvable", - "method":"GET", - "optional_params":[ - - ], - "rel":"Resolve DNS", - "required_params":[ - - ] - }, - "SET_UNSET_ENVIRONMENT_VARIABLES":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/environment-variables", - "method":"POST", - "optional_params":[ - { - "default_value":null, - "description":"Name of the environment variable to add/update", - "name":"name", - "type":"string", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Value of the environment variable", - "name":"value", - "type":"string", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Add/Update/Delete application environment variables, e.g. Add/Update: [{'name':'FOO', 'value':'123'}, {'name':'BAR', 'value':'abc'}], Delete: [{'name':'FOO'}, {'name':'BAR'}]", - "name":"environment_variables", - "type":"array", - "valid_options":[ - - ] - } - ], - "rel":"Add/Update/Delete one or more environment variables", - "required_params":[ - - ] - }, - "LIST_ENVIRONMENT_VARIABLES":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/environment-variables", - "method":"GET", - "optional_params":[ - - ], - "rel":"List all environment variables", - "required_params":[ - - ] - } - }, - "name":"scalable", - "scalable":true, - "ssh_url":"ssh://523cbc31e0b8cdae1e0000ac@scalable-foobarz.rhcloud.com", - "uuid":"523cbc31e0b8cdae1e0000ac" - }, - { - "aliases":[ - "jbosstools.org" - ], - "app_url":"http://springeap6-foobarz.rhcloud.com/", - "build_job_url":null, - "building_app":null, - "building_with":null, - "cartridges":[ - { - "additional_gear_storage":0, - "base_gear_storage":1, - "collocated_with":[ - "mongodb-2.2" - ], - "current_scale":1, - "description":"Market-leading open source enterprise platform for next-generation, highly transactional enterprise Java applications. Build and deploy enterprise Java in the cloud.", - "display_name":"JBoss Enterprise Application Platform 6.1.0", - "gear_profile":"small", - "help_topics":{ - "Building with MongoDB":"https://www.openshift.com/developers/mongodb" - }, - "license":"LGPL", - "license_url":"http://www.gnu.org/copyleft/lesser.txt", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get cartridge", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6", - "method":"PUT", - "optional_params":[ - { - "default_value":null, - "description":"Additional filesystem storage in gigabytes on each gear having cartridge jbosseap-6", - "name":"additional_gear_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Minimum number of gears having cartridge jbosseap-6", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears having cartridge jbosseap-6", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - } - ], - "rel":"Update cartridge configuration", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start embedded cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete cartridge", - "required_params":[ - - ] - } - }, - "name":"jbosseap-6", - "properties":[ - { - "name":"OPENSHIFT_JBOSSEAP_LOG_DIR", - "type":"environment", - "description":"Directory to store application log files." - }, - { - "name":"OPENSHIFT_TMP_DIR", - "type":"environment", - "description":"Directory to store application temporary files." - }, - { - "name":"OPENSHIFT_REPO_DIR", - "type":"environment", - "description":"Application root directory where application files reside. This directory is reset every time you do a git-push" - }, - { - "name":"OPENSHIFT_JBOSSEAP_HTTP_PORT", - "type":"environment", - "description":"Internal port to which the web-framework binds to." - }, - { - "name":"OPENSHIFT_JBOSSEAP_IP", - "type":"environment", - "description":"Internal IP to which the web-framework binds to." - }, - { - "name":"OPENSHIFT_APP_DNS", - "type":"environment", - "description":"Fully qualified domain name for the application." - }, - { - "name":"OPENSHIFT_APP_NAME", - "type":"environment", - "description":"Application name" - }, - { - "name":"OPENSHIFT_DATA_DIR", - "type":"environment", - "description":"Directory to store application data files. Preserved across git-pushes. Not shared across gears." - }, - { - "name":"OPENSHIFT_APP_UUID", - "type":"environment", - "description":"Unique ID which identified the application. Does not change between gears." - }, - { - "name":"OPENSHIFT_GEAR_UUID", - "type":"environment", - "description":"Unique ID which identified the gear. This value changes between gears." - } - ], - "scales_from":1, - "scales_to":1, - "scales_with":null, - "status_messages":null, - "supported_scales_from":1, - "supported_scales_to":1, - "tags":[ - "service", - "web_framework", - "java", - "jboss", - "jee_full_profile" - ], - "type":"standalone", - "url":null, - "usage_rates":[ - { - "plan_id":"silver", - "usd":0.03, - "cad":0.03, - "eur":0.02, - "duration":"hour" - } - ], - "version":"6", - "website":"http://www.redhat.com/products/jbossenterprisemiddleware/application-platform/" - }, - { - "additional_gear_storage":0, - "base_gear_storage":1, - "collocated_with":[ - "jbosseap-6" - ], - "current_scale":1, - "description":"MongoDB is a scalable, high-performance, open source NoSQL database.", - "display_name":"MongoDB NoSQL Database 2.2", - "gear_profile":"small", - "help_topics":{ - "Building with MongoDB":"https://www.openshift.com/developers/mongodb" - }, - "license":"ASL 2.0", - "license_url":"", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get cartridge", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2", - "method":"PUT", - "optional_params":[ - { - "default_value":null, - "description":"Additional filesystem storage in gigabytes on each gear having cartridge mongodb-2.2", - "name":"additional_gear_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Minimum number of gears having cartridge mongodb-2.2", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears having cartridge mongodb-2.2", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - } - ], - "rel":"Update cartridge configuration", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start embedded cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete cartridge", - "required_params":[ - - ] - } - }, - "name":"mongodb-2.2", - "properties":[ - { - "name":"username", - "type":"cart_data", - "description":"Root user on mongo database", - "value":"admin" - }, - { - "name":"password", - "type":"cart_data", - "description":"Password for root user on mongo database", - "value":"VwFPWQEs1PEl" - }, - { - "name":"database_name", - "type":"cart_data", - "description":"Mongo DB name", - "value":"springeap6" - }, - { - "name":"connection_url", - "type":"cart_data", - "description":"Mongo DB connection URL", - "value":"mongodb://$OPENSHIFT_MONGODB_DB_HOST:$OPENSHIFT_MONGODB_DB_PORT/" - } - ], - "scales_from":1, - "scales_to":1, - "scales_with":null, - "status_messages":null, - "supported_scales_from":1, - "supported_scales_to":1, - "tags":[ - "service", - "database", - "nosql", - "embedded" - ], - "type":"embedded", - "url":null, - "usage_rates":[ - - ], - "version":"2.2", - "website":"http://www.10gen.com" - } - ], - "creation_time":"2013-09-20T21:28:53Z", - "domain_id":"foobarz", - "embedded":{ - "mongodb-2.2":{ - "connection_url":"mongodb://$OPENSHIFT_MONGODB_DB_HOST:$OPENSHIFT_MONGODB_DB_PORT/", - "username":"admin", - "password":"VwFPWQEs1PEl", - "database_name":"springeap6", - "info":"Connection URL: mongodb://$OPENSHIFT_MONGODB_DB_HOST:$OPENSHIFT_MONGODB_DB_PORT/" - } - }, - "framework":"jbosseap-6", - "gear_count":1, - "gear_profile":"small", - "git_url":"ssh://523cbe15e0b8cd0a520001b6@springeap6-foobarz.rhcloud.com/~/git/springeap6.git/", - "health_check_path":"health", - "initial_git_url":"git://github.com/openshift/spring-eap6-quickstart.git", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get application", - "required_params":[ - - ] - }, - "GET_DESCRIPTOR":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/descriptor", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get application descriptor", - "required_params":[ - - ] - }, - "GET_GEAR_GROUPS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/gear_groups", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get application gear groups", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "FORCE_STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Force stop application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "force-stop" - ] - } - ] - }, - "ADD_ALIAS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Add application alias", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "add-alias" - ] - }, - { - "description":"The server alias for the application", - "invalid_options":[ - - ], - "name":"alias", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "REMOVE_ALIAS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Remove application alias", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "remove-alias" - ] - }, - { - "description":"The application alias to be removed", - "invalid_options":[ - - ], - "name":"alias", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "SCALE_UP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Scale up application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "scale-up" - ] - } - ] - }, - "SCALE_DOWN":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Scale down application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "scale-down" - ] - } - ] - }, - "TIDY":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Tidy the application framework", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "tidy" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload the application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "THREAD_DUMP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Trigger thread dump", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "thread-dump" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete application", - "required_params":[ - - ] - }, - "ADD_CARTRIDGE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges", - "method":"POST", - "optional_params":[ - { - "default_value":null, - "description":"The component to colocate with", - "name":"colocate_with", - "type":"string", - "valid_options":[ - "jbosseap-6", - "mongodb-2.2" - ] - }, - { - "default_value":null, - "description":"Minimum number of gears to run the component on.", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears to run the component on.", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Additional GB of space to request on all gears running this component.", - "name":"additional_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Add or Update application environment variables, e.g.:[{'name':'FOO', 'value':'123'}, {'name':'BAR', 'value':'abc'}]", - "name":"environment_variables", - "type":"array", - "valid_options":[ - - ] - } - ], - "rel":"Add embedded cartridge", - "required_params":[ - { - "description":"framework-type, e.g.: mongodb-2.2", - "invalid_options":[ - - ], - "name":"name", - "type":"string", - "valid_options":[ - "cron-1.4", - "phpmyadmin-4", - "rockmongo-1.1", - "switchyard-0", - "metrics-0.1", - "10gen-mms-agent-0.1", - "mysql-5.1", - "haproxy-1.4", - "postgresql-9.2", - "postgresql-8.4", - "mongodb-2.2", - "jenkins-client-1" - ] - } - ] - }, - "LIST_CARTRIDGES":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges", - "method":"GET", - "optional_params":[ - - ], - "rel":"List embedded cartridges", - "required_params":[ - - ] - }, - "DNS_RESOLVABLE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/dns_resolvable", - "method":"GET", - "optional_params":[ - - ], - "rel":"Resolve DNS", - "required_params":[ - - ] - }, - "SET_UNSET_ENVIRONMENT_VARIABLES":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/environment-variables", - "method":"POST", - "optional_params":[ - { - "default_value":null, - "description":"Name of the environment variable to add/update", - "name":"name", - "type":"string", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Value of the environment variable", - "name":"value", - "type":"string", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Add/Update/Delete application environment variables, e.g. Add/Update: [{'name':'FOO', 'value':'123'}, {'name':'BAR', 'value':'abc'}], Delete: [{'name':'FOO'}, {'name':'BAR'}]", - "name":"environment_variables", - "type":"array", - "valid_options":[ - - ] - } - ], - "rel":"Add/Update/Delete one or more environment variables", - "required_params":[ - - ] - }, - "LIST_ENVIRONMENT_VARIABLES":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/environment-variables", - "method":"GET", - "optional_params":[ - - ], - "rel":"List all environment variables", - "required_params":[ - - ] - } - }, - "name":"springeap6", - "scalable":false, - "ssh_url":"ssh://523cbe15e0b8cd0a520001b6@springeap6-foobarz.rhcloud.com", - "uuid":"523cbe15e0b8cd0a520001b6" - } - ], - "messages":[ - { - "exit_code":0, - "field":null, - "severity":"info", - "text":"Found 2 applications." - } - ], - "status":"ok", - "supported_api_versions":[ - 1.0, - 1.1, - 1.2, - 1.3, - 1.4, - 1.5, - 1.6 - ], - "type":"applications", - "version":"1.2" -} \ No newline at end of file diff --git a/src/test/resources/samples/get-domains-foobarz-applications_2embedded.json b/src/test/resources/samples/get-domains-foobarz-applications_2embedded.json deleted file mode 100644 index 1271ac1e..00000000 --- a/src/test/resources/samples/get-domains-foobarz-applications_2embedded.json +++ /dev/null @@ -1,2058 +0,0 @@ -{ - "api_version":1.2, - "data":[ - { - "aliases":[ - - ], - "app_url":"http://scalable-foobarz.rhcloud.com/", - "build_job_url":null, - "building_app":null, - "building_with":null, - "cartridges":[ - { - "additional_gear_storage":0, - "base_gear_storage":1, - "collocated_with":[ - "haproxy-1.4" - ], - "current_scale":1, - "description":"The leading open source Java EE6 application server for enterprise Java applications. Popular development frameworks include Seam, CDI, Weld, and Spring.", - "display_name":"JBoss Application Server 7", - "gear_profile":"small", - "help_topics":{ - - }, - "license":"LGPL", - "license_url":"http://www.gnu.org/copyleft/lesser.txt", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/jbossas-7", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get cartridge", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/jbossas-7", - "method":"PUT", - "optional_params":[ - { - "default_value":null, - "description":"Additional filesystem storage in gigabytes on each gear having cartridge jbossas-7", - "name":"additional_gear_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Minimum number of gears having cartridge jbossas-7", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears having cartridge jbossas-7", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - } - ], - "rel":"Update cartridge configuration", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/jbossas-7/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start embedded cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/jbossas-7/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/jbossas-7/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/jbossas-7/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/jbossas-7", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete cartridge", - "required_params":[ - - ] - } - }, - "name":"jbossas-7", - "properties":[ - { - "name":"OPENSHIFT_JBOSSAS_LOG_DIR", - "type":"environment", - "description":"Directory to store application log files." - }, - { - "name":"OPENSHIFT_TMP_DIR", - "type":"environment", - "description":"Directory to store application temporary files." - }, - { - "name":"OPENSHIFT_REPO_DIR", - "type":"environment", - "description":"Application root directory where application files reside. This directory is reset every time you do a git-push" - }, - { - "name":"OPENSHIFT_JBOSSAS_HTTP_PORT", - "type":"environment", - "description":"Internal port to which the web-framework binds to." - }, - { - "name":"OPENSHIFT_JBOSSAS_IP", - "type":"environment", - "description":"Internal IP to which the web-framework binds to." - }, - { - "name":"OPENSHIFT_APP_DNS", - "type":"environment", - "description":"Fully qualified domain name for the application." - }, - { - "name":"OPENSHIFT_APP_NAME", - "type":"environment", - "description":"Application name" - }, - { - "name":"OPENSHIFT_DATA_DIR", - "type":"environment", - "description":"Directory to store application data files. Preserved across git-pushes. Not shared across gears." - }, - { - "name":"OPENSHIFT_APP_UUID", - "type":"environment", - "description":"Unique ID which identified the application. Does not change between gears." - }, - { - "name":"OPENSHIFT_GEAR_UUID", - "type":"environment", - "description":"Unique ID which identified the gear. This value changes between gears." - } - ], - "scales_from":1, - "scales_to":-1, - "scales_with":"haproxy-1.4", - "status_messages":null, - "supported_scales_from":1, - "supported_scales_to":-1, - "tags":[ - "service", - "web_framework", - "java", - "jboss", - "jee_full_profile" - ], - "type":"standalone", - "url":null, - "usage_rates":[ - - ], - "version":"7", - "website":"http://www.jboss.org" - }, - { - "additional_gear_storage":0, - "base_gear_storage":1, - "collocated_with":[ - "jbossas-7" - ], - "current_scale":1, - "description":"Acts as a load balancer for your web cartridge and will automatically scale up to handle incoming traffic. Is automatically added to scaled applications when they are created and cannot be removed or added to an application after the fact.", - "display_name":"OpenShift Web Balancer", - "gear_profile":"small", - "help_topics":{ - - }, - "license":"GPLv2+", - "license_url":"http://www.gnu.org/licenses/gpl-2.0.html", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/haproxy-1.4", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get cartridge", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/haproxy-1.4", - "method":"PUT", - "optional_params":[ - { - "default_value":null, - "description":"Additional filesystem storage in gigabytes on each gear having cartridge haproxy-1.4", - "name":"additional_gear_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Minimum number of gears having cartridge haproxy-1.4", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears having cartridge haproxy-1.4", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - } - ], - "rel":"Update cartridge configuration", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/haproxy-1.4/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start embedded cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/haproxy-1.4/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/haproxy-1.4/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/haproxy-1.4/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/haproxy-1.4", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete cartridge", - "required_params":[ - - ] - } - }, - "name":"haproxy-1.4", - "properties":[ - - ], - "scales_from":1, - "scales_to":1, - "scales_with":"haproxy-1.4", - "status_messages":null, - "supported_scales_from":1, - "supported_scales_to":1, - "tags":[ - "web_proxy", - "scales", - "embedded" - ], - "type":"embedded", - "url":null, - "usage_rates":[ - - ], - "version":"1.4", - "website":"http://haproxy.1wt.eu/" - } - ], - "creation_time":"2013-09-20T21:20:49Z", - "domain_id":"foobarz", - "embedded":{ - "haproxy-1.4":{ - - } - }, - "framework":"jbossas-7", - "gear_count":1, - "gear_profile":"small", - "git_url":"ssh://523cbc31e0b8cdae1e0000ac@scalable-foobarz.rhcloud.com/~/git/scalable.git/", - "health_check_path":"health", - "initial_git_url":"git://github.com/openshift/spring-eap6-quickstart.git", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get application", - "required_params":[ - - ] - }, - "GET_DESCRIPTOR":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/descriptor", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get application descriptor", - "required_params":[ - - ] - }, - "GET_GEAR_GROUPS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/gear_groups", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get application gear groups", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "FORCE_STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Force stop application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "force-stop" - ] - } - ] - }, - "ADD_ALIAS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Add application alias", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "add-alias" - ] - }, - { - "description":"The server alias for the application", - "invalid_options":[ - - ], - "name":"alias", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "REMOVE_ALIAS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Remove application alias", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "remove-alias" - ] - }, - { - "description":"The application alias to be removed", - "invalid_options":[ - - ], - "name":"alias", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "SCALE_UP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Scale up application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "scale-up" - ] - } - ] - }, - "SCALE_DOWN":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Scale down application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "scale-down" - ] - } - ] - }, - "TIDY":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Tidy the application framework", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "tidy" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload the application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "THREAD_DUMP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Trigger thread dump", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "thread-dump" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete application", - "required_params":[ - - ] - }, - "ADD_CARTRIDGE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges", - "method":"POST", - "optional_params":[ - { - "default_value":null, - "description":"The component to colocate with", - "name":"colocate_with", - "type":"string", - "valid_options":[ - "jbossas-7", - "haproxy-1.4" - ] - }, - { - "default_value":null, - "description":"Minimum number of gears to run the component on.", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears to run the component on.", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Additional GB of space to request on all gears running this component.", - "name":"additional_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Add or Update application environment variables, e.g.:[{'name':'FOO', 'value':'123'}, {'name':'BAR', 'value':'abc'}]", - "name":"environment_variables", - "type":"array", - "valid_options":[ - - ] - } - ], - "rel":"Add embedded cartridge", - "required_params":[ - { - "description":"framework-type, e.g.: mongodb-2.2", - "invalid_options":[ - - ], - "name":"name", - "type":"string", - "valid_options":[ - "cron-1.4", - "phpmyadmin-4", - "rockmongo-1.1", - "switchyard-0", - "metrics-0.1", - "10gen-mms-agent-0.1", - "mysql-5.1", - "haproxy-1.4", - "postgresql-9.2", - "postgresql-8.4", - "mongodb-2.2", - "jenkins-client-1" - ] - } - ] - }, - "LIST_CARTRIDGES":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges", - "method":"GET", - "optional_params":[ - - ], - "rel":"List embedded cartridges", - "required_params":[ - - ] - }, - "DNS_RESOLVABLE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/dns_resolvable", - "method":"GET", - "optional_params":[ - - ], - "rel":"Resolve DNS", - "required_params":[ - - ] - }, - "SET_UNSET_ENVIRONMENT_VARIABLES":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/environment-variables", - "method":"POST", - "optional_params":[ - { - "default_value":null, - "description":"Name of the environment variable to add/update", - "name":"name", - "type":"string", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Value of the environment variable", - "name":"value", - "type":"string", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Add/Update/Delete application environment variables, e.g. Add/Update: [{'name':'FOO', 'value':'123'}, {'name':'BAR', 'value':'abc'}], Delete: [{'name':'FOO'}, {'name':'BAR'}]", - "name":"environment_variables", - "type":"array", - "valid_options":[ - - ] - } - ], - "rel":"Add/Update/Delete one or more environment variables", - "required_params":[ - - ] - }, - "LIST_ENVIRONMENT_VARIABLES":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/environment-variables", - "method":"GET", - "optional_params":[ - - ], - "rel":"List all environment variables", - "required_params":[ - - ] - } - }, - "name":"scalable", - "scalable":true, - "ssh_url":"ssh://523cbc31e0b8cdae1e0000ac@scalable-foobarz.rhcloud.com", - "uuid":"523cbc31e0b8cdae1e0000ac" - }, - { - "aliases":[ - "jbosstools.org" - ], - "app_url":"http://springeap6-foobarz.rhcloud.com/", - "build_job_url":null, - "building_app":null, - "building_with":null, - "cartridges":[ - { - "additional_gear_storage":0, - "base_gear_storage":1, - "collocated_with":[ - "mongodb-2.2", - "mysql-5.1" - ], - "current_scale":1, - "description":"Market-leading open source enterprise platform for next-generation, highly transactional enterprise Java applications. Build and deploy enterprise Java in the cloud.", - "display_name":"JBoss Enterprise Application Platform 6.1.0", - "gear_profile":"small", - "help_topics":{ - "Building with MySQL":"http://docs.redhat.com/docs/en-US/OpenShift/2.0/html/User_Guide/sect-User_Guide-Working_With_Database_Cartridges.html" - }, - "license":"LGPL", - "license_url":"http://www.gnu.org/copyleft/lesser.txt", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get cartridge", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6", - "method":"PUT", - "optional_params":[ - { - "default_value":null, - "description":"Additional filesystem storage in gigabytes on each gear having cartridge jbosseap-6", - "name":"additional_gear_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Minimum number of gears having cartridge jbosseap-6", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears having cartridge jbosseap-6", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - } - ], - "rel":"Update cartridge configuration", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start embedded cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete cartridge", - "required_params":[ - - ] - } - }, - "name":"jbosseap-6", - "properties":[ - { - "name":"OPENSHIFT_JBOSSEAP_LOG_DIR", - "type":"environment", - "description":"Directory to store application log files." - }, - { - "name":"OPENSHIFT_TMP_DIR", - "type":"environment", - "description":"Directory to store application temporary files." - }, - { - "name":"OPENSHIFT_REPO_DIR", - "type":"environment", - "description":"Application root directory where application files reside. This directory is reset every time you do a git-push" - }, - { - "name":"OPENSHIFT_JBOSSEAP_HTTP_PORT", - "type":"environment", - "description":"Internal port to which the web-framework binds to." - }, - { - "name":"OPENSHIFT_JBOSSEAP_IP", - "type":"environment", - "description":"Internal IP to which the web-framework binds to." - }, - { - "name":"OPENSHIFT_APP_DNS", - "type":"environment", - "description":"Fully qualified domain name for the application." - }, - { - "name":"OPENSHIFT_APP_NAME", - "type":"environment", - "description":"Application name" - }, - { - "name":"OPENSHIFT_DATA_DIR", - "type":"environment", - "description":"Directory to store application data files. Preserved across git-pushes. Not shared across gears." - }, - { - "name":"OPENSHIFT_APP_UUID", - "type":"environment", - "description":"Unique ID which identified the application. Does not change between gears." - }, - { - "name":"OPENSHIFT_GEAR_UUID", - "type":"environment", - "description":"Unique ID which identified the gear. This value changes between gears." - } - ], - "scales_from":1, - "scales_to":1, - "scales_with":null, - "status_messages":null, - "supported_scales_from":1, - "supported_scales_to":1, - "tags":[ - "service", - "web_framework", - "java", - "jboss", - "jee_full_profile" - ], - "type":"standalone", - "url":null, - "usage_rates":[ - { - "plan_id":"silver", - "usd":0.03, - "cad":0.03, - "eur":0.02, - "duration":"hour" - } - ], - "version":"6", - "website":"http://www.redhat.com/products/jbossenterprisemiddleware/application-platform/" - }, - { - "additional_gear_storage":0, - "base_gear_storage":1, - "collocated_with":[ - "jbosseap-6", - "mysql-5.1" - ], - "current_scale":1, - "description":"MongoDB is a scalable, high-performance, open source NoSQL database.", - "display_name":"MongoDB NoSQL Database 2.2", - "gear_profile":"small", - "help_topics":{ - "Building with MySQL":"http://docs.redhat.com/docs/en-US/OpenShift/2.0/html/User_Guide/sect-User_Guide-Working_With_Database_Cartridges.html" - }, - "license":"ASL 2.0", - "license_url":"", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get cartridge", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2", - "method":"PUT", - "optional_params":[ - { - "default_value":null, - "description":"Additional filesystem storage in gigabytes on each gear having cartridge mongodb-2.2", - "name":"additional_gear_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Minimum number of gears having cartridge mongodb-2.2", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears having cartridge mongodb-2.2", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - } - ], - "rel":"Update cartridge configuration", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start embedded cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete cartridge", - "required_params":[ - - ] - } - }, - "name":"mongodb-2.2", - "properties":[ - { - "name":"username", - "type":"cart_data", - "description":"Root user on mongo database", - "value":"admin" - }, - { - "name":"password", - "type":"cart_data", - "description":"Password for root user on mongo database", - "value":"VwFPWQEs1PEl" - }, - { - "name":"database_name", - "type":"cart_data", - "description":"Mongo DB name", - "value":"springeap6" - }, - { - "name":"connection_url", - "type":"cart_data", - "description":"Mongo DB connection URL", - "value":"mongodb://$OPENSHIFT_MONGODB_DB_HOST:$OPENSHIFT_MONGODB_DB_PORT/" - } - ], - "scales_from":1, - "scales_to":1, - "scales_with":null, - "status_messages":null, - "supported_scales_from":1, - "supported_scales_to":1, - "tags":[ - "service", - "database", - "nosql", - "embedded" - ], - "type":"embedded", - "url":null, - "usage_rates":[ - - ], - "version":"2.2", - "website":"http://www.10gen.com" - }, - { - "additional_gear_storage":0, - "base_gear_storage":1, - "collocated_with":[ - "jbosseap-6", - "mongodb-2.2" - ], - "current_scale":1, - "description":"MySQL is a multi-user, multi-threaded SQL database server.", - "display_name":"MySQL Database 5.1", - "gear_profile":"small", - "help_topics":{ - "Building with MySQL":"http://docs.redhat.com/docs/en-US/OpenShift/2.0/html/User_Guide/sect-User_Guide-Working_With_Database_Cartridges.html" - }, - "license":"GPL", - "license_url":"", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mysql-5.1", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get cartridge", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mysql-5.1", - "method":"PUT", - "optional_params":[ - { - "default_value":null, - "description":"Additional filesystem storage in gigabytes on each gear having cartridge mysql-5.1", - "name":"additional_gear_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Minimum number of gears having cartridge mysql-5.1", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears having cartridge mysql-5.1", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - } - ], - "rel":"Update cartridge configuration", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mysql-5.1/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start embedded cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mysql-5.1/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mysql-5.1/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mysql-5.1/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mysql-5.1", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete cartridge", - "required_params":[ - - ] - } - }, - "name":"mysql-5.1", - "properties":[ - { - "name":"username", - "type":"cart_data", - "description":"Root user on mysql database", - "value":"adminBFyZLQZ" - }, - { - "name":"password", - "type":"cart_data", - "description":"Password for root user on mysql database", - "value":"pkMImy_mwUvL" - }, - { - "name":"database_name", - "type":"cart_data", - "description":"MySQL DB name", - "value":"springeap6" - }, - { - "name":"connection_url", - "type":"cart_data", - "description":"MySQL DB connection URL", - "value":"mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/" - } - ], - "scales_from":1, - "scales_to":1, - "scales_with":null, - "status_messages":null, - "supported_scales_from":1, - "supported_scales_to":1, - "tags":[ - "service", - "database", - "embedded" - ], - "type":"embedded", - "url":null, - "usage_rates":[ - - ], - "version":"5.1", - "website":"http://www.mysql.com" - } - ], - "creation_time":"2013-09-20T21:28:53Z", - "domain_id":"foobarz", - "embedded":{ - "mongodb-2.2":{ - "connection_url":"mongodb://$OPENSHIFT_MONGODB_DB_HOST:$OPENSHIFT_MONGODB_DB_PORT/", - "username":"admin", - "password":"VwFPWQEs1PEl", - "database_name":"springeap6", - "info":"Connection URL: mongodb://$OPENSHIFT_MONGODB_DB_HOST:$OPENSHIFT_MONGODB_DB_PORT/" - }, - "mysql-5.1":{ - "connection_url":"mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/", - "username":"adminBFyZLQZ", - "password":"pkMImy_mwUvL", - "database_name":"springeap6", - "info":"Connection URL: mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/" - } - }, - "framework":"jbosseap-6", - "gear_count":1, - "gear_profile":"small", - "git_url":"ssh://523cbe15e0b8cd0a520001b6@springeap6-foobarz.rhcloud.com/~/git/springeap6.git/", - "health_check_path":"health", - "initial_git_url":"git://github.com/openshift/spring-eap6-quickstart.git", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get application", - "required_params":[ - - ] - }, - "GET_DESCRIPTOR":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/descriptor", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get application descriptor", - "required_params":[ - - ] - }, - "GET_GEAR_GROUPS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/gear_groups", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get application gear groups", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "FORCE_STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Force stop application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "force-stop" - ] - } - ] - }, - "ADD_ALIAS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Add application alias", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "add-alias" - ] - }, - { - "description":"The server alias for the application", - "invalid_options":[ - - ], - "name":"alias", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "REMOVE_ALIAS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Remove application alias", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "remove-alias" - ] - }, - { - "description":"The application alias to be removed", - "invalid_options":[ - - ], - "name":"alias", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "SCALE_UP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Scale up application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "scale-up" - ] - } - ] - }, - "SCALE_DOWN":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Scale down application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "scale-down" - ] - } - ] - }, - "TIDY":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Tidy the application framework", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "tidy" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload the application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "THREAD_DUMP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Trigger thread dump", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "thread-dump" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete application", - "required_params":[ - - ] - }, - "ADD_CARTRIDGE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges", - "method":"POST", - "optional_params":[ - { - "default_value":null, - "description":"The component to colocate with", - "name":"colocate_with", - "type":"string", - "valid_options":[ - "jbosseap-6", - "mongodb-2.2", - "mysql-5.1" - ] - }, - { - "default_value":null, - "description":"Minimum number of gears to run the component on.", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears to run the component on.", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Additional GB of space to request on all gears running this component.", - "name":"additional_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Add or Update application environment variables, e.g.:[{'name':'FOO', 'value':'123'}, {'name':'BAR', 'value':'abc'}]", - "name":"environment_variables", - "type":"array", - "valid_options":[ - - ] - } - ], - "rel":"Add embedded cartridge", - "required_params":[ - { - "description":"framework-type, e.g.: mongodb-2.2", - "invalid_options":[ - - ], - "name":"name", - "type":"string", - "valid_options":[ - "cron-1.4", - "phpmyadmin-4", - "rockmongo-1.1", - "switchyard-0", - "metrics-0.1", - "10gen-mms-agent-0.1", - "mysql-5.1", - "haproxy-1.4", - "postgresql-9.2", - "postgresql-8.4", - "mongodb-2.2", - "jenkins-client-1" - ] - } - ] - }, - "LIST_CARTRIDGES":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges", - "method":"GET", - "optional_params":[ - - ], - "rel":"List embedded cartridges", - "required_params":[ - - ] - }, - "DNS_RESOLVABLE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/dns_resolvable", - "method":"GET", - "optional_params":[ - - ], - "rel":"Resolve DNS", - "required_params":[ - - ] - }, - "SET_UNSET_ENVIRONMENT_VARIABLES":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/environment-variables", - "method":"POST", - "optional_params":[ - { - "default_value":null, - "description":"Name of the environment variable to add/update", - "name":"name", - "type":"string", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Value of the environment variable", - "name":"value", - "type":"string", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Add/Update/Delete application environment variables, e.g. Add/Update: [{'name':'FOO', 'value':'123'}, {'name':'BAR', 'value':'abc'}], Delete: [{'name':'FOO'}, {'name':'BAR'}]", - "name":"environment_variables", - "type":"array", - "valid_options":[ - - ] - } - ], - "rel":"Add/Update/Delete one or more environment variables", - "required_params":[ - - ] - }, - "LIST_ENVIRONMENT_VARIABLES":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/environment-variables", - "method":"GET", - "optional_params":[ - - ], - "rel":"List all environment variables", - "required_params":[ - - ] - } - }, - "name":"springeap6", - "scalable":false, - "ssh_url":"ssh://523cbe15e0b8cd0a520001b6@springeap6-foobarz.rhcloud.com", - "uuid":"523cbe15e0b8cd0a520001b6" - } - ], - "messages":[ - { - "exit_code":0, - "field":null, - "severity":"info", - "text":"Found 2 applications." - } - ], - "status":"ok", - "supported_api_versions":[ - 1.0, - 1.1, - 1.2, - 1.3, - 1.4, - 1.5, - 1.6 - ], - "type":"applications", - "version":"1.2" -} \ No newline at end of file diff --git a/src/test/resources/samples/get-domains-foobarz-applications_3embedded.json b/src/test/resources/samples/get-domains-foobarz-applications_3embedded.json deleted file mode 100644 index c4aea012..00000000 --- a/src/test/resources/samples/get-domains-foobarz-applications_3embedded.json +++ /dev/null @@ -1,2247 +0,0 @@ -{ - "api_version":1.2, - "data":[ - { - "aliases":[ - - ], - "app_url":"http://scalable-foobarz.rhcloud.com/", - "build_job_url":null, - "building_app":null, - "building_with":null, - "cartridges":[ - { - "additional_gear_storage":0, - "base_gear_storage":1, - "collocated_with":[ - "haproxy-1.4" - ], - "current_scale":1, - "description":"The leading open source Java EE6 application server for enterprise Java applications. Popular development frameworks include Seam, CDI, Weld, and Spring.", - "display_name":"JBoss Application Server 7", - "gear_profile":"small", - "help_topics":{ - - }, - "license":"LGPL", - "license_url":"http://www.gnu.org/copyleft/lesser.txt", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/jbossas-7", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get cartridge", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/jbossas-7", - "method":"PUT", - "optional_params":[ - { - "default_value":null, - "description":"Additional filesystem storage in gigabytes on each gear having cartridge jbossas-7", - "name":"additional_gear_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Minimum number of gears having cartridge jbossas-7", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears having cartridge jbossas-7", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - } - ], - "rel":"Update cartridge configuration", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/jbossas-7/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start embedded cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/jbossas-7/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/jbossas-7/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/jbossas-7/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/jbossas-7", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete cartridge", - "required_params":[ - - ] - } - }, - "name":"jbossas-7", - "properties":[ - { - "name":"OPENSHIFT_JBOSSAS_LOG_DIR", - "type":"environment", - "description":"Directory to store application log files." - }, - { - "name":"OPENSHIFT_TMP_DIR", - "type":"environment", - "description":"Directory to store application temporary files." - }, - { - "name":"OPENSHIFT_REPO_DIR", - "type":"environment", - "description":"Application root directory where application files reside. This directory is reset every time you do a git-push" - }, - { - "name":"OPENSHIFT_JBOSSAS_HTTP_PORT", - "type":"environment", - "description":"Internal port to which the web-framework binds to." - }, - { - "name":"OPENSHIFT_JBOSSAS_IP", - "type":"environment", - "description":"Internal IP to which the web-framework binds to." - }, - { - "name":"OPENSHIFT_APP_DNS", - "type":"environment", - "description":"Fully qualified domain name for the application." - }, - { - "name":"OPENSHIFT_APP_NAME", - "type":"environment", - "description":"Application name" - }, - { - "name":"OPENSHIFT_DATA_DIR", - "type":"environment", - "description":"Directory to store application data files. Preserved across git-pushes. Not shared across gears." - }, - { - "name":"OPENSHIFT_APP_UUID", - "type":"environment", - "description":"Unique ID which identified the application. Does not change between gears." - }, - { - "name":"OPENSHIFT_GEAR_UUID", - "type":"environment", - "description":"Unique ID which identified the gear. This value changes between gears." - } - ], - "scales_from":1, - "scales_to":-1, - "scales_with":"haproxy-1.4", - "status_messages":null, - "supported_scales_from":1, - "supported_scales_to":-1, - "tags":[ - "service", - "web_framework", - "java", - "jboss", - "jee_full_profile" - ], - "type":"standalone", - "url":null, - "usage_rates":[ - - ], - "version":"7", - "website":"http://www.jboss.org" - }, - { - "additional_gear_storage":0, - "base_gear_storage":1, - "collocated_with":[ - "jbossas-7" - ], - "current_scale":1, - "description":"Acts as a load balancer for your web cartridge and will automatically scale up to handle incoming traffic. Is automatically added to scaled applications when they are created and cannot be removed or added to an application after the fact.", - "display_name":"OpenShift Web Balancer", - "gear_profile":"small", - "help_topics":{ - - }, - "license":"GPLv2+", - "license_url":"http://www.gnu.org/licenses/gpl-2.0.html", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/haproxy-1.4", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get cartridge", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/haproxy-1.4", - "method":"PUT", - "optional_params":[ - { - "default_value":null, - "description":"Additional filesystem storage in gigabytes on each gear having cartridge haproxy-1.4", - "name":"additional_gear_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Minimum number of gears having cartridge haproxy-1.4", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears having cartridge haproxy-1.4", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - } - ], - "rel":"Update cartridge configuration", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/haproxy-1.4/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start embedded cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/haproxy-1.4/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/haproxy-1.4/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/haproxy-1.4/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/haproxy-1.4", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete cartridge", - "required_params":[ - - ] - } - }, - "name":"haproxy-1.4", - "properties":[ - - ], - "scales_from":1, - "scales_to":1, - "scales_with":"haproxy-1.4", - "status_messages":null, - "supported_scales_from":1, - "supported_scales_to":1, - "tags":[ - "web_proxy", - "scales", - "embedded" - ], - "type":"embedded", - "url":null, - "usage_rates":[ - - ], - "version":"1.4", - "website":"http://haproxy.1wt.eu/" - } - ], - "creation_time":"2013-09-20T21:20:49Z", - "domain_id":"foobarz", - "embedded":{ - "haproxy-1.4":{ - - } - }, - "framework":"jbossas-7", - "gear_count":1, - "gear_profile":"small", - "git_url":"ssh://523cbc31e0b8cdae1e0000ac@scalable-foobarz.rhcloud.com/~/git/scalable.git/", - "health_check_path":"health", - "initial_git_url":null, - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get application", - "required_params":[ - - ] - }, - "GET_DESCRIPTOR":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/descriptor", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get application descriptor", - "required_params":[ - - ] - }, - "GET_GEAR_GROUPS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/gear_groups", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get application gear groups", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "FORCE_STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Force stop application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "force-stop" - ] - } - ] - }, - "ADD_ALIAS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Add application alias", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "add-alias" - ] - }, - { - "description":"The server alias for the application", - "invalid_options":[ - - ], - "name":"alias", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "REMOVE_ALIAS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Remove application alias", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "remove-alias" - ] - }, - { - "description":"The application alias to be removed", - "invalid_options":[ - - ], - "name":"alias", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "SCALE_UP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Scale up application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "scale-up" - ] - } - ] - }, - "SCALE_DOWN":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Scale down application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "scale-down" - ] - } - ] - }, - "TIDY":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Tidy the application framework", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "tidy" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload the application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "THREAD_DUMP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Trigger thread dump", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "thread-dump" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete application", - "required_params":[ - - ] - }, - "ADD_CARTRIDGE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges", - "method":"POST", - "optional_params":[ - { - "default_value":null, - "description":"The component to colocate with", - "name":"colocate_with", - "type":"string", - "valid_options":[ - "jbossas-7", - "haproxy-1.4" - ] - }, - { - "default_value":null, - "description":"Minimum number of gears to run the component on.", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears to run the component on.", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Additional GB of space to request on all gears running this component.", - "name":"additional_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Add or Update application environment variables, e.g.:[{'name':'FOO', 'value':'123'}, {'name':'BAR', 'value':'abc'}]", - "name":"environment_variables", - "type":"array", - "valid_options":[ - - ] - } - ], - "rel":"Add embedded cartridge", - "required_params":[ - { - "description":"framework-type, e.g.: mongodb-2.2", - "invalid_options":[ - - ], - "name":"name", - "type":"string", - "valid_options":[ - "cron-1.4", - "phpmyadmin-4", - "rockmongo-1.1", - "switchyard-0", - "metrics-0.1", - "10gen-mms-agent-0.1", - "mysql-5.1", - "haproxy-1.4", - "postgresql-9.2", - "postgresql-8.4", - "mongodb-2.2", - "jenkins-client-1" - ] - } - ] - }, - "LIST_CARTRIDGES":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges", - "method":"GET", - "optional_params":[ - - ], - "rel":"List embedded cartridges", - "required_params":[ - - ] - }, - "DNS_RESOLVABLE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/dns_resolvable", - "method":"GET", - "optional_params":[ - - ], - "rel":"Resolve DNS", - "required_params":[ - - ] - }, - "SET_UNSET_ENVIRONMENT_VARIABLES":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/environment-variables", - "method":"POST", - "optional_params":[ - { - "default_value":null, - "description":"Name of the environment variable to add/update", - "name":"name", - "type":"string", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Value of the environment variable", - "name":"value", - "type":"string", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Add/Update/Delete application environment variables, e.g. Add/Update: [{'name':'FOO', 'value':'123'}, {'name':'BAR', 'value':'abc'}], Delete: [{'name':'FOO'}, {'name':'BAR'}]", - "name":"environment_variables", - "type":"array", - "valid_options":[ - - ] - } - ], - "rel":"Add/Update/Delete one or more environment variables", - "required_params":[ - - ] - }, - "LIST_ENVIRONMENT_VARIABLES":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/environment-variables", - "method":"GET", - "optional_params":[ - - ], - "rel":"List all environment variables", - "required_params":[ - - ] - } - }, - "name":"scalable", - "scalable":true, - "ssh_url":"ssh://523cbc31e0b8cdae1e0000ac@scalable-foobarz.rhcloud.com", - "uuid":"523cbc31e0b8cdae1e0000ac" - }, - { - "aliases":[ - - ], - "app_url":"http://springeap6-foobarz.rhcloud.com/", - "build_job_url":null, - "building_app":null, - "building_with":null, - "cartridges":[ - { - "additional_gear_storage":0, - "base_gear_storage":1, - "collocated_with":[ - "mongodb-2.2", - "mysql-5.1", - "switchyard-0" - ], - "current_scale":1, - "description":"Market-leading open source enterprise platform for next-generation, highly transactional enterprise Java applications. Build and deploy enterprise Java in the cloud.", - "display_name":"JBoss Enterprise Application Platform 6.1.0", - "gear_profile":"small", - "help_topics":{ - "Developer Center":"https://openshift.redhat.com/community/developers" - }, - "license":"LGPL", - "license_url":"http://www.gnu.org/copyleft/lesser.txt", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get cartridge", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6", - "method":"PUT", - "optional_params":[ - { - "default_value":null, - "description":"Additional filesystem storage in gigabytes on each gear having cartridge jbosseap-6", - "name":"additional_gear_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Minimum number of gears having cartridge jbosseap-6", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears having cartridge jbosseap-6", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - } - ], - "rel":"Update cartridge configuration", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start embedded cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete cartridge", - "required_params":[ - - ] - } - }, - "name":"jbosseap-6", - "properties":[ - { - "name":"OPENSHIFT_JBOSSEAP_LOG_DIR", - "type":"environment", - "description":"Directory to store application log files." - }, - { - "name":"OPENSHIFT_TMP_DIR", - "type":"environment", - "description":"Directory to store application temporary files." - }, - { - "name":"OPENSHIFT_REPO_DIR", - "type":"environment", - "description":"Application root directory where application files reside. This directory is reset every time you do a git-push" - }, - { - "name":"OPENSHIFT_JBOSSEAP_HTTP_PORT", - "type":"environment", - "description":"Internal port to which the web-framework binds to." - }, - { - "name":"OPENSHIFT_JBOSSEAP_IP", - "type":"environment", - "description":"Internal IP to which the web-framework binds to." - }, - { - "name":"OPENSHIFT_APP_DNS", - "type":"environment", - "description":"Fully qualified domain name for the application." - }, - { - "name":"OPENSHIFT_APP_NAME", - "type":"environment", - "description":"Application name" - }, - { - "name":"OPENSHIFT_DATA_DIR", - "type":"environment", - "description":"Directory to store application data files. Preserved across git-pushes. Not shared across gears." - }, - { - "name":"OPENSHIFT_APP_UUID", - "type":"environment", - "description":"Unique ID which identified the application. Does not change between gears." - }, - { - "name":"OPENSHIFT_GEAR_UUID", - "type":"environment", - "description":"Unique ID which identified the gear. This value changes between gears." - } - ], - "scales_from":1, - "scales_to":1, - "scales_with":null, - "status_messages":null, - "supported_scales_from":1, - "supported_scales_to":1, - "tags":[ - "service", - "web_framework", - "java", - "jboss", - "jee_full_profile" - ], - "type":"standalone", - "url":null, - "usage_rates":[ - { - "plan_id":"silver", - "usd":0.03, - "cad":0.03, - "eur":0.02, - "duration":"hour" - } - ], - "version":"6", - "website":"http://www.redhat.com/products/jbossenterprisemiddleware/application-platform/" - }, - { - "additional_gear_storage":0, - "base_gear_storage":1, - "collocated_with":[ - "jbosseap-6", - "mysql-5.1", - "switchyard-0" - ], - "current_scale":1, - "description":"MongoDB is a scalable, high-performance, open source NoSQL database.", - "display_name":"MongoDB NoSQL Database 2.2", - "gear_profile":"small", - "help_topics":{ - "Developer Center":"https://openshift.redhat.com/community/developers" - }, - "license":"ASL 2.0", - "license_url":"", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get cartridge", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2", - "method":"PUT", - "optional_params":[ - { - "default_value":null, - "description":"Additional filesystem storage in gigabytes on each gear having cartridge mongodb-2.2", - "name":"additional_gear_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Minimum number of gears having cartridge mongodb-2.2", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears having cartridge mongodb-2.2", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - } - ], - "rel":"Update cartridge configuration", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start embedded cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete cartridge", - "required_params":[ - - ] - } - }, - "name":"mongodb-2.2", - "properties":[ - { - "name":"username", - "type":"cart_data", - "description":"Root user on mongo database", - "value":"admin" - }, - { - "name":"password", - "type":"cart_data", - "description":"Password for root user on mongo database", - "value":"VwFPWQEs1PEl" - }, - { - "name":"database_name", - "type":"cart_data", - "description":"Mongo DB name", - "value":"springeap6" - }, - { - "name":"connection_url", - "type":"cart_data", - "description":"Mongo DB connection URL", - "value":"mongodb://$OPENSHIFT_MONGODB_DB_HOST:$OPENSHIFT_MONGODB_DB_PORT/" - } - ], - "scales_from":1, - "scales_to":1, - "scales_with":null, - "status_messages":null, - "supported_scales_from":1, - "supported_scales_to":1, - "tags":[ - "service", - "database", - "nosql", - "embedded" - ], - "type":"embedded", - "url":null, - "usage_rates":[ - - ], - "version":"2.2", - "website":"http://www.10gen.com" - }, - { - "additional_gear_storage":0, - "base_gear_storage":1, - "collocated_with":[ - "jbosseap-6", - "mongodb-2.2", - "switchyard-0" - ], - "current_scale":1, - "description":"MySQL is a multi-user, multi-threaded SQL database server.", - "display_name":"MySQL Database 5.1", - "gear_profile":"small", - "help_topics":{ - "Developer Center":"https://openshift.redhat.com/community/developers" - }, - "license":"GPL", - "license_url":"", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mysql-5.1", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get cartridge", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mysql-5.1", - "method":"PUT", - "optional_params":[ - { - "default_value":null, - "description":"Additional filesystem storage in gigabytes on each gear having cartridge mysql-5.1", - "name":"additional_gear_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Minimum number of gears having cartridge mysql-5.1", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears having cartridge mysql-5.1", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - } - ], - "rel":"Update cartridge configuration", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mysql-5.1/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start embedded cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mysql-5.1/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mysql-5.1/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mysql-5.1/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mysql-5.1", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete cartridge", - "required_params":[ - - ] - } - }, - "name":"mysql-5.1", - "properties":[ - { - "name":"username", - "type":"cart_data", - "description":"Root user on mysql database", - "value":"adminBFyZLQZ" - }, - { - "name":"password", - "type":"cart_data", - "description":"Password for root user on mysql database", - "value":"pkMImy_mwUvL" - }, - { - "name":"database_name", - "type":"cart_data", - "description":"MySQL DB name", - "value":"springeap6" - }, - { - "name":"connection_url", - "type":"cart_data", - "description":"MySQL DB connection URL", - "value":"mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/" - } - ], - "scales_from":1, - "scales_to":1, - "scales_with":null, - "status_messages":null, - "supported_scales_from":1, - "supported_scales_to":1, - "tags":[ - "service", - "database", - "embedded" - ], - "type":"embedded", - "url":null, - "usage_rates":[ - - ], - "version":"5.1", - "website":"http://www.mysql.com" - }, - { - "additional_gear_storage":0, - "base_gear_storage":1, - "collocated_with":[ - "jbosseap-6", - "mongodb-2.2", - "mysql-5.1" - ], - "current_scale":1, - "description":"SwitchYard is a lightweight service delivery framework providing full lifecycle support for developing, deploying, and managing service-oriented applications.", - "display_name":"SwitchYard 0.8.0", - "gear_profile":"small", - "help_topics":{ - "Developer Center":"https://openshift.redhat.com/community/developers" - }, - "license":"ASL 2.0", - "license_url":"", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/switchyard-0", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get cartridge", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/switchyard-0", - "method":"PUT", - "optional_params":[ - { - "default_value":null, - "description":"Additional filesystem storage in gigabytes on each gear having cartridge switchyard-0", - "name":"additional_gear_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Minimum number of gears having cartridge switchyard-0", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears having cartridge switchyard-0", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - } - ], - "rel":"Update cartridge configuration", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/switchyard-0/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start embedded cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/switchyard-0/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/switchyard-0/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/switchyard-0/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/switchyard-0", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete cartridge", - "required_params":[ - - ] - } - }, - "name":"switchyard-0", - "properties":[ - ], - "scales_from":1, - "scales_to":1, - "scales_with":null, - "status_messages":null, - "supported_scales_from":1, - "supported_scales_to":1, - "tags":[ - "embedded" - ], - "type":"embedded", - "url":null, - "usage_rates":[ - - ], - "version":"0", - "website":"http://www.jboss.org/switchyard" - } - ], - "creation_time":"2013-09-20T21:28:53Z", - "domain_id":"foobarz", - "embedded":{ - "mongodb-2.2":{ - "connection_url":"mongodb://$OPENSHIFT_MONGODB_DB_HOST:$OPENSHIFT_MONGODB_DB_PORT/", - "username":"admin", - "password":"VwFPWQEs1PEl", - "database_name":"springeap6", - "info":"Connection URL: mongodb://$OPENSHIFT_MONGODB_DB_HOST:$OPENSHIFT_MONGODB_DB_PORT/" - }, - "mysql-5.1":{ - "connection_url":"mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/", - "username":"adminBFyZLQZ", - "password":"pkMImy_mwUvL", - "database_name":"springeap6", - "info":"Connection URL: mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/" - }, - "switchyard-0":{ - - } - }, - "framework":"jbosseap-6", - "gear_count":1, - "gear_profile":"small", - "git_url":"ssh://523cbe15e0b8cd0a520001b6@springeap6-foobarz.rhcloud.com/~/git/springeap6.git/", - "health_check_path":"health", - "initial_git_url":"git://github.com/openshift/spring-eap6-quickstart.git", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get application", - "required_params":[ - - ] - }, - "GET_DESCRIPTOR":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/descriptor", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get application descriptor", - "required_params":[ - - ] - }, - "GET_GEAR_GROUPS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/gear_groups", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get application gear groups", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "FORCE_STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Force stop application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "force-stop" - ] - } - ] - }, - "ADD_ALIAS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Add application alias", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "add-alias" - ] - }, - { - "description":"The server alias for the application", - "invalid_options":[ - - ], - "name":"alias", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "REMOVE_ALIAS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Remove application alias", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "remove-alias" - ] - }, - { - "description":"The application alias to be removed", - "invalid_options":[ - - ], - "name":"alias", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "SCALE_UP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Scale up application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "scale-up" - ] - } - ] - }, - "SCALE_DOWN":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Scale down application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "scale-down" - ] - } - ] - }, - "TIDY":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Tidy the application framework", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "tidy" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload the application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "THREAD_DUMP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Trigger thread dump", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "thread-dump" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete application", - "required_params":[ - - ] - }, - "ADD_CARTRIDGE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges", - "method":"POST", - "optional_params":[ - { - "default_value":null, - "description":"The component to colocate with", - "name":"colocate_with", - "type":"string", - "valid_options":[ - "jbosseap-6", - "mongodb-2.2", - "mysql-5.1", - "switchyard-0" - ] - }, - { - "default_value":null, - "description":"Minimum number of gears to run the component on.", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears to run the component on.", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Additional GB of space to request on all gears running this component.", - "name":"additional_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Add or Update application environment variables, e.g.:[{'name':'FOO', 'value':'123'}, {'name':'BAR', 'value':'abc'}]", - "name":"environment_variables", - "type":"array", - "valid_options":[ - - ] - } - ], - "rel":"Add embedded cartridge", - "required_params":[ - { - "description":"framework-type, e.g.: mongodb-2.2", - "invalid_options":[ - - ], - "name":"name", - "type":"string", - "valid_options":[ - "cron-1.4", - "phpmyadmin-4", - "rockmongo-1.1", - "switchyard-0", - "metrics-0.1", - "10gen-mms-agent-0.1", - "mysql-5.1", - "haproxy-1.4", - "postgresql-9.2", - "postgresql-8.4", - "mongodb-2.2", - "jenkins-client-1" - ] - } - ] - }, - "LIST_CARTRIDGES":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges", - "method":"GET", - "optional_params":[ - - ], - "rel":"List embedded cartridges", - "required_params":[ - - ] - }, - "DNS_RESOLVABLE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/dns_resolvable", - "method":"GET", - "optional_params":[ - - ], - "rel":"Resolve DNS", - "required_params":[ - - ] - }, - "SET_UNSET_ENVIRONMENT_VARIABLES":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/environment-variables", - "method":"POST", - "optional_params":[ - { - "default_value":null, - "description":"Name of the environment variable to add/update", - "name":"name", - "type":"string", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Value of the environment variable", - "name":"value", - "type":"string", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Add/Update/Delete application environment variables, e.g. Add/Update: [{'name':'FOO', 'value':'123'}, {'name':'BAR', 'value':'abc'}], Delete: [{'name':'FOO'}, {'name':'BAR'}]", - "name":"environment_variables", - "type":"array", - "valid_options":[ - - ] - } - ], - "rel":"Add/Update/Delete one or more environment variables", - "required_params":[ - - ] - }, - "LIST_ENVIRONMENT_VARIABLES":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/environment-variables", - "method":"GET", - "optional_params":[ - - ], - "rel":"List all environment variables", - "required_params":[ - - ] - } - }, - "name":"springeap6", - "scalable":false, - "ssh_url":"ssh://523cbe15e0b8cd0a520001b6@springeap6-foobarz.rhcloud.com", - "uuid":"523cbe15e0b8cd0a520001b6" - } - ], - "messages":[ - { - "exit_code":0, - "field":null, - "severity":"info", - "text":"Found 2 applications." - } - ], - "status":"ok", - "supported_api_versions":[ - 1.0, - 1.1, - 1.2, - 1.3, - 1.4, - 1.5, - 1.6 - ], - "type":"applications", - "version":"1.2" -} \ No newline at end of file diff --git a/src/test/resources/samples/get-domains-foobarz-applications_noapps.json b/src/test/resources/samples/get-domains-foobarz-applications_noapps.json deleted file mode 100644 index d667aea1..00000000 --- a/src/test/resources/samples/get-domains-foobarz-applications_noapps.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "data":[ - - ], - "messages":[ - - ], - "status":"ok", - "supported_api_versions":[ - 1.0, - 1.1, - 1.2, - 1.3, - 1.4 - ], - "type":"applications", - "version":"1.2" -} \ No newline at end of file diff --git a/src/test/resources/samples/get-domains-foobarz-applications_noenvvars.json b/src/test/resources/samples/get-domains-foobarz-applications_noenvvars.json deleted file mode 100644 index 72ad0ca6..00000000 --- a/src/test/resources/samples/get-domains-foobarz-applications_noenvvars.json +++ /dev/null @@ -1,1727 +0,0 @@ -{ - "api_version":1.2, - "data":[ - { - "aliases":[ - - ], - "app_url":"http://scalable-foobarz.rhcloud.com/", - "build_job_url":null, - "building_app":null, - "building_with":null, - "cartridges":[ - { - "additional_gear_storage":0, - "base_gear_storage":1, - "collocated_with":[ - "haproxy-1.4" - ], - "current_scale":1, - "description":"The leading open source Java EE6 application server for enterprise Java applications. Popular development frameworks include Seam, CDI, Weld, and Spring.", - "display_name":"JBoss Application Server 7", - "gear_profile":"small", - "help_topics":{ - - }, - "license":"LGPL", - "license_url":"http://www.gnu.org/copyleft/lesser.txt", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/jbossas-7", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get cartridge", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/jbossas-7", - "method":"PUT", - "optional_params":[ - { - "default_value":null, - "description":"Additional filesystem storage in gigabytes on each gear having cartridge jbossas-7", - "name":"additional_gear_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Minimum number of gears having cartridge jbossas-7", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears having cartridge jbossas-7", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - } - ], - "rel":"Update cartridge configuration", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/jbossas-7/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start embedded cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/jbossas-7/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/jbossas-7/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/jbossas-7/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/jbossas-7", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete cartridge", - "required_params":[ - - ] - } - }, - "name":"jbossas-7", - "properties":[ - { - "name":"OPENSHIFT_JBOSSAS_LOG_DIR", - "type":"environment", - "description":"Directory to store application log files." - }, - { - "name":"OPENSHIFT_TMP_DIR", - "type":"environment", - "description":"Directory to store application temporary files." - }, - { - "name":"OPENSHIFT_REPO_DIR", - "type":"environment", - "description":"Application root directory where application files reside. This directory is reset every time you do a git-push" - }, - { - "name":"OPENSHIFT_JBOSSAS_HTTP_PORT", - "type":"environment", - "description":"Internal port to which the web-framework binds to." - }, - { - "name":"OPENSHIFT_JBOSSAS_IP", - "type":"environment", - "description":"Internal IP to which the web-framework binds to." - }, - { - "name":"OPENSHIFT_APP_DNS", - "type":"environment", - "description":"Fully qualified domain name for the application." - }, - { - "name":"OPENSHIFT_APP_NAME", - "type":"environment", - "description":"Application name" - }, - { - "name":"OPENSHIFT_DATA_DIR", - "type":"environment", - "description":"Directory to store application data files. Preserved across git-pushes. Not shared across gears." - }, - { - "name":"OPENSHIFT_APP_UUID", - "type":"environment", - "description":"Unique ID which identified the application. Does not change between gears." - }, - { - "name":"OPENSHIFT_GEAR_UUID", - "type":"environment", - "description":"Unique ID which identified the gear. This value changes between gears." - } - ], - "scales_from":1, - "scales_to":-1, - "scales_with":"haproxy-1.4", - "status_messages":null, - "supported_scales_from":1, - "supported_scales_to":-1, - "tags":[ - "service", - "web_framework", - "java", - "jboss", - "jee_full_profile" - ], - "type":"standalone", - "url":null, - "usage_rates":[ - - ], - "version":"7", - "website":"http://www.jboss.org" - }, - { - "additional_gear_storage":0, - "base_gear_storage":1, - "collocated_with":[ - "jbossas-7" - ], - "current_scale":1, - "description":"Acts as a load balancer for your web cartridge and will automatically scale up to handle incoming traffic. Is automatically added to scaled applications when they are created and cannot be removed or added to an application after the fact.", - "display_name":"OpenShift Web Balancer", - "gear_profile":"small", - "help_topics":{ - - }, - "license":"GPLv2+", - "license_url":"http://www.gnu.org/licenses/gpl-2.0.html", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/haproxy-1.4", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get cartridge", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/haproxy-1.4", - "method":"PUT", - "optional_params":[ - { - "default_value":null, - "description":"Additional filesystem storage in gigabytes on each gear having cartridge haproxy-1.4", - "name":"additional_gear_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Minimum number of gears having cartridge haproxy-1.4", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears having cartridge haproxy-1.4", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - } - ], - "rel":"Update cartridge configuration", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/haproxy-1.4/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start embedded cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/haproxy-1.4/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/haproxy-1.4/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/haproxy-1.4/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/haproxy-1.4", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete cartridge", - "required_params":[ - - ] - } - }, - "name":"haproxy-1.4", - "properties":[ - - ], - "scales_from":1, - "scales_to":1, - "scales_with":"haproxy-1.4", - "status_messages":null, - "supported_scales_from":1, - "supported_scales_to":1, - "tags":[ - "web_proxy", - "scales", - "embedded" - ], - "type":"embedded", - "url":null, - "usage_rates":[ - - ], - "version":"1.4", - "website":"http://haproxy.1wt.eu/" - } - ], - "creation_time":"2013-09-20T21:20:49Z", - "domain_id":"foobarz", - "embedded":{ - "haproxy-1.4":{ - - } - }, - "framework":"jbossas-7", - "gear_count":1, - "gear_profile":"small", - "git_url":"ssh://523cbc31e0b8cdae1e0000ac@scalable-foobarz.rhcloud.com/~/git/scalable.git/", - "health_check_path":"health", - "initial_git_url":null, - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get application", - "required_params":[ - - ] - }, - "GET_DESCRIPTOR":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/descriptor", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get application descriptor", - "required_params":[ - - ] - }, - "GET_GEAR_GROUPS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/gear_groups", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get application gear groups", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "FORCE_STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Force stop application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "force-stop" - ] - } - ] - }, - "ADD_ALIAS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Add application alias", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "add-alias" - ] - }, - { - "description":"The server alias for the application", - "invalid_options":[ - - ], - "name":"alias", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "REMOVE_ALIAS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Remove application alias", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "remove-alias" - ] - }, - { - "description":"The application alias to be removed", - "invalid_options":[ - - ], - "name":"alias", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "SCALE_UP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Scale up application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "scale-up" - ] - } - ] - }, - "SCALE_DOWN":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Scale down application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "scale-down" - ] - } - ] - }, - "TIDY":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Tidy the application framework", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "tidy" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload the application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "THREAD_DUMP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Trigger thread dump", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "thread-dump" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete application", - "required_params":[ - - ] - }, - "ADD_CARTRIDGE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges", - "method":"POST", - "optional_params":[ - { - "default_value":null, - "description":"The component to colocate with", - "name":"colocate_with", - "type":"string", - "valid_options":[ - "jbossas-7", - "haproxy-1.4" - ] - }, - { - "default_value":null, - "description":"Minimum number of gears to run the component on.", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears to run the component on.", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Additional GB of space to request on all gears running this component.", - "name":"additional_storage", - "type":"integer", - "valid_options":[ - - ] - } - ], - "rel":"Add embedded cartridge", - "required_params":[ - { - "description":"framework-type, e.g.: mongodb-2.2", - "invalid_options":[ - - ], - "name":"name", - "type":"string", - "valid_options":[ - "cron-1.4", - "phpmyadmin-4", - "rockmongo-1.1", - "switchyard-0", - "metrics-0.1", - "10gen-mms-agent-0.1", - "mysql-5.1", - "haproxy-1.4", - "postgresql-9.2", - "postgresql-8.4", - "mongodb-2.2", - "jenkins-client-1" - ] - } - ] - }, - "LIST_CARTRIDGES":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges", - "method":"GET", - "optional_params":[ - - ], - "rel":"List embedded cartridges", - "required_params":[ - - ] - }, - "DNS_RESOLVABLE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/dns_resolvable", - "method":"GET", - "optional_params":[ - - ], - "rel":"Resolve DNS", - "required_params":[ - - ] - } - }, - "name":"scalable", - "scalable":true, - "ssh_url":"ssh://523cbc31e0b8cdae1e0000ac@scalable-foobarz.rhcloud.com", - "uuid":"523cbc31e0b8cdae1e0000ac" - }, - { - "aliases":[ - "jbosstools.org" - ], - "app_url":"http://springeap6-foobarz.rhcloud.com/", - "build_job_url":null, - "building_app":null, - "building_with":null, - "cartridges":[ - { - "additional_gear_storage":0, - "base_gear_storage":1, - "collocated_with":[ - "mongodb-2.2" - ], - "current_scale":1, - "description":"Market-leading open source enterprise platform for next-generation, highly transactional enterprise Java applications. Build and deploy enterprise Java in the cloud.", - "display_name":"JBoss Enterprise Application Platform 6.1.0", - "gear_profile":"small", - "help_topics":{ - "Building with MongoDB":"https://www.openshift.com/developers/mongodb" - }, - "license":"LGPL", - "license_url":"http://www.gnu.org/copyleft/lesser.txt", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get cartridge", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6", - "method":"PUT", - "optional_params":[ - { - "default_value":null, - "description":"Additional filesystem storage in gigabytes on each gear having cartridge jbosseap-6", - "name":"additional_gear_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Minimum number of gears having cartridge jbosseap-6", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears having cartridge jbosseap-6", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - } - ], - "rel":"Update cartridge configuration", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start embedded cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete cartridge", - "required_params":[ - - ] - } - }, - "name":"jbosseap-6", - "properties":[ - { - "name":"OPENSHIFT_JBOSSEAP_LOG_DIR", - "type":"environment", - "description":"Directory to store application log files." - }, - { - "name":"OPENSHIFT_TMP_DIR", - "type":"environment", - "description":"Directory to store application temporary files." - }, - { - "name":"OPENSHIFT_REPO_DIR", - "type":"environment", - "description":"Application root directory where application files reside. This directory is reset every time you do a git-push" - }, - { - "name":"OPENSHIFT_JBOSSEAP_HTTP_PORT", - "type":"environment", - "description":"Internal port to which the web-framework binds to." - }, - { - "name":"OPENSHIFT_JBOSSEAP_IP", - "type":"environment", - "description":"Internal IP to which the web-framework binds to." - }, - { - "name":"OPENSHIFT_APP_DNS", - "type":"environment", - "description":"Fully qualified domain name for the application." - }, - { - "name":"OPENSHIFT_APP_NAME", - "type":"environment", - "description":"Application name" - }, - { - "name":"OPENSHIFT_DATA_DIR", - "type":"environment", - "description":"Directory to store application data files. Preserved across git-pushes. Not shared across gears." - }, - { - "name":"OPENSHIFT_APP_UUID", - "type":"environment", - "description":"Unique ID which identified the application. Does not change between gears." - }, - { - "name":"OPENSHIFT_GEAR_UUID", - "type":"environment", - "description":"Unique ID which identified the gear. This value changes between gears." - } - ], - "scales_from":1, - "scales_to":1, - "scales_with":null, - "status_messages":null, - "supported_scales_from":1, - "supported_scales_to":1, - "tags":[ - "service", - "web_framework", - "java", - "jboss", - "jee_full_profile" - ], - "type":"standalone", - "url":null, - "usage_rates":[ - { - "plan_id":"silver", - "usd":0.03, - "cad":0.03, - "eur":0.02, - "duration":"hour" - } - ], - "version":"6", - "website":"http://www.redhat.com/products/jbossenterprisemiddleware/application-platform/" - }, - { - "additional_gear_storage":0, - "base_gear_storage":1, - "collocated_with":[ - "jbosseap-6" - ], - "current_scale":1, - "description":"MongoDB is a scalable, high-performance, open source NoSQL database.", - "display_name":"MongoDB NoSQL Database 2.2", - "gear_profile":"small", - "help_topics":{ - "Building with MongoDB":"https://www.openshift.com/developers/mongodb" - }, - "license":"ASL 2.0", - "license_url":"", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get cartridge", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2", - "method":"PUT", - "optional_params":[ - { - "default_value":null, - "description":"Additional filesystem storage in gigabytes on each gear having cartridge mongodb-2.2", - "name":"additional_gear_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Minimum number of gears having cartridge mongodb-2.2", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears having cartridge mongodb-2.2", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - } - ], - "rel":"Update cartridge configuration", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start embedded cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete cartridge", - "required_params":[ - - ] - } - }, - "name":"mongodb-2.2", - "properties":[ - { - "name":"username", - "type":"cart_data", - "description":"Root user on mongo database", - "value":"admin" - }, - { - "name":"password", - "type":"cart_data", - "description":"Password for root user on mongo database", - "value":"VwFPWQEs1PEl" - }, - { - "name":"database_name", - "type":"cart_data", - "description":"Mongo DB name", - "value":"springeap6" - }, - { - "name":"connection_url", - "type":"cart_data", - "description":"Mongo DB connection URL", - "value":"mongodb://$OPENSHIFT_MONGODB_DB_HOST:$OPENSHIFT_MONGODB_DB_PORT/" - } - ], - "scales_from":1, - "scales_to":1, - "scales_with":null, - "status_messages":null, - "supported_scales_from":1, - "supported_scales_to":1, - "tags":[ - "service", - "database", - "nosql", - "embedded" - ], - "type":"embedded", - "url":null, - "usage_rates":[ - - ], - "version":"2.2", - "website":"http://www.10gen.com" - } - ], - "creation_time":"2013-09-20T21:28:53Z", - "domain_id":"foobarz", - "embedded":{ - "mongodb-2.2":{ - "connection_url":"mongodb://$OPENSHIFT_MONGODB_DB_HOST:$OPENSHIFT_MONGODB_DB_PORT/", - "username":"admin", - "password":"VwFPWQEs1PEl", - "database_name":"springeap6", - "info":"Connection URL: mongodb://$OPENSHIFT_MONGODB_DB_HOST:$OPENSHIFT_MONGODB_DB_PORT/" - } - }, - "framework":"jbosseap-6", - "gear_count":1, - "gear_profile":"small", - "git_url":"ssh://523cbe15e0b8cd0a520001b6@springeap6-foobarz.rhcloud.com/~/git/springeap6.git/", - "health_check_path":"health", - "initial_git_url":"git://github.com/openshift/spring-eap6-quickstart.git", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get application", - "required_params":[ - - ] - }, - "GET_DESCRIPTOR":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/descriptor", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get application descriptor", - "required_params":[ - - ] - }, - "GET_GEAR_GROUPS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/gear_groups", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get application gear groups", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "FORCE_STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Force stop application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "force-stop" - ] - } - ] - }, - "ADD_ALIAS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Add application alias", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "add-alias" - ] - }, - { - "description":"The server alias for the application", - "invalid_options":[ - - ], - "name":"alias", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "REMOVE_ALIAS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Remove application alias", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "remove-alias" - ] - }, - { - "description":"The application alias to be removed", - "invalid_options":[ - - ], - "name":"alias", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "SCALE_UP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Scale up application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "scale-up" - ] - } - ] - }, - "SCALE_DOWN":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Scale down application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "scale-down" - ] - } - ] - }, - "TIDY":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Tidy the application framework", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "tidy" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload the application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "THREAD_DUMP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Trigger thread dump", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "thread-dump" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete application", - "required_params":[ - - ] - }, - "ADD_CARTRIDGE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges", - "method":"POST", - "optional_params":[ - { - "default_value":null, - "description":"The component to colocate with", - "name":"colocate_with", - "type":"string", - "valid_options":[ - "jbosseap-6", - "mongodb-2.2" - ] - }, - { - "default_value":null, - "description":"Minimum number of gears to run the component on.", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears to run the component on.", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Additional GB of space to request on all gears running this component.", - "name":"additional_storage", - "type":"integer", - "valid_options":[ - - ] - } - ], - "rel":"Add embedded cartridge", - "required_params":[ - { - "description":"framework-type, e.g.: mongodb-2.2", - "invalid_options":[ - - ], - "name":"name", - "type":"string", - "valid_options":[ - "cron-1.4", - "phpmyadmin-4", - "rockmongo-1.1", - "switchyard-0", - "metrics-0.1", - "10gen-mms-agent-0.1", - "mysql-5.1", - "haproxy-1.4", - "postgresql-9.2", - "postgresql-8.4", - "mongodb-2.2", - "jenkins-client-1" - ] - } - ] - }, - "LIST_CARTRIDGES":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges", - "method":"GET", - "optional_params":[ - - ], - "rel":"List embedded cartridges", - "required_params":[ - - ] - }, - "DNS_RESOLVABLE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/dns_resolvable", - "method":"GET", - "optional_params":[ - - ], - "rel":"Resolve DNS", - "required_params":[ - - ] - } - }, - "name":"springeap6", - "scalable":false, - "ssh_url":"ssh://523cbe15e0b8cd0a520001b6@springeap6-foobarz.rhcloud.com", - "uuid":"523cbe15e0b8cd0a520001b6" - } - ], - "messages":[ - { - "exit_code":0, - "field":null, - "severity":"info", - "text":"Found 2 applications." - } - ], - "status":"ok", - "supported_api_versions":[ - 1.0, - 1.1, - 1.2, - 1.3, - 1.4, - 1.5, - 1.6 - ], - "type":"applications", - "version":"1.2" -} \ No newline at end of file diff --git a/src/test/resources/samples/get-domains-foobarz-applications_springeap_scalable_downloadablecart.json b/src/test/resources/samples/get-domains-foobarz-applications_springeap_scalable_downloadablecart.json deleted file mode 100644 index ea1e073a..00000000 --- a/src/test/resources/samples/get-domains-foobarz-applications_springeap_scalable_downloadablecart.json +++ /dev/null @@ -1,3308 +0,0 @@ -{ - "api_version":1.2, - "data":[ - { - "aliases":[ - - ], - "app_url":"http://scalable-foobarz.rhcloud.com/", - "build_job_url":null, - "building_app":null, - "building_with":null, - "cartridges":[ - { - "additional_gear_storage":0, - "base_gear_storage":1, - "collocated_with":[ - "haproxy-1.4" - ], - "current_scale":1, - "description":"The leading open source Java EE6 application server for enterprise Java applications. Popular development frameworks include Seam, CDI, Weld, and Spring.", - "display_name":"JBoss Application Server 7", - "gear_profile":"small", - "help_topics":{ - - }, - "license":"LGPL", - "license_url":"http://www.gnu.org/copyleft/lesser.txt", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/jbossas-7", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get cartridge", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/jbossas-7", - "method":"PUT", - "optional_params":[ - { - "default_value":null, - "description":"Additional filesystem storage in gigabytes on each gear having cartridge jbossas-7", - "name":"additional_gear_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Minimum number of gears having cartridge jbossas-7", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears having cartridge jbossas-7", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - } - ], - "rel":"Update cartridge configuration", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/jbossas-7/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start embedded cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/jbossas-7/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/jbossas-7/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/jbossas-7/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/jbossas-7", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete cartridge", - "required_params":[ - - ] - } - }, - "name":"jbossas-7", - "properties":[ - { - "name":"OPENSHIFT_JBOSSAS_LOG_DIR", - "type":"environment", - "description":"Directory to store application log files." - }, - { - "name":"OPENSHIFT_TMP_DIR", - "type":"environment", - "description":"Directory to store application temporary files." - }, - { - "name":"OPENSHIFT_REPO_DIR", - "type":"environment", - "description":"Application root directory where application files reside. This directory is reset every time you do a git-push" - }, - { - "name":"OPENSHIFT_JBOSSAS_HTTP_PORT", - "type":"environment", - "description":"Internal port to which the web-framework binds to." - }, - { - "name":"OPENSHIFT_JBOSSAS_IP", - "type":"environment", - "description":"Internal IP to which the web-framework binds to." - }, - { - "name":"OPENSHIFT_APP_DNS", - "type":"environment", - "description":"Fully qualified domain name for the application." - }, - { - "name":"OPENSHIFT_APP_NAME", - "type":"environment", - "description":"Application name" - }, - { - "name":"OPENSHIFT_DATA_DIR", - "type":"environment", - "description":"Directory to store application data files. Preserved across git-pushes. Not shared across gears." - }, - { - "name":"OPENSHIFT_APP_UUID", - "type":"environment", - "description":"Unique ID which identified the application. Does not change between gears." - }, - { - "name":"OPENSHIFT_GEAR_UUID", - "type":"environment", - "description":"Unique ID which identified the gear. This value changes between gears." - } - ], - "scales_from":1, - "scales_to":-1, - "scales_with":"haproxy-1.4", - "status_messages":null, - "supported_scales_from":1, - "supported_scales_to":-1, - "tags":[ - "service", - "web_framework", - "java", - "jboss", - "jee_full_profile" - ], - "type":"standalone", - "url":null, - "usage_rates":[ - - ], - "version":"7", - "website":"http://www.jboss.org" - }, - { - "additional_gear_storage":0, - "base_gear_storage":1, - "collocated_with":[ - "jbossas-7" - ], - "current_scale":1, - "description":"Acts as a load balancer for your web cartridge and will automatically scale up to handle incoming traffic. Is automatically added to scaled applications when they are created and cannot be removed or added to an application after the fact.", - "display_name":"OpenShift Web Balancer", - "gear_profile":"small", - "help_topics":{ - - }, - "license":"GPLv2+", - "license_url":"http://www.gnu.org/licenses/gpl-2.0.html", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/haproxy-1.4", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get cartridge", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/haproxy-1.4", - "method":"PUT", - "optional_params":[ - { - "default_value":null, - "description":"Additional filesystem storage in gigabytes on each gear having cartridge haproxy-1.4", - "name":"additional_gear_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Minimum number of gears having cartridge haproxy-1.4", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears having cartridge haproxy-1.4", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - } - ], - "rel":"Update cartridge configuration", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/haproxy-1.4/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start embedded cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/haproxy-1.4/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/haproxy-1.4/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/haproxy-1.4/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges/haproxy-1.4", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete cartridge", - "required_params":[ - - ] - } - }, - "name":"haproxy-1.4", - "properties":[ - - ], - "scales_from":1, - "scales_to":1, - "scales_with":"haproxy-1.4", - "status_messages":null, - "supported_scales_from":1, - "supported_scales_to":1, - "tags":[ - "web_proxy", - "scales", - "embedded" - ], - "type":"embedded", - "url":null, - "usage_rates":[ - - ], - "version":"1.4", - "website":"http://haproxy.1wt.eu/" - } - ], - "creation_time":"2013-09-20T21:20:49Z", - "domain_id":"foobarz", - "embedded":{ - "haproxy-1.4":{ - - } - }, - "framework":"jbossas-7", - "gear_count":1, - "gear_profile":"small", - "git_url":"ssh://523cbc31e0b8cdae1e0000ac@scalable-foobarz.rhcloud.com/~/git/scalable.git/", - "health_check_path":"health", - "initial_git_url":null, - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get application", - "required_params":[ - - ] - }, - "GET_DESCRIPTOR":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/descriptor", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get application descriptor", - "required_params":[ - - ] - }, - "GET_GEAR_GROUPS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/gear_groups", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get application gear groups", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "FORCE_STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Force stop application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "force-stop" - ] - } - ] - }, - "ADD_ALIAS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Add application alias", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "add-alias" - ] - }, - { - "description":"The server alias for the application", - "invalid_options":[ - - ], - "name":"alias", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "REMOVE_ALIAS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Remove application alias", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "remove-alias" - ] - }, - { - "description":"The application alias to be removed", - "invalid_options":[ - - ], - "name":"alias", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "SCALE_UP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Scale up application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "scale-up" - ] - } - ] - }, - "SCALE_DOWN":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Scale down application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "scale-down" - ] - } - ] - }, - "TIDY":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Tidy the application framework", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "tidy" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload the application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "THREAD_DUMP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Trigger thread dump", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "thread-dump" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete application", - "required_params":[ - - ] - }, - "ADD_CARTRIDGE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges", - "method":"POST", - "optional_params":[ - { - "default_value":null, - "description":"The component to colocate with", - "name":"colocate_with", - "type":"string", - "valid_options":[ - "jbossas-7", - "haproxy-1.4" - ] - }, - { - "default_value":null, - "description":"Minimum number of gears to run the component on.", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears to run the component on.", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Additional GB of space to request on all gears running this component.", - "name":"additional_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Add or Update application environment variables, e.g.:[{'name':'FOO', 'value':'123'}, {'name':'BAR', 'value':'abc'}]", - "name":"environment_variables", - "type":"array", - "valid_options":[ - - ] - } - ], - "rel":"Add embedded cartridge", - "required_params":[ - { - "description":"framework-type, e.g.: mongodb-2.2", - "invalid_options":[ - - ], - "name":"name", - "type":"string", - "valid_options":[ - "cron-1.4", - "phpmyadmin-4", - "rockmongo-1.1", - "switchyard-0", - "metrics-0.1", - "10gen-mms-agent-0.1", - "mysql-5.1", - "haproxy-1.4", - "postgresql-9.2", - "postgresql-8.4", - "mongodb-2.2", - "jenkins-client-1" - ] - } - ] - }, - "LIST_CARTRIDGES":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges", - "method":"GET", - "optional_params":[ - - ], - "rel":"List embedded cartridges", - "required_params":[ - - ] - }, - "DNS_RESOLVABLE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/dns_resolvable", - "method":"GET", - "optional_params":[ - - ], - "rel":"Resolve DNS", - "required_params":[ - - ] - }, - "SET_UNSET_ENVIRONMENT_VARIABLES":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/environment-variables", - "method":"POST", - "optional_params":[ - { - "default_value":null, - "description":"Name of the environment variable to add/update", - "name":"name", - "type":"string", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Value of the environment variable", - "name":"value", - "type":"string", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Add/Update/Delete application environment variables, e.g. Add/Update: [{'name':'FOO', 'value':'123'}, {'name':'BAR', 'value':'abc'}], Delete: [{'name':'FOO'}, {'name':'BAR'}]", - "name":"environment_variables", - "type":"array", - "valid_options":[ - - ] - } - ], - "rel":"Add/Update/Delete one or more environment variables", - "required_params":[ - - ] - }, - "LIST_ENVIRONMENT_VARIABLES":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/environment-variables", - "method":"GET", - "optional_params":[ - - ], - "rel":"List all environment variables", - "required_params":[ - - ] - } - }, - "name":"scalable", - "scalable":true, - "ssh_url":"ssh://523cbc31e0b8cdae1e0000ac@scalable-foobarz.rhcloud.com", - "uuid":"523cbc31e0b8cdae1e0000ac" - }, - { - "aliases":[ - - ], - "app_url":"http://springeap6-foobarz.rhcloud.com/", - "build_job_url":null, - "building_app":null, - "building_with":null, - "cartridges":[ - { - "additional_gear_storage":0, - "base_gear_storage":1, - "collocated_with":[ - "mongodb-2.2", - "mysql-5.1", - "switchyard-0" - ], - "current_scale":1, - "description":"Market-leading open source enterprise platform for next-generation, highly transactional enterprise Java applications. Build and deploy enterprise Java in the cloud.", - "display_name":"JBoss Enterprise Application Platform 6.1.0", - "gear_profile":"small", - "help_topics":{ - "Developer Center":"https://openshift.redhat.com/community/developers" - }, - "license":"LGPL", - "license_url":"http://www.gnu.org/copyleft/lesser.txt", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get cartridge", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6", - "method":"PUT", - "optional_params":[ - { - "default_value":null, - "description":"Additional filesystem storage in gigabytes on each gear having cartridge jbosseap-6", - "name":"additional_gear_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Minimum number of gears having cartridge jbosseap-6", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears having cartridge jbosseap-6", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - } - ], - "rel":"Update cartridge configuration", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start embedded cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/jbosseap-6", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete cartridge", - "required_params":[ - - ] - } - }, - "name":"jbosseap-6", - "properties":[ - { - "name":"OPENSHIFT_JBOSSEAP_LOG_DIR", - "type":"environment", - "description":"Directory to store application log files." - }, - { - "name":"OPENSHIFT_TMP_DIR", - "type":"environment", - "description":"Directory to store application temporary files." - }, - { - "name":"OPENSHIFT_REPO_DIR", - "type":"environment", - "description":"Application root directory where application files reside. This directory is reset every time you do a git-push" - }, - { - "name":"OPENSHIFT_JBOSSEAP_HTTP_PORT", - "type":"environment", - "description":"Internal port to which the web-framework binds to." - }, - { - "name":"OPENSHIFT_JBOSSEAP_IP", - "type":"environment", - "description":"Internal IP to which the web-framework binds to." - }, - { - "name":"OPENSHIFT_APP_DNS", - "type":"environment", - "description":"Fully qualified domain name for the application." - }, - { - "name":"OPENSHIFT_APP_NAME", - "type":"environment", - "description":"Application name" - }, - { - "name":"OPENSHIFT_DATA_DIR", - "type":"environment", - "description":"Directory to store application data files. Preserved across git-pushes. Not shared across gears." - }, - { - "name":"OPENSHIFT_APP_UUID", - "type":"environment", - "description":"Unique ID which identified the application. Does not change between gears." - }, - { - "name":"OPENSHIFT_GEAR_UUID", - "type":"environment", - "description":"Unique ID which identified the gear. This value changes between gears." - } - ], - "scales_from":1, - "scales_to":1, - "scales_with":null, - "status_messages":null, - "supported_scales_from":1, - "supported_scales_to":1, - "tags":[ - "service", - "web_framework", - "java", - "jboss", - "jee_full_profile" - ], - "type":"standalone", - "url":null, - "usage_rates":[ - { - "plan_id":"silver", - "usd":0.03, - "cad":0.03, - "eur":0.02, - "duration":"hour" - } - ], - "version":"6", - "website":"http://www.redhat.com/products/jbossenterprisemiddleware/application-platform/" - }, - { - "additional_gear_storage":0, - "base_gear_storage":1, - "collocated_with":[ - "jbosseap-6", - "mysql-5.1", - "switchyard-0" - ], - "current_scale":1, - "description":"MongoDB is a scalable, high-performance, open source NoSQL database.", - "display_name":"MongoDB NoSQL Database 2.2", - "gear_profile":"small", - "help_topics":{ - "Developer Center":"https://openshift.redhat.com/community/developers" - }, - "license":"ASL 2.0", - "license_url":"", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get cartridge", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2", - "method":"PUT", - "optional_params":[ - { - "default_value":null, - "description":"Additional filesystem storage in gigabytes on each gear having cartridge mongodb-2.2", - "name":"additional_gear_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Minimum number of gears having cartridge mongodb-2.2", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears having cartridge mongodb-2.2", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - } - ], - "rel":"Update cartridge configuration", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start embedded cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mongodb-2.2", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete cartridge", - "required_params":[ - - ] - } - }, - "name":"mongodb-2.2", - "properties":[ - { - "name":"username", - "type":"cart_data", - "description":"Root user on mongo database", - "value":"admin" - }, - { - "name":"password", - "type":"cart_data", - "description":"Password for root user on mongo database", - "value":"VwFPWQEs1PEl" - }, - { - "name":"database_name", - "type":"cart_data", - "description":"Mongo DB name", - "value":"springeap6" - }, - { - "name":"connection_url", - "type":"cart_data", - "description":"Mongo DB connection URL", - "value":"mongodb://$OPENSHIFT_MONGODB_DB_HOST:$OPENSHIFT_MONGODB_DB_PORT/" - } - ], - "scales_from":1, - "scales_to":1, - "scales_with":null, - "status_messages":null, - "supported_scales_from":1, - "supported_scales_to":1, - "tags":[ - "service", - "database", - "nosql", - "embedded" - ], - "type":"embedded", - "url":null, - "usage_rates":[ - - ], - "version":"2.2", - "website":"http://www.10gen.com" - }, - { - "additional_gear_storage":0, - "base_gear_storage":1, - "collocated_with":[ - "jbosseap-6", - "mongodb-2.2", - "switchyard-0" - ], - "current_scale":1, - "description":"MySQL is a multi-user, multi-threaded SQL database server.", - "display_name":"MySQL Database 5.1", - "gear_profile":"small", - "help_topics":{ - "Developer Center":"https://openshift.redhat.com/community/developers" - }, - "license":"GPL", - "license_url":"", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mysql-5.1", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get cartridge", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mysql-5.1", - "method":"PUT", - "optional_params":[ - { - "default_value":null, - "description":"Additional filesystem storage in gigabytes on each gear having cartridge mysql-5.1", - "name":"additional_gear_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Minimum number of gears having cartridge mysql-5.1", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears having cartridge mysql-5.1", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - } - ], - "rel":"Update cartridge configuration", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mysql-5.1/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start embedded cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mysql-5.1/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mysql-5.1/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mysql-5.1/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mysql-5.1", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete cartridge", - "required_params":[ - - ] - } - }, - "name":"mysql-5.1", - "properties":[ - { - "name":"username", - "type":"cart_data", - "description":"Root user on mysql database", - "value":"adminBFyZLQZ" - }, - { - "name":"password", - "type":"cart_data", - "description":"Password for root user on mysql database", - "value":"pkMImy_mwUvL" - }, - { - "name":"database_name", - "type":"cart_data", - "description":"MySQL DB name", - "value":"springeap6" - }, - { - "name":"connection_url", - "type":"cart_data", - "description":"MySQL DB connection URL", - "value":"mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/" - } - ], - "scales_from":1, - "scales_to":1, - "scales_with":null, - "status_messages":null, - "supported_scales_from":1, - "supported_scales_to":1, - "tags":[ - "service", - "database", - "embedded" - ], - "type":"embedded", - "url":null, - "usage_rates":[ - - ], - "version":"5.1", - "website":"http://www.mysql.com" - }, - { - "additional_gear_storage":0, - "base_gear_storage":1, - "collocated_with":[ - "jbosseap-6", - "mongodb-2.2", - "mysql-5.1" - ], - "current_scale":1, - "description":"SwitchYard is a lightweight service delivery framework providing full lifecycle support for developing, deploying, and managing service-oriented applications.", - "display_name":"SwitchYard 0.8.0", - "gear_profile":"small", - "help_topics":{ - "Developer Center":"https://openshift.redhat.com/community/developers" - }, - "license":"ASL 2.0", - "license_url":"", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/switchyard-0", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get cartridge", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/switchyard-0", - "method":"PUT", - "optional_params":[ - { - "default_value":null, - "description":"Additional filesystem storage in gigabytes on each gear having cartridge switchyard-0", - "name":"additional_gear_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Minimum number of gears having cartridge switchyard-0", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears having cartridge switchyard-0", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - } - ], - "rel":"Update cartridge configuration", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/switchyard-0/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start embedded cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/switchyard-0/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/switchyard-0/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/switchyard-0/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/switchyard-0", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete cartridge", - "required_params":[ - - ] - } - }, - "name":"switchyard-0", - "properties":[ - { - "name":"module_path", - "type":"cart_data", - "description":"Module Path" - } - ], - "scales_from":1, - "scales_to":1, - "scales_with":null, - "status_messages":null, - "supported_scales_from":1, - "supported_scales_to":1, - "tags":[ - "embedded" - ], - "type":"embedded", - "url":null, - "usage_rates":[ - - ], - "version":"0", - "website":"http://www.jboss.org/switchyard" - } - ], - "creation_time":"2013-09-20T21:28:53Z", - "domain_id":"foobarz", - "embedded":{ - "mongodb-2.2":{ - "connection_url":"mongodb://$OPENSHIFT_MONGODB_DB_HOST:$OPENSHIFT_MONGODB_DB_PORT/", - "username":"admin", - "password":"VwFPWQEs1PEl", - "database_name":"springeap6", - "info":"Connection URL: mongodb://$OPENSHIFT_MONGODB_DB_HOST:$OPENSHIFT_MONGODB_DB_PORT/" - }, - "mysql-5.1":{ - "connection_url":"mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/", - "username":"adminBFyZLQZ", - "password":"pkMImy_mwUvL", - "database_name":"springeap6", - "info":"Connection URL: mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/" - }, - "switchyard-0":{ - - } - }, - "framework":"jbosseap-6", - "gear_count":1, - "gear_profile":"small", - "git_url":"ssh://523cbe15e0b8cd0a520001b6@springeap6-foobarz.rhcloud.com/~/git/springeap6.git/", - "health_check_path":"health", - "initial_git_url":"git://github.com/openshift/spring-eap6-quickstart.git", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get application", - "required_params":[ - - ] - }, - "GET_DESCRIPTOR":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/descriptor", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get application descriptor", - "required_params":[ - - ] - }, - "GET_GEAR_GROUPS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/gear_groups", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get application gear groups", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "FORCE_STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Force stop application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "force-stop" - ] - } - ] - }, - "ADD_ALIAS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Add application alias", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "add-alias" - ] - }, - { - "description":"The server alias for the application", - "invalid_options":[ - - ], - "name":"alias", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "REMOVE_ALIAS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Remove application alias", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "remove-alias" - ] - }, - { - "description":"The application alias to be removed", - "invalid_options":[ - - ], - "name":"alias", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "SCALE_UP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Scale up application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "scale-up" - ] - } - ] - }, - "SCALE_DOWN":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Scale down application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "scale-down" - ] - } - ] - }, - "TIDY":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Tidy the application framework", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "tidy" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload the application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "THREAD_DUMP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Trigger thread dump", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "thread-dump" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete application", - "required_params":[ - - ] - }, - "ADD_CARTRIDGE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges", - "method":"POST", - "optional_params":[ - { - "default_value":null, - "description":"The component to colocate with", - "name":"colocate_with", - "type":"string", - "valid_options":[ - "jbosseap-6", - "mongodb-2.2", - "mysql-5.1", - "switchyard-0" - ] - }, - { - "default_value":null, - "description":"Minimum number of gears to run the component on.", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears to run the component on.", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Additional GB of space to request on all gears running this component.", - "name":"additional_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Add or Update application environment variables, e.g.:[{'name':'FOO', 'value':'123'}, {'name':'BAR', 'value':'abc'}]", - "name":"environment_variables", - "type":"array", - "valid_options":[ - - ] - } - ], - "rel":"Add embedded cartridge", - "required_params":[ - { - "description":"framework-type, e.g.: mongodb-2.2", - "invalid_options":[ - - ], - "name":"name", - "type":"string", - "valid_options":[ - "cron-1.4", - "phpmyadmin-4", - "rockmongo-1.1", - "switchyard-0", - "metrics-0.1", - "10gen-mms-agent-0.1", - "mysql-5.1", - "haproxy-1.4", - "postgresql-9.2", - "postgresql-8.4", - "mongodb-2.2", - "jenkins-client-1" - ] - } - ] - }, - "LIST_CARTRIDGES":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges", - "method":"GET", - "optional_params":[ - - ], - "rel":"List embedded cartridges", - "required_params":[ - - ] - }, - "DNS_RESOLVABLE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/dns_resolvable", - "method":"GET", - "optional_params":[ - - ], - "rel":"Resolve DNS", - "required_params":[ - - ] - }, - "SET_UNSET_ENVIRONMENT_VARIABLES":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/environment-variables", - "method":"POST", - "optional_params":[ - { - "default_value":null, - "description":"Name of the environment variable to add/update", - "name":"name", - "type":"string", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Value of the environment variable", - "name":"value", - "type":"string", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Add/Update/Delete application environment variables, e.g. Add/Update: [{'name':'FOO', 'value':'123'}, {'name':'BAR', 'value':'abc'}], Delete: [{'name':'FOO'}, {'name':'BAR'}]", - "name":"environment_variables", - "type":"array", - "valid_options":[ - - ] - } - ], - "rel":"Add/Update/Delete one or more environment variables", - "required_params":[ - - ] - }, - "LIST_ENVIRONMENT_VARIABLES":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/environment-variables", - "method":"GET", - "optional_params":[ - - ], - "rel":"List all environment variables", - "required_params":[ - - ] - } - }, - "name":"springeap6", - "scalable":false, - "ssh_url":"ssh://523cbe15e0b8cd0a520001b6@springeap6-foobarz.rhcloud.com", - "uuid":"523cbe15e0b8cd0a520001b6" - }, - { - "aliases":[ - - ], - "app_url":"http://downloadablecart-foobarz.rhcloud.com/", - "build_job_url":null, - "building_app":null, - "building_with":null, - "cartridges":[ - { - "additional_gear_storage":0, - "base_gear_storage":1, - "collocated_with":[ - "andygoldstein-foreman-0.63.0", - "mysql-5.1" - ], - "current_scale":1, - "description":"", - "display_name":"Go 1.1", - "gear_profile":"small", - "help_topics":{ - "Building with MySQL":"http://docs.redhat.com/docs/en-US/OpenShift/2.0/html/User_Guide/sect-User_Guide-Working_With_Database_Cartridges.html" - }, - "license":"unknown", - "license_url":"", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/cartridges/smarterclayton-go-1.1", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get cartridge", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/cartridges/smarterclayton-go-1.1", - "method":"PUT", - "optional_params":[ - { - "default_value":null, - "description":"Additional filesystem storage in gigabytes on each gear having cartridge smarterclayton-go-1.1", - "name":"additional_gear_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Minimum number of gears having cartridge smarterclayton-go-1.1", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears having cartridge smarterclayton-go-1.1", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - } - ], - "rel":"Update cartridge configuration", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/cartridges/smarterclayton-go-1.1/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start embedded cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/cartridges/smarterclayton-go-1.1/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/cartridges/smarterclayton-go-1.1/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/cartridges/smarterclayton-go-1.1/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/cartridges/smarterclayton-go-1.1", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete cartridge", - "required_params":[ - - ] - } - }, - "name":"smarterclayton-go-1.1", - "properties":[ - - ], - "scales_from":1, - "scales_to":1, - "scales_with":null, - "status_messages":null, - "supported_scales_from":1, - "supported_scales_to":1, - "tags":[ - "service", - "golang", - "web_framework" - ], - "type":"standalone", - "url":"http://cartreflect-claytondev.rhcloud.com/reflect?github=smarterclayton/openshift-go-cart", - "usage_rates":[ - - ], - "version":"1.1", - "website":"https://github.com/smarterclayton/openshift-go-cart" - }, - { - "additional_gear_storage":0, - "base_gear_storage":1, - "collocated_with":[ - "smarterclayton-go-1.1", - "mysql-5.1" - ], - "current_scale":1, - "description":"Foreman TODO", - "display_name":"Foreman", - "gear_profile":"small", - "help_topics":{ - "Building with MySQL":"http://docs.redhat.com/docs/en-US/OpenShift/2.0/html/User_Guide/sect-User_Guide-Working_With_Database_Cartridges.html" - }, - "license":"ASL 2.0", - "license_url":"http://www.apache.org/licenses/LICENSE-2.0.txt", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/cartridges/andygoldstein-foreman-0.63.0", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get cartridge", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/cartridges/andygoldstein-foreman-0.63.0", - "method":"PUT", - "optional_params":[ - { - "default_value":null, - "description":"Additional filesystem storage in gigabytes on each gear having cartridge andygoldstein-foreman-0.63.0", - "name":"additional_gear_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Minimum number of gears having cartridge andygoldstein-foreman-0.63.0", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears having cartridge andygoldstein-foreman-0.63.0", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - } - ], - "rel":"Update cartridge configuration", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/cartridges/andygoldstein-foreman-0.63.0/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start embedded cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/cartridges/andygoldstein-foreman-0.63.0/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/cartridges/andygoldstein-foreman-0.63.0/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/cartridges/andygoldstein-foreman-0.63.0/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/cartridges/andygoldstein-foreman-0.63.0", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete cartridge", - "required_params":[ - - ] - } - }, - "name":"andygoldstein-foreman-0.63.0", - "properties":[ - - ], - "scales_from":1, - "scales_to":1, - "scales_with":null, - "status_messages":null, - "supported_scales_from":1, - "supported_scales_to":1, - "tags":[ - "embedded" - ], - "type":"embedded", - "url":"http://cartreflect-claytondev.rhcloud.com/reflect?github=ncdc/openshift-foreman-cartridge", - "usage_rates":[ - - ], - "version":"0.63.0", - "website":"https://github.com/ncdc/openshift-foreman-cartridge" - }, - { - "additional_gear_storage":0, - "base_gear_storage":1, - "collocated_with":[ - "smarterclayton-go-1.1", - "andygoldstein-foreman-0.63.0" - ], - "current_scale":1, - "description":"MySQL is a multi-user, multi-threaded SQL database server.", - "display_name":"MySQL Database 5.1", - "gear_profile":"small", - "help_topics":{ - "Building with MySQL":"http://docs.redhat.com/docs/en-US/OpenShift/2.0/html/User_Guide/sect-User_Guide-Working_With_Database_Cartridges.html" - }, - "license":"GPL", - "license_url":"", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/cartridges/mysql-5.1", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get cartridge", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/cartridges/mysql-5.1", - "method":"PUT", - "optional_params":[ - { - "default_value":null, - "description":"Additional filesystem storage in gigabytes on each gear having cartridge mysql-5.1", - "name":"additional_gear_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Minimum number of gears having cartridge mysql-5.1", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears having cartridge mysql-5.1", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - } - ], - "rel":"Update cartridge configuration", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/cartridges/mysql-5.1/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start embedded cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/cartridges/mysql-5.1/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/cartridges/mysql-5.1/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/cartridges/mysql-5.1/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/cartridges/mysql-5.1", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete cartridge", - "required_params":[ - - ] - } - }, - "name":"mysql-5.1", - "properties":[ - { - "name":"username", - "type":"cart_data", - "description":"Root user on mysql database", - "value":"admin2hZX6xz" - }, - { - "name":"password", - "type":"cart_data", - "description":"Password for root user on mysql database", - "value":"_9QFEqac-BbC" - }, - { - "name":"database_name", - "type":"cart_data", - "description":"MySQL DB name", - "value":"downloadablecart" - }, - { - "name":"connection_url", - "type":"cart_data", - "description":"MySQL DB connection URL", - "value":"mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/" - } - ], - "scales_from":1, - "scales_to":1, - "scales_with":null, - "status_messages":null, - "supported_scales_from":1, - "supported_scales_to":1, - "tags":[ - "service", - "database", - "embedded" - ], - "type":"embedded", - "url":null, - "usage_rates":[ - - ], - "version":"5.1", - "website":"http://www.mysql.com" - } - ], - "creation_time":"2013-09-21T12:31:49Z", - "domain_id":"foobarz", - "embedded":{ - "andygoldstein-foreman-0.63.0":{ - - }, - "mysql-5.1":{ - "connection_url":"mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/", - "username":"admin2hZX6xz", - "password":"_9QFEqac-BbC", - "database_name":"downloadablecart", - "info":"Connection URL: mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/" - } - }, - "framework":"smarterclayton-go-1.1", - "gear_count":1, - "gear_profile":"small", - "git_url":"ssh://523d91b550044642eb000053@downloadablecart-foobarz.rhcloud.com/~/git/downloadablecart.git/", - "health_check_path":"health", - "initial_git_url":null, - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get application", - "required_params":[ - - ] - }, - "GET_DESCRIPTOR":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/descriptor", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get application descriptor", - "required_params":[ - - ] - }, - "GET_GEAR_GROUPS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/gear_groups", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get application gear groups", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "FORCE_STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Force stop application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "force-stop" - ] - } - ] - }, - "ADD_ALIAS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Add application alias", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "add-alias" - ] - }, - { - "description":"The server alias for the application", - "invalid_options":[ - - ], - "name":"alias", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "REMOVE_ALIAS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Remove application alias", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "remove-alias" - ] - }, - { - "description":"The application alias to be removed", - "invalid_options":[ - - ], - "name":"alias", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "SCALE_UP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Scale up application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "scale-up" - ] - } - ] - }, - "SCALE_DOWN":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Scale down application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "scale-down" - ] - } - ] - }, - "TIDY":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Tidy the application framework", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "tidy" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload the application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "THREAD_DUMP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Trigger thread dump", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "thread-dump" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete application", - "required_params":[ - - ] - }, - "ADD_CARTRIDGE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/cartridges", - "method":"POST", - "optional_params":[ - { - "default_value":null, - "description":"The component to colocate with", - "name":"colocate_with", - "type":"string", - "valid_options":[ - "smarterclayton-go-1.1", - "andygoldstein-foreman-0.63.0", - "mysql-5.1" - ] - }, - { - "default_value":null, - "description":"Minimum number of gears to run the component on.", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears to run the component on.", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Additional GB of space to request on all gears running this component.", - "name":"additional_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Add or Update application environment variables, e.g.:[{'name':'FOO', 'value':'123'}, {'name':'BAR', 'value':'abc'}]", - "name":"environment_variables", - "type":"array", - "valid_options":[ - - ] - } - ], - "rel":"Add embedded cartridge", - "required_params":[ - { - "description":"framework-type, e.g.: mongodb-2.2", - "invalid_options":[ - - ], - "name":"name", - "type":"string", - "valid_options":[ - "cron-1.4", - "phpmyadmin-4", - "rockmongo-1.1", - "switchyard-0", - "metrics-0.1", - "10gen-mms-agent-0.1", - "mysql-5.1", - "haproxy-1.4", - "postgresql-9.2", - "postgresql-8.4", - "mongodb-2.2", - "jenkins-client-1", - "andygoldstein-foreman-0.63.0" - ] - } - ] - }, - "LIST_CARTRIDGES":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/cartridges", - "method":"GET", - "optional_params":[ - - ], - "rel":"List embedded cartridges", - "required_params":[ - - ] - }, - "DNS_RESOLVABLE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/dns_resolvable", - "method":"GET", - "optional_params":[ - - ], - "rel":"Resolve DNS", - "required_params":[ - - ] - }, - "SET_UNSET_ENVIRONMENT_VARIABLES":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/environment-variables", - "method":"POST", - "optional_params":[ - { - "default_value":null, - "description":"Name of the environment variable to add/update", - "name":"name", - "type":"string", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Value of the environment variable", - "name":"value", - "type":"string", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Add/Update/Delete application environment variables, e.g. Add/Update: [{'name':'FOO', 'value':'123'}, {'name':'BAR', 'value':'abc'}], Delete: [{'name':'FOO'}, {'name':'BAR'}]", - "name":"environment_variables", - "type":"array", - "valid_options":[ - - ] - } - ], - "rel":"Add/Update/Delete one or more environment variables", - "required_params":[ - - ] - }, - "LIST_ENVIRONMENT_VARIABLES":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/downloadablecart/environment-variables", - "method":"GET", - "optional_params":[ - - ], - "rel":"List all environment variables", - "required_params":[ - - ] - } - }, - "name":"downloadablecart", - "scalable":false, - "ssh_url":"ssh://523d91b550044642eb000053@downloadablecart-foobarz.rhcloud.com", - "uuid":"523d91b550044642eb000053" - } - ], - "messages":[ - { - "exit_code":0, - "field":null, - "severity":"info", - "text":"Found 3 applications." - } - ], - "status":"ok", - "supported_api_versions":[ - 1.0, - 1.1, - 1.2, - 1.3, - 1.4, - 1.5, - 1.6 - ], - "type":"applications", - "version":"1.2" -} \ No newline at end of file diff --git a/src/test/resources/samples/get-domains-foobarz.json b/src/test/resources/samples/get-domains-foobarz.json deleted file mode 100644 index 185761b1..00000000 --- a/src/test/resources/samples/get-domains-foobarz.json +++ /dev/null @@ -1,260 +0,0 @@ -{ - "data":{ - "id":"foobarz", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get domain", - "required_params":[ - - ] - }, - "LIST_APPLICATIONS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications", - "method":"GET", - "optional_params":[ - - ], - "rel":"List applications", - "required_params":[ - - ] - }, - "ADD_APPLICATION":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications", - "method":"POST", - "optional_params":[ - { - "default_value":null, - "description":"Array of one or more cartridge names. i.e. [\"php-5.3\", \"mongodb-2.2\"]", - "name":"cartridges", - "type":"array", - "valid_options":[ - "nodejs-0.6", - "jbossews-2.0", - "zend-5.6", - "ruby-1.9", - "python-3.3", - "jbossas-7", - "python-2.6", - "jenkins-1.4", - "ruby-1.8", - "python-2.7", - "jbosseap-6", - "diy-0.1", - "jbossews-1.0", - "php-5.3", - "perl-5.10" - ] - }, - { - "default_value":false, - "description":"Mark application as scalable", - "name":"scale", - "type":"boolean", - "valid_options":[ - true, - false - ] - }, - { - "default_value":"small", - "description":"The size of the gear", - "name":"gear_profile", - "type":"string", - "valid_options":[ - "small", - "medium", - "large", - "exlarge", - "jumbo" - ] - }, - { - "default_value":null, - "description":"A URL to a Git source code repository that will be the basis for this application.", - "name":"initial_git_url", - "type":"string", - "valid_options":[ - - ] - } - ], - "rel":"Create new application", - "required_params":[ - { - "description":"Name of the application", - "invalid_options":[ - "amentra", - "aop", - "apiviz", - "arquillian", - "blacktie", - "boxgrinder", - "byteman", - "cirras", - "cloud", - "cloudforms", - "cygwin", - "davcache", - "dogtag", - "drools", - "drools", - "ejb3", - "errai", - "esb", - "fedora", - "freeipa", - "gatein", - "git", - "gfs", - "gravel", - "guvnor", - "hibernate", - "hornetq", - "iiop", - "infinispan", - "ironjacamar", - "javassist", - "jbcaa", - "jbcd", - "jboss", - "jbpm", - "jdcom", - "jgroups", - "jmx", - "jopr", - "jrunit", - "jsfunit", - "kosmos", - "liberation", - "makara", - "mass", - "maven", - "metajizer", - "metamatrix", - "mobicents", - "mod_cluster", - "modeshape", - "mugshot", - "mysql", - "netty", - "openshift", - "osgi", - "overlord", - "ovirt", - "penrose", - "picketbox", - "picketlink", - "portletbridge", - "portletswap", - "posse", - "pressgang", - "qumranet", - "railo", - "redhat", - "resteasy", - "rhca", - "rhcds", - "rhce", - "rhcsa", - "rhcss", - "rhct", - "rhcva", - "rhel", - "rhev", - "rhq", - "rhx", - "richfaces", - "riftsaw", - "savara", - "scribble", - "seam", - "shadowman", - "shotoku", - "shrinkwrap", - "snowdrop", - "solidice", - "spacewalk", - "spice", - "steamcannon", - "stormgrind", - "switchyard", - "tattletale", - "teiid", - "tohu", - "torquebox", - "weld", - "wise", - "xnio" - ], - "name":"name", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz", - "method":"PUT", - "optional_params":[ - - ], - "rel":"Update domain", - "required_params":[ - { - "description":"Name of the domain", - "invalid_options":[ - - ], - "name":"id", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz", - "method":"DELETE", - "optional_params":[ - { - "default_value":false, - "description":"Force delete domain. i.e. delete any applications under this domain", - "name":"force", - "type":"boolean", - "valid_options":[ - true, - false - ] - } - ], - "rel":"Delete domain", - "required_params":[ - - ] - } - }, - "suffix":"rhcloud.com" - }, - "messages":[ - - ], - "status":"ok", - "supported_api_versions":[ - 1.0, - 1.1, - 1.2, - 1.3, - 1.4 - ], - "type":"domain", - "version":"1.2" -} \ No newline at end of file diff --git a/src/test/resources/samples/get-domains.json b/src/test/resources/samples/get-domains.json deleted file mode 100644 index cafc5522..00000000 --- a/src/test/resources/samples/get-domains.json +++ /dev/null @@ -1,594 +0,0 @@ -{ - "data":[ - { - "id":"foobarz", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get domain", - "required_params":[ - - ] - }, - "LIST_APPLICATIONS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications", - "method":"GET", - "optional_params":[ - - ], - "rel":"List applications", - "required_params":[ - - ] - }, - "ADD_APPLICATION":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications", - "method":"POST", - "optional_params":[ - { - "default_value":null, - "description":"Array of one or more cartridge names. i.e. [\"php-5.3\", \"mongodb-2.2\"]", - "name":"cartridges", - "type":"array", - "valid_options":[ - "nodejs-0.6", - "jbossews-2.0", - "zend-5.6", - "ruby-1.9", - "python-3.3", - "jbossas-7", - "python-2.6", - "jenkins-1.4", - "ruby-1.8", - "python-2.7", - "jbosseap-6", - "diy-0.1", - "jbossews-1.0", - "php-5.3", - "perl-5.10" - ] - }, - { - "default_value":false, - "description":"Mark application as scalable", - "name":"scale", - "type":"boolean", - "valid_options":[ - true, - false - ] - }, - { - "default_value":"small", - "description":"The size of the gear", - "name":"gear_profile", - "type":"string", - "valid_options":[ - "small", - "medium", - "large" - ] - }, - { - "default_value":null, - "description":"A URL to a Git source code repository that will be the basis for this application.", - "name":"initial_git_url", - "type":"string", - "valid_options":[ - - ] - } - ], - "rel":"Create new application", - "required_params":[ - { - "description":"Name of the application", - "invalid_options":[ - "amentra", - "aop", - "apiviz", - "arquillian", - "blacktie", - "boxgrinder", - "byteman", - "cirras", - "cloud", - "cloudforms", - "cygwin", - "davcache", - "dogtag", - "drools", - "drools", - "ejb3", - "errai", - "esb", - "fedora", - "freeipa", - "gatein", - "git", - "gfs", - "gravel", - "guvnor", - "hibernate", - "hornetq", - "iiop", - "infinispan", - "ironjacamar", - "javassist", - "jbcaa", - "jbcd", - "jboss", - "jbpm", - "jdcom", - "jgroups", - "jmx", - "jopr", - "jrunit", - "jsfunit", - "kosmos", - "liberation", - "makara", - "mass", - "maven", - "metajizer", - "metamatrix", - "mobicents", - "mod_cluster", - "modeshape", - "mugshot", - "mysql", - "netty", - "openshift", - "osgi", - "overlord", - "ovirt", - "penrose", - "picketbox", - "picketlink", - "portletbridge", - "portletswap", - "posse", - "pressgang", - "qumranet", - "railo", - "redhat", - "resteasy", - "rhca", - "rhcds", - "rhce", - "rhcsa", - "rhcss", - "rhct", - "rhcva", - "rhel", - "rhev", - "rhq", - "rhx", - "richfaces", - "riftsaw", - "savara", - "scribble", - "seam", - "shadowman", - "shotoku", - "shrinkwrap", - "snowdrop", - "solidice", - "spacewalk", - "spice", - "steamcannon", - "stormgrind", - "switchyard", - "tattletale", - "teiid", - "tohu", - "torquebox", - "weld", - "wise", - "xnio" - ], - "name":"name", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz", - "method":"PUT", - "optional_params":[ - - ], - "rel":"Update domain", - "required_params":[ - { - "description":"Name of the domain", - "invalid_options":[ - - ], - "name":"id", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz", - "method":"DELETE", - "optional_params":[ - { - "default_value":false, - "description":"Force delete domain. i.e. delete any applications under this domain", - "name":"force", - "type":"boolean", - "valid_options":[ - true, - false - ] - } - ], - "rel":"Delete domain", - "required_params":[ - - ] - } - }, - "suffix":"rhcloud.com" - }, - { - "id": "foogoo", - "links": { - "GET": { - "href": "https://openshift.redhat.com/broker/rest/domain/foogoo", - "method": "GET", - "optional_params": [ - - ], - "rel": "Get domain", - "required_params": [ - - ] - }, - "LIST_APPLICATIONS": { - "href": "https://openshift.redhat.com/broker/rest/domain/foogoo/applications", - "method": "GET", - "optional_params": [ - - ], - "rel": "List applications", - "required_params": [ - - ] - }, - "ADD_APPLICATION": { - "href": "https://openshift.redhat.com/broker/rest/domain/foogoo/applications", - "method": "POST", - "optional_params": [ - { - "default_value": null, - "description": "Array of one or more cartridge names. i.e. [\"php-5.3\", \"mongodb-2.2\"]", - "name": "cartridges", - "type": "array", - "valid_options": [ - "nodejs-0.6", - "nodejs-0.10", - "python-3.3", - "python-2.7", - "python-2.6", - "zend-5.6", - "ruby-1.9", - "ruby-1.8", - "jenkins-1", - "jbossews-2.0", - "jbossews-1.0", - "perl-5.10", - "php-5.3", - "jbosseap-6", - "diy-0.1", - "jbossas-7" - ] - }, - { - "default_value": false, - "description": "Mark application as scalable", - "name": "scale", - "type": "boolean", - "valid_options": [ - true, - false - ] - }, - { - "default_value": "small", - "description": "The size of the gear", - "name": "gear_profile", - "type": "string", - "valid_options": [ - "small", - "medium" - ] - }, - { - "default_value": null, - "description": "A URL to a Git source code repository that will be the basis for this application.", - "name": "initial_git_url", - "type": "string", - "valid_options": [ - - ] - }, - { - "default_value": null, - "description": "A URL to a downloadable cartridge. You may specify an multiple urls via {'cartridges' : [{'url':'http://...'}, ...]}", - "name": "cartridges[][url]", - "type": "string", - "valid_options": [ - - ] - }, - { - "default_value": null, - "description": "Add or Update application environment variables, e.g.:[{'name':'FOO', 'value':'123'}, {'name':'BAR', 'value':'abc'}]", - "name": "environment_variables", - "type": "array", - "valid_options": [ - - ] - } - ], - "rel": "Create new application", - "required_params": [ - { - "description": "Name of the application", - "invalid_options": [ - "amentra", - "aop", - "apiviz", - "arquillian", - "blacktie", - "boxgrinder", - "byteman", - "cirras", - "cloud", - "cloudforms", - "cygwin", - "davcache", - "dogtag", - "drools", - "drools", - "ejb3", - "errai", - "esb", - "fedora", - "freeipa", - "gatein", - "git", - "gfs", - "gravel", - "guvnor", - "hibernate", - "hornetq", - "iiop", - "infinispan", - "ironjacamar", - "javassist", - "jbcaa", - "jbcd", - "jboss", - "jbpm", - "jdcom", - "jgroups", - "jmx", - "jopr", - "jrunit", - "jsfunit", - "kosmos", - "liberation", - "makara", - "mass", - "maven", - "metajizer", - "metamatrix", - "mobicents", - "mod_cluster", - "modeshape", - "mugshot", - "mysql", - "netty", - "openshift", - "osgi", - "overlord", - "ovirt", - "penrose", - "picketbox", - "picketlink", - "portletbridge", - "portletswap", - "posse", - "pressgang", - "qumranet", - "railo", - "redhat", - "resteasy", - "rhca", - "rhcds", - "rhce", - "rhcsa", - "rhcss", - "rhct", - "rhcva", - "rhel", - "rhev", - "rhq", - "rhx", - "richfaces", - "riftsaw", - "savara", - "scribble", - "seam", - "shadowman", - "shotoku", - "shrinkwrap", - "snowdrop", - "solidice", - "spacewalk", - "spice", - "steamcannon", - "stormgrind", - "switchyard", - "tattletale", - "teiid", - "tohu", - "torquebox", - "weld", - "wise", - "xnio" - ], - "name": "name", - "type": "string", - "valid_options": [ - - ] - } - ] - }, - "UPDATE": { - "href": "https://openshift.redhat.com/broker/rest/domain/foogoo", - "method": "PUT", - "optional_params": [ - { - "default_value": null, - "description": "Array of zero or more gear sizes allowed on this domain", - "name": "allowed_gear_sizes", - "type": "array", - "valid_options": [ - "small", - "medium", - "large", - "c9" - ] - } - ], - "rel": "Update domain", - "required_params": [ - { - "description": "Name of the domain", - "invalid_options": [ - - ], - "name": "id", - "type": "string", - "valid_options": [ - - ] - } - ] - }, - "DELETE": { - "href": "https://openshift.redhat.com/broker/rest/domain/foogoo", - "method": "DELETE", - "optional_params": [ - { - "default_value": false, - "description": "Force delete domain. i.e. delete any applications under this domain", - "name": "force", - "type": "boolean", - "valid_options": [ - true, - false - ] - } - ], - "rel": "Delete domain", - "required_params": [ - - ] - }, - "LIST_MEMBERS": { - "href": "https://openshift.redhat.com/broker/rest/domain/foogoo/members", - "method": "GET", - "optional_params": [ - - ], - "rel": "List members of this domain", - "required_params": [ - - ] - }, - "LEAVE": { - "href": "https://openshift.redhat.com/broker/rest/domain/foogoo/members/self", - "method": "DELETE", - "optional_params": [ - - ], - "rel": "Leave this domain", - "required_params": [ - - ] - }, - "UPDATE_MEMBERS": { - "href": "https://openshift.redhat.com/broker/rest/domain/foogoo/members", - "method": "POST", - "optional_params": [ - { - "default_value": null, - "description": "Unique identifier of the user", - "name": "id", - "type": "string", - "valid_options": [ - - ] - }, - { - "default_value": null, - "description": "The user's login attribute", - "name": "login", - "type": "string", - "valid_options": [ - - ] - } - ], - "rel": "Add or remove one or more members to this domain.", - "required_params": [ - { - "description": "The role the user should have on the domain", - "invalid_options": [ - - ], - "name": "role", - "type": "string", - "valid_options": [ - "view", - "edit", - "admin" - ] - } - ] - } - }, - "suffix": "rhcloud.com" - } - ], - "messages":[ - - ], - "status":"ok", - "supported_api_versions":[ - 1.0, - 1.1, - 1.2, - 1.3, - 1.4 - ], - "type":"domains", - "version":"1.2" -} diff --git a/src/test/resources/samples/get-domains_empty.json b/src/test/resources/samples/get-domains_empty.json deleted file mode 100644 index 5fe28222..00000000 --- a/src/test/resources/samples/get-domains_empty.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "data":[ - - ], - "messages":[ - - ], - "status":"ok", - "supported_api_versions":[ - 1.0, - 1.1, - 1.2, - 1.3, - 1.4 - ], - "type":"domains", - "version":"1.2" -} \ No newline at end of file diff --git a/src/test/resources/samples/get-user-keys_1key.json b/src/test/resources/samples/get-user-keys_1key.json deleted file mode 100644 index 767318ed..00000000 --- a/src/test/resources/samples/get-user-keys_1key.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "data":[ - { - "content":"ABBA", - "links":{ - "GET":{ - "href":"http://mock/broker/rest/user/keys/somekey", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get SSH key", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"http://mock/broker/rest/user/keys/somekey", - "method":"PUT", - "optional_params":[ - - ], - "rel":"Update SSH key", - "required_params":[ - { - "description":"Type of Key", - "invalid_options":[ - - ], - "name":"type", - "type":"string", - "valid_options":[ - "ssh-rsa", - "ssh-dss", - "ecdsa-sha2-nistp256-cert-v01@openssh.com", - "ecdsa-sha2-nistp384-cert-v01@openssh.com", - "ecdsa-sha2-nistp521-cert-v01@openssh.com", - "ssh-rsa-cert-v01@openssh.com", - "ssh-dss-cert-v01@openssh.com", - "ssh-rsa-cert-v00@openssh.com", - "ssh-dss-cert-v00@openssh.com", - "ecdsa-sha2-nistp256", - "ecdsa-sha2-nistp384", - "ecdsa-sha2-nistp521" - ] - }, - { - "description":"The key portion of an rsa key (excluding ssh key type and comment)", - "invalid_options":[ - - ], - "name":"content", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "DELETE":{ - "href":"http://mock/broker/rest/user/keys/somekey", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete SSH key", - "required_params":[ - - ] - } - }, - "name":"somekey", - "type":"ssh-rsa" - } - ], - "messages":[ - - ], - "status":"ok", - "supported_api_versions":[ - 1.0, - 1.1, - 1.2, - 1.3, - 1.4 - ], - "type":"keys", - "version":"1.2" -} \ No newline at end of file diff --git a/src/test/resources/samples/get-user-keys_2keys.json b/src/test/resources/samples/get-user-keys_2keys.json deleted file mode 100644 index 7576e835..00000000 --- a/src/test/resources/samples/get-user-keys_2keys.json +++ /dev/null @@ -1,161 +0,0 @@ -{ - "data":[ - { - "content":"ABBA", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/user/keys/default", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get SSH key", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/user/keys/default", - "method":"PUT", - "optional_params":[ - - ], - "rel":"Update SSH key", - "required_params":[ - { - "description":"Type of Key", - "invalid_options":[ - - ], - "name":"type", - "type":"string", - "valid_options":[ - "ssh-rsa", - "ssh-dss", - "ecdsa-sha2-nistp256-cert-v01@openssh.com", - "ecdsa-sha2-nistp384-cert-v01@openssh.com", - "ecdsa-sha2-nistp521-cert-v01@openssh.com", - "ssh-rsa-cert-v01@openssh.com", - "ssh-dss-cert-v01@openssh.com", - "ssh-rsa-cert-v00@openssh.com", - "ssh-dss-cert-v00@openssh.com", - "ecdsa-sha2-nistp256", - "ecdsa-sha2-nistp384", - "ecdsa-sha2-nistp521" - ] - }, - { - "description":"The key portion of an rsa key (excluding ssh key type and comment)", - "invalid_options":[ - - ], - "name":"content", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/user/keys/default", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete SSH key", - "required_params":[ - - ] - } - }, - "name":"default", - "type":"ssh-rsa" - }, - { - "content":"AABB", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/user/keys/default2", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get SSH key", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/user/keys/default2", - "method":"PUT", - "optional_params":[ - - ], - "rel":"Update SSH key", - "required_params":[ - { - "description":"Type of Key", - "invalid_options":[ - - ], - "name":"type", - "type":"string", - "valid_options":[ - "ssh-rsa", - "ssh-dss", - "ecdsa-sha2-nistp256-cert-v01@openssh.com", - "ecdsa-sha2-nistp384-cert-v01@openssh.com", - "ecdsa-sha2-nistp521-cert-v01@openssh.com", - "ssh-rsa-cert-v01@openssh.com", - "ssh-dss-cert-v01@openssh.com", - "ssh-rsa-cert-v00@openssh.com", - "ssh-dss-cert-v00@openssh.com", - "ecdsa-sha2-nistp256", - "ecdsa-sha2-nistp384", - "ecdsa-sha2-nistp521" - ] - }, - { - "description":"The key portion of an rsa key (excluding ssh key type and comment)", - "invalid_options":[ - - ], - "name":"content", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/user/keys/default2", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete SSH key", - "required_params":[ - - ] - } - }, - "name":"default2", - "type":"ssh-dss" - } - ], - "messages":[ - - ], - "status":"ok", - "supported_api_versions":[ - 1.0, - 1.1, - 1.2, - 1.3, - 1.4 - ], - "type":"keys", - "version":"1.2" -} \ No newline at end of file diff --git a/src/test/resources/samples/get-user-keys_none.json b/src/test/resources/samples/get-user-keys_none.json deleted file mode 100644 index 95d61e54..00000000 --- a/src/test/resources/samples/get-user-keys_none.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "data":[ - - ], - "messages":[ - - ], - "status":"ok", - "supported_api_versions":[ - 1.0, - 1.1, - 1.2, - 1.3, - 1.4 - ], - "type":"keys", - "version":"1.2" -} \ No newline at end of file diff --git a/src/test/resources/samples/get-user.json b/src/test/resources/samples/get-user.json deleted file mode 100644 index a0e4cdf0..00000000 --- a/src/test/resources/samples/get-user.json +++ /dev/null @@ -1,99 +0,0 @@ -{ - "data":{ - "capabilities":{ - "subaccounts":false, - "gear_sizes":[ - "small", - "medium" - ] - }, - "consumed_gears":3, - "created_at":"2013-02-12T17:12:44Z", - "id":"511a780cf2cb83f4d0001b23", - "links":{ - "LIST_KEYS":{ - "href":"https://openshift.redhat.com/broker/rest/user/keys", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get SSH keys", - "required_params":[ - - ] - }, - "ADD_KEY":{ - "href":"https://openshift.redhat.com/broker/rest/user/keys", - "method":"POST", - "optional_params":[ - - ], - "rel":"Add new SSH key", - "required_params":[ - { - "description":"Name of the key", - "invalid_options":[ - - ], - "name":"name", - "type":"string", - "valid_options":[ - - ] - }, - { - "description":"Type of Key", - "invalid_options":[ - - ], - "name":"type", - "type":"string", - "valid_options":[ - "ssh-rsa", - "ssh-dss", - "ecdsa-sha2-nistp256-cert-v01@openssh.com", - "ecdsa-sha2-nistp384-cert-v01@openssh.com", - "ecdsa-sha2-nistp521-cert-v01@openssh.com", - "ssh-rsa-cert-v01@openssh.com", - "ssh-dss-cert-v01@openssh.com", - "ssh-rsa-cert-v00@openssh.com", - "ssh-dss-cert-v00@openssh.com", - "ecdsa-sha2-nistp256", - "ecdsa-sha2-nistp384", - "ecdsa-sha2-nistp521" - ] - }, - { - "description":"The key portion of an rsa key (excluding ssh-rsa and comment)", - "invalid_options":[ - - ], - "name":"content", - "type":"string", - "valid_options":[ - - ] - } - ] - } - }, - "login":"foo@redhat.com", - "max_gears":10, - "plan_id":"free", - "plan_state":"ACTIVE", - "usage_account_id":null - }, - "messages":[ - - ], - "status":"ok", - "supported_api_versions":[ - 1.0, - 1.1, - 1.2, - 1.3, - 1.4 - ], - "type":"user", - "version":"1.2" -} \ No newline at end of file diff --git a/src/test/resources/samples/get_0_environment_variables_foobarz_springeap6.json b/src/test/resources/samples/get_0_environment_variables_foobarz_springeap6.json deleted file mode 100644 index 4e83afdc..00000000 --- a/src/test/resources/samples/get_0_environment_variables_foobarz_springeap6.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "api_version":1.2, - "data":[ - - ], - "messages":[ - { - "exit_code":0, - "field":null, - "severity":"info", - "text":"Listing environment variables for application springeap6" - } - ], - "status":"ok", - "supported_api_versions":[ - 1.0, - 1.1, - 1.2, - 1.3, - 1.4, - 1.5, - 1.6 - ], - "type":"environment-variables", - "version":"1.2" -} \ No newline at end of file diff --git a/src/test/resources/samples/get_1_environment_variables_foobarz_springeap6.json b/src/test/resources/samples/get_1_environment_variables_foobarz_springeap6.json deleted file mode 100644 index b2508cca..00000000 --- a/src/test/resources/samples/get_1_environment_variables_foobarz_springeap6.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "data":[ - { - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/environment-variables/FOO", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get environment variable", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/environment-variables/FOO", - "method":"PUT", - "optional_params":[ - - ], - "rel":"Update environment variable", - "required_params":[ - { - "description":"Value of the environment variable", - "invalid_options":[ - - ], - "name":"value", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/environment-variables/FOO", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete environment variable", - "required_params":[ - - ] - } - }, - "name":"FOO", - "value":"123" - } - ], - "messages":[ - { - "exit_code":0, - "field":null, - "severity":"info", - "text":"Listing environment variables for application springeap6" - } - ], - "status":"ok", - "supported_api_versions":[ - 1.0, - 1.1, - 1.2, - 1.3, - 1.4, - 1.5, - 1.6 - ], - "type":"environment-variables", - "version":"1.2" -} \ No newline at end of file diff --git a/src/test/resources/samples/get_four_environment_variables_foobarz_springeap6.json b/src/test/resources/samples/get_four_environment_variables_foobarz_springeap6.json deleted file mode 100644 index c6316bec..00000000 --- a/src/test/resources/samples/get_four_environment_variables_foobarz_springeap6.json +++ /dev/null @@ -1,221 +0,0 @@ -{ - "api_version":1.2, - "data":[ - { - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/environment-variables/freaky", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get environment variable", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/environment-variables/freaky", - "method":"PUT", - "optional_params":[ - - ], - "rel":"Update environment variable", - "required_params":[ - { - "description":"Value of the environment variable", - "invalid_options":[ - - ], - "name":"value", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/environment-variables/freaky", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete environment variable", - "required_params":[ - - ] - } - }, - "name":"freaky", - "value":"honkabear" - }, - { - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/environment-variables/Y_NAME", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get environment variable", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/environment-variables/Y_NAME", - "method":"PUT", - "optional_params":[ - - ], - "rel":"Update environment variable", - "required_params":[ - { - "description":"Value of the environment variable", - "invalid_options":[ - - ], - "name":"value", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/environment-variables/Y_NAME", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete environment variable", - "required_params":[ - - ] - } - }, - "name":"Y_NAME", - "value":"Y_VALUE" - }, - { - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/environment-variables/X_NAME", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get environment variable", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/environment-variables/X_NAME", - "method":"PUT", - "optional_params":[ - - ], - "rel":"Update environment variable", - "required_params":[ - { - "description":"Value of the environment variable", - "invalid_options":[ - - ], - "name":"value", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/environment-variables/X_NAME", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete environment variable", - "required_params":[ - - ] - } - }, - "name":"X_NAME", - "value":"X_VALUE" - }, - { - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/environment-variables/runtime", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get environment variable", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/environment-variables/runtime", - "method":"PUT", - "optional_params":[ - - ], - "rel":"Update environment variable", - "required_params":[ - { - "description":"Value of the environment variable", - "invalid_options":[ - - ], - "name":"value", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/environment-variables/runtime", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete environment variable", - "required_params":[ - - ] - } - }, - "name":"runtime", - "value":"jbossas7" - } - ], - "messages":[ - { - "exit_code":0, - "field":null, - "severity":"info", - "text":"Listing environment variables for application springeap6" - } - ], - "status":"ok", - "supported_api_versions":[ - 1.0, - 1.1, - 1.2, - 1.3, - 1.4, - 1.5, - 1.6 - ], - "type":"environment-variables", - "version":"1.2" -} \ No newline at end of file diff --git a/src/test/resources/samples/get_two_environment_variabls_foobarz_springeap6.json b/src/test/resources/samples/get_two_environment_variabls_foobarz_springeap6.json deleted file mode 100644 index 9888ca27..00000000 --- a/src/test/resources/samples/get_two_environment_variabls_foobarz_springeap6.json +++ /dev/null @@ -1 +0,0 @@ -{"api_version":1.2,"data":[{"links":{"GET":{"href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/environment-variables/Y_NAME","method":"GET","optional_params":[],"rel":"Get environment variable","required_params":[]},"UPDATE":{"href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/environment-variables/Y_NAME","method":"PUT","optional_params":[],"rel":"Update environment variable","required_params":[{"description":"Value of the environment variable","invalid_options":[],"name":"value","type":"string","valid_options":[]}]},"DELETE":{"href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/environment-variables/Y_NAME","method":"DELETE","optional_params":[],"rel":"Delete environment variable","required_params":[]}},"name":"Y_NAME","value":"Y_VALUE"},{"links":{"GET":{"href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/environment-variables/X_NAME","method":"GET","optional_params":[],"rel":"Get environment variable","required_params":[]},"UPDATE":{"href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/environment-variables/X_NAME","method":"PUT","optional_params":[],"rel":"Update environment variable","required_params":[{"description":"Value of the environment variable","invalid_options":[],"name":"value","type":"string","valid_options":[]}]},"DELETE":{"href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/environment-variables/X_NAME","method":"DELETE","optional_params":[],"rel":"Delete environment variable","required_params":[]}},"name":"X_NAME","value":"X_VALUE"}],"messages":[{"exit_code":0,"field":null,"severity":"info","text":"Listing environment variables for application springeap6"}],"status":"ok","supported_api_versions":[1.0,1.1,1.2,1.3,1.4,1.5,1.6],"type":"environment-variables","version":"1.2"} \ No newline at end of file diff --git a/src/test/resources/samples/links-unknown-linkparametertype.json b/src/test/resources/samples/links-unknown-linkparametertype.json deleted file mode 100644 index 0cd84dad..00000000 --- a/src/test/resources/samples/links-unknown-linkparametertype.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "data":{ - "POST1":{ - "href":"https://openshift.redhat.com/broker/rest/post1", - "method":"POST", - "optional_params":[ - - ], - "rel":"Post1", - "required_params":[ - { - "description":"post1Required1Description", - "invalid_options":[ - - ], - "name":"post1Required1Name", - "type":"unknown", - "valid_options":[ - ] - } - ] - } - }, - "type":"links", - "version":"1.2" -} \ No newline at end of file diff --git a/src/test/resources/samples/post-foobar-domains_ko-inuse.json b/src/test/resources/samples/post-foobar-domains_ko-inuse.json deleted file mode 100644 index 2192d0ab..00000000 --- a/src/test/resources/samples/post-foobar-domains_ko-inuse.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "data":null, - "errors":{ - - }, - "messages":[ - { - "exit_code":103, - "field":"id", - "severity":"error", - "text":"Namespace 'foobar' is already in use. Please choose another." - } - ], - "status":"unprocessable_entity", - "supported_api_versions":[ - 1.0, - 1.1, - 1.2, - 1.3, - 1.4 - ], - "type":null, - "version":"1.2" -} \ No newline at end of file diff --git a/src/test/resources/samples/post-jekyll-domains-foobarz-applications.json b/src/test/resources/samples/post-jekyll-domains-foobarz-applications.json deleted file mode 100644 index 9a919226..00000000 --- a/src/test/resources/samples/post-jekyll-domains-foobarz-applications.json +++ /dev/null @@ -1,448 +0,0 @@ -{ - "api_version":1.2, - "data":{ - "aliases":[ - - ], - "app_url":"http://jekyll-foobarz.rhcloud.com/", - "build_job_url":null, - "building_app":null, - "building_with":null, - "creation_time":"2013-07-04T23:18:09Z", - "domain_id":"foobarz", - "embedded":{ - - }, - "framework":"jenkins-1.4", - "gear_count":1, - "gear_profile":"small", - "git_url":"ssh://51d602b1e0b8cd5c74000241@jekyll-foobarz.rhcloud.com/~/git/jekyll.git/", - "health_check_path":"health", - "initial_git_url":null, - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/jekyll", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get application", - "required_params":[ - - ] - }, - "GET_DESCRIPTOR":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/jekyll/descriptor", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get application descriptor", - "required_params":[ - - ] - }, - "GET_GEAR_GROUPS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/jekyll/gear_groups", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get application gear groups", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/jekyll/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/jekyll/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/jekyll/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "FORCE_STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/jekyll/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Force stop application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "force-stop" - ] - } - ] - }, - "ADD_ALIAS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/jekyll/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Add application alias", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "add-alias" - ] - }, - { - "description":"The server alias for the application", - "invalid_options":[ - - ], - "name":"alias", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "REMOVE_ALIAS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/jekyll/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Remove application alias", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "remove-alias" - ] - }, - { - "description":"The application alias to be removed", - "invalid_options":[ - - ], - "name":"alias", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "SCALE_UP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/jekyll/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Scale up application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "scale-up" - ] - } - ] - }, - "SCALE_DOWN":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/jekyll/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Scale down application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "scale-down" - ] - } - ] - }, - "TIDY":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/jekyll/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Tidy the application framework", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "tidy" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/jekyll/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload the application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "THREAD_DUMP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/jekyll/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Trigger thread dump", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "thread-dump" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/jekyll", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete application", - "required_params":[ - - ] - }, - "ADD_CARTRIDGE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/jekyll/cartridges", - "method":"POST", - "optional_params":[ - { - "default_value":null, - "description":"The component to colocate with", - "name":"colocate_with", - "type":"string", - "valid_options":[ - "jenkins-1.4" - ] - }, - { - "default_value":null, - "description":"Minimum number of gears to run the component on.", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears to run the component on.", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Additional GB of space to request on all gears running this component.", - "name":"additional_storage", - "type":"integer", - "valid_options":[ - - ] - } - ], - "rel":"Add embedded cartridge", - "required_params":[ - { - "description":"framework-type, e.g.: mongodb-2.0", - "invalid_options":[ - - ], - "name":"name", - "type":"string", - "valid_options":[ - "10gen-mms-agent-0.1", - "cron-1.4", - "haproxy-1.4", - "jenkins-client-1.4", - "metrics-0.1", - "mongodb-2.2", - "mysql-5.1", - "phpmyadmin-3.4", - "postgresql-8.4", - "rockmongo-1.1", - "switchyard-0.6" - ] - } - ] - }, - "LIST_CARTRIDGES":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/jekyll/cartridges", - "method":"GET", - "optional_params":[ - - ], - "rel":"List embedded cartridges", - "required_params":[ - - ] - }, - "DNS_RESOLVABLE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/jekyll/dns_resolvable", - "method":"GET", - "optional_params":[ - - ], - "rel":"Resolve DNS", - "required_params":[ - - ] - } - }, - "name":"jekyll", - "scalable":false, - "ssh_url":"ssh://51d602b1e0b8cd5c74000241@jekyll-foobarz.rhcloud.com", - "uuid":"51d602b1e0b8cd5c74000241" - }, - "errors":{ - - }, - "messages":[ - { - "exit_code":0, - "field":null, - "severity":"info", - "text":"Application jekyll was created." - }, - { - "exit_code":0, - "field":null, - "severity":"debug", - "text":"The cartridge jenkins deployed a template application" - }, - { - "exit_code":0, - "field":null, - "severity":"result", - "text":"Jenkins created successfully. Please make note of these credentials:\n User: admin\n Password: wLwSzJPh6dqN\nNote: You can change your password at: https://jekyll-foobarz.rhcloud.com/me/configure\n" - } - ], - "status":"created", - "supported_api_versions":[ - 1.0, - 1.1, - 1.2, - 1.3, - 1.4, - 1.5 - ], - "type":"application", - "version":"1.2" -} \ No newline at end of file diff --git a/src/test/resources/samples/post-mysql-domains-foobarz-applications-springeap6-cartridges.json b/src/test/resources/samples/post-mysql-domains-foobarz-applications-springeap6-cartridges.json deleted file mode 100644 index 1b0d2fca..00000000 --- a/src/test/resources/samples/post-mysql-domains-foobarz-applications-springeap6-cartridges.json +++ /dev/null @@ -1,243 +0,0 @@ -{ - "data":{ - "additional_gear_storage":0, - "base_gear_storage":1, - "collocated_with":[ - "jbosseap-6", - "mongodb-2.2" - ], - "current_scale":1, - "description":"MySQL is a multi-user, multi-threaded SQL database server.", - "display_name":"MySQL Database 5.1", - "gear_profile":"small", - "help_topics":[ - { - "Building with MySQL":"http://docs.redhat.com/docs/en-US/OpenShift/2.0/html/User_Guide/sect-User_Guide-Working_With_Database_Cartridges.html" - } - ], - "license":"ASL 2.0", - "license_url":"", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mysql-5.1", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get cartridge", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mysql-5.1", - "method":"PUT", - "optional_params":[ - { - "default_value":null, - "description":"Additional filesystem storage in gigabytes on each gear having cartridge mysql-5.1", - "name":"additional_gear_storage", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Minimum number of gears having cartridge mysql-5.1", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears having cartridge mysql-5.1", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - } - ], - "rel":"Update cartridge configuration", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mysql-5.1/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start embedded cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mysql-5.1/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mysql-5.1/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mysql-5.1/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload cartridge", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges/mysql-5.1", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete cartridge", - "required_params":[ - - ] - } - }, - "name":"mysql-5.1", - "properties":[ - { - "name":"username", - "type":"cart_data", - "description":"Root user on mysql database", - "value":"adminnFC22YQ" - }, - { - "name":"password", - "type":"cart_data", - "description":"Password for root user on mysql database", - "value":"U1IX8AIlrEcl" - }, - { - "name":"database_name", - "type":"cart_data", - "description":"MySQL DB name", - "value":"springeap6" - }, - { - "name":"connection_url", - "type":"cart_data", - "description":"MySQL DB connection URL", - "value":"mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/" - } - ], - "scales_from":1, - "scales_to":1, - "scales_with":null, - "status_messages":null, - "supported_scales_from":1, - "supported_scales_to":1, - "tags":[ - "service", - "database", - "embedded" - ], - "type":"embedded", - "usage_rates":[ - - ], - "version":5.1, - "website":"http://www.mysql.com" - }, - "errors":{ - - }, - "messages":[ - { - "exit_code":null, - "field":null, - "severity":"info", - "text":"Added mysql-5.1 to application springeap6" - }, - { - "exit_code":0, - "field":"result", - "severity":"info", - "text":"\nMySQL 5.1 database added. Please make note of these credentials:\n\n Root User: adminnFC22YQ\n Root Password: U1IX8AIlrEcl\n Database Name: springeap6\n\nConnection URL: mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/\n\nYou can manage your new MySQL database by also embedding phpmyadmin-3.4.\nThe phpmyadmin username and password will be the same as the MySQL credentials above.\n" - }, - { - "exit_code":0, - "field":"appinfo", - "severity":"info", - "text":"Connection URL: mysql://127.13.125.1:3306/\n" - } - ], - "status":"created", - "supported_api_versions":[ - 1.0, - 1.1, - 1.2, - 1.3, - 1.4 - ], - "type":"cartridge", - "version":"1.2" -} \ No newline at end of file diff --git a/src/test/resources/samples/post-scalable-domains-foobarz-applications.json b/src/test/resources/samples/post-scalable-domains-foobarz-applications.json deleted file mode 100644 index 3ddb1ce6..00000000 --- a/src/test/resources/samples/post-scalable-domains-foobarz-applications.json +++ /dev/null @@ -1,446 +0,0 @@ -{ - "data":{ - "aliases":[ - - ], - "app_url":"http://scalable-foobarz.rhcloud.com/", - "build_job_url":null, - "building_app":null, - "building_with":null, - "creation_time":"2013-05-03T12:59:11Z", - "domain_id":"foobarz", - "embedded":{ - - }, - "framework":"jbossas-7", - "gear_count":1, - "gear_profile":"small", - "git_url":"ssh://5183b49f4382ec9a0e000001@scalable-foobarz.rhcloud.com/~/git/scalable.git/", - "health_check_path":"health", - "initial_git_url":"git://github.com/openshift/openshift-java-client.git", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get application", - "required_params":[ - - ] - }, - "GET_DESCRIPTOR":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/descriptor", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get application descriptor", - "required_params":[ - - ] - }, - "GET_GEAR_GROUPS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/gear_groups", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get application gear groups", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "FORCE_STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Force stop application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "force-stop" - ] - } - ] - }, - "ADD_ALIAS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Add application alias", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "add-alias" - ] - }, - { - "description":"The server alias for the application", - "invalid_options":[ - - ], - "name":"alias", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "REMOVE_ALIAS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Remove application alias", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "remove-alias" - ] - }, - { - "description":"The application alias to be removed", - "invalid_options":[ - - ], - "name":"alias", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "SCALE_UP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Scale up application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "scale-up" - ] - } - ] - }, - "SCALE_DOWN":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Scale down application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "scale-down" - ] - } - ] - }, - "TIDY":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Tidy the application framework", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "tidy" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload the application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "THREAD_DUMP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Trigger thread dump", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "thread-dump" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete application", - "required_params":[ - - ] - }, - "ADD_CARTRIDGE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges", - "method":"POST", - "optional_params":[ - { - "default_value":null, - "description":"The component to colocate with", - "name":"colocate_with", - "type":"string", - "valid_options":[ - "jbossas-7" - ] - }, - { - "default_value":null, - "description":"Minimum number of gears to run the component on.", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears to run the component on.", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Additional GB of space to request on all gears running this component.", - "name":"additional_storage", - "type":"integer", - "valid_options":[ - - ] - } - ], - "rel":"Add embedded cartridge", - "required_params":[ - { - "description":"framework-type, e.g.: mongodb-2.0", - "invalid_options":[ - - ], - "name":"name", - "type":"string", - "valid_options":[ - "mongodb-2.2", - "switchyard-0.6", - "cron-1.4", - "mysql-5.1", - "postgresql-8.4", - "haproxy-1.4", - "10gen-mms-agent-0.1", - "phpmyadmin-3.4", - "metrics-0.1", - "rockmongo-1.1", - "jenkins-client-1.4" - ] - } - ] - }, - "LIST_CARTRIDGES":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/cartridges", - "method":"GET", - "optional_params":[ - - ], - "rel":"List embedded cartridges", - "required_params":[ - - ] - }, - "DNS_RESOLVABLE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/scalable/dns_resolvable", - "method":"GET", - "optional_params":[ - - ], - "rel":"Resolve DNS", - "required_params":[ - - ] - } - }, - "name":"scalable", - "scalable":false, - "ssh_url":"ssh://5183b49f4382ec9a0e000001@scalable-foobarz.rhcloud.com", - "uuid":"5183b49f4382ec9a0e000001" - }, - "errors":{ - - }, - "messages":[ - { - "exit_code":null, - "field":null, - "severity":"info", - "text":"Application scalable was created." - }, - { - "exit_code":0, - "field":"current_ip", - "severity":"info", - "text":"174.129.125.148" - }, - { - "exit_code":0, - "field":"result", - "severity":"info", - "text":"" - } - ], - "status":"created", - "supported_api_versions":[ - 1.0, - 1.1, - 1.2, - 1.3, - 1.4 - ], - "type":"application", - "version":"1.2" -} \ No newline at end of file diff --git a/src/test/resources/samples/post-stop-domains-foobarz-applications-springeap6-events.json b/src/test/resources/samples/post-stop-domains-foobarz-applications-springeap6-events.json deleted file mode 100644 index f74d4c58..00000000 --- a/src/test/resources/samples/post-stop-domains-foobarz-applications-springeap6-events.json +++ /dev/null @@ -1,580 +0,0 @@ -{ - "data":{ - "aliases":[ - { - "certificate_added_at":null, - "has_private_ssl_certificate":false, - "id":"jbosstools.org", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/aliases/jbosstools.org", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get alias", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/aliases/jbosstools.org", - "method":"PUT", - "optional_params":[ - { - "default_value":null, - "description":"Optional passphrase for the private key", - "name":"pass_phrase", - "type":"string", - "valid_options":[ - - ] - } - ], - "rel":"Update alias", - "required_params":[ - { - "description":"Content of SSL Certificate", - "invalid_options":[ - - ], - "name":"ssl_certificate", - "type":"string", - "valid_options":[ - - ] - }, - { - "description":"Private key for the certificate. Required if adding a certificate", - "invalid_options":[ - - ], - "name":"private_key", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/aliases/jbosstools.org", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete alias", - "required_params":[ - - ] - } - } - }, - { - "certificate_added_at":null, - "has_private_ssl_certificate":false, - "id":"redhat.com", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/aliases/redhat.com", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get alias", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/aliases/redhat.com", - "method":"PUT", - "optional_params":[ - { - "default_value":null, - "description":"Optional passphrase for the private key", - "name":"pass_phrase", - "type":"string", - "valid_options":[ - - ] - } - ], - "rel":"Update alias", - "required_params":[ - { - "description":"Content of SSL Certificate", - "invalid_options":[ - - ], - "name":"ssl_certificate", - "type":"string", - "valid_options":[ - - ] - }, - { - "description":"Private key for the certificate. Required if adding a certificate", - "invalid_options":[ - - ], - "name":"private_key", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/aliases/redhat.com", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete alias", - "required_params":[ - - ] - } - } - } - ], - "app_url":"http://springeap6-foobarz.rhcloud.com/", - "build_job_url":null, - "building_app":null, - "building_with":null, - "creation_time":"2013-04-30T17:00:41Z", - "domain_id":"foobarz", - "embedded":{ - "mongodb-2.2":{ - "connection_url":"mongodb://$OPENSHIFT_MONGODB_DB_HOST:$OPENSHIFT_MONGODB_DB_PORT/", - "username":"admin", - "password":"NNxXMT1z8dVj", - "database_name":"springeap6", - "info":"Connection URL: mongodb://$OPENSHIFT_MONGODB_DB_HOST:$OPENSHIFT_MONGODB_DB_PORT/" - }, - "mysql-5.1":{ - "connection_url":"mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/", - "username":"adminnlqrBcW", - "password":"WseJ_fUhNY6z", - "database_name":"springeap6", - "info":"Connection URL: mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/" - } - }, - "framework":"jbosseap-6", - "gear_count":1, - "gear_profile":"small", - "git_url":"ssh://517ff8b9500446729b00008e@springeap6-foobarz.rhcloud.com/~/git/springeap6.git/", - "health_check_path":"health", - "initial_git_url":"git://github.com/openshift/spring-eap6-quickstart.git", - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get application", - "required_params":[ - - ] - }, - "GET_DESCRIPTOR":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/descriptor", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get application descriptor", - "required_params":[ - - ] - }, - "GET_GEAR_GROUPS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/gear_groups", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get application gear groups", - "required_params":[ - - ] - }, - "START":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Start application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "start" - ] - } - ] - }, - "STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Stop application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "stop" - ] - } - ] - }, - "RESTART":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Restart application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "restart" - ] - } - ] - }, - "FORCE_STOP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Force stop application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "force-stop" - ] - } - ] - }, - "SCALE_UP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Scale up application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "scale-up" - ] - } - ] - }, - "SCALE_DOWN":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Scale down application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "scale-down" - ] - } - ] - }, - "TIDY":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Tidy the application framework", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "tidy" - ] - } - ] - }, - "RELOAD":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Reload the application", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "reload" - ] - } - ] - }, - "THREAD_DUMP":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/events", - "method":"POST", - "optional_params":[ - - ], - "rel":"Trigger thread dump", - "required_params":[ - { - "description":"event", - "invalid_options":[ - - ], - "name":"event", - "type":"string", - "valid_options":[ - "thread-dump" - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete application", - "required_params":[ - - ] - }, - "ADD_CARTRIDGE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges", - "method":"POST", - "optional_params":[ - { - "default_value":null, - "description":"The component to colocate with", - "name":"colocate_with", - "type":"string", - "valid_options":[ - "jbosseap-6", - "mongodb-2.2", - "mysql-5.1" - ] - }, - { - "default_value":null, - "description":"Minimum number of gears to run the component on.", - "name":"scales_from", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Maximum number of gears to run the component on.", - "name":"scales_to", - "type":"integer", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Additional GB of space to request on all gears running this component.", - "name":"additional_storage", - "type":"integer", - "valid_options":[ - - ] - } - ], - "rel":"Add embedded cartridge", - "required_params":[ - { - "description":"framework-type, e.g.: mongodb-2.0", - "invalid_options":[ - - ], - "name":"name", - "type":"string", - "valid_options":[ - "mongodb-2.2", - "switchyard-0.6", - "cron-1.4", - "mysql-5.1", - "postgresql-8.4", - "haproxy-1.4", - "10gen-mms-agent-0.1", - "phpmyadmin-3.4", - "metrics-0.1", - "rockmongo-1.1", - "jenkins-client-1.4" - ] - } - ] - }, - "LIST_CARTRIDGES":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/cartridges", - "method":"GET", - "optional_params":[ - - ], - "rel":"List embedded cartridges", - "required_params":[ - - ] - }, - "DNS_RESOLVABLE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/dns_resolvable", - "method":"GET", - "optional_params":[ - - ], - "rel":"Resolve DNS", - "required_params":[ - - ] - }, - "ADD_ALIAS":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/aliases", - "method":"POST", - "optional_params":[ - { - "default_value":null, - "description":"Content of SSL Certificate", - "name":"ssl_certificate", - "type":"string", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Private key for the certificate. Required if adding a certificate", - "name":"private_key", - "type":"string", - "valid_options":[ - - ] - }, - { - "default_value":null, - "description":"Optional passphrase for the private key", - "name":"pass_phrase", - "type":"string", - "valid_options":[ - - ] - } - ], - "rel":"Create new alias", - "required_params":[ - { - "description":"Alias for application", - "invalid_options":[ - - ], - "name":"id", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "LIST_ALIASES":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/aliases", - "method":"GET", - "optional_params":[ - - ], - "rel":"List applications", - "required_params":[ - - ] - } - }, - "name":"springeap6", - "scalable":false, - "ssh_url":"ssh://517ff8b9500446729b00008e@springeap6-foobarz.rhcloud.com", - "uuid":"517ff8b9500446729b00008e" - }, - "errors":{ - - }, - "messages":[ - { - "exit_code":null, - "field":null, - "severity":"INFO", - "text":"Application springeap6 has stopped" - } - ], - "status":"ok", - "supported_api_versions":[ - 1.0, - 1.1, - 1.2, - 1.3, - 1.4 - ], - "type":"application", - "version":"1.2" -} \ No newline at end of file diff --git a/src/test/resources/samples/post_add_2_environment_variables_to_foobarz_springeap6.json b/src/test/resources/samples/post_add_2_environment_variables_to_foobarz_springeap6.json deleted file mode 100644 index afa16d63..00000000 --- a/src/test/resources/samples/post_add_2_environment_variables_to_foobarz_springeap6.json +++ /dev/null @@ -1,123 +0,0 @@ -{ - "api_version":1.2, - "data":[ - { - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/environment-variables/X_NAME", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get environment variable", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/environment-variables/X_NAME", - "method":"PUT", - "optional_params":[ - - ], - "rel":"Update environment variable", - "required_params":[ - { - "description":"Value of the environment variable", - "invalid_options":[ - - ], - "name":"value", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/environment-variables/X_NAME", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete environment variable", - "required_params":[ - - ] - } - }, - "name":"X_NAME", - "value":"X_VALUE" - }, - { - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/environment-variables/Y_NAME", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get environment variable", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/environment-variables/Y_NAME", - "method":"PUT", - "optional_params":[ - - ], - "rel":"Update environment variable", - "required_params":[ - { - "description":"Value of the environment variable", - "invalid_options":[ - - ], - "name":"value", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/environment-variables/Y_NAME", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete environment variable", - "required_params":[ - - ] - } - }, - "name":"Y_NAME", - "value":"Y_VALUE" - } - ], - "messages":[ - { - "exit_code":0, - "field":null, - "severity":"info", - "text":"Patched environment variables for application springeap6" - } - ], - "status":"created", - "supported_api_versions":[ - 1.0, - 1.1, - 1.2, - 1.3, - 1.4, - 1.5, - 1.6 - ], - "type":"environment-variables", - "version":"1.2" -} \ No newline at end of file diff --git a/src/test/resources/samples/post_add_environment_variable_foo_to_foobarz_springeap6.json b/src/test/resources/samples/post_add_environment_variable_foo_to_foobarz_springeap6.json deleted file mode 100644 index 2185b275..00000000 --- a/src/test/resources/samples/post_add_environment_variable_foo_to_foobarz_springeap6.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "data":{ - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/environment-variables/FOO", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get environment variable", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/environment-variables/FOO", - "method":"PUT", - "optional_params":[ - - ], - "rel":"Update environment variable", - "required_params":[ - { - "description":"Value of the environment variable", - "invalid_options":[ - - ], - "name":"value", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/environment-variables/FOO", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete environment variable", - "required_params":[ - - ] - } - }, - "name":"FOO", - "value":"123" - }, - "messages":[ - { - "exit_code":0, - "field":null, - "severity":"info", - "text":"Added environment variable 'FOO' to application springeap6" - } - ], - "status":"created", - "supported_api_versions":[ - 1.0, - 1.1, - 1.2, - 1.3, - 1.4, - 1.5, - 1.6 - ], - "type":"environment-variable", - "version":"1.2" -} \ No newline at end of file diff --git a/src/test/resources/samples/put-bbcc-dsa-user-keys-somekey.json b/src/test/resources/samples/put-bbcc-dsa-user-keys-somekey.json deleted file mode 100644 index 4d0727e5..00000000 --- a/src/test/resources/samples/put-bbcc-dsa-user-keys-somekey.json +++ /dev/null @@ -1,95 +0,0 @@ -{ - "data":{ - "content":"BBCC", - "links":{ - "GET":{ - "href":"https://mock/broker/rest/user/keys/somekey", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get SSH key", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://mock/broker/rest/user/keys/somekey", - "method":"PUT", - "optional_params":[ - - ], - "rel":"Update SSH key", - "required_params":[ - { - "description":"Type of Key", - "invalid_options":[ - - ], - "name":"type", - "type":"string", - "valid_options":[ - "ssh-rsa", - "ssh-dss", - "ecdsa-sha2-nistp256-cert-v01@openssh.com", - "ecdsa-sha2-nistp384-cert-v01@openssh.com", - "ecdsa-sha2-nistp521-cert-v01@openssh.com", - "ssh-rsa-cert-v01@openssh.com", - "ssh-dss-cert-v01@openssh.com", - "ssh-rsa-cert-v00@openssh.com", - "ssh-dss-cert-v00@openssh.com", - "ecdsa-sha2-nistp256", - "ecdsa-sha2-nistp384", - "ecdsa-sha2-nistp521" - ] - }, - { - "description":"The key portion of an dsa key (excluding ssh key type and comment)", - "invalid_options":[ - - ], - "name":"content", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "DELETE":{ - "href":"https://mock/broker/rest/user/keys/somekey", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete SSH key", - "required_params":[ - - ] - } - }, - "name":"somekey", - "type":"ssh-dss" - }, - "errors":{ - - }, - "messages":[ - { - "exit_code":null, - "field":null, - "severity":"info", - "text":"Updated SSH key with name default for user adietish@redhat.com" - } - ], - "status":"ok", - "supported_api_versions":[ - 1.0, - 1.1, - 1.2, - 1.3, - 1.4 - ], - "type":"key", - "version":"1.2" -} \ No newline at end of file diff --git a/src/test/resources/samples/put_foo_environment_variable_foobarz_springeap6.json b/src/test/resources/samples/put_foo_environment_variable_foobarz_springeap6.json deleted file mode 100644 index fbdf19e9..00000000 --- a/src/test/resources/samples/put_foo_environment_variable_foobarz_springeap6.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "api_version":1.2, - "data":{ - "links":{ - "GET":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/environment-variables/FOO", - "method":"GET", - "optional_params":[ - - ], - "rel":"Get environment variable", - "required_params":[ - - ] - }, - "UPDATE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/environment-variables/FOO", - "method":"PUT", - "optional_params":[ - - ], - "rel":"Update environment variable", - "required_params":[ - { - "description":"Value of the environment variable", - "invalid_options":[ - - ], - "name":"value", - "type":"string", - "valid_options":[ - - ] - } - ] - }, - "DELETE":{ - "href":"https://openshift.redhat.com/broker/rest/domains/foobarz/applications/springeap6/environment-variables/FOO", - "method":"DELETE", - "optional_params":[ - - ], - "rel":"Delete environment variable", - "required_params":[ - - ] - } - }, - "name":"FOO", - "value":"321" - }, - "messages":[ - { - "exit_code":0, - "field":null, - "severity":"info", - "text":"Updated environment variable 'FOO' in application springeap6" - } - ], - "status":"ok", - "supported_api_versions":[ - 1.0, - 1.1, - 1.2, - 1.3, - 1.4, - 1.5, - 1.6 - ], - "type":"environment-variable", - "version":"1.2" -} \ No newline at end of file diff --git a/src/test/resources/server-keystore.jks b/src/test/resources/server-keystore.jks deleted file mode 100644 index 438002fa0f54e1cb276290c9b70c44a80906f82a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2114 zcmb7^XEYlMAI7tU*jq@cXt*ev#Hdl%jv6(p_NY|^H4;jfk*cCZ(8i8YRTXu`sJ2F_ z-V(E3)tE(%+FPlE`+Dzr&w20H_rvqy`G5GI=RD6jzmv6-H2?qrIu-D5!Gc45yn+Kl zi4mt4qeZ6V768BoM3W%LXkIAic_39=L<^~yGLugsPZG~%o?C+wxa z{gtLPFE3zlDaIvwp+5cK-N|-yqoSB7=EkFREAJ2ToEJLfzY-lC{M%h^4Q;Gc9q-?S z>VYGK^ryOG#=KhQ*chMsJTwy?Np@O3!~arQ#nDi%s_#uK-0Na;hI9ntk1yOl8r*v3 z3#On&fwz*IKXfd;k|*a(d$xb<^#M88wR|v6X?)u^&;QzE{)$6f!tDGV&a3Q!vUCfT zWP2|{?$(Jl=&y*RGyUnkLvl+6EtmAVpuuH!9K0``Sc9(hoCF;ap0E2@d5yA8{vi0-0pHI&zOH4UY=(VEaF-E<^;UPs9Z0m4p?sAYMFtUpiyrhv?-lx@O z7A>pxYBM|Wji`Ip8BUUq-RF6i-d^#9Fk5~&(bV(yxn9+@j#P$%JzS;akZ!r1q^&dO+rm8=-6&>sza!$>U_=`vkG`g@OFJ{D%ai5iDmd*rg2soFVAk>F% zQTg_~)(%pqvu5o=b&!O>)M>Ue`d)56NF4A={T3j|NUJrr`)J*^)y62zp=JJX^xGK2 zi!3?AR@(<+bgd*x1Z2#VBu$n-;VNYbFAZrkDe&4E#i-n#5MAL`(=0^%10|Cb#bMZQ zh1!wDdfdoKqW9c^9?aS|ykb_P%542d5RGm^1%j3ZGKu9G6!uQ0eXyojWd^O*?*^E| z?hmP*#(A}R94_E#OCC7{!<|aFCxBJ$ZcF0G&V-6`+eh1(Uy~g$@n68OxcC(Vw7zk^1+#tbUW$Ynle52}kN92grX`QJ7d-bdLJS2r|E7Do6hp1M;d zBB_-S&?=v11Gm~B``5yoBPf=PSn~4Sim;4o`SFf2xV4{or4I#=!Ni`Ej56&uNzneG zw`GQ~xUPry5jYF8vGg-(atN4u@$BdN#Mz{uswVFZL}P|-i2sQMe_wgoc5~)B z|9noycmEJ~4u;f4VGmOM?Qer!Qrm>fyBRd;c~5tR%SAkM(`yS!srEcL&6{~C!v38i z($QAKwC^{{D6R^PIqHQ6jD>>PNz?PXBOXW}=OY3gzX(IfJ@^x_#(McUJyI>VE6|(~ zJe(O42e(8P6r5|N?7tgdsm96{ZoW?B%0|#1chAATi87d44g>f4>kaXk8B<60tWMtT zLC?vD$PG@WcR4)%I-IpgmTBsI2x4U25;n;2XZ%3H$TK!&BF2BSkK(CrY#Ky?fk|6U*ZD?Ik;vcQqz|^mkQ_idX#6-4h-R2gvQOEj{&SMLBM+ z7*5?kA`SHBFBf&MH|sk#b6b=|)}8G!VsY9}FMY>(TREypLsc4V!ntOZ83W1PGyX!e z7=Aab&|#v?)WZj#mEHv~X0jTNq2?mdTzB^-^Q(h<3h%vL&C+zoBMaL$+nd}4%O?_B zp47Z$#s%^bQb1RK08oRd-DbNjrsEwYk~khljlAHLFExH*UD(hgi#M^WD2c%8RJrut z!kt5EMQ0-%7Qg7YdB&(?m$r7{C>XwS+k59>+2i=#I!F@4*J4w~@moBC@9V%5yeNb@PyGqd<=QE9>(&py2V!QOCOnhMvfW4k$zP$J0BBO#T zh4#aVv2sZRHSa)0fz;N~%R-)yEU+&ZEP@YaLo4J-UsYN0+?OrgO0-=^k84z9_6q$B z%Zhh!ZTer(t<%prmhNs*qU>Kt&n$$`l{R1N&<$x4hUsj-@m`kpPfFZ*ZuD`e+S?qh zSoKT5?B3g5S!U@;ZC);aK^(>?8&zI13!11T_U{JLTUt1J6yv#lzdr%X@z@=^RC8Vb QU73;X5xJYKhq>hOZ^EIt!2kdN From d4f949eeacb0cad707fd02da25a7ecf807b4ecf9 Mon Sep 17 00:00:00 2001 From: Corey Daley Date: Fri, 21 Mar 2014 12:21:13 -0400 Subject: [PATCH 2/4] initial awestruct commit --- .awestruct/debug.log | 0 .awestruct/dependency-cache/Gemfile | 2 + .awestruct/dependency-cache/Gemfile.lock | 2 + .awestruct/dependency-cache/README.html | 2 + .awestruct/dependency-cache/Rakefile | 2 + .../css/SyntaxHighlighter.css | 2 + .../dependency-cache/css/bootstrap.min.css | 2 + .awestruct/dependency-cache/css/main.css | 2 + .awestruct/dependency-cache/css/prism.css | 2 + .awestruct/dependency-cache/css/syntax.css | 2 + .awestruct/dependency-cache/css/topnav.css | 2 + .../documentation/allclasses-frame.html | 2 + .../documentation/allclasses-noframe.html | 2 + .../ApplicationBuilder.CartridgeHolder.html | 2 + ...plicationBuilder.NamedCartridgeHolder.html | 2 + .../openshift/client/ApplicationBuilder.html | 2 + .../openshift/client/ApplicationScale.html | 2 + .../com/openshift/client/GearState.html | 2 + .../com/openshift/client/HttpMethod.html | 2 + .../com/openshift/client/IApplication.html | 2 + .../client/IApplicationPortForwarding.html | 2 + .../com/openshift/client/IDomain.html | 2 + .../client/IEnvironmentVariable.html | 2 + .../com/openshift/client/IField.html | 2 + .../com/openshift/client/IGear.html | 2 + .../com/openshift/client/IGearGroup.html | 2 + .../com/openshift/client/IGearProfile.html | 2 + .../com/openshift/client/IHttpClient.html | 2 + .../client/IOpenShiftConnection.html | 2 + .../openshift/client/IOpenShiftResource.html | 2 + .../openshift/client/IOpenShiftSSHKey.html | 2 + .../com/openshift/client/ISSHPublicKey.html | 2 + .../com/openshift/client/ISeverity.html | 2 + .../com/openshift/client/IUser.html | 2 + .../InvalidCredentialsOpenShiftException.html | 2 + .../client/InvalidNameOpenShiftException.html | 2 + .../com/openshift/client/Message.html | 2 + .../com/openshift/client/Messages.html | 2 + .../client/NotFoundOpenShiftException.html | 2 + ...ShiftApplicationNotAvailableException.html | 2 + .../client/OpenShiftConnectionFactory.html | 2 + .../client/OpenShiftEndpointException.html | 2 + .../openshift/client/OpenShiftException.html | 2 + .../client/OpenShiftRequestException.html | 2 + .../client/OpenShiftSSHKeyException.html | 2 + .../OpenShiftSSHOperationException.html | 2 + .../client/OpenShiftTimeoutException.html | 2 + .../OpenShiftUnknonwSSHKeyTypeException.html | 2 + .../com/openshift/client/SSHKeyPair.html | 2 + .../com/openshift/client/SSHKeyType.html | 2 + .../com/openshift/client/SSHPublicKey.html | 2 + .../client/cartridge/EmbeddableCartridge.html | 2 + .../client/cartridge/ICartridge.html | 2 + .../cartridge/IEmbeddableCartridge.html | 2 + .../client/cartridge/IEmbeddedCartridge.html | 2 + .../cartridge/IStandaloneCartridge.html | 2 + .../client/cartridge/StandaloneCartridge.html | 2 + .../class-use/EmbeddableCartridge.html | 2 + .../cartridge/class-use/ICartridge.html | 2 + .../class-use/IEmbeddableCartridge.html | 2 + .../class-use/IEmbeddedCartridge.html | 2 + .../class-use/IStandaloneCartridge.html | 2 + .../class-use/StandaloneCartridge.html | 2 + .../client/cartridge/package-frame.html | 2 + .../client/cartridge/package-summary.html | 2 + .../client/cartridge/package-tree.html | 2 + .../client/cartridge/package-use.html | 2 + .../selector/CartridgePropertyQuery.html | 2 + .../selector/LatestEmbeddableCartridge.html | 2 + .../selector/LatestStandaloneCartridge.html | 2 + .../cartridge/selector/LatestVersionOf.html | 2 + .../LatestVersionQuery.VersionedName.html | 2 + .../selector/LatestVersionQuery.html | 2 + .../selector/StringPropertyQuery.html | 2 + .../cartridge/selector/UrlPropertyQuery.html | 2 + .../class-use/CartridgePropertyQuery.html | 2 + .../class-use/LatestEmbeddableCartridge.html | 2 + .../class-use/LatestStandaloneCartridge.html | 2 + .../selector/class-use/LatestVersionOf.html | 2 + .../LatestVersionQuery.VersionedName.html | 2 + .../class-use/LatestVersionQuery.html | 2 + .../class-use/StringPropertyQuery.html | 2 + .../selector/class-use/UrlPropertyQuery.html | 2 + .../cartridge/selector/package-frame.html | 2 + .../cartridge/selector/package-summary.html | 2 + .../cartridge/selector/package-tree.html | 2 + .../cartridge/selector/package-use.html | 2 + .../ApplicationBuilder.CartridgeHolder.html | 2 + ...plicationBuilder.NamedCartridgeHolder.html | 2 + .../client/class-use/ApplicationBuilder.html | 2 + .../client/class-use/ApplicationScale.html | 2 + .../openshift/client/class-use/GearState.html | 2 + .../client/class-use/HttpMethod.html | 2 + .../client/class-use/IApplication.html | 2 + .../class-use/IApplicationPortForwarding.html | 2 + .../openshift/client/class-use/IDomain.html | 2 + .../class-use/IEnvironmentVariable.html | 2 + .../openshift/client/class-use/IField.html | 2 + .../com/openshift/client/class-use/IGear.html | 2 + .../client/class-use/IGearGroup.html | 2 + .../client/class-use/IGearProfile.html | 2 + .../client/class-use/IHttpClient.html | 2 + .../class-use/IOpenShiftConnection.html | 2 + .../client/class-use/IOpenShiftResource.html | 2 + .../client/class-use/IOpenShiftSSHKey.html | 2 + .../client/class-use/ISSHPublicKey.html | 2 + .../openshift/client/class-use/ISeverity.html | 2 + .../com/openshift/client/class-use/IUser.html | 2 + .../InvalidCredentialsOpenShiftException.html | 2 + .../InvalidNameOpenShiftException.html | 2 + .../openshift/client/class-use/Message.html | 2 + .../openshift/client/class-use/Messages.html | 2 + .../class-use/NotFoundOpenShiftException.html | 2 + ...ShiftApplicationNotAvailableException.html | 2 + .../class-use/OpenShiftConnectionFactory.html | 2 + .../class-use/OpenShiftEndpointException.html | 2 + .../client/class-use/OpenShiftException.html | 2 + .../class-use/OpenShiftRequestException.html | 2 + .../class-use/OpenShiftSSHKeyException.html | 2 + .../OpenShiftSSHOperationException.html | 2 + .../class-use/OpenShiftTimeoutException.html | 2 + .../OpenShiftUnknonwSSHKeyTypeException.html | 2 + .../client/class-use/SSHKeyPair.html | 2 + .../client/class-use/SSHKeyType.html | 2 + .../client/class-use/SSHPublicKey.html | 2 + .../AbstractOpenshiftConfiguration.html | 2 + .../configuration/DefaultConfiguration.html | 2 + .../IOpenShiftConfiguration.html | 2 + .../configuration/OpenShiftConfiguration.html | 2 + .../configuration/SystemConfiguration.html | 2 + .../configuration/SystemProperties.html | 2 + .../configuration/UserConfiguration.html | 2 + .../AbstractOpenshiftConfiguration.html | 2 + .../class-use/DefaultConfiguration.html | 2 + .../class-use/IOpenShiftConfiguration.html | 2 + .../class-use/OpenShiftConfiguration.html | 2 + .../class-use/SystemConfiguration.html | 2 + .../class-use/SystemProperties.html | 2 + .../class-use/UserConfiguration.html | 2 + .../client/configuration/package-frame.html | 2 + .../client/configuration/package-summary.html | 2 + .../client/configuration/package-tree.html | 2 + .../client/configuration/package-use.html | 2 + .../com/openshift/client/package-frame.html | 2 + .../com/openshift/client/package-summary.html | 2 + .../com/openshift/client/package-tree.html | 2 + .../com/openshift/client/package-use.html | 2 + .../openshift/client/utils/Base64Coder.html | 2 + .../com/openshift/client/utils/HostUtils.html | 2 + .../client/utils/OpenShiftResourceUtils.html | 2 + .../client/utils/RFC822DateUtils.html | 2 + .../client/utils/class-use/Base64Coder.html | 2 + .../client/utils/class-use/HostUtils.html | 2 + .../class-use/OpenShiftResourceUtils.html | 2 + .../utils/class-use/RFC822DateUtils.html | 2 + .../openshift/client/utils/package-frame.html | 2 + .../client/utils/package-summary.html | 2 + .../openshift/client/utils/package-tree.html | 2 + .../openshift/client/utils/package-use.html | 2 + .../internal/client/APIResource.html | 2 + .../AbstractOpenShiftConnectionFactory.html | 2 + .../AbstractOpenShiftResource.Parameters.html | 2 + ...tractOpenShiftResource.ServiceRequest.html | 2 + .../client/AbstractOpenShiftResource.html | 2 + .../ApplicationResource.SshStreams.html | 2 + .../internal/client/ApplicationResource.html | 2 + .../internal/client/CartridgeType.html | 2 + .../internal/client/DomainResource.html | 2 + .../client/EmbeddedCartridgeResource.html | 2 + .../client/EnvironmentVariableResource.html | 2 + .../com/openshift/internal/client/Field.html | 2 + .../com/openshift/internal/client/Gear.html | 2 + .../internal/client/GearGroupResource.html | 2 + .../internal/client/GearProfile.html | 2 + .../internal/client/IRestService.html | 2 + .../internal/client/RestService.html | 2 + .../client/RestServiceProperties.html | 2 + .../internal/client/SSHKeyResource.html | 2 + .../openshift/internal/client/Severity.html | 2 + .../internal/client/UserResource.html | 2 + .../cartridge/AbstractCartridgeQuery.html | 2 + .../client/cartridge/BaseCartridge.html | 2 + .../class-use/AbstractCartridgeQuery.html | 2 + .../cartridge/class-use/BaseCartridge.html | 2 + .../client/cartridge/package-frame.html | 2 + .../client/cartridge/package-summary.html | 2 + .../client/cartridge/package-tree.html | 2 + .../client/cartridge/package-use.html | 2 + .../client/class-use/APIResource.html | 2 + .../AbstractOpenShiftConnectionFactory.html | 2 + .../AbstractOpenShiftResource.Parameters.html | 2 + ...tractOpenShiftResource.ServiceRequest.html | 2 + .../class-use/AbstractOpenShiftResource.html | 2 + .../ApplicationResource.SshStreams.html | 2 + .../client/class-use/ApplicationResource.html | 2 + .../client/class-use/CartridgeType.html | 2 + .../client/class-use/DomainResource.html | 2 + .../class-use/EmbeddedCartridgeResource.html | 2 + .../EnvironmentVariableResource.html | 2 + .../internal/client/class-use/Field.html | 2 + .../internal/client/class-use/Gear.html | 2 + .../client/class-use/GearGroupResource.html | 2 + .../client/class-use/GearProfile.html | 2 + .../client/class-use/IRestService.html | 2 + .../client/class-use/RestService.html | 2 + .../class-use/RestServiceProperties.html | 2 + .../client/class-use/SSHKeyResource.html | 2 + .../internal/client/class-use/Severity.html | 2 + .../client/class-use/UserResource.html | 2 + .../httpclient/BadRequestException.html | 2 + .../client/httpclient/EncodingException.html | 2 + .../httpclient/HttpClientException.html | 2 + .../InternalServerErrorException.html | 2 + .../client/httpclient/NotFoundException.html | 2 + .../httpclient/UnauthorizedException.html | 2 + .../httpclient/UrlConnectionHttpClient.html | 2 + .../UrlConnectionHttpClientBuilder.html | 2 + .../class-use/BadRequestException.html | 2 + .../class-use/EncodingException.html | 2 + .../class-use/HttpClientException.html | 2 + .../InternalServerErrorException.html | 2 + .../class-use/NotFoundException.html | 2 + .../class-use/UnauthorizedException.html | 2 + .../class-use/UrlConnectionHttpClient.html | 2 + .../UrlConnectionHttpClientBuilder.html | 2 + .../client/httpclient/package-frame.html | 2 + .../client/httpclient/package-summary.html | 2 + .../client/httpclient/package-tree.html | 2 + .../client/httpclient/package-use.html | 2 + .../request/FormUrlEncodedMediaType.html | 2 + .../client/httpclient/request/IMediaType.html | 2 + .../httpclient/request/JsonMediaType.html | 2 + .../client/httpclient/request/Parameter.html | 2 + .../httpclient/request/ParameterValue.html | 2 + .../request/ParameterValueArray.html | 2 + .../httpclient/request/ParameterValueMap.html | 2 + .../httpclient/request/StringParameter.html | 2 + .../httpclient/request/StringValue.html | 2 + .../class-use/FormUrlEncodedMediaType.html | 2 + .../request/class-use/IMediaType.html | 2 + .../request/class-use/JsonMediaType.html | 2 + .../request/class-use/Parameter.html | 2 + .../request/class-use/ParameterValue.html | 2 + .../class-use/ParameterValueArray.html | 2 + .../request/class-use/ParameterValueMap.html | 2 + .../request/class-use/StringParameter.html | 2 + .../request/class-use/StringValue.html | 2 + .../httpclient/request/package-frame.html | 2 + .../httpclient/request/package-summary.html | 2 + .../httpclient/request/package-tree.html | 2 + .../httpclient/request/package-use.html | 2 + .../internal/client/package-frame.html | 2 + .../internal/client/package-summary.html | 2 + .../internal/client/package-tree.html | 2 + .../internal/client/package-use.html | 2 + .../response/ApplicationResourceDTO.html | 2 + .../client/response/BaseResourceDTO.html | 2 + .../client/response/CartridgeResourceDTO.html | 2 + .../response/CartridgeResourceProperties.html | 2 + .../response/CartridgeResourceProperty.html | 2 + .../client/response/DomainResourceDTO.html | 2 + .../client/response/EnumDataType.html | 2 + .../EnvironmentVariableResourceDTO.html | 2 + .../client/response/GearGroupResourceDTO.html | 2 + .../client/response/GearResourceDTO.html | 2 + .../client/response/IRestResponseFactory.html | 2 + .../client/response/KeyResourceDTO.html | 2 + .../internal/client/response/Link.html | 2 + .../client/response/LinkParameter.html | 2 + .../client/response/LinkParameterType.html | 2 + .../response/OpenShiftJsonDTOFactory.html | 2 + .../client/response/RestResponse.html | 2 + .../client/response/UserResourceDTO.html | 2 + .../class-use/ApplicationResourceDTO.html | 2 + .../response/class-use/BaseResourceDTO.html | 2 + .../class-use/CartridgeResourceDTO.html | 2 + .../CartridgeResourceProperties.html | 2 + .../class-use/CartridgeResourceProperty.html | 2 + .../response/class-use/DomainResourceDTO.html | 2 + .../response/class-use/EnumDataType.html | 2 + .../EnvironmentVariableResourceDTO.html | 2 + .../class-use/GearGroupResourceDTO.html | 2 + .../response/class-use/GearResourceDTO.html | 2 + .../class-use/IRestResponseFactory.html | 2 + .../response/class-use/KeyResourceDTO.html | 2 + .../client/response/class-use/Link.html | 2 + .../response/class-use/LinkParameter.html | 2 + .../response/class-use/LinkParameterType.html | 2 + .../class-use/OpenShiftJsonDTOFactory.html | 2 + .../response/class-use/RestResponse.html | 2 + .../response/class-use/UserResourceDTO.html | 2 + .../client/response/package-frame.html | 2 + .../client/response/package-summary.html | 2 + .../client/response/package-tree.html | 2 + .../internal/client/response/package-use.html | 2 + .../internal/client/ssh/AbstractSSHKey.html | 2 + .../client/ssh/ApplicationPortForwarding.html | 2 + .../client/ssh/class-use/AbstractSSHKey.html | 2 + .../class-use/ApplicationPortForwarding.html | 2 + .../internal/client/ssh/package-frame.html | 2 + .../internal/client/ssh/package-summary.html | 2 + .../internal/client/ssh/package-tree.html | 2 + .../internal/client/ssh/package-use.html | 2 + .../Assert.AssertionFailedException.html | 2 + .../internal/client/utils/Assert.html | 2 + .../client/utils/CollectionUtils.html | 2 + .../client/utils/IOpenShiftJsonConstants.html | 2 + .../utils/IOpenShiftParameterConstants.html | 2 + .../internal/client/utils/StreamUtils.html | 2 + .../internal/client/utils/StringUtils.html | 2 + .../internal/client/utils/UrlUtils.html | 2 + .../Assert.AssertionFailedException.html | 2 + .../client/utils/class-use/Assert.html | 2 + .../utils/class-use/CollectionUtils.html | 2 + .../class-use/IOpenShiftJsonConstants.html | 2 + .../IOpenShiftParameterConstants.html | 2 + .../client/utils/class-use/StreamUtils.html | 2 + .../client/utils/class-use/StringUtils.html | 2 + .../client/utils/class-use/UrlUtils.html | 2 + .../internal/client/utils/package-frame.html | 2 + .../client/utils/package-summary.html | 2 + .../internal/client/utils/package-tree.html | 2 + .../internal/client/utils/package-use.html | 2 + .../documentation/constant-values.html | 2 + .../documentation/deprecated-list.html | 2 + .../documentation/help-doc.html | 2 + .../documentation/index-all.html | 2 + .../dependency-cache/documentation/index.html | 2 + .../documentation/overview-frame.html | 2 + .../documentation/overview-summary.html | 2 + .../documentation/overview-tree.html | 2 + .../documentation/package-list | 2 + .../documentation/resources/inherit.gif | 2 + .../documentation/serialized-form.html | 2 + .../documentation/stylesheet.css | 2 + .../glyphicons-halflings-regular.eot | 2 + .../glyphicons-halflings-regular.svg | 2 + .../glyphicons-halflings-regular.ttf | 2 + .../glyphicons-halflings-regular.woff | 2 + .../dependency-cache/gethelp/index.html | 3 + .../dependency-cache/getstarted/index.html | 3 + .awestruct/dependency-cache/index.html | 3 + .awestruct/dependency-cache/joinus/index.html | 3 + .../dependency-cache/js/alignbuttons.js | 2 + .../dependency-cache/js/bootstrap.min.js | 2 + .../dependency-cache/js/googleanalytics.js | 2 + .awestruct/dependency-cache/js/html5shiv.js | 2 + .../dependency-cache/js/jquery-1.10.2.min.js | 2 + .awestruct/dependency-cache/js/respond.min.js | 2 + .awestruct/dependency-cache/js/shBrushJava.js | 2 + .awestruct/dependency-cache/js/shBrushXml.js | 2 + .awestruct/dependency-cache/js/shCore.js | 2 + .../dependency-cache/samplecode/index.html | 3 + Gemfile | 25 + Gemfile.lock | 109 + Rakefile | 200 + _config/site.yml | 17 + _ext/pipeline.rb | 8 + _layouts/default.html.haml | 69 + _layouts/landing.html.haml | 46 + css/SyntaxHighlighter.css | 185 + css/bootstrap.min.css | 7 + css/main.css | 72 + css/prism.css | 213 ++ css/syntax.css | 60 + css/topnav.css | 5 + documentation/allclasses-frame.html | 284 ++ documentation/allclasses-noframe.html | 284 ++ .../ApplicationBuilder.CartridgeHolder.html | 256 ++ ...plicationBuilder.NamedCartridgeHolder.html | 313 ++ .../openshift/client/ApplicationBuilder.html | 278 ++ .../openshift/client/ApplicationScale.html | 369 ++ .../com/openshift/client/GearState.html | 424 ++ .../com/openshift/client/HttpMethod.html | 407 ++ .../com/openshift/client/IApplication.html | 1673 ++++++++ .../client/IApplicationPortForwarding.html | 400 ++ .../com/openshift/client/IDomain.html | 862 +++++ .../client/IEnvironmentVariable.html | 332 ++ .../com/openshift/client/IField.html | 286 ++ documentation/com/openshift/client/IGear.html | 259 ++ .../com/openshift/client/IGearGroup.html | 279 ++ .../com/openshift/client/IGearProfile.html | 340 ++ .../com/openshift/client/IHttpClient.html | 1054 +++++ .../client/IOpenShiftConnection.html | 431 +++ .../openshift/client/IOpenShiftResource.html | 292 ++ .../openshift/client/IOpenShiftSSHKey.html | 313 ++ .../com/openshift/client/ISSHPublicKey.html | 249 ++ .../com/openshift/client/ISeverity.html | 304 ++ documentation/com/openshift/client/IUser.html | 707 ++++ .../InvalidCredentialsOpenShiftException.html | 264 ++ .../client/InvalidNameOpenShiftException.html | 247 ++ .../com/openshift/client/Message.html | 342 ++ .../com/openshift/client/Messages.html | 423 ++ .../client/NotFoundOpenShiftException.html | 264 ++ ...ShiftApplicationNotAvailableException.html | 245 ++ .../client/OpenShiftConnectionFactory.html | 423 ++ .../client/OpenShiftEndpointException.html | 351 ++ .../openshift/client/OpenShiftException.html | 267 ++ .../client/OpenShiftRequestException.html | 247 ++ .../client/OpenShiftSSHKeyException.html | 247 ++ .../OpenShiftSSHOperationException.html | 269 ++ .../client/OpenShiftTimeoutException.html | 261 ++ .../OpenShiftUnknonwSSHKeyTypeException.html | 247 ++ .../com/openshift/client/SSHKeyPair.html | 368 ++ .../com/openshift/client/SSHKeyType.html | 435 +++ .../com/openshift/client/SSHPublicKey.html | 309 ++ .../client/cartridge/EmbeddableCartridge.html | 367 ++ .../client/cartridge/ICartridge.html | 355 ++ .../cartridge/IEmbeddableCartridge.html | 426 +++ .../client/cartridge/IEmbeddedCartridge.html | 352 ++ .../cartridge/IStandaloneCartridge.html | 387 ++ .../client/cartridge/StandaloneCartridge.html | 351 ++ .../class-use/EmbeddableCartridge.html | 145 + .../cartridge/class-use/ICartridge.html | 552 +++ .../class-use/IEmbeddableCartridge.html | 516 +++ .../class-use/IEmbeddedCartridge.html | 359 ++ .../class-use/IStandaloneCartridge.html | 597 +++ .../class-use/StandaloneCartridge.html | 145 + .../client/cartridge/package-frame.html | 52 + .../client/cartridge/package-summary.html | 188 + .../client/cartridge/package-tree.html | 172 + .../client/cartridge/package-use.html | 332 ++ .../selector/CartridgePropertyQuery.html | 260 ++ .../selector/LatestEmbeddableCartridge.html | 319 ++ .../selector/LatestStandaloneCartridge.html | 319 ++ .../cartridge/selector/LatestVersionOf.html | 618 +++ .../LatestVersionQuery.VersionedName.html | 352 ++ .../selector/LatestVersionQuery.html | 477 +++ .../selector/StringPropertyQuery.html | 326 ++ .../cartridge/selector/UrlPropertyQuery.html | 261 ++ .../class-use/CartridgePropertyQuery.html | 181 + .../class-use/LatestEmbeddableCartridge.html | 261 ++ .../class-use/LatestStandaloneCartridge.html | 245 ++ .../selector/class-use/LatestVersionOf.html | 145 + .../LatestVersionQuery.VersionedName.html | 181 + .../class-use/LatestVersionQuery.html | 189 + .../class-use/StringPropertyQuery.html | 145 + .../selector/class-use/UrlPropertyQuery.html | 145 + .../cartridge/selector/package-frame.html | 45 + .../cartridge/selector/package-summary.html | 182 + .../cartridge/selector/package-tree.html | 161 + .../cartridge/selector/package-use.html | 195 + .../ApplicationBuilder.CartridgeHolder.html | 181 + ...plicationBuilder.NamedCartridgeHolder.html | 205 + .../client/class-use/ApplicationBuilder.html | 145 + .../client/class-use/ApplicationScale.html | 462 +++ .../openshift/client/class-use/GearState.html | 251 ++ .../client/class-use/HttpMethod.html | 297 ++ .../client/class-use/IApplication.html | 687 ++++ .../class-use/IApplicationPortForwarding.html | 287 ++ .../openshift/client/class-use/IDomain.html | 405 ++ .../class-use/IEnvironmentVariable.html | 332 ++ .../openshift/client/class-use/IField.html | 306 ++ .../com/openshift/client/class-use/IGear.html | 226 ++ .../client/class-use/IGearGroup.html | 226 ++ .../client/class-use/IGearProfile.html | 541 +++ .../client/class-use/IHttpClient.html | 287 ++ .../class-use/IOpenShiftConnection.html | 339 ++ .../client/class-use/IOpenShiftResource.html | 328 ++ .../client/class-use/IOpenShiftSSHKey.html | 292 ++ .../client/class-use/ISSHPublicKey.html | 297 ++ .../openshift/client/class-use/ISeverity.html | 276 ++ .../com/openshift/client/class-use/IUser.html | 279 ++ .../InvalidCredentialsOpenShiftException.html | 145 + .../InvalidNameOpenShiftException.html | 145 + .../openshift/client/class-use/Message.html | 245 ++ .../openshift/client/class-use/Messages.html | 356 ++ .../class-use/NotFoundOpenShiftException.html | 145 + ...ShiftApplicationNotAvailableException.html | 145 + .../class-use/OpenShiftConnectionFactory.html | 145 + .../class-use/OpenShiftEndpointException.html | 197 + .../client/class-use/OpenShiftException.html | 2077 ++++++++++ .../class-use/OpenShiftRequestException.html | 209 + .../class-use/OpenShiftSSHKeyException.html | 145 + .../OpenShiftSSHOperationException.html | 376 ++ .../class-use/OpenShiftTimeoutException.html | 145 + .../OpenShiftUnknonwSSHKeyTypeException.html | 342 ++ .../client/class-use/SSHKeyPair.html | 204 + .../client/class-use/SSHKeyType.html | 356 ++ .../client/class-use/SSHPublicKey.html | 145 + .../AbstractOpenshiftConfiguration.html | 898 +++++ .../configuration/DefaultConfiguration.html | 345 ++ .../IOpenShiftConfiguration.html | 328 ++ .../configuration/OpenShiftConfiguration.html | 269 ++ .../configuration/SystemConfiguration.html | 271 ++ .../configuration/SystemProperties.html | 300 ++ .../configuration/UserConfiguration.html | 267 ++ .../AbstractOpenshiftConfiguration.html | 213 ++ .../class-use/DefaultConfiguration.html | 145 + .../class-use/IOpenShiftConfiguration.html | 254 ++ .../class-use/OpenShiftConfiguration.html | 145 + .../class-use/SystemConfiguration.html | 179 + .../class-use/SystemProperties.html | 145 + .../class-use/UserConfiguration.html | 145 + .../client/configuration/package-frame.html | 54 + .../client/configuration/package-summary.html | 192 + .../client/configuration/package-tree.html | 162 + .../client/configuration/package-use.html | 183 + .../com/openshift/client/package-frame.html | 130 + .../com/openshift/client/package-summary.html | 328 ++ .../com/openshift/client/package-tree.html | 189 + .../com/openshift/client/package-use.html | 707 ++++ .../openshift/client/utils/Base64Coder.html | 297 ++ .../com/openshift/client/utils/HostUtils.html | 260 ++ .../client/utils/OpenShiftResourceUtils.html | 257 ++ .../client/utils/RFC822DateUtils.html | 312 ++ .../client/utils/class-use/Base64Coder.html | 145 + .../client/utils/class-use/HostUtils.html | 145 + .../class-use/OpenShiftResourceUtils.html | 145 + .../utils/class-use/RFC822DateUtils.html | 145 + .../openshift/client/utils/package-frame.html | 39 + .../client/utils/package-summary.html | 171 + .../openshift/client/utils/package-tree.html | 154 + .../openshift/client/utils/package-use.html | 145 + .../internal/client/APIResource.html | 771 ++++ .../AbstractOpenShiftConnectionFactory.html | 273 ++ .../AbstractOpenShiftResource.Parameters.html | 433 +++ ...tractOpenShiftResource.ServiceRequest.html | 493 +++ .../client/AbstractOpenShiftResource.html | 449 +++ .../ApplicationResource.SshStreams.html | 370 ++ .../internal/client/ApplicationResource.html | 2168 +++++++++++ .../internal/client/CartridgeType.html | 342 ++ .../internal/client/DomainResource.html | 1180 ++++++ .../client/EmbeddedCartridgeResource.html | 677 ++++ .../client/EnvironmentVariableResource.html | 487 +++ .../com/openshift/internal/client/Field.html | 325 ++ .../com/openshift/internal/client/Gear.html | 351 ++ .../internal/client/GearGroupResource.html | 444 +++ .../internal/client/GearProfile.html | 347 ++ .../internal/client/IRestService.html | 474 +++ .../internal/client/RestService.html | 577 +++ .../client/RestServiceProperties.html | 336 ++ .../internal/client/SSHKeyResource.html | 520 +++ .../openshift/internal/client/Severity.html | 325 ++ .../internal/client/UserResource.html | 845 ++++ .../cartridge/AbstractCartridgeQuery.html | 370 ++ .../client/cartridge/BaseCartridge.html | 552 +++ .../class-use/AbstractCartridgeQuery.html | 205 + .../cartridge/class-use/BaseCartridge.html | 189 + .../client/cartridge/package-frame.html | 35 + .../client/cartridge/package-summary.html | 163 + .../client/cartridge/package-tree.html | 155 + .../client/cartridge/package-use.html | 191 + .../client/class-use/APIResource.html | 198 + .../AbstractOpenShiftConnectionFactory.html | 181 + .../AbstractOpenShiftResource.Parameters.html | 239 ++ ...tractOpenShiftResource.ServiceRequest.html | 145 + .../class-use/AbstractOpenShiftResource.html | 238 ++ .../ApplicationResource.SshStreams.html | 207 + .../client/class-use/ApplicationResource.html | 216 ++ .../client/class-use/CartridgeType.html | 251 ++ .../client/class-use/DomainResource.html | 199 + .../class-use/EmbeddedCartridgeResource.html | 145 + .../EnvironmentVariableResource.html | 145 + .../internal/client/class-use/Field.html | 145 + .../internal/client/class-use/Gear.html | 145 + .../client/class-use/GearGroupResource.html | 145 + .../client/class-use/GearProfile.html | 145 + .../client/class-use/IRestService.html | 249 ++ .../client/class-use/RestService.html | 145 + .../class-use/RestServiceProperties.html | 198 + .../client/class-use/SSHKeyResource.html | 181 + .../internal/client/class-use/Severity.html | 145 + .../client/class-use/UserResource.html | 180 + .../httpclient/BadRequestException.html | 261 ++ .../client/httpclient/EncodingException.html | 247 ++ .../httpclient/HttpClientException.html | 277 ++ .../InternalServerErrorException.html | 261 ++ .../client/httpclient/NotFoundException.html | 261 ++ .../httpclient/UnauthorizedException.html | 261 ++ .../httpclient/UrlConnectionHttpClient.html | 883 +++++ .../UrlConnectionHttpClientBuilder.html | 379 ++ .../class-use/BadRequestException.html | 145 + .../class-use/EncodingException.html | 348 ++ .../class-use/HttpClientException.html | 432 +++ .../InternalServerErrorException.html | 145 + .../class-use/NotFoundException.html | 145 + .../class-use/UnauthorizedException.html | 145 + .../class-use/UrlConnectionHttpClient.html | 145 + .../UrlConnectionHttpClientBuilder.html | 225 ++ .../client/httpclient/package-frame.html | 56 + .../client/httpclient/package-summary.html | 196 + .../client/httpclient/package-tree.html | 164 + .../client/httpclient/package-use.html | 227 ++ .../request/FormUrlEncodedMediaType.html | 307 ++ .../client/httpclient/request/IMediaType.html | 244 ++ .../httpclient/request/JsonMediaType.html | 304 ++ .../client/httpclient/request/Parameter.html | 359 ++ .../httpclient/request/ParameterValue.html | 326 ++ .../request/ParameterValueArray.html | 343 ++ .../httpclient/request/ParameterValueMap.html | 417 ++ .../httpclient/request/StringParameter.html | 282 ++ .../httpclient/request/StringValue.html | 270 ++ .../class-use/FormUrlEncodedMediaType.html | 145 + .../request/class-use/IMediaType.html | 492 +++ .../request/class-use/JsonMediaType.html | 145 + .../request/class-use/Parameter.html | 868 +++++ .../request/class-use/ParameterValue.html | 275 ++ .../class-use/ParameterValueArray.html | 198 + .../request/class-use/ParameterValueMap.html | 266 ++ .../request/class-use/StringParameter.html | 145 + .../request/class-use/StringValue.html | 145 + .../httpclient/request/package-frame.html | 58 + .../httpclient/request/package-summary.html | 203 + .../httpclient/request/package-tree.html | 165 + .../httpclient/request/package-use.html | 300 ++ .../internal/client/package-frame.html | 89 + .../internal/client/package-summary.html | 255 ++ .../internal/client/package-tree.html | 185 + .../internal/client/package-use.html | 270 ++ .../response/ApplicationResourceDTO.html | 510 +++ .../client/response/BaseResourceDTO.html | 335 ++ .../client/response/CartridgeResourceDTO.html | 420 ++ .../response/CartridgeResourceProperties.html | 469 +++ .../response/CartridgeResourceProperty.html | 391 ++ .../client/response/DomainResourceDTO.html | 254 ++ .../client/response/EnumDataType.html | 535 +++ .../EnvironmentVariableResourceDTO.html | 306 ++ .../client/response/GearGroupResourceDTO.html | 329 ++ .../client/response/GearResourceDTO.html | 299 ++ .../client/response/IRestResponseFactory.html | 216 ++ .../client/response/KeyResourceDTO.html | 303 ++ .../internal/client/response/Link.html | 537 +++ .../client/response/LinkParameter.html | 489 +++ .../client/response/LinkParameterType.html | 372 ++ .../response/OpenShiftJsonDTOFactory.html | 274 ++ .../client/response/RestResponse.html | 346 ++ .../client/response/UserResourceDTO.html | 271 ++ .../class-use/ApplicationResourceDTO.html | 196 + .../response/class-use/BaseResourceDTO.html | 237 ++ .../class-use/CartridgeResourceDTO.html | 287 ++ .../CartridgeResourceProperties.html | 268 ++ .../class-use/CartridgeResourceProperty.html | 251 ++ .../response/class-use/DomainResourceDTO.html | 180 + .../response/class-use/EnumDataType.html | 215 ++ .../EnvironmentVariableResourceDTO.html | 180 + .../class-use/GearGroupResourceDTO.html | 181 + .../response/class-use/GearResourceDTO.html | 213 ++ .../class-use/IRestResponseFactory.html | 238 ++ .../response/class-use/KeyResourceDTO.html | 196 + .../client/response/class-use/Link.html | 478 +++ .../response/class-use/LinkParameter.html | 237 ++ .../response/class-use/LinkParameterType.html | 247 ++ .../class-use/OpenShiftJsonDTOFactory.html | 145 + .../response/class-use/RestResponse.html | 423 ++ .../response/class-use/UserResourceDTO.html | 181 + .../client/response/package-frame.html | 85 + .../client/response/package-summary.html | 246 ++ .../client/response/package-tree.html | 172 + .../internal/client/response/package-use.html | 373 ++ .../internal/client/ssh/AbstractSSHKey.html | 394 ++ .../client/ssh/ApplicationPortForwarding.html | 532 +++ .../client/ssh/class-use/AbstractSSHKey.html | 189 + .../class-use/ApplicationPortForwarding.html | 145 + .../internal/client/ssh/package-frame.html | 35 + .../internal/client/ssh/package-summary.html | 162 + .../internal/client/ssh/package-tree.html | 156 + .../internal/client/ssh/package-use.html | 171 + .../Assert.AssertionFailedException.html | 245 ++ .../internal/client/utils/Assert.html | 319 ++ .../client/utils/CollectionUtils.html | 264 ++ .../client/utils/IOpenShiftJsonConstants.html | 1759 +++++++++ .../utils/IOpenShiftParameterConstants.html | 283 ++ .../internal/client/utils/StreamUtils.html | 502 +++ .../internal/client/utils/StringUtils.html | 335 ++ .../internal/client/utils/UrlUtils.html | 337 ++ .../Assert.AssertionFailedException.html | 145 + .../client/utils/class-use/Assert.html | 145 + .../utils/class-use/CollectionUtils.html | 145 + .../class-use/IOpenShiftJsonConstants.html | 145 + .../IOpenShiftParameterConstants.html | 145 + .../client/utils/class-use/StreamUtils.html | 145 + .../client/utils/class-use/StringUtils.html | 145 + .../client/utils/class-use/UrlUtils.html | 145 + .../internal/client/utils/package-frame.html | 56 + .../client/utils/package-summary.html | 196 + .../internal/client/utils/package-tree.html | 161 + .../internal/client/utils/package-use.html | 145 + documentation/constant-values.html | 1237 ++++++ documentation/deprecated-list.html | 147 + documentation/help-doc.html | 224 ++ documentation/index-all.html | 3402 +++++++++++++++++ documentation/index.html | 74 + documentation/overview-frame.html | 65 + documentation/overview-summary.html | 201 + documentation/overview-tree.html | 239 ++ documentation/package-list | 12 + documentation/resources/inherit.gif | Bin 0 -> 57 bytes documentation/serialized-form.html | 446 +++ documentation/stylesheet.css | 29 + .../glyphicons-halflings-regular.eot | Bin 0 -> 20335 bytes .../glyphicons-halflings-regular.svg | 229 ++ .../glyphicons-halflings-regular.ttf | Bin 0 -> 41280 bytes .../glyphicons-halflings-regular.woff | Bin 0 -> 23320 bytes gethelp/index.html.haml | 23 + getstarted/index.html.haml | 98 + index.html.haml | 47 + joinus/index.html.haml | 184 + js/alignbuttons.js | 21 + js/bootstrap.min.js | 7 + js/googleanalytics.js | 21 + js/html5shiv.js | 8 + js/jquery-1.10.2.min.js | 6 + js/respond.min.js | 6 + js/shBrushJava.js | 10 + js/shBrushXml.js | 19 + js/shCore.js | 161 + samplecode/index.html.haml | 102 + 708 files changed, 104465 insertions(+) create mode 100644 .awestruct/debug.log create mode 100644 .awestruct/dependency-cache/Gemfile create mode 100644 .awestruct/dependency-cache/Gemfile.lock create mode 100644 .awestruct/dependency-cache/README.html create mode 100644 .awestruct/dependency-cache/Rakefile create mode 100644 .awestruct/dependency-cache/css/SyntaxHighlighter.css create mode 100644 .awestruct/dependency-cache/css/bootstrap.min.css create mode 100644 .awestruct/dependency-cache/css/main.css create mode 100644 .awestruct/dependency-cache/css/prism.css create mode 100644 .awestruct/dependency-cache/css/syntax.css create mode 100644 .awestruct/dependency-cache/css/topnav.css create mode 100644 .awestruct/dependency-cache/documentation/allclasses-frame.html create mode 100644 .awestruct/dependency-cache/documentation/allclasses-noframe.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/ApplicationBuilder.CartridgeHolder.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/ApplicationBuilder.NamedCartridgeHolder.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/ApplicationBuilder.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/ApplicationScale.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/GearState.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/HttpMethod.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/IApplication.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/IApplicationPortForwarding.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/IDomain.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/IEnvironmentVariable.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/IField.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/IGear.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/IGearGroup.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/IGearProfile.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/IHttpClient.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/IOpenShiftConnection.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/IOpenShiftResource.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/IOpenShiftSSHKey.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/ISSHPublicKey.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/ISeverity.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/IUser.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/InvalidCredentialsOpenShiftException.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/InvalidNameOpenShiftException.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/Message.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/Messages.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/NotFoundOpenShiftException.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/OpenShiftApplicationNotAvailableException.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/OpenShiftConnectionFactory.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/OpenShiftEndpointException.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/OpenShiftException.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/OpenShiftRequestException.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/OpenShiftSSHKeyException.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/OpenShiftSSHOperationException.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/OpenShiftTimeoutException.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/OpenShiftUnknonwSSHKeyTypeException.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/SSHKeyPair.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/SSHKeyType.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/SSHPublicKey.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/cartridge/EmbeddableCartridge.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/cartridge/ICartridge.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/cartridge/IEmbeddableCartridge.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/cartridge/IEmbeddedCartridge.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/cartridge/IStandaloneCartridge.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/cartridge/StandaloneCartridge.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/cartridge/class-use/EmbeddableCartridge.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/cartridge/class-use/ICartridge.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/cartridge/class-use/IEmbeddableCartridge.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/cartridge/class-use/IEmbeddedCartridge.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/cartridge/class-use/IStandaloneCartridge.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/cartridge/class-use/StandaloneCartridge.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/cartridge/package-frame.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/cartridge/package-summary.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/cartridge/package-tree.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/cartridge/package-use.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/CartridgePropertyQuery.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/LatestEmbeddableCartridge.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/LatestStandaloneCartridge.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/LatestVersionOf.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/LatestVersionQuery.VersionedName.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/LatestVersionQuery.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/StringPropertyQuery.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/UrlPropertyQuery.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/class-use/CartridgePropertyQuery.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/class-use/LatestEmbeddableCartridge.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/class-use/LatestStandaloneCartridge.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/class-use/LatestVersionOf.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/class-use/LatestVersionQuery.VersionedName.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/class-use/LatestVersionQuery.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/class-use/StringPropertyQuery.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/class-use/UrlPropertyQuery.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/package-frame.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/package-summary.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/package-tree.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/package-use.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/class-use/ApplicationBuilder.CartridgeHolder.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/class-use/ApplicationBuilder.NamedCartridgeHolder.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/class-use/ApplicationBuilder.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/class-use/ApplicationScale.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/class-use/GearState.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/class-use/HttpMethod.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/class-use/IApplication.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/class-use/IApplicationPortForwarding.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/class-use/IDomain.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/class-use/IEnvironmentVariable.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/class-use/IField.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/class-use/IGear.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/class-use/IGearGroup.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/class-use/IGearProfile.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/class-use/IHttpClient.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/class-use/IOpenShiftConnection.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/class-use/IOpenShiftResource.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/class-use/IOpenShiftSSHKey.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/class-use/ISSHPublicKey.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/class-use/ISeverity.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/class-use/IUser.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/class-use/InvalidCredentialsOpenShiftException.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/class-use/InvalidNameOpenShiftException.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/class-use/Message.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/class-use/Messages.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/class-use/NotFoundOpenShiftException.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/class-use/OpenShiftApplicationNotAvailableException.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/class-use/OpenShiftConnectionFactory.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/class-use/OpenShiftEndpointException.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/class-use/OpenShiftException.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/class-use/OpenShiftRequestException.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/class-use/OpenShiftSSHKeyException.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/class-use/OpenShiftSSHOperationException.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/class-use/OpenShiftTimeoutException.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/class-use/OpenShiftUnknonwSSHKeyTypeException.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/class-use/SSHKeyPair.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/class-use/SSHKeyType.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/class-use/SSHPublicKey.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/configuration/AbstractOpenshiftConfiguration.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/configuration/DefaultConfiguration.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/configuration/IOpenShiftConfiguration.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/configuration/OpenShiftConfiguration.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/configuration/SystemConfiguration.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/configuration/SystemProperties.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/configuration/UserConfiguration.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/configuration/class-use/AbstractOpenshiftConfiguration.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/configuration/class-use/DefaultConfiguration.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/configuration/class-use/IOpenShiftConfiguration.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/configuration/class-use/OpenShiftConfiguration.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/configuration/class-use/SystemConfiguration.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/configuration/class-use/SystemProperties.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/configuration/class-use/UserConfiguration.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/configuration/package-frame.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/configuration/package-summary.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/configuration/package-tree.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/configuration/package-use.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/package-frame.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/package-summary.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/package-tree.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/package-use.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/utils/Base64Coder.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/utils/HostUtils.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/utils/OpenShiftResourceUtils.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/utils/RFC822DateUtils.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/utils/class-use/Base64Coder.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/utils/class-use/HostUtils.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/utils/class-use/OpenShiftResourceUtils.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/utils/class-use/RFC822DateUtils.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/utils/package-frame.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/utils/package-summary.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/utils/package-tree.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/client/utils/package-use.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/APIResource.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/AbstractOpenShiftConnectionFactory.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/AbstractOpenShiftResource.Parameters.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/AbstractOpenShiftResource.ServiceRequest.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/AbstractOpenShiftResource.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/ApplicationResource.SshStreams.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/ApplicationResource.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/CartridgeType.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/DomainResource.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/EmbeddedCartridgeResource.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/EnvironmentVariableResource.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/Field.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/Gear.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/GearGroupResource.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/GearProfile.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/IRestService.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/RestService.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/RestServiceProperties.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/SSHKeyResource.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/Severity.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/UserResource.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/cartridge/AbstractCartridgeQuery.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/cartridge/BaseCartridge.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/cartridge/class-use/AbstractCartridgeQuery.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/cartridge/class-use/BaseCartridge.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/cartridge/package-frame.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/cartridge/package-summary.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/cartridge/package-tree.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/cartridge/package-use.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/APIResource.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/AbstractOpenShiftConnectionFactory.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/AbstractOpenShiftResource.Parameters.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/AbstractOpenShiftResource.ServiceRequest.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/AbstractOpenShiftResource.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/ApplicationResource.SshStreams.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/ApplicationResource.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/CartridgeType.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/DomainResource.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/EmbeddedCartridgeResource.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/EnvironmentVariableResource.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/Field.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/Gear.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/GearGroupResource.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/GearProfile.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/IRestService.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/RestService.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/RestServiceProperties.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/SSHKeyResource.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/Severity.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/UserResource.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/BadRequestException.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/EncodingException.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/HttpClientException.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/InternalServerErrorException.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/NotFoundException.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/UnauthorizedException.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/UrlConnectionHttpClient.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/UrlConnectionHttpClientBuilder.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/class-use/BadRequestException.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/class-use/EncodingException.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/class-use/HttpClientException.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/class-use/InternalServerErrorException.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/class-use/NotFoundException.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/class-use/UnauthorizedException.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/class-use/UrlConnectionHttpClient.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/class-use/UrlConnectionHttpClientBuilder.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/package-frame.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/package-summary.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/package-tree.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/package-use.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/FormUrlEncodedMediaType.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/IMediaType.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/JsonMediaType.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/Parameter.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/ParameterValue.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/ParameterValueArray.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/ParameterValueMap.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/StringParameter.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/StringValue.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/class-use/FormUrlEncodedMediaType.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/class-use/IMediaType.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/class-use/JsonMediaType.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/class-use/Parameter.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/class-use/ParameterValue.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/class-use/ParameterValueArray.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/class-use/ParameterValueMap.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/class-use/StringParameter.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/class-use/StringValue.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/package-frame.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/package-summary.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/package-tree.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/package-use.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/package-frame.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/package-summary.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/package-tree.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/package-use.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/response/ApplicationResourceDTO.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/response/BaseResourceDTO.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/response/CartridgeResourceDTO.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/response/CartridgeResourceProperties.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/response/CartridgeResourceProperty.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/response/DomainResourceDTO.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/response/EnumDataType.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/response/EnvironmentVariableResourceDTO.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/response/GearGroupResourceDTO.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/response/GearResourceDTO.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/response/IRestResponseFactory.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/response/KeyResourceDTO.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/response/Link.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/response/LinkParameter.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/response/LinkParameterType.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/response/OpenShiftJsonDTOFactory.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/response/RestResponse.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/response/UserResourceDTO.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/ApplicationResourceDTO.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/BaseResourceDTO.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/CartridgeResourceDTO.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/CartridgeResourceProperties.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/CartridgeResourceProperty.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/DomainResourceDTO.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/EnumDataType.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/EnvironmentVariableResourceDTO.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/GearGroupResourceDTO.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/GearResourceDTO.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/IRestResponseFactory.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/KeyResourceDTO.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/Link.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/LinkParameter.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/LinkParameterType.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/OpenShiftJsonDTOFactory.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/RestResponse.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/UserResourceDTO.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/response/package-frame.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/response/package-summary.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/response/package-tree.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/response/package-use.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/ssh/AbstractSSHKey.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/ssh/ApplicationPortForwarding.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/ssh/class-use/AbstractSSHKey.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/ssh/class-use/ApplicationPortForwarding.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/ssh/package-frame.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/ssh/package-summary.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/ssh/package-tree.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/ssh/package-use.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/Assert.AssertionFailedException.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/Assert.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/CollectionUtils.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/IOpenShiftJsonConstants.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/IOpenShiftParameterConstants.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/StreamUtils.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/StringUtils.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/UrlUtils.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/class-use/Assert.AssertionFailedException.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/class-use/Assert.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/class-use/CollectionUtils.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/class-use/IOpenShiftJsonConstants.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/class-use/IOpenShiftParameterConstants.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/class-use/StreamUtils.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/class-use/StringUtils.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/class-use/UrlUtils.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/package-frame.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/package-summary.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/package-tree.html create mode 100644 .awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/package-use.html create mode 100644 .awestruct/dependency-cache/documentation/constant-values.html create mode 100644 .awestruct/dependency-cache/documentation/deprecated-list.html create mode 100644 .awestruct/dependency-cache/documentation/help-doc.html create mode 100644 .awestruct/dependency-cache/documentation/index-all.html create mode 100644 .awestruct/dependency-cache/documentation/index.html create mode 100644 .awestruct/dependency-cache/documentation/overview-frame.html create mode 100644 .awestruct/dependency-cache/documentation/overview-summary.html create mode 100644 .awestruct/dependency-cache/documentation/overview-tree.html create mode 100644 .awestruct/dependency-cache/documentation/package-list create mode 100644 .awestruct/dependency-cache/documentation/resources/inherit.gif create mode 100644 .awestruct/dependency-cache/documentation/serialized-form.html create mode 100644 .awestruct/dependency-cache/documentation/stylesheet.css create mode 100644 .awestruct/dependency-cache/fonts/bootstrap/glyphicons-halflings-regular.eot create mode 100644 .awestruct/dependency-cache/fonts/bootstrap/glyphicons-halflings-regular.svg create mode 100644 .awestruct/dependency-cache/fonts/bootstrap/glyphicons-halflings-regular.ttf create mode 100644 .awestruct/dependency-cache/fonts/bootstrap/glyphicons-halflings-regular.woff create mode 100644 .awestruct/dependency-cache/gethelp/index.html create mode 100644 .awestruct/dependency-cache/getstarted/index.html create mode 100644 .awestruct/dependency-cache/index.html create mode 100644 .awestruct/dependency-cache/joinus/index.html create mode 100644 .awestruct/dependency-cache/js/alignbuttons.js create mode 100644 .awestruct/dependency-cache/js/bootstrap.min.js create mode 100644 .awestruct/dependency-cache/js/googleanalytics.js create mode 100644 .awestruct/dependency-cache/js/html5shiv.js create mode 100644 .awestruct/dependency-cache/js/jquery-1.10.2.min.js create mode 100644 .awestruct/dependency-cache/js/respond.min.js create mode 100644 .awestruct/dependency-cache/js/shBrushJava.js create mode 100644 .awestruct/dependency-cache/js/shBrushXml.js create mode 100644 .awestruct/dependency-cache/js/shCore.js create mode 100644 .awestruct/dependency-cache/samplecode/index.html create mode 100644 Gemfile create mode 100644 Gemfile.lock create mode 100644 Rakefile create mode 100644 _config/site.yml create mode 100644 _ext/pipeline.rb create mode 100644 _layouts/default.html.haml create mode 100644 _layouts/landing.html.haml create mode 100644 css/SyntaxHighlighter.css create mode 100644 css/bootstrap.min.css create mode 100755 css/main.css create mode 100644 css/prism.css create mode 100644 css/syntax.css create mode 100644 css/topnav.css create mode 100644 documentation/allclasses-frame.html create mode 100644 documentation/allclasses-noframe.html create mode 100644 documentation/com/openshift/client/ApplicationBuilder.CartridgeHolder.html create mode 100644 documentation/com/openshift/client/ApplicationBuilder.NamedCartridgeHolder.html create mode 100644 documentation/com/openshift/client/ApplicationBuilder.html create mode 100644 documentation/com/openshift/client/ApplicationScale.html create mode 100644 documentation/com/openshift/client/GearState.html create mode 100644 documentation/com/openshift/client/HttpMethod.html create mode 100644 documentation/com/openshift/client/IApplication.html create mode 100644 documentation/com/openshift/client/IApplicationPortForwarding.html create mode 100644 documentation/com/openshift/client/IDomain.html create mode 100644 documentation/com/openshift/client/IEnvironmentVariable.html create mode 100644 documentation/com/openshift/client/IField.html create mode 100644 documentation/com/openshift/client/IGear.html create mode 100644 documentation/com/openshift/client/IGearGroup.html create mode 100644 documentation/com/openshift/client/IGearProfile.html create mode 100644 documentation/com/openshift/client/IHttpClient.html create mode 100644 documentation/com/openshift/client/IOpenShiftConnection.html create mode 100644 documentation/com/openshift/client/IOpenShiftResource.html create mode 100644 documentation/com/openshift/client/IOpenShiftSSHKey.html create mode 100644 documentation/com/openshift/client/ISSHPublicKey.html create mode 100644 documentation/com/openshift/client/ISeverity.html create mode 100644 documentation/com/openshift/client/IUser.html create mode 100644 documentation/com/openshift/client/InvalidCredentialsOpenShiftException.html create mode 100644 documentation/com/openshift/client/InvalidNameOpenShiftException.html create mode 100644 documentation/com/openshift/client/Message.html create mode 100644 documentation/com/openshift/client/Messages.html create mode 100644 documentation/com/openshift/client/NotFoundOpenShiftException.html create mode 100644 documentation/com/openshift/client/OpenShiftApplicationNotAvailableException.html create mode 100644 documentation/com/openshift/client/OpenShiftConnectionFactory.html create mode 100644 documentation/com/openshift/client/OpenShiftEndpointException.html create mode 100644 documentation/com/openshift/client/OpenShiftException.html create mode 100644 documentation/com/openshift/client/OpenShiftRequestException.html create mode 100644 documentation/com/openshift/client/OpenShiftSSHKeyException.html create mode 100644 documentation/com/openshift/client/OpenShiftSSHOperationException.html create mode 100644 documentation/com/openshift/client/OpenShiftTimeoutException.html create mode 100644 documentation/com/openshift/client/OpenShiftUnknonwSSHKeyTypeException.html create mode 100644 documentation/com/openshift/client/SSHKeyPair.html create mode 100644 documentation/com/openshift/client/SSHKeyType.html create mode 100644 documentation/com/openshift/client/SSHPublicKey.html create mode 100644 documentation/com/openshift/client/cartridge/EmbeddableCartridge.html create mode 100644 documentation/com/openshift/client/cartridge/ICartridge.html create mode 100644 documentation/com/openshift/client/cartridge/IEmbeddableCartridge.html create mode 100644 documentation/com/openshift/client/cartridge/IEmbeddedCartridge.html create mode 100644 documentation/com/openshift/client/cartridge/IStandaloneCartridge.html create mode 100644 documentation/com/openshift/client/cartridge/StandaloneCartridge.html create mode 100644 documentation/com/openshift/client/cartridge/class-use/EmbeddableCartridge.html create mode 100644 documentation/com/openshift/client/cartridge/class-use/ICartridge.html create mode 100644 documentation/com/openshift/client/cartridge/class-use/IEmbeddableCartridge.html create mode 100644 documentation/com/openshift/client/cartridge/class-use/IEmbeddedCartridge.html create mode 100644 documentation/com/openshift/client/cartridge/class-use/IStandaloneCartridge.html create mode 100644 documentation/com/openshift/client/cartridge/class-use/StandaloneCartridge.html create mode 100644 documentation/com/openshift/client/cartridge/package-frame.html create mode 100644 documentation/com/openshift/client/cartridge/package-summary.html create mode 100644 documentation/com/openshift/client/cartridge/package-tree.html create mode 100644 documentation/com/openshift/client/cartridge/package-use.html create mode 100644 documentation/com/openshift/client/cartridge/selector/CartridgePropertyQuery.html create mode 100644 documentation/com/openshift/client/cartridge/selector/LatestEmbeddableCartridge.html create mode 100644 documentation/com/openshift/client/cartridge/selector/LatestStandaloneCartridge.html create mode 100644 documentation/com/openshift/client/cartridge/selector/LatestVersionOf.html create mode 100644 documentation/com/openshift/client/cartridge/selector/LatestVersionQuery.VersionedName.html create mode 100644 documentation/com/openshift/client/cartridge/selector/LatestVersionQuery.html create mode 100644 documentation/com/openshift/client/cartridge/selector/StringPropertyQuery.html create mode 100644 documentation/com/openshift/client/cartridge/selector/UrlPropertyQuery.html create mode 100644 documentation/com/openshift/client/cartridge/selector/class-use/CartridgePropertyQuery.html create mode 100644 documentation/com/openshift/client/cartridge/selector/class-use/LatestEmbeddableCartridge.html create mode 100644 documentation/com/openshift/client/cartridge/selector/class-use/LatestStandaloneCartridge.html create mode 100644 documentation/com/openshift/client/cartridge/selector/class-use/LatestVersionOf.html create mode 100644 documentation/com/openshift/client/cartridge/selector/class-use/LatestVersionQuery.VersionedName.html create mode 100644 documentation/com/openshift/client/cartridge/selector/class-use/LatestVersionQuery.html create mode 100644 documentation/com/openshift/client/cartridge/selector/class-use/StringPropertyQuery.html create mode 100644 documentation/com/openshift/client/cartridge/selector/class-use/UrlPropertyQuery.html create mode 100644 documentation/com/openshift/client/cartridge/selector/package-frame.html create mode 100644 documentation/com/openshift/client/cartridge/selector/package-summary.html create mode 100644 documentation/com/openshift/client/cartridge/selector/package-tree.html create mode 100644 documentation/com/openshift/client/cartridge/selector/package-use.html create mode 100644 documentation/com/openshift/client/class-use/ApplicationBuilder.CartridgeHolder.html create mode 100644 documentation/com/openshift/client/class-use/ApplicationBuilder.NamedCartridgeHolder.html create mode 100644 documentation/com/openshift/client/class-use/ApplicationBuilder.html create mode 100644 documentation/com/openshift/client/class-use/ApplicationScale.html create mode 100644 documentation/com/openshift/client/class-use/GearState.html create mode 100644 documentation/com/openshift/client/class-use/HttpMethod.html create mode 100644 documentation/com/openshift/client/class-use/IApplication.html create mode 100644 documentation/com/openshift/client/class-use/IApplicationPortForwarding.html create mode 100644 documentation/com/openshift/client/class-use/IDomain.html create mode 100644 documentation/com/openshift/client/class-use/IEnvironmentVariable.html create mode 100644 documentation/com/openshift/client/class-use/IField.html create mode 100644 documentation/com/openshift/client/class-use/IGear.html create mode 100644 documentation/com/openshift/client/class-use/IGearGroup.html create mode 100644 documentation/com/openshift/client/class-use/IGearProfile.html create mode 100644 documentation/com/openshift/client/class-use/IHttpClient.html create mode 100644 documentation/com/openshift/client/class-use/IOpenShiftConnection.html create mode 100644 documentation/com/openshift/client/class-use/IOpenShiftResource.html create mode 100644 documentation/com/openshift/client/class-use/IOpenShiftSSHKey.html create mode 100644 documentation/com/openshift/client/class-use/ISSHPublicKey.html create mode 100644 documentation/com/openshift/client/class-use/ISeverity.html create mode 100644 documentation/com/openshift/client/class-use/IUser.html create mode 100644 documentation/com/openshift/client/class-use/InvalidCredentialsOpenShiftException.html create mode 100644 documentation/com/openshift/client/class-use/InvalidNameOpenShiftException.html create mode 100644 documentation/com/openshift/client/class-use/Message.html create mode 100644 documentation/com/openshift/client/class-use/Messages.html create mode 100644 documentation/com/openshift/client/class-use/NotFoundOpenShiftException.html create mode 100644 documentation/com/openshift/client/class-use/OpenShiftApplicationNotAvailableException.html create mode 100644 documentation/com/openshift/client/class-use/OpenShiftConnectionFactory.html create mode 100644 documentation/com/openshift/client/class-use/OpenShiftEndpointException.html create mode 100644 documentation/com/openshift/client/class-use/OpenShiftException.html create mode 100644 documentation/com/openshift/client/class-use/OpenShiftRequestException.html create mode 100644 documentation/com/openshift/client/class-use/OpenShiftSSHKeyException.html create mode 100644 documentation/com/openshift/client/class-use/OpenShiftSSHOperationException.html create mode 100644 documentation/com/openshift/client/class-use/OpenShiftTimeoutException.html create mode 100644 documentation/com/openshift/client/class-use/OpenShiftUnknonwSSHKeyTypeException.html create mode 100644 documentation/com/openshift/client/class-use/SSHKeyPair.html create mode 100644 documentation/com/openshift/client/class-use/SSHKeyType.html create mode 100644 documentation/com/openshift/client/class-use/SSHPublicKey.html create mode 100644 documentation/com/openshift/client/configuration/AbstractOpenshiftConfiguration.html create mode 100644 documentation/com/openshift/client/configuration/DefaultConfiguration.html create mode 100644 documentation/com/openshift/client/configuration/IOpenShiftConfiguration.html create mode 100644 documentation/com/openshift/client/configuration/OpenShiftConfiguration.html create mode 100644 documentation/com/openshift/client/configuration/SystemConfiguration.html create mode 100644 documentation/com/openshift/client/configuration/SystemProperties.html create mode 100644 documentation/com/openshift/client/configuration/UserConfiguration.html create mode 100644 documentation/com/openshift/client/configuration/class-use/AbstractOpenshiftConfiguration.html create mode 100644 documentation/com/openshift/client/configuration/class-use/DefaultConfiguration.html create mode 100644 documentation/com/openshift/client/configuration/class-use/IOpenShiftConfiguration.html create mode 100644 documentation/com/openshift/client/configuration/class-use/OpenShiftConfiguration.html create mode 100644 documentation/com/openshift/client/configuration/class-use/SystemConfiguration.html create mode 100644 documentation/com/openshift/client/configuration/class-use/SystemProperties.html create mode 100644 documentation/com/openshift/client/configuration/class-use/UserConfiguration.html create mode 100644 documentation/com/openshift/client/configuration/package-frame.html create mode 100644 documentation/com/openshift/client/configuration/package-summary.html create mode 100644 documentation/com/openshift/client/configuration/package-tree.html create mode 100644 documentation/com/openshift/client/configuration/package-use.html create mode 100644 documentation/com/openshift/client/package-frame.html create mode 100644 documentation/com/openshift/client/package-summary.html create mode 100644 documentation/com/openshift/client/package-tree.html create mode 100644 documentation/com/openshift/client/package-use.html create mode 100644 documentation/com/openshift/client/utils/Base64Coder.html create mode 100644 documentation/com/openshift/client/utils/HostUtils.html create mode 100644 documentation/com/openshift/client/utils/OpenShiftResourceUtils.html create mode 100644 documentation/com/openshift/client/utils/RFC822DateUtils.html create mode 100644 documentation/com/openshift/client/utils/class-use/Base64Coder.html create mode 100644 documentation/com/openshift/client/utils/class-use/HostUtils.html create mode 100644 documentation/com/openshift/client/utils/class-use/OpenShiftResourceUtils.html create mode 100644 documentation/com/openshift/client/utils/class-use/RFC822DateUtils.html create mode 100644 documentation/com/openshift/client/utils/package-frame.html create mode 100644 documentation/com/openshift/client/utils/package-summary.html create mode 100644 documentation/com/openshift/client/utils/package-tree.html create mode 100644 documentation/com/openshift/client/utils/package-use.html create mode 100644 documentation/com/openshift/internal/client/APIResource.html create mode 100644 documentation/com/openshift/internal/client/AbstractOpenShiftConnectionFactory.html create mode 100644 documentation/com/openshift/internal/client/AbstractOpenShiftResource.Parameters.html create mode 100644 documentation/com/openshift/internal/client/AbstractOpenShiftResource.ServiceRequest.html create mode 100644 documentation/com/openshift/internal/client/AbstractOpenShiftResource.html create mode 100644 documentation/com/openshift/internal/client/ApplicationResource.SshStreams.html create mode 100644 documentation/com/openshift/internal/client/ApplicationResource.html create mode 100644 documentation/com/openshift/internal/client/CartridgeType.html create mode 100644 documentation/com/openshift/internal/client/DomainResource.html create mode 100644 documentation/com/openshift/internal/client/EmbeddedCartridgeResource.html create mode 100644 documentation/com/openshift/internal/client/EnvironmentVariableResource.html create mode 100644 documentation/com/openshift/internal/client/Field.html create mode 100644 documentation/com/openshift/internal/client/Gear.html create mode 100644 documentation/com/openshift/internal/client/GearGroupResource.html create mode 100644 documentation/com/openshift/internal/client/GearProfile.html create mode 100644 documentation/com/openshift/internal/client/IRestService.html create mode 100644 documentation/com/openshift/internal/client/RestService.html create mode 100644 documentation/com/openshift/internal/client/RestServiceProperties.html create mode 100644 documentation/com/openshift/internal/client/SSHKeyResource.html create mode 100644 documentation/com/openshift/internal/client/Severity.html create mode 100644 documentation/com/openshift/internal/client/UserResource.html create mode 100644 documentation/com/openshift/internal/client/cartridge/AbstractCartridgeQuery.html create mode 100644 documentation/com/openshift/internal/client/cartridge/BaseCartridge.html create mode 100644 documentation/com/openshift/internal/client/cartridge/class-use/AbstractCartridgeQuery.html create mode 100644 documentation/com/openshift/internal/client/cartridge/class-use/BaseCartridge.html create mode 100644 documentation/com/openshift/internal/client/cartridge/package-frame.html create mode 100644 documentation/com/openshift/internal/client/cartridge/package-summary.html create mode 100644 documentation/com/openshift/internal/client/cartridge/package-tree.html create mode 100644 documentation/com/openshift/internal/client/cartridge/package-use.html create mode 100644 documentation/com/openshift/internal/client/class-use/APIResource.html create mode 100644 documentation/com/openshift/internal/client/class-use/AbstractOpenShiftConnectionFactory.html create mode 100644 documentation/com/openshift/internal/client/class-use/AbstractOpenShiftResource.Parameters.html create mode 100644 documentation/com/openshift/internal/client/class-use/AbstractOpenShiftResource.ServiceRequest.html create mode 100644 documentation/com/openshift/internal/client/class-use/AbstractOpenShiftResource.html create mode 100644 documentation/com/openshift/internal/client/class-use/ApplicationResource.SshStreams.html create mode 100644 documentation/com/openshift/internal/client/class-use/ApplicationResource.html create mode 100644 documentation/com/openshift/internal/client/class-use/CartridgeType.html create mode 100644 documentation/com/openshift/internal/client/class-use/DomainResource.html create mode 100644 documentation/com/openshift/internal/client/class-use/EmbeddedCartridgeResource.html create mode 100644 documentation/com/openshift/internal/client/class-use/EnvironmentVariableResource.html create mode 100644 documentation/com/openshift/internal/client/class-use/Field.html create mode 100644 documentation/com/openshift/internal/client/class-use/Gear.html create mode 100644 documentation/com/openshift/internal/client/class-use/GearGroupResource.html create mode 100644 documentation/com/openshift/internal/client/class-use/GearProfile.html create mode 100644 documentation/com/openshift/internal/client/class-use/IRestService.html create mode 100644 documentation/com/openshift/internal/client/class-use/RestService.html create mode 100644 documentation/com/openshift/internal/client/class-use/RestServiceProperties.html create mode 100644 documentation/com/openshift/internal/client/class-use/SSHKeyResource.html create mode 100644 documentation/com/openshift/internal/client/class-use/Severity.html create mode 100644 documentation/com/openshift/internal/client/class-use/UserResource.html create mode 100644 documentation/com/openshift/internal/client/httpclient/BadRequestException.html create mode 100644 documentation/com/openshift/internal/client/httpclient/EncodingException.html create mode 100644 documentation/com/openshift/internal/client/httpclient/HttpClientException.html create mode 100644 documentation/com/openshift/internal/client/httpclient/InternalServerErrorException.html create mode 100644 documentation/com/openshift/internal/client/httpclient/NotFoundException.html create mode 100644 documentation/com/openshift/internal/client/httpclient/UnauthorizedException.html create mode 100644 documentation/com/openshift/internal/client/httpclient/UrlConnectionHttpClient.html create mode 100644 documentation/com/openshift/internal/client/httpclient/UrlConnectionHttpClientBuilder.html create mode 100644 documentation/com/openshift/internal/client/httpclient/class-use/BadRequestException.html create mode 100644 documentation/com/openshift/internal/client/httpclient/class-use/EncodingException.html create mode 100644 documentation/com/openshift/internal/client/httpclient/class-use/HttpClientException.html create mode 100644 documentation/com/openshift/internal/client/httpclient/class-use/InternalServerErrorException.html create mode 100644 documentation/com/openshift/internal/client/httpclient/class-use/NotFoundException.html create mode 100644 documentation/com/openshift/internal/client/httpclient/class-use/UnauthorizedException.html create mode 100644 documentation/com/openshift/internal/client/httpclient/class-use/UrlConnectionHttpClient.html create mode 100644 documentation/com/openshift/internal/client/httpclient/class-use/UrlConnectionHttpClientBuilder.html create mode 100644 documentation/com/openshift/internal/client/httpclient/package-frame.html create mode 100644 documentation/com/openshift/internal/client/httpclient/package-summary.html create mode 100644 documentation/com/openshift/internal/client/httpclient/package-tree.html create mode 100644 documentation/com/openshift/internal/client/httpclient/package-use.html create mode 100644 documentation/com/openshift/internal/client/httpclient/request/FormUrlEncodedMediaType.html create mode 100644 documentation/com/openshift/internal/client/httpclient/request/IMediaType.html create mode 100644 documentation/com/openshift/internal/client/httpclient/request/JsonMediaType.html create mode 100644 documentation/com/openshift/internal/client/httpclient/request/Parameter.html create mode 100644 documentation/com/openshift/internal/client/httpclient/request/ParameterValue.html create mode 100644 documentation/com/openshift/internal/client/httpclient/request/ParameterValueArray.html create mode 100644 documentation/com/openshift/internal/client/httpclient/request/ParameterValueMap.html create mode 100644 documentation/com/openshift/internal/client/httpclient/request/StringParameter.html create mode 100644 documentation/com/openshift/internal/client/httpclient/request/StringValue.html create mode 100644 documentation/com/openshift/internal/client/httpclient/request/class-use/FormUrlEncodedMediaType.html create mode 100644 documentation/com/openshift/internal/client/httpclient/request/class-use/IMediaType.html create mode 100644 documentation/com/openshift/internal/client/httpclient/request/class-use/JsonMediaType.html create mode 100644 documentation/com/openshift/internal/client/httpclient/request/class-use/Parameter.html create mode 100644 documentation/com/openshift/internal/client/httpclient/request/class-use/ParameterValue.html create mode 100644 documentation/com/openshift/internal/client/httpclient/request/class-use/ParameterValueArray.html create mode 100644 documentation/com/openshift/internal/client/httpclient/request/class-use/ParameterValueMap.html create mode 100644 documentation/com/openshift/internal/client/httpclient/request/class-use/StringParameter.html create mode 100644 documentation/com/openshift/internal/client/httpclient/request/class-use/StringValue.html create mode 100644 documentation/com/openshift/internal/client/httpclient/request/package-frame.html create mode 100644 documentation/com/openshift/internal/client/httpclient/request/package-summary.html create mode 100644 documentation/com/openshift/internal/client/httpclient/request/package-tree.html create mode 100644 documentation/com/openshift/internal/client/httpclient/request/package-use.html create mode 100644 documentation/com/openshift/internal/client/package-frame.html create mode 100644 documentation/com/openshift/internal/client/package-summary.html create mode 100644 documentation/com/openshift/internal/client/package-tree.html create mode 100644 documentation/com/openshift/internal/client/package-use.html create mode 100644 documentation/com/openshift/internal/client/response/ApplicationResourceDTO.html create mode 100644 documentation/com/openshift/internal/client/response/BaseResourceDTO.html create mode 100644 documentation/com/openshift/internal/client/response/CartridgeResourceDTO.html create mode 100644 documentation/com/openshift/internal/client/response/CartridgeResourceProperties.html create mode 100644 documentation/com/openshift/internal/client/response/CartridgeResourceProperty.html create mode 100644 documentation/com/openshift/internal/client/response/DomainResourceDTO.html create mode 100644 documentation/com/openshift/internal/client/response/EnumDataType.html create mode 100644 documentation/com/openshift/internal/client/response/EnvironmentVariableResourceDTO.html create mode 100644 documentation/com/openshift/internal/client/response/GearGroupResourceDTO.html create mode 100644 documentation/com/openshift/internal/client/response/GearResourceDTO.html create mode 100644 documentation/com/openshift/internal/client/response/IRestResponseFactory.html create mode 100644 documentation/com/openshift/internal/client/response/KeyResourceDTO.html create mode 100644 documentation/com/openshift/internal/client/response/Link.html create mode 100644 documentation/com/openshift/internal/client/response/LinkParameter.html create mode 100644 documentation/com/openshift/internal/client/response/LinkParameterType.html create mode 100644 documentation/com/openshift/internal/client/response/OpenShiftJsonDTOFactory.html create mode 100644 documentation/com/openshift/internal/client/response/RestResponse.html create mode 100644 documentation/com/openshift/internal/client/response/UserResourceDTO.html create mode 100644 documentation/com/openshift/internal/client/response/class-use/ApplicationResourceDTO.html create mode 100644 documentation/com/openshift/internal/client/response/class-use/BaseResourceDTO.html create mode 100644 documentation/com/openshift/internal/client/response/class-use/CartridgeResourceDTO.html create mode 100644 documentation/com/openshift/internal/client/response/class-use/CartridgeResourceProperties.html create mode 100644 documentation/com/openshift/internal/client/response/class-use/CartridgeResourceProperty.html create mode 100644 documentation/com/openshift/internal/client/response/class-use/DomainResourceDTO.html create mode 100644 documentation/com/openshift/internal/client/response/class-use/EnumDataType.html create mode 100644 documentation/com/openshift/internal/client/response/class-use/EnvironmentVariableResourceDTO.html create mode 100644 documentation/com/openshift/internal/client/response/class-use/GearGroupResourceDTO.html create mode 100644 documentation/com/openshift/internal/client/response/class-use/GearResourceDTO.html create mode 100644 documentation/com/openshift/internal/client/response/class-use/IRestResponseFactory.html create mode 100644 documentation/com/openshift/internal/client/response/class-use/KeyResourceDTO.html create mode 100644 documentation/com/openshift/internal/client/response/class-use/Link.html create mode 100644 documentation/com/openshift/internal/client/response/class-use/LinkParameter.html create mode 100644 documentation/com/openshift/internal/client/response/class-use/LinkParameterType.html create mode 100644 documentation/com/openshift/internal/client/response/class-use/OpenShiftJsonDTOFactory.html create mode 100644 documentation/com/openshift/internal/client/response/class-use/RestResponse.html create mode 100644 documentation/com/openshift/internal/client/response/class-use/UserResourceDTO.html create mode 100644 documentation/com/openshift/internal/client/response/package-frame.html create mode 100644 documentation/com/openshift/internal/client/response/package-summary.html create mode 100644 documentation/com/openshift/internal/client/response/package-tree.html create mode 100644 documentation/com/openshift/internal/client/response/package-use.html create mode 100644 documentation/com/openshift/internal/client/ssh/AbstractSSHKey.html create mode 100644 documentation/com/openshift/internal/client/ssh/ApplicationPortForwarding.html create mode 100644 documentation/com/openshift/internal/client/ssh/class-use/AbstractSSHKey.html create mode 100644 documentation/com/openshift/internal/client/ssh/class-use/ApplicationPortForwarding.html create mode 100644 documentation/com/openshift/internal/client/ssh/package-frame.html create mode 100644 documentation/com/openshift/internal/client/ssh/package-summary.html create mode 100644 documentation/com/openshift/internal/client/ssh/package-tree.html create mode 100644 documentation/com/openshift/internal/client/ssh/package-use.html create mode 100644 documentation/com/openshift/internal/client/utils/Assert.AssertionFailedException.html create mode 100644 documentation/com/openshift/internal/client/utils/Assert.html create mode 100644 documentation/com/openshift/internal/client/utils/CollectionUtils.html create mode 100644 documentation/com/openshift/internal/client/utils/IOpenShiftJsonConstants.html create mode 100644 documentation/com/openshift/internal/client/utils/IOpenShiftParameterConstants.html create mode 100644 documentation/com/openshift/internal/client/utils/StreamUtils.html create mode 100644 documentation/com/openshift/internal/client/utils/StringUtils.html create mode 100644 documentation/com/openshift/internal/client/utils/UrlUtils.html create mode 100644 documentation/com/openshift/internal/client/utils/class-use/Assert.AssertionFailedException.html create mode 100644 documentation/com/openshift/internal/client/utils/class-use/Assert.html create mode 100644 documentation/com/openshift/internal/client/utils/class-use/CollectionUtils.html create mode 100644 documentation/com/openshift/internal/client/utils/class-use/IOpenShiftJsonConstants.html create mode 100644 documentation/com/openshift/internal/client/utils/class-use/IOpenShiftParameterConstants.html create mode 100644 documentation/com/openshift/internal/client/utils/class-use/StreamUtils.html create mode 100644 documentation/com/openshift/internal/client/utils/class-use/StringUtils.html create mode 100644 documentation/com/openshift/internal/client/utils/class-use/UrlUtils.html create mode 100644 documentation/com/openshift/internal/client/utils/package-frame.html create mode 100644 documentation/com/openshift/internal/client/utils/package-summary.html create mode 100644 documentation/com/openshift/internal/client/utils/package-tree.html create mode 100644 documentation/com/openshift/internal/client/utils/package-use.html create mode 100644 documentation/constant-values.html create mode 100644 documentation/deprecated-list.html create mode 100644 documentation/help-doc.html create mode 100644 documentation/index-all.html create mode 100644 documentation/index.html create mode 100644 documentation/overview-frame.html create mode 100644 documentation/overview-summary.html create mode 100644 documentation/overview-tree.html create mode 100644 documentation/package-list create mode 100644 documentation/resources/inherit.gif create mode 100644 documentation/serialized-form.html create mode 100644 documentation/stylesheet.css create mode 100644 fonts/bootstrap/glyphicons-halflings-regular.eot create mode 100644 fonts/bootstrap/glyphicons-halflings-regular.svg create mode 100644 fonts/bootstrap/glyphicons-halflings-regular.ttf create mode 100644 fonts/bootstrap/glyphicons-halflings-regular.woff create mode 100644 gethelp/index.html.haml create mode 100644 getstarted/index.html.haml create mode 100644 index.html.haml create mode 100644 joinus/index.html.haml create mode 100644 js/alignbuttons.js create mode 100644 js/bootstrap.min.js create mode 100644 js/googleanalytics.js create mode 100644 js/html5shiv.js create mode 100644 js/jquery-1.10.2.min.js create mode 100644 js/respond.min.js create mode 100644 js/shBrushJava.js create mode 100644 js/shBrushXml.js create mode 100644 js/shCore.js create mode 100644 samplecode/index.html.haml diff --git a/.awestruct/debug.log b/.awestruct/debug.log new file mode 100644 index 00000000..e69de29b diff --git a/.awestruct/dependency-cache/Gemfile b/.awestruct/dependency-cache/Gemfile new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/Gemfile @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/Gemfile.lock b/.awestruct/dependency-cache/Gemfile.lock new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/Gemfile.lock @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/README.html b/.awestruct/dependency-cache/README.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/README.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/Rakefile b/.awestruct/dependency-cache/Rakefile new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/Rakefile @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/css/SyntaxHighlighter.css b/.awestruct/dependency-cache/css/SyntaxHighlighter.css new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/css/SyntaxHighlighter.css @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/css/bootstrap.min.css b/.awestruct/dependency-cache/css/bootstrap.min.css new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/css/bootstrap.min.css @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/css/main.css b/.awestruct/dependency-cache/css/main.css new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/css/main.css @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/css/prism.css b/.awestruct/dependency-cache/css/prism.css new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/css/prism.css @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/css/syntax.css b/.awestruct/dependency-cache/css/syntax.css new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/css/syntax.css @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/css/topnav.css b/.awestruct/dependency-cache/css/topnav.css new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/css/topnav.css @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/allclasses-frame.html b/.awestruct/dependency-cache/documentation/allclasses-frame.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/allclasses-frame.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/allclasses-noframe.html b/.awestruct/dependency-cache/documentation/allclasses-noframe.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/allclasses-noframe.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/ApplicationBuilder.CartridgeHolder.html b/.awestruct/dependency-cache/documentation/com/openshift/client/ApplicationBuilder.CartridgeHolder.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/ApplicationBuilder.CartridgeHolder.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/ApplicationBuilder.NamedCartridgeHolder.html b/.awestruct/dependency-cache/documentation/com/openshift/client/ApplicationBuilder.NamedCartridgeHolder.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/ApplicationBuilder.NamedCartridgeHolder.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/ApplicationBuilder.html b/.awestruct/dependency-cache/documentation/com/openshift/client/ApplicationBuilder.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/ApplicationBuilder.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/ApplicationScale.html b/.awestruct/dependency-cache/documentation/com/openshift/client/ApplicationScale.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/ApplicationScale.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/GearState.html b/.awestruct/dependency-cache/documentation/com/openshift/client/GearState.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/GearState.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/HttpMethod.html b/.awestruct/dependency-cache/documentation/com/openshift/client/HttpMethod.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/HttpMethod.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/IApplication.html b/.awestruct/dependency-cache/documentation/com/openshift/client/IApplication.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/IApplication.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/IApplicationPortForwarding.html b/.awestruct/dependency-cache/documentation/com/openshift/client/IApplicationPortForwarding.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/IApplicationPortForwarding.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/IDomain.html b/.awestruct/dependency-cache/documentation/com/openshift/client/IDomain.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/IDomain.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/IEnvironmentVariable.html b/.awestruct/dependency-cache/documentation/com/openshift/client/IEnvironmentVariable.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/IEnvironmentVariable.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/IField.html b/.awestruct/dependency-cache/documentation/com/openshift/client/IField.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/IField.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/IGear.html b/.awestruct/dependency-cache/documentation/com/openshift/client/IGear.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/IGear.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/IGearGroup.html b/.awestruct/dependency-cache/documentation/com/openshift/client/IGearGroup.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/IGearGroup.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/IGearProfile.html b/.awestruct/dependency-cache/documentation/com/openshift/client/IGearProfile.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/IGearProfile.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/IHttpClient.html b/.awestruct/dependency-cache/documentation/com/openshift/client/IHttpClient.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/IHttpClient.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/IOpenShiftConnection.html b/.awestruct/dependency-cache/documentation/com/openshift/client/IOpenShiftConnection.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/IOpenShiftConnection.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/IOpenShiftResource.html b/.awestruct/dependency-cache/documentation/com/openshift/client/IOpenShiftResource.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/IOpenShiftResource.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/IOpenShiftSSHKey.html b/.awestruct/dependency-cache/documentation/com/openshift/client/IOpenShiftSSHKey.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/IOpenShiftSSHKey.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/ISSHPublicKey.html b/.awestruct/dependency-cache/documentation/com/openshift/client/ISSHPublicKey.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/ISSHPublicKey.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/ISeverity.html b/.awestruct/dependency-cache/documentation/com/openshift/client/ISeverity.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/ISeverity.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/IUser.html b/.awestruct/dependency-cache/documentation/com/openshift/client/IUser.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/IUser.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/InvalidCredentialsOpenShiftException.html b/.awestruct/dependency-cache/documentation/com/openshift/client/InvalidCredentialsOpenShiftException.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/InvalidCredentialsOpenShiftException.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/InvalidNameOpenShiftException.html b/.awestruct/dependency-cache/documentation/com/openshift/client/InvalidNameOpenShiftException.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/InvalidNameOpenShiftException.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/Message.html b/.awestruct/dependency-cache/documentation/com/openshift/client/Message.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/Message.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/Messages.html b/.awestruct/dependency-cache/documentation/com/openshift/client/Messages.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/Messages.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/NotFoundOpenShiftException.html b/.awestruct/dependency-cache/documentation/com/openshift/client/NotFoundOpenShiftException.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/NotFoundOpenShiftException.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/OpenShiftApplicationNotAvailableException.html b/.awestruct/dependency-cache/documentation/com/openshift/client/OpenShiftApplicationNotAvailableException.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/OpenShiftApplicationNotAvailableException.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/OpenShiftConnectionFactory.html b/.awestruct/dependency-cache/documentation/com/openshift/client/OpenShiftConnectionFactory.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/OpenShiftConnectionFactory.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/OpenShiftEndpointException.html b/.awestruct/dependency-cache/documentation/com/openshift/client/OpenShiftEndpointException.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/OpenShiftEndpointException.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/OpenShiftException.html b/.awestruct/dependency-cache/documentation/com/openshift/client/OpenShiftException.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/OpenShiftException.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/OpenShiftRequestException.html b/.awestruct/dependency-cache/documentation/com/openshift/client/OpenShiftRequestException.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/OpenShiftRequestException.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/OpenShiftSSHKeyException.html b/.awestruct/dependency-cache/documentation/com/openshift/client/OpenShiftSSHKeyException.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/OpenShiftSSHKeyException.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/OpenShiftSSHOperationException.html b/.awestruct/dependency-cache/documentation/com/openshift/client/OpenShiftSSHOperationException.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/OpenShiftSSHOperationException.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/OpenShiftTimeoutException.html b/.awestruct/dependency-cache/documentation/com/openshift/client/OpenShiftTimeoutException.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/OpenShiftTimeoutException.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/OpenShiftUnknonwSSHKeyTypeException.html b/.awestruct/dependency-cache/documentation/com/openshift/client/OpenShiftUnknonwSSHKeyTypeException.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/OpenShiftUnknonwSSHKeyTypeException.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/SSHKeyPair.html b/.awestruct/dependency-cache/documentation/com/openshift/client/SSHKeyPair.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/SSHKeyPair.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/SSHKeyType.html b/.awestruct/dependency-cache/documentation/com/openshift/client/SSHKeyType.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/SSHKeyType.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/SSHPublicKey.html b/.awestruct/dependency-cache/documentation/com/openshift/client/SSHPublicKey.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/SSHPublicKey.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/EmbeddableCartridge.html b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/EmbeddableCartridge.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/EmbeddableCartridge.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/ICartridge.html b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/ICartridge.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/ICartridge.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/IEmbeddableCartridge.html b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/IEmbeddableCartridge.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/IEmbeddableCartridge.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/IEmbeddedCartridge.html b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/IEmbeddedCartridge.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/IEmbeddedCartridge.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/IStandaloneCartridge.html b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/IStandaloneCartridge.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/IStandaloneCartridge.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/StandaloneCartridge.html b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/StandaloneCartridge.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/StandaloneCartridge.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/class-use/EmbeddableCartridge.html b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/class-use/EmbeddableCartridge.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/class-use/EmbeddableCartridge.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/class-use/ICartridge.html b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/class-use/ICartridge.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/class-use/ICartridge.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/class-use/IEmbeddableCartridge.html b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/class-use/IEmbeddableCartridge.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/class-use/IEmbeddableCartridge.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/class-use/IEmbeddedCartridge.html b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/class-use/IEmbeddedCartridge.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/class-use/IEmbeddedCartridge.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/class-use/IStandaloneCartridge.html b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/class-use/IStandaloneCartridge.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/class-use/IStandaloneCartridge.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/class-use/StandaloneCartridge.html b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/class-use/StandaloneCartridge.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/class-use/StandaloneCartridge.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/package-frame.html b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/package-frame.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/package-frame.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/package-summary.html b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/package-summary.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/package-summary.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/package-tree.html b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/package-tree.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/package-tree.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/package-use.html b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/package-use.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/package-use.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/CartridgePropertyQuery.html b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/CartridgePropertyQuery.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/CartridgePropertyQuery.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/LatestEmbeddableCartridge.html b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/LatestEmbeddableCartridge.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/LatestEmbeddableCartridge.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/LatestStandaloneCartridge.html b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/LatestStandaloneCartridge.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/LatestStandaloneCartridge.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/LatestVersionOf.html b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/LatestVersionOf.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/LatestVersionOf.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/LatestVersionQuery.VersionedName.html b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/LatestVersionQuery.VersionedName.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/LatestVersionQuery.VersionedName.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/LatestVersionQuery.html b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/LatestVersionQuery.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/LatestVersionQuery.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/StringPropertyQuery.html b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/StringPropertyQuery.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/StringPropertyQuery.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/UrlPropertyQuery.html b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/UrlPropertyQuery.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/UrlPropertyQuery.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/class-use/CartridgePropertyQuery.html b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/class-use/CartridgePropertyQuery.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/class-use/CartridgePropertyQuery.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/class-use/LatestEmbeddableCartridge.html b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/class-use/LatestEmbeddableCartridge.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/class-use/LatestEmbeddableCartridge.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/class-use/LatestStandaloneCartridge.html b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/class-use/LatestStandaloneCartridge.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/class-use/LatestStandaloneCartridge.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/class-use/LatestVersionOf.html b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/class-use/LatestVersionOf.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/class-use/LatestVersionOf.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/class-use/LatestVersionQuery.VersionedName.html b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/class-use/LatestVersionQuery.VersionedName.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/class-use/LatestVersionQuery.VersionedName.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/class-use/LatestVersionQuery.html b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/class-use/LatestVersionQuery.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/class-use/LatestVersionQuery.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/class-use/StringPropertyQuery.html b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/class-use/StringPropertyQuery.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/class-use/StringPropertyQuery.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/class-use/UrlPropertyQuery.html b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/class-use/UrlPropertyQuery.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/class-use/UrlPropertyQuery.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/package-frame.html b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/package-frame.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/package-frame.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/package-summary.html b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/package-summary.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/package-summary.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/package-tree.html b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/package-tree.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/package-tree.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/package-use.html b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/package-use.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/cartridge/selector/package-use.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/ApplicationBuilder.CartridgeHolder.html b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/ApplicationBuilder.CartridgeHolder.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/ApplicationBuilder.CartridgeHolder.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/ApplicationBuilder.NamedCartridgeHolder.html b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/ApplicationBuilder.NamedCartridgeHolder.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/ApplicationBuilder.NamedCartridgeHolder.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/ApplicationBuilder.html b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/ApplicationBuilder.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/ApplicationBuilder.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/ApplicationScale.html b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/ApplicationScale.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/ApplicationScale.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/GearState.html b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/GearState.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/GearState.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/HttpMethod.html b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/HttpMethod.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/HttpMethod.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/IApplication.html b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/IApplication.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/IApplication.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/IApplicationPortForwarding.html b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/IApplicationPortForwarding.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/IApplicationPortForwarding.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/IDomain.html b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/IDomain.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/IDomain.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/IEnvironmentVariable.html b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/IEnvironmentVariable.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/IEnvironmentVariable.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/IField.html b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/IField.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/IField.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/IGear.html b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/IGear.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/IGear.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/IGearGroup.html b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/IGearGroup.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/IGearGroup.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/IGearProfile.html b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/IGearProfile.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/IGearProfile.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/IHttpClient.html b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/IHttpClient.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/IHttpClient.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/IOpenShiftConnection.html b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/IOpenShiftConnection.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/IOpenShiftConnection.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/IOpenShiftResource.html b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/IOpenShiftResource.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/IOpenShiftResource.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/IOpenShiftSSHKey.html b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/IOpenShiftSSHKey.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/IOpenShiftSSHKey.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/ISSHPublicKey.html b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/ISSHPublicKey.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/ISSHPublicKey.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/ISeverity.html b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/ISeverity.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/ISeverity.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/IUser.html b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/IUser.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/IUser.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/InvalidCredentialsOpenShiftException.html b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/InvalidCredentialsOpenShiftException.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/InvalidCredentialsOpenShiftException.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/InvalidNameOpenShiftException.html b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/InvalidNameOpenShiftException.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/InvalidNameOpenShiftException.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/Message.html b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/Message.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/Message.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/Messages.html b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/Messages.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/Messages.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/NotFoundOpenShiftException.html b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/NotFoundOpenShiftException.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/NotFoundOpenShiftException.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/OpenShiftApplicationNotAvailableException.html b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/OpenShiftApplicationNotAvailableException.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/OpenShiftApplicationNotAvailableException.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/OpenShiftConnectionFactory.html b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/OpenShiftConnectionFactory.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/OpenShiftConnectionFactory.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/OpenShiftEndpointException.html b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/OpenShiftEndpointException.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/OpenShiftEndpointException.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/OpenShiftException.html b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/OpenShiftException.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/OpenShiftException.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/OpenShiftRequestException.html b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/OpenShiftRequestException.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/OpenShiftRequestException.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/OpenShiftSSHKeyException.html b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/OpenShiftSSHKeyException.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/OpenShiftSSHKeyException.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/OpenShiftSSHOperationException.html b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/OpenShiftSSHOperationException.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/OpenShiftSSHOperationException.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/OpenShiftTimeoutException.html b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/OpenShiftTimeoutException.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/OpenShiftTimeoutException.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/OpenShiftUnknonwSSHKeyTypeException.html b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/OpenShiftUnknonwSSHKeyTypeException.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/OpenShiftUnknonwSSHKeyTypeException.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/SSHKeyPair.html b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/SSHKeyPair.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/SSHKeyPair.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/SSHKeyType.html b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/SSHKeyType.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/SSHKeyType.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/SSHPublicKey.html b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/SSHPublicKey.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/class-use/SSHPublicKey.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/configuration/AbstractOpenshiftConfiguration.html b/.awestruct/dependency-cache/documentation/com/openshift/client/configuration/AbstractOpenshiftConfiguration.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/configuration/AbstractOpenshiftConfiguration.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/configuration/DefaultConfiguration.html b/.awestruct/dependency-cache/documentation/com/openshift/client/configuration/DefaultConfiguration.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/configuration/DefaultConfiguration.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/configuration/IOpenShiftConfiguration.html b/.awestruct/dependency-cache/documentation/com/openshift/client/configuration/IOpenShiftConfiguration.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/configuration/IOpenShiftConfiguration.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/configuration/OpenShiftConfiguration.html b/.awestruct/dependency-cache/documentation/com/openshift/client/configuration/OpenShiftConfiguration.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/configuration/OpenShiftConfiguration.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/configuration/SystemConfiguration.html b/.awestruct/dependency-cache/documentation/com/openshift/client/configuration/SystemConfiguration.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/configuration/SystemConfiguration.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/configuration/SystemProperties.html b/.awestruct/dependency-cache/documentation/com/openshift/client/configuration/SystemProperties.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/configuration/SystemProperties.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/configuration/UserConfiguration.html b/.awestruct/dependency-cache/documentation/com/openshift/client/configuration/UserConfiguration.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/configuration/UserConfiguration.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/configuration/class-use/AbstractOpenshiftConfiguration.html b/.awestruct/dependency-cache/documentation/com/openshift/client/configuration/class-use/AbstractOpenshiftConfiguration.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/configuration/class-use/AbstractOpenshiftConfiguration.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/configuration/class-use/DefaultConfiguration.html b/.awestruct/dependency-cache/documentation/com/openshift/client/configuration/class-use/DefaultConfiguration.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/configuration/class-use/DefaultConfiguration.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/configuration/class-use/IOpenShiftConfiguration.html b/.awestruct/dependency-cache/documentation/com/openshift/client/configuration/class-use/IOpenShiftConfiguration.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/configuration/class-use/IOpenShiftConfiguration.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/configuration/class-use/OpenShiftConfiguration.html b/.awestruct/dependency-cache/documentation/com/openshift/client/configuration/class-use/OpenShiftConfiguration.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/configuration/class-use/OpenShiftConfiguration.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/configuration/class-use/SystemConfiguration.html b/.awestruct/dependency-cache/documentation/com/openshift/client/configuration/class-use/SystemConfiguration.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/configuration/class-use/SystemConfiguration.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/configuration/class-use/SystemProperties.html b/.awestruct/dependency-cache/documentation/com/openshift/client/configuration/class-use/SystemProperties.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/configuration/class-use/SystemProperties.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/configuration/class-use/UserConfiguration.html b/.awestruct/dependency-cache/documentation/com/openshift/client/configuration/class-use/UserConfiguration.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/configuration/class-use/UserConfiguration.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/configuration/package-frame.html b/.awestruct/dependency-cache/documentation/com/openshift/client/configuration/package-frame.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/configuration/package-frame.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/configuration/package-summary.html b/.awestruct/dependency-cache/documentation/com/openshift/client/configuration/package-summary.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/configuration/package-summary.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/configuration/package-tree.html b/.awestruct/dependency-cache/documentation/com/openshift/client/configuration/package-tree.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/configuration/package-tree.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/configuration/package-use.html b/.awestruct/dependency-cache/documentation/com/openshift/client/configuration/package-use.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/configuration/package-use.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/package-frame.html b/.awestruct/dependency-cache/documentation/com/openshift/client/package-frame.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/package-frame.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/package-summary.html b/.awestruct/dependency-cache/documentation/com/openshift/client/package-summary.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/package-summary.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/package-tree.html b/.awestruct/dependency-cache/documentation/com/openshift/client/package-tree.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/package-tree.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/package-use.html b/.awestruct/dependency-cache/documentation/com/openshift/client/package-use.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/package-use.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/utils/Base64Coder.html b/.awestruct/dependency-cache/documentation/com/openshift/client/utils/Base64Coder.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/utils/Base64Coder.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/utils/HostUtils.html b/.awestruct/dependency-cache/documentation/com/openshift/client/utils/HostUtils.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/utils/HostUtils.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/utils/OpenShiftResourceUtils.html b/.awestruct/dependency-cache/documentation/com/openshift/client/utils/OpenShiftResourceUtils.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/utils/OpenShiftResourceUtils.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/utils/RFC822DateUtils.html b/.awestruct/dependency-cache/documentation/com/openshift/client/utils/RFC822DateUtils.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/utils/RFC822DateUtils.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/utils/class-use/Base64Coder.html b/.awestruct/dependency-cache/documentation/com/openshift/client/utils/class-use/Base64Coder.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/utils/class-use/Base64Coder.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/utils/class-use/HostUtils.html b/.awestruct/dependency-cache/documentation/com/openshift/client/utils/class-use/HostUtils.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/utils/class-use/HostUtils.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/utils/class-use/OpenShiftResourceUtils.html b/.awestruct/dependency-cache/documentation/com/openshift/client/utils/class-use/OpenShiftResourceUtils.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/utils/class-use/OpenShiftResourceUtils.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/utils/class-use/RFC822DateUtils.html b/.awestruct/dependency-cache/documentation/com/openshift/client/utils/class-use/RFC822DateUtils.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/utils/class-use/RFC822DateUtils.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/utils/package-frame.html b/.awestruct/dependency-cache/documentation/com/openshift/client/utils/package-frame.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/utils/package-frame.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/utils/package-summary.html b/.awestruct/dependency-cache/documentation/com/openshift/client/utils/package-summary.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/utils/package-summary.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/utils/package-tree.html b/.awestruct/dependency-cache/documentation/com/openshift/client/utils/package-tree.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/utils/package-tree.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/client/utils/package-use.html b/.awestruct/dependency-cache/documentation/com/openshift/client/utils/package-use.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/client/utils/package-use.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/APIResource.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/APIResource.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/APIResource.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/AbstractOpenShiftConnectionFactory.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/AbstractOpenShiftConnectionFactory.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/AbstractOpenShiftConnectionFactory.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/AbstractOpenShiftResource.Parameters.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/AbstractOpenShiftResource.Parameters.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/AbstractOpenShiftResource.Parameters.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/AbstractOpenShiftResource.ServiceRequest.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/AbstractOpenShiftResource.ServiceRequest.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/AbstractOpenShiftResource.ServiceRequest.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/AbstractOpenShiftResource.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/AbstractOpenShiftResource.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/AbstractOpenShiftResource.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/ApplicationResource.SshStreams.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/ApplicationResource.SshStreams.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/ApplicationResource.SshStreams.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/ApplicationResource.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/ApplicationResource.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/ApplicationResource.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/CartridgeType.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/CartridgeType.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/CartridgeType.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/DomainResource.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/DomainResource.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/DomainResource.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/EmbeddedCartridgeResource.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/EmbeddedCartridgeResource.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/EmbeddedCartridgeResource.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/EnvironmentVariableResource.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/EnvironmentVariableResource.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/EnvironmentVariableResource.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/Field.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/Field.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/Field.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/Gear.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/Gear.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/Gear.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/GearGroupResource.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/GearGroupResource.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/GearGroupResource.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/GearProfile.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/GearProfile.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/GearProfile.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/IRestService.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/IRestService.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/IRestService.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/RestService.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/RestService.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/RestService.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/RestServiceProperties.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/RestServiceProperties.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/RestServiceProperties.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/SSHKeyResource.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/SSHKeyResource.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/SSHKeyResource.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/Severity.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/Severity.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/Severity.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/UserResource.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/UserResource.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/UserResource.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/cartridge/AbstractCartridgeQuery.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/cartridge/AbstractCartridgeQuery.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/cartridge/AbstractCartridgeQuery.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/cartridge/BaseCartridge.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/cartridge/BaseCartridge.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/cartridge/BaseCartridge.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/cartridge/class-use/AbstractCartridgeQuery.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/cartridge/class-use/AbstractCartridgeQuery.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/cartridge/class-use/AbstractCartridgeQuery.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/cartridge/class-use/BaseCartridge.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/cartridge/class-use/BaseCartridge.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/cartridge/class-use/BaseCartridge.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/cartridge/package-frame.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/cartridge/package-frame.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/cartridge/package-frame.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/cartridge/package-summary.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/cartridge/package-summary.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/cartridge/package-summary.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/cartridge/package-tree.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/cartridge/package-tree.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/cartridge/package-tree.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/cartridge/package-use.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/cartridge/package-use.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/cartridge/package-use.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/APIResource.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/APIResource.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/APIResource.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/AbstractOpenShiftConnectionFactory.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/AbstractOpenShiftConnectionFactory.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/AbstractOpenShiftConnectionFactory.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/AbstractOpenShiftResource.Parameters.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/AbstractOpenShiftResource.Parameters.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/AbstractOpenShiftResource.Parameters.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/AbstractOpenShiftResource.ServiceRequest.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/AbstractOpenShiftResource.ServiceRequest.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/AbstractOpenShiftResource.ServiceRequest.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/AbstractOpenShiftResource.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/AbstractOpenShiftResource.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/AbstractOpenShiftResource.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/ApplicationResource.SshStreams.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/ApplicationResource.SshStreams.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/ApplicationResource.SshStreams.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/ApplicationResource.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/ApplicationResource.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/ApplicationResource.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/CartridgeType.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/CartridgeType.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/CartridgeType.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/DomainResource.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/DomainResource.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/DomainResource.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/EmbeddedCartridgeResource.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/EmbeddedCartridgeResource.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/EmbeddedCartridgeResource.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/EnvironmentVariableResource.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/EnvironmentVariableResource.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/EnvironmentVariableResource.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/Field.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/Field.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/Field.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/Gear.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/Gear.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/Gear.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/GearGroupResource.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/GearGroupResource.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/GearGroupResource.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/GearProfile.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/GearProfile.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/GearProfile.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/IRestService.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/IRestService.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/IRestService.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/RestService.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/RestService.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/RestService.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/RestServiceProperties.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/RestServiceProperties.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/RestServiceProperties.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/SSHKeyResource.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/SSHKeyResource.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/SSHKeyResource.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/Severity.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/Severity.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/Severity.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/UserResource.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/UserResource.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/class-use/UserResource.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/BadRequestException.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/BadRequestException.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/BadRequestException.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/EncodingException.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/EncodingException.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/EncodingException.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/HttpClientException.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/HttpClientException.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/HttpClientException.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/InternalServerErrorException.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/InternalServerErrorException.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/InternalServerErrorException.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/NotFoundException.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/NotFoundException.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/NotFoundException.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/UnauthorizedException.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/UnauthorizedException.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/UnauthorizedException.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/UrlConnectionHttpClient.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/UrlConnectionHttpClient.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/UrlConnectionHttpClient.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/UrlConnectionHttpClientBuilder.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/UrlConnectionHttpClientBuilder.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/UrlConnectionHttpClientBuilder.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/class-use/BadRequestException.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/class-use/BadRequestException.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/class-use/BadRequestException.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/class-use/EncodingException.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/class-use/EncodingException.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/class-use/EncodingException.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/class-use/HttpClientException.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/class-use/HttpClientException.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/class-use/HttpClientException.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/class-use/InternalServerErrorException.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/class-use/InternalServerErrorException.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/class-use/InternalServerErrorException.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/class-use/NotFoundException.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/class-use/NotFoundException.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/class-use/NotFoundException.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/class-use/UnauthorizedException.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/class-use/UnauthorizedException.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/class-use/UnauthorizedException.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/class-use/UrlConnectionHttpClient.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/class-use/UrlConnectionHttpClient.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/class-use/UrlConnectionHttpClient.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/class-use/UrlConnectionHttpClientBuilder.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/class-use/UrlConnectionHttpClientBuilder.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/class-use/UrlConnectionHttpClientBuilder.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/package-frame.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/package-frame.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/package-frame.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/package-summary.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/package-summary.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/package-summary.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/package-tree.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/package-tree.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/package-tree.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/package-use.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/package-use.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/package-use.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/FormUrlEncodedMediaType.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/FormUrlEncodedMediaType.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/FormUrlEncodedMediaType.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/IMediaType.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/IMediaType.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/IMediaType.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/JsonMediaType.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/JsonMediaType.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/JsonMediaType.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/Parameter.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/Parameter.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/Parameter.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/ParameterValue.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/ParameterValue.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/ParameterValue.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/ParameterValueArray.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/ParameterValueArray.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/ParameterValueArray.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/ParameterValueMap.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/ParameterValueMap.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/ParameterValueMap.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/StringParameter.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/StringParameter.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/StringParameter.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/StringValue.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/StringValue.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/StringValue.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/class-use/FormUrlEncodedMediaType.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/class-use/FormUrlEncodedMediaType.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/class-use/FormUrlEncodedMediaType.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/class-use/IMediaType.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/class-use/IMediaType.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/class-use/IMediaType.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/class-use/JsonMediaType.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/class-use/JsonMediaType.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/class-use/JsonMediaType.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/class-use/Parameter.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/class-use/Parameter.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/class-use/Parameter.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/class-use/ParameterValue.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/class-use/ParameterValue.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/class-use/ParameterValue.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/class-use/ParameterValueArray.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/class-use/ParameterValueArray.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/class-use/ParameterValueArray.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/class-use/ParameterValueMap.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/class-use/ParameterValueMap.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/class-use/ParameterValueMap.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/class-use/StringParameter.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/class-use/StringParameter.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/class-use/StringParameter.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/class-use/StringValue.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/class-use/StringValue.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/class-use/StringValue.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/package-frame.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/package-frame.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/package-frame.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/package-summary.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/package-summary.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/package-summary.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/package-tree.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/package-tree.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/package-tree.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/package-use.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/package-use.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/httpclient/request/package-use.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/package-frame.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/package-frame.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/package-frame.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/package-summary.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/package-summary.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/package-summary.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/package-tree.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/package-tree.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/package-tree.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/package-use.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/package-use.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/package-use.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/ApplicationResourceDTO.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/ApplicationResourceDTO.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/ApplicationResourceDTO.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/BaseResourceDTO.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/BaseResourceDTO.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/BaseResourceDTO.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/CartridgeResourceDTO.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/CartridgeResourceDTO.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/CartridgeResourceDTO.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/CartridgeResourceProperties.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/CartridgeResourceProperties.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/CartridgeResourceProperties.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/CartridgeResourceProperty.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/CartridgeResourceProperty.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/CartridgeResourceProperty.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/DomainResourceDTO.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/DomainResourceDTO.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/DomainResourceDTO.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/EnumDataType.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/EnumDataType.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/EnumDataType.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/EnvironmentVariableResourceDTO.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/EnvironmentVariableResourceDTO.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/EnvironmentVariableResourceDTO.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/GearGroupResourceDTO.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/GearGroupResourceDTO.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/GearGroupResourceDTO.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/GearResourceDTO.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/GearResourceDTO.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/GearResourceDTO.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/IRestResponseFactory.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/IRestResponseFactory.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/IRestResponseFactory.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/KeyResourceDTO.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/KeyResourceDTO.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/KeyResourceDTO.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/Link.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/Link.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/Link.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/LinkParameter.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/LinkParameter.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/LinkParameter.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/LinkParameterType.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/LinkParameterType.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/LinkParameterType.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/OpenShiftJsonDTOFactory.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/OpenShiftJsonDTOFactory.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/OpenShiftJsonDTOFactory.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/RestResponse.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/RestResponse.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/RestResponse.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/UserResourceDTO.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/UserResourceDTO.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/UserResourceDTO.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/ApplicationResourceDTO.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/ApplicationResourceDTO.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/ApplicationResourceDTO.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/BaseResourceDTO.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/BaseResourceDTO.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/BaseResourceDTO.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/CartridgeResourceDTO.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/CartridgeResourceDTO.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/CartridgeResourceDTO.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/CartridgeResourceProperties.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/CartridgeResourceProperties.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/CartridgeResourceProperties.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/CartridgeResourceProperty.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/CartridgeResourceProperty.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/CartridgeResourceProperty.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/DomainResourceDTO.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/DomainResourceDTO.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/DomainResourceDTO.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/EnumDataType.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/EnumDataType.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/EnumDataType.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/EnvironmentVariableResourceDTO.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/EnvironmentVariableResourceDTO.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/EnvironmentVariableResourceDTO.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/GearGroupResourceDTO.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/GearGroupResourceDTO.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/GearGroupResourceDTO.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/GearResourceDTO.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/GearResourceDTO.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/GearResourceDTO.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/IRestResponseFactory.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/IRestResponseFactory.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/IRestResponseFactory.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/KeyResourceDTO.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/KeyResourceDTO.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/KeyResourceDTO.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/Link.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/Link.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/Link.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/LinkParameter.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/LinkParameter.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/LinkParameter.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/LinkParameterType.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/LinkParameterType.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/LinkParameterType.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/OpenShiftJsonDTOFactory.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/OpenShiftJsonDTOFactory.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/OpenShiftJsonDTOFactory.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/RestResponse.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/RestResponse.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/RestResponse.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/UserResourceDTO.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/UserResourceDTO.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/class-use/UserResourceDTO.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/package-frame.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/package-frame.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/package-frame.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/package-summary.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/package-summary.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/package-summary.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/package-tree.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/package-tree.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/package-tree.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/package-use.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/package-use.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/response/package-use.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/ssh/AbstractSSHKey.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/ssh/AbstractSSHKey.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/ssh/AbstractSSHKey.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/ssh/ApplicationPortForwarding.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/ssh/ApplicationPortForwarding.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/ssh/ApplicationPortForwarding.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/ssh/class-use/AbstractSSHKey.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/ssh/class-use/AbstractSSHKey.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/ssh/class-use/AbstractSSHKey.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/ssh/class-use/ApplicationPortForwarding.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/ssh/class-use/ApplicationPortForwarding.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/ssh/class-use/ApplicationPortForwarding.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/ssh/package-frame.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/ssh/package-frame.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/ssh/package-frame.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/ssh/package-summary.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/ssh/package-summary.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/ssh/package-summary.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/ssh/package-tree.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/ssh/package-tree.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/ssh/package-tree.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/ssh/package-use.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/ssh/package-use.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/ssh/package-use.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/Assert.AssertionFailedException.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/Assert.AssertionFailedException.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/Assert.AssertionFailedException.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/Assert.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/Assert.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/Assert.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/CollectionUtils.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/CollectionUtils.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/CollectionUtils.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/IOpenShiftJsonConstants.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/IOpenShiftJsonConstants.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/IOpenShiftJsonConstants.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/IOpenShiftParameterConstants.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/IOpenShiftParameterConstants.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/IOpenShiftParameterConstants.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/StreamUtils.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/StreamUtils.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/StreamUtils.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/StringUtils.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/StringUtils.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/StringUtils.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/UrlUtils.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/UrlUtils.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/UrlUtils.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/class-use/Assert.AssertionFailedException.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/class-use/Assert.AssertionFailedException.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/class-use/Assert.AssertionFailedException.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/class-use/Assert.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/class-use/Assert.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/class-use/Assert.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/class-use/CollectionUtils.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/class-use/CollectionUtils.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/class-use/CollectionUtils.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/class-use/IOpenShiftJsonConstants.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/class-use/IOpenShiftJsonConstants.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/class-use/IOpenShiftJsonConstants.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/class-use/IOpenShiftParameterConstants.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/class-use/IOpenShiftParameterConstants.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/class-use/IOpenShiftParameterConstants.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/class-use/StreamUtils.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/class-use/StreamUtils.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/class-use/StreamUtils.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/class-use/StringUtils.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/class-use/StringUtils.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/class-use/StringUtils.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/class-use/UrlUtils.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/class-use/UrlUtils.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/class-use/UrlUtils.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/package-frame.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/package-frame.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/package-frame.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/package-summary.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/package-summary.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/package-summary.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/package-tree.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/package-tree.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/package-tree.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/package-use.html b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/package-use.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/com/openshift/internal/client/utils/package-use.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/constant-values.html b/.awestruct/dependency-cache/documentation/constant-values.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/constant-values.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/deprecated-list.html b/.awestruct/dependency-cache/documentation/deprecated-list.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/deprecated-list.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/help-doc.html b/.awestruct/dependency-cache/documentation/help-doc.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/help-doc.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/index-all.html b/.awestruct/dependency-cache/documentation/index-all.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/index-all.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/index.html b/.awestruct/dependency-cache/documentation/index.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/index.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/overview-frame.html b/.awestruct/dependency-cache/documentation/overview-frame.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/overview-frame.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/overview-summary.html b/.awestruct/dependency-cache/documentation/overview-summary.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/overview-summary.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/overview-tree.html b/.awestruct/dependency-cache/documentation/overview-tree.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/overview-tree.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/package-list b/.awestruct/dependency-cache/documentation/package-list new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/package-list @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/resources/inherit.gif b/.awestruct/dependency-cache/documentation/resources/inherit.gif new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/resources/inherit.gif @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/serialized-form.html b/.awestruct/dependency-cache/documentation/serialized-form.html new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/serialized-form.html @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/documentation/stylesheet.css b/.awestruct/dependency-cache/documentation/stylesheet.css new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/documentation/stylesheet.css @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/fonts/bootstrap/glyphicons-halflings-regular.eot b/.awestruct/dependency-cache/fonts/bootstrap/glyphicons-halflings-regular.eot new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/fonts/bootstrap/glyphicons-halflings-regular.eot @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/fonts/bootstrap/glyphicons-halflings-regular.svg b/.awestruct/dependency-cache/fonts/bootstrap/glyphicons-halflings-regular.svg new file mode 100644 index 00000000..07f50b77 --- /dev/null +++ b/.awestruct/dependency-cache/fonts/bootstrap/glyphicons-halflings-regular.svg @@ -0,0 +1,2 @@ +ch:d168d50a88c730b4e6830dc0da2a2b51dae4658a77d9619943c27b8ecfc19d1a +kh:4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945 diff --git a/.awestruct/dependency-cache/fonts/bootstrap/glyphicons-halflings-regular.ttf b/.awestruct/dependency-cache/fonts/bootstrap/glyphicons-halflings-regular.ttf new file mode 100644 index 00000000..40804655 --- /dev/null +++ b/.awestruct/dependency-cache/fonts/bootstrap/glyphicons-halflings-regular.ttf @@ -0,0 +1,2 @@ +ch:bd18efd3efd70fec8ad09611a20cdbf99440b2c1d40085c29be036f891d65358 +kh:4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945 diff --git a/.awestruct/dependency-cache/fonts/bootstrap/glyphicons-halflings-regular.woff b/.awestruct/dependency-cache/fonts/bootstrap/glyphicons-halflings-regular.woff new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/fonts/bootstrap/glyphicons-halflings-regular.woff @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/gethelp/index.html b/.awestruct/dependency-cache/gethelp/index.html new file mode 100644 index 00000000..b19d0b23 --- /dev/null +++ b/.awestruct/dependency-cache/gethelp/index.html @@ -0,0 +1,3 @@ +ch: +kh: +c:/_layouts/default.html.haml diff --git a/.awestruct/dependency-cache/getstarted/index.html b/.awestruct/dependency-cache/getstarted/index.html new file mode 100644 index 00000000..b19d0b23 --- /dev/null +++ b/.awestruct/dependency-cache/getstarted/index.html @@ -0,0 +1,3 @@ +ch: +kh: +c:/_layouts/default.html.haml diff --git a/.awestruct/dependency-cache/index.html b/.awestruct/dependency-cache/index.html new file mode 100644 index 00000000..bb3fb831 --- /dev/null +++ b/.awestruct/dependency-cache/index.html @@ -0,0 +1,3 @@ +ch:6833179886d8c4695317ac9981507adf81f2db961199b22f0418b9c4bd87dd1a +kh:9a4b557a9c30ac09ad14b6ee9687e5565429b2525a723dd27087fd011f6b71a3 +c:/_layouts/landing.html.haml diff --git a/.awestruct/dependency-cache/joinus/index.html b/.awestruct/dependency-cache/joinus/index.html new file mode 100644 index 00000000..b19d0b23 --- /dev/null +++ b/.awestruct/dependency-cache/joinus/index.html @@ -0,0 +1,3 @@ +ch: +kh: +c:/_layouts/default.html.haml diff --git a/.awestruct/dependency-cache/js/alignbuttons.js b/.awestruct/dependency-cache/js/alignbuttons.js new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/js/alignbuttons.js @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/js/bootstrap.min.js b/.awestruct/dependency-cache/js/bootstrap.min.js new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/js/bootstrap.min.js @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/js/googleanalytics.js b/.awestruct/dependency-cache/js/googleanalytics.js new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/js/googleanalytics.js @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/js/html5shiv.js b/.awestruct/dependency-cache/js/html5shiv.js new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/js/html5shiv.js @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/js/jquery-1.10.2.min.js b/.awestruct/dependency-cache/js/jquery-1.10.2.min.js new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/js/jquery-1.10.2.min.js @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/js/respond.min.js b/.awestruct/dependency-cache/js/respond.min.js new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/js/respond.min.js @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/js/shBrushJava.js b/.awestruct/dependency-cache/js/shBrushJava.js new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/js/shBrushJava.js @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/js/shBrushXml.js b/.awestruct/dependency-cache/js/shBrushXml.js new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/js/shBrushXml.js @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/js/shCore.js b/.awestruct/dependency-cache/js/shCore.js new file mode 100644 index 00000000..d2817a3f --- /dev/null +++ b/.awestruct/dependency-cache/js/shCore.js @@ -0,0 +1,2 @@ +ch: +kh: diff --git a/.awestruct/dependency-cache/samplecode/index.html b/.awestruct/dependency-cache/samplecode/index.html new file mode 100644 index 00000000..b19d0b23 --- /dev/null +++ b/.awestruct/dependency-cache/samplecode/index.html @@ -0,0 +1,3 @@ +ch: +kh: +c:/_layouts/default.html.haml 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/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..5ebe1279 --- /dev/null +++ b/_config/site.yml @@ -0,0 +1,17 @@ +name: Project Name +title: Baked with Awestruct +org: Organization +base_url: '' +profiles: + 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 + corey: + 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..160ba5af --- /dev/null +++ b/_ext/pipeline.rb @@ -0,0 +1,8 @@ +require 'bootstrap-sass' + +Awestruct::Extensions::Pipeline.new do + # 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..fc640571 --- /dev/null +++ b/_layouts/default.html.haml @@ -0,0 +1,69 @@ +!!!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="../images/favicon.png" rel="shortcut icon") + + %link(href="../css/bootstrap.min.css" rel="stylesheet") + %link(href="../css/prism.css" rel="stylesheet") + %link(href="../css/main.css" rel="stylesheet") + %link(href="../css/topnav.css" rel="stylesheet") + %link(href="../css/SyntaxHighlighter.css" rel="stylesheet") + / IE 6-8 support of HTML 5 elements + /[if lt IE 9] + %script(src="../js/html5shiv.js") + %script(src="../js/respond.min.js") + %script(src="../js/prism.js") + %body + .navbar.navbar-inverse.navbar-fixed-top{:role=>"navigation"} + .container + .navbar-header + %a.navbar-brand{:href=>"../"} OpenShift Java Client + .collapse.navbar-collapse + %ul.nav.navbar-nav + %li + %a.getstarted{:href=>"../getstarted" } Get Started + %li + %a{:href=>"../documentation", :target=>"_blank"} Documentation + %li + %a.samplecode{:href=>"../samplecode"} Sample Code + %li + %a.gethelp{:href=>"../gethelp" } Get Help + %li + %a{:href=>"https://github.com/openshift/openshift-java-client", :target=>"_blank"} Source Code + %li + %a.joinus{:href=>"../joinus"} Join Us + .container + ~ content + .container + %hr + %footer + %a{:href=>"../getstarted"} Get Started + | + %a{:href=>"../documentation", :target=>"_blank" }Documentation + | + %a{:href=>"../samplecode"} Sample Code + | + %a{:href=>"../gethelp"} Get Help + | + %a{:href=>"https://github.com/openshift/openshift-java-client", :target=>"_blank"} Source Code + | + %a{ :href=>"../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="../js/jquery-1.10.2.min.js") + %script(src="../js/bootstrap.min.js") + %script(src="../js/alignbuttons.js") + %script(src="../js/googleanalytics.js") + :javascript + $(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..ca9c2fcc --- /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="./images/favicon.png" rel="shortcut icon") + + %link(href="./css/bootstrap.min.css" rel="stylesheet") + %link(href="./css/prism.css" rel="stylesheet") + %link(href="./css/main.css" rel="stylesheet") + / IE 6-8 support of HTML 5 elements + /[if lt IE 9] + %script(src="./js/html5shiv.js") + %script(src="./js/respond.min.js") + %script(src="./js/prism.js") + %body + + ~ content + .container + %hr + %footer + + %a{:href=>"./getstarted",}Get Started + | + %a{:href=>"./documentation", :target=>"_blank" }Documentation + | + %a{:href=>"./samplecode",} Sample Code + | + %a{:href=>"./gethelp"} Get Help + | + %a{:href=>"https://github.com/openshift/openshift-java-client", :target=>"_blank"} Source Code + | + %a{ :href=>"./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="./js/jquery-1.10.2.min.js") + %script(src="./js/bootstrap.min.js") + %script(src="./js/alignbuttons.js") + %script(src="./js/googleanalytics.js") \ 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 @@ + + + + + + + +All Classes (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + +All Classes +
+ + + + + +
AbstractCartridgeQuery +
+AbstractOpenshiftConfiguration +
+AbstractOpenShiftConnectionFactory +
+AbstractOpenShiftResource +
+AbstractOpenShiftResource.Parameters +
+AbstractSSHKey +
+APIResource +
+ApplicationBuilder +
+ApplicationPortForwarding +
+ApplicationResource +
+ApplicationResource.SshStreams +
+ApplicationResourceDTO +
+ApplicationScale +
+Assert +
+Assert.AssertionFailedException +
+BadRequestException +
+Base64Coder +
+BaseCartridge +
+BaseResourceDTO +
+CartridgePropertyQuery +
+CartridgeResourceDTO +
+CartridgeResourceProperties +
+CartridgeResourceProperty +
+CartridgeType +
+CollectionUtils +
+DefaultConfiguration +
+DomainResource +
+DomainResourceDTO +
+EmbeddableCartridge +
+EmbeddedCartridgeResource +
+EncodingException +
+EnumDataType +
+EnvironmentVariableResource +
+EnvironmentVariableResourceDTO +
+Field +
+FormUrlEncodedMediaType +
+Gear +
+GearGroupResource +
+GearGroupResourceDTO +
+GearProfile +
+GearResourceDTO +
+GearState +
+HostUtils +
+HttpClientException +
+HttpMethod +
+IApplication +
+IApplicationPortForwarding +
+ICartridge +
+IDomain +
+IEmbeddableCartridge +
+IEmbeddedCartridge +
+IEnvironmentVariable +
+IField +
+IGear +
+IGearGroup +
+IGearProfile +
+IHttpClient +
+IMediaType +
+InternalServerErrorException +
+InvalidCredentialsOpenShiftException +
+InvalidNameOpenShiftException +
+IOpenShiftConfiguration +
+IOpenShiftConnection +
+IOpenShiftJsonConstants +
+IOpenShiftParameterConstants +
+IOpenShiftResource +
+IOpenShiftSSHKey +
+IRestResponseFactory +
+IRestService +
+ISeverity +
+ISSHPublicKey +
+IStandaloneCartridge +
+IUser +
+JsonMediaType +
+KeyResourceDTO +
+LatestEmbeddableCartridge +
+LatestStandaloneCartridge +
+LatestVersionOf +
+LatestVersionQuery +
+Link +
+LinkParameter +
+LinkParameterType +
+Message +
+Messages +
+NotFoundException +
+NotFoundOpenShiftException +
+OpenShiftApplicationNotAvailableException +
+OpenShiftConfiguration +
+OpenShiftConnectionFactory +
+OpenShiftEndpointException +
+OpenShiftException +
+OpenShiftJsonDTOFactory +
+OpenShiftRequestException +
+OpenShiftResourceUtils +
+OpenShiftSSHKeyException +
+OpenShiftSSHOperationException +
+OpenShiftTimeoutException +
+OpenShiftUnknonwSSHKeyTypeException +
+Parameter +
+ParameterValue +
+ParameterValueArray +
+ParameterValueMap +
+RestResponse +
+RestService +
+RestServiceProperties +
+RFC822DateUtils +
+Severity +
+SSHKeyPair +
+SSHKeyResource +
+SSHKeyType +
+SSHPublicKey +
+StandaloneCartridge +
+StreamUtils +
+StringParameter +
+StringPropertyQuery +
+StringUtils +
+StringValue +
+SystemConfiguration +
+SystemProperties +
+UnauthorizedException +
+UrlConnectionHttpClient +
+UrlConnectionHttpClientBuilder +
+UrlPropertyQuery +
+UrlUtils +
+UserConfiguration +
+UserResource +
+UserResourceDTO +
+
+ + + diff --git a/documentation/allclasses-noframe.html b/documentation/allclasses-noframe.html new file mode 100644 index 00000000..c553a5e6 --- /dev/null +++ b/documentation/allclasses-noframe.html @@ -0,0 +1,284 @@ + + + + + + + +All Classes (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + +All Classes +
+ + + + + +
AbstractCartridgeQuery +
+AbstractOpenshiftConfiguration +
+AbstractOpenShiftConnectionFactory +
+AbstractOpenShiftResource +
+AbstractOpenShiftResource.Parameters +
+AbstractSSHKey +
+APIResource +
+ApplicationBuilder +
+ApplicationPortForwarding +
+ApplicationResource +
+ApplicationResource.SshStreams +
+ApplicationResourceDTO +
+ApplicationScale +
+Assert +
+Assert.AssertionFailedException +
+BadRequestException +
+Base64Coder +
+BaseCartridge +
+BaseResourceDTO +
+CartridgePropertyQuery +
+CartridgeResourceDTO +
+CartridgeResourceProperties +
+CartridgeResourceProperty +
+CartridgeType +
+CollectionUtils +
+DefaultConfiguration +
+DomainResource +
+DomainResourceDTO +
+EmbeddableCartridge +
+EmbeddedCartridgeResource +
+EncodingException +
+EnumDataType +
+EnvironmentVariableResource +
+EnvironmentVariableResourceDTO +
+Field +
+FormUrlEncodedMediaType +
+Gear +
+GearGroupResource +
+GearGroupResourceDTO +
+GearProfile +
+GearResourceDTO +
+GearState +
+HostUtils +
+HttpClientException +
+HttpMethod +
+IApplication +
+IApplicationPortForwarding +
+ICartridge +
+IDomain +
+IEmbeddableCartridge +
+IEmbeddedCartridge +
+IEnvironmentVariable +
+IField +
+IGear +
+IGearGroup +
+IGearProfile +
+IHttpClient +
+IMediaType +
+InternalServerErrorException +
+InvalidCredentialsOpenShiftException +
+InvalidNameOpenShiftException +
+IOpenShiftConfiguration +
+IOpenShiftConnection +
+IOpenShiftJsonConstants +
+IOpenShiftParameterConstants +
+IOpenShiftResource +
+IOpenShiftSSHKey +
+IRestResponseFactory +
+IRestService +
+ISeverity +
+ISSHPublicKey +
+IStandaloneCartridge +
+IUser +
+JsonMediaType +
+KeyResourceDTO +
+LatestEmbeddableCartridge +
+LatestStandaloneCartridge +
+LatestVersionOf +
+LatestVersionQuery +
+Link +
+LinkParameter +
+LinkParameterType +
+Message +
+Messages +
+NotFoundException +
+NotFoundOpenShiftException +
+OpenShiftApplicationNotAvailableException +
+OpenShiftConfiguration +
+OpenShiftConnectionFactory +
+OpenShiftEndpointException +
+OpenShiftException +
+OpenShiftJsonDTOFactory +
+OpenShiftRequestException +
+OpenShiftResourceUtils +
+OpenShiftSSHKeyException +
+OpenShiftSSHOperationException +
+OpenShiftTimeoutException +
+OpenShiftUnknonwSSHKeyTypeException +
+Parameter +
+ParameterValue +
+ParameterValueArray +
+ParameterValueMap +
+RestResponse +
+RestService +
+RestServiceProperties +
+RFC822DateUtils +
+Severity +
+SSHKeyPair +
+SSHKeyResource +
+SSHKeyType +
+SSHPublicKey +
+StandaloneCartridge +
+StreamUtils +
+StringParameter +
+StringPropertyQuery +
+StringUtils +
+StringValue +
+SystemConfiguration +
+SystemProperties +
+UnauthorizedException +
+UrlConnectionHttpClient +
+UrlConnectionHttpClientBuilder +
+UrlPropertyQuery +
+UrlUtils +
+UserConfiguration +
+UserResource +
+UserResourceDTO +
+
+ + + diff --git a/documentation/com/openshift/client/ApplicationBuilder.CartridgeHolder.html b/documentation/com/openshift/client/ApplicationBuilder.CartridgeHolder.html new file mode 100644 index 00000000..fb44392c --- /dev/null +++ b/documentation/com/openshift/client/ApplicationBuilder.CartridgeHolder.html @@ -0,0 +1,256 @@ + + + + + + + +ApplicationBuilder.CartridgeHolder (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +


+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client +
+Class ApplicationBuilder.CartridgeHolder

+
+java.lang.Object
+  extended by com.openshift.client.ApplicationBuilder.CartridgeHolder
+
+
+
Enclosing class:
ApplicationBuilder
+
+
+
+
public class ApplicationBuilder.CartridgeHolder
extends Object
+
+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
ApplicationBuilder.CartridgeHolder() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ ApplicationBuilder.NamedCartridgeHoldersetName(String name) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ApplicationBuilder.CartridgeHolder

+
+public ApplicationBuilder.CartridgeHolder()
+
+
+ + + + + + + + +
+Method Detail
+ +

+setName

+
+public ApplicationBuilder.NamedCartridgeHolder setName(String name)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/ApplicationBuilder.NamedCartridgeHolder.html b/documentation/com/openshift/client/ApplicationBuilder.NamedCartridgeHolder.html new file mode 100644 index 00000000..ecf59ce9 --- /dev/null +++ b/documentation/com/openshift/client/ApplicationBuilder.NamedCartridgeHolder.html @@ -0,0 +1,313 @@ + + + + + + + +ApplicationBuilder.NamedCartridgeHolder (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client +
+Class ApplicationBuilder.NamedCartridgeHolder

+
+java.lang.Object
+  extended by com.openshift.client.ApplicationBuilder.NamedCartridgeHolder
+
+
+
Enclosing class:
ApplicationBuilder
+
+
+
+
public class ApplicationBuilder.NamedCartridgeHolder
extends Object
+
+ +

+


+ +

+ + + + + + + + + + + +
+Constructor Summary
ApplicationBuilder.NamedCartridgeHolder() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ IApplicationbuild() + +
+           
+ ApplicationBuilder.NamedCartridgeHoldersetApplicationScale(ApplicationScale applicationScale) + +
+           
+ ApplicationBuilder.NamedCartridgeHoldersetGearProfile(IGearProfile gearProfile) + +
+           
+ ApplicationBuilder.NamedCartridgeHoldersetInitialGitUrl(String initialGitUrl) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ApplicationBuilder.NamedCartridgeHolder

+
+public ApplicationBuilder.NamedCartridgeHolder()
+
+
+ + + + + + + + +
+Method Detail
+ +

+setGearProfile

+
+public ApplicationBuilder.NamedCartridgeHolder setGearProfile(IGearProfile gearProfile)
+
+
+
+
+
+
+ +

+setApplicationScale

+
+public ApplicationBuilder.NamedCartridgeHolder setApplicationScale(ApplicationScale applicationScale)
+
+
+
+
+
+
+ +

+setInitialGitUrl

+
+public ApplicationBuilder.NamedCartridgeHolder setInitialGitUrl(String initialGitUrl)
+
+
+
+
+
+
+ +

+build

+
+public IApplication build()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/ApplicationBuilder.html b/documentation/com/openshift/client/ApplicationBuilder.html new file mode 100644 index 00000000..6eba0617 --- /dev/null +++ b/documentation/com/openshift/client/ApplicationBuilder.html @@ -0,0 +1,278 @@ + + + + + + + +ApplicationBuilder (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client +
+Class ApplicationBuilder

+
+java.lang.Object
+  extended by com.openshift.client.ApplicationBuilder
+
+
+
+
public class ApplicationBuilder
extends Object
+
+ +

+


+ +

+ + + + + + + + + + + + + + + +
+Nested Class Summary
+ classApplicationBuilder.CartridgeHolder + +
+           
+ classApplicationBuilder.NamedCartridgeHolder + +
+           
+  + + + + + + + + + + +
+Constructor Summary
ApplicationBuilder(IDomain domain) + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ ApplicationBuilder.CartridgeHoldersetCartridge(IStandaloneCartridge cartridge) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ApplicationBuilder

+
+public ApplicationBuilder(IDomain domain)
+
+
+ + + + + + + + +
+Method Detail
+ +

+setCartridge

+
+public ApplicationBuilder.CartridgeHolder setCartridge(IStandaloneCartridge cartridge)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/ApplicationScale.html b/documentation/com/openshift/client/ApplicationScale.html new file mode 100644 index 00000000..116456b6 --- /dev/null +++ b/documentation/com/openshift/client/ApplicationScale.html @@ -0,0 +1,369 @@ + + + + + + + +ApplicationScale (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client +
+Enum ApplicationScale

+
+java.lang.Object
+  extended by java.lang.Enum<ApplicationScale>
+      extended by com.openshift.client.ApplicationScale
+
+
+
All Implemented Interfaces:
Serializable, Comparable<ApplicationScale>
+
+
+
+
public enum ApplicationScale
extends Enum<ApplicationScale>
+
+ +

+Enum to indicate the support for scalability when creating a new application +

+ +

+

+
Author:
+
Xavier Coulon
+
+
+ +

+ + + + + + + + + + + + + +
+Enum Constant Summary
NO_SCALE + +
+           
SCALE + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetValue() + +
+           
+static ApplicationScalesafeValueOf(String value) + +
+           
+static ApplicationScalevalueOf(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
+ +

+SCALE

+
+public static final ApplicationScale SCALE
+
+
+
+
+
+ +

+NO_SCALE

+
+public static final ApplicationScale NO_SCALE
+
+
+
+
+ + + + + + + + +
+Method Detail
+ +

+values

+
+public static ApplicationScale[] values()
+
+
Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
+for (ApplicationScale c : ApplicationScale.values())
+    System.out.println(c);
+
+

+

+ +
Returns:
an array containing the constants of this enum type, in +the order they are declared
+
+
+
+ +

+valueOf

+
+public static ApplicationScale valueOf(String name)
+
+
Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.) +

+

+
Parameters:
name - the name of the enum constant to be returned. +
Returns:
the enum constant with the specified name +
Throws: +
IllegalArgumentException - if this enum type has no constant +with the specified name +
NullPointerException - if the argument is null
+
+
+
+ +

+safeValueOf

+
+public static ApplicationScale safeValueOf(String value)
+
+
+
+
+
+
+ +

+getValue

+
+public String getValue()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/GearState.html b/documentation/com/openshift/client/GearState.html new file mode 100644 index 00000000..18384151 --- /dev/null +++ b/documentation/com/openshift/client/GearState.html @@ -0,0 +1,424 @@ + + + + + + + +GearState (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client +
+Enum GearState

+
+java.lang.Object
+  extended by java.lang.Enum<GearState>
+      extended by com.openshift.client.GearState
+
+
+
All Implemented Interfaces:
Serializable, Comparable<GearState>
+
+
+
+
public enum GearState
extends Enum<GearState>
+ + +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Enum Constant Summary
BUILDING + +
+           
DEPLOYING + +
+           
IDLE + +
+           
NEW + +
+           
STARTED + +
+           
STOPPED + +
+           
UNKNOWN + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static GearStatesafeValueOf(String gearStateString) + +
+           
+static GearStatevalueOf(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
+ +

+BUILDING

+
+public static final GearState BUILDING
+
+
+
See Also:
OpenShift + Origin Cartridge Developer’s Guide, 7.10.2. The status Action
+
+
+ +

+DEPLOYING

+
+public static final GearState DEPLOYING
+
+
+
+
+
+ +

+IDLE

+
+public static final GearState IDLE
+
+
+
+
+
+ +

+NEW

+
+public static final GearState NEW
+
+
+
+
+
+ +

+STARTED

+
+public static final GearState STARTED
+
+
+
+
+
+ +

+STOPPED

+
+public static final GearState STOPPED
+
+
+
+
+
+ +

+UNKNOWN

+
+public static final GearState UNKNOWN
+
+
+
+
+ + + + + + + + +
+Method Detail
+ +

+values

+
+public static GearState[] values()
+
+
Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
+for (GearState c : GearState.values())
+    System.out.println(c);
+
+

+

+ +
Returns:
an array containing the constants of this enum type, in +the order they are declared
+
+
+
+ +

+valueOf

+
+public static GearState valueOf(String name)
+
+
Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.) +

+

+
Parameters:
name - the name of the enum constant to be returned. +
Returns:
the enum constant with the specified name +
Throws: +
IllegalArgumentException - if this enum type has no constant +with the specified name +
NullPointerException - if the argument is null
+
+
+
+ +

+safeValueOf

+
+public static GearState safeValueOf(String gearStateString)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/HttpMethod.html b/documentation/com/openshift/client/HttpMethod.html new file mode 100644 index 00000000..7932c561 --- /dev/null +++ b/documentation/com/openshift/client/HttpMethod.html @@ -0,0 +1,407 @@ + + + + + + + +HttpMethod (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client +
+Enum HttpMethod

+
+java.lang.Object
+  extended by java.lang.Enum<HttpMethod>
+      extended by com.openshift.client.HttpMethod
+
+
+
All Implemented Interfaces:
Serializable, Comparable<HttpMethod>
+
+
+
+
public enum HttpMethod
extends Enum<HttpMethod>
+ + +

+

+
Author:
+
Andre Dietisheim
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Enum Constant Summary
DELETE + +
+           
GET + +
+           
HEAD + +
+           
OPTIONS + +
+           
PATCH + +
+           
POST + +
+           
PUT + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+static HttpMethodvalueOf(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
+ +

+GET

+
+public static final HttpMethod GET
+
+
+
+
+
+ +

+POST

+
+public static final HttpMethod POST
+
+
+
+
+
+ +

+PUT

+
+public static final HttpMethod PUT
+
+
+
+
+
+ +

+DELETE

+
+public static final HttpMethod DELETE
+
+
+
+
+
+ +

+PATCH

+
+public static final HttpMethod PATCH
+
+
+
+
+
+ +

+HEAD

+
+public static final HttpMethod HEAD
+
+
+
+
+
+ +

+OPTIONS

+
+public static final HttpMethod OPTIONS
+
+
+
+
+ + + + + + + + +
+Method Detail
+ +

+values

+
+public static HttpMethod[] values()
+
+
Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
+for (HttpMethod c : HttpMethod.values())
+    System.out.println(c);
+
+

+

+ +
Returns:
an array containing the constants of this enum type, in +the order they are declared
+
+
+
+ +

+valueOf

+
+public static HttpMethod valueOf(String name)
+
+
Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.) +

+

+
Parameters:
name - the name of the enum constant to be returned. +
Returns:
the enum constant with the specified name +
Throws: +
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 +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/IApplication.html b/documentation/com/openshift/client/IApplication.html new file mode 100644 index 00000000..b0a020a6 --- /dev/null +++ b/documentation/com/openshift/client/IApplication.html @@ -0,0 +1,1673 @@ + + + + + + + +IApplication (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client +
+Interface IApplication

+
+
All Superinterfaces:
IOpenShiftResource
+
+
+
All Known Implementing Classes:
ApplicationResource
+
+
+
+
public interface IApplication
extends IOpenShiftResource
+ + +

+

+
Author:
+
André Dietisheim, Syed Iqbal, Martes G Wigglesworth
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidaddAlias(String string) + +
+          Add application alias
+ IEmbeddedCartridgeaddEmbeddableCartridge(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.
+ IEnvironmentVariableaddEnvironmentVariable(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
+ booleancanGetEnvironmentVariables() + +
+          Used to determine if environment variables exist and are available to be retrieved
+ booleancanUpdateEnvironmentVariables() + +
+          Used to determine if the current instance is able to update environment variables.
+ voiddestroy() + +
+          Destroys this application (and removes it from the list of available + applications)
+ List<String>getAliases() + +
+          Retrieve all application aliases
+ ApplicationScalegetApplicationScale() + +
+          Returns true if scaling is enabled on this application (only set at + creation time).
+ StringgetApplicationUrl() + +
+          Returns the url at which this application may be reached at.
+ IStandaloneCartridgegetCartridge() + +
+          Returns the cartridge (application type) that this app is running on.
+ DategetCreationTime() + +
+          Returns the timestamp at which this app was created.
+ IDomaingetDomain() + +
+          Get the domain of the application.
+ IEmbeddedCartridgegetEmbeddedCartridge(IEmbeddableCartridge cartridge) + +
+          Returns the embedded cartridge in this application.
+ IEmbeddedCartridgegetEmbeddedCartridge(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.
+ IEnvironmentVariablegetEnvironmentVariable(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.
+ IGearProfilegetGearProfile() + +
+          Returns true if scaling is enabled on this application (only set at + creation time).
+ StringgetGitUrl() + +
+          Returns the uri at which the git repository of this application may be + reached at.
+ StringgetInitialGitUrl() + +
+          Returns the git url that the application will get its initial code and configuration from.
+ StringgetName() + +
+          Returns the name of this application.
+ com.jcraft.jsch.SessiongetSSHSession() + +
+          Returns the SSH session that this application uses to connect to + OpenShift.
+ StringgetSshUrl() + +
+          Returns the url to use to connect with ssh.
+ StringgetUUID() + +
+          Returns the uuid of this application.
+ booleanhasAlias(String name) + +
+           
+ booleanhasEmbeddedCartridge(IEmbeddableCartridge cartridge) + +
+          Returns true if this application has an embedded cartridge.
+ booleanhasEmbeddedCartridge(String cartridgeName) + +
+          Returns true if this application has an embedded cartridge.
+ booleanhasEnvironmentVariable(String name) + +
+          Checks if the environment variable is present in the application.
+ booleanhasSSHSession() + +
+          Returns true if the application was already provided with an SSH session, + and this session is still valid (connected).
+ booleanisPortFowardingStarted() + +
+          Returns true if the port-forwarding has been started, false otherwise.
+ voidrefresh() + +
+          Refresh the application but reloading its content from OpenShift.
+ List<IApplicationPortForwarding>refreshForwardablePorts() + +
+          Refreshes the list of port-forwarding.
+ voidremoveAlias(String alias) + +
+          Remove application alias
+ voidremoveEmbeddedCartridge(IEmbeddableCartridge cartridge) + +
+          Removes the given embedded cartridge that is equal to the given + embeddable cartridge.
+ voidremoveEmbeddedCartridges(Collection<IEmbeddableCartridge> cartridges) + +
+          Removes the given embedded cartridges in this application that are equal to the + given IEmbeddableCartridge.
+ voidremoveEnvironmentVariable(IEnvironmentVariable environmentVariable) + +
+          Removes the environment variables with the given name from this application.
+ voidremoveEnvironmentVariable(String name) + +
+          Removes the environment variables with the given name from this application.
+ voidrestart() + +
+          Restarts this application.
+ voidscaleDown() + +
+          Scale down application
+ voidscaleUp() + +
+          Scale up application
+ voidsetSSHSession(com.jcraft.jsch.Session session) + +
+          Sets the SSH session that this application will use to connect to + OpenShift to perform some operations.
+ voidstart() + +
+          Starts this application.
+ List<IApplicationPortForwarding>startPortForwarding() + +
+           
+ voidstop() + +
+          Stops this application.
+ voidstop(boolean force) + +
+          Stops this application
+ List<IApplicationPortForwarding>stopPortForwarding() + +
+          Stop the port-forwarding for all ports.
+ booleanwaitForAccessible(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
+ +

+getName

+
+String getName()
+
+
Returns the name of this application. +

+

+
+
+
+ +
Returns:
+
+
+
+ +

+getUUID

+
+String getUUID()
+
+
Returns the uuid of this application. +

+

+
+
+
+ +
Returns:
the uuid of this application.
+
+
+
+ +

+getGitUrl

+
+String getGitUrl()
+
+
Returns the uri at which the git repository of this application may be + reached at. +

+

+
+
+
+ +
Returns:
the uri of the git repo of this application.
+
+
+
+ +

+getSshUrl

+
+String getSshUrl()
+
+
Returns the url to use to connect with ssh. +

+

+
+
+
+ +
Returns:
the url to use to connect with ssh.
+
+
+
+ +

+getInitialGitUrl

+
+String getInitialGitUrl()
+
+
Returns the git url that the application will get its initial code and configuration from. +

+

+
+
+
+ +
Returns:
the initial git url
+
+
+
+ +

+getApplicationUrl

+
+String getApplicationUrl()
+
+
Returns the url at which this application may be reached at. +

+

+
+
+
+ +
Returns:
the url of this application.
+
+
+
+ +

+getApplicationScale

+
+ApplicationScale getApplicationScale()
+
+
Returns true if scaling is enabled on this application (only set at + creation time). +

+

+
+
+
+ +
Returns:
true if scaling is enabled on this application (only set at + creation time).
+
+
+
+ +

+getGearProfile

+
+IGearProfile getGearProfile()
+
+
Returns true if scaling is enabled on this application (only set at + creation time). +

+

+
+
+
+ +
Returns:
true if scaling is enabled on this application (only set at + creation time).
+
+
+
+ +

+getCartridge

+
+IStandaloneCartridge getCartridge()
+
+
Returns the cartridge (application type) that this app is running on. +

+

+
+
+
+ +
Returns:
the cartridge of this application
+
+
+
+ +

+addEmbeddableCartridge

+
+IEmbeddedCartridge addEmbeddableCartridge(IEmbeddableCartridge cartridge)
+                                          throws OpenShiftException
+
+
Adds the given embeddable cartridge to this application. +

+

+
+
+
+
Parameters:
cartridge - +
Throws: +
OpenShiftException
+
+
+
+ +

+addEmbeddableCartridges

+
+List<IEmbeddedCartridge> addEmbeddableCartridges(Collection<IEmbeddableCartridge> cartridge)
+                                                 throws OpenShiftException
+
+
Adds all given embedded cartridges from this app, given their names. +

+

+
+
+
+
Parameters:
embeddedCartridges - +
Throws: +
OpenShiftException
See Also:
#addEmbeddableCartridge(IEmbeddedCartridge), +#removeEmbeddedCartridge(IEmbeddedCartridge)
+
+
+
+ +

+getEmbeddedCartridges

+
+List<IEmbeddedCartridge> getEmbeddedCartridges()
+                                               throws OpenShiftException
+
+
Returns all embedded cartridges. +

+

+
+
+
+ +
Returns:
all embedded cartridges. +
Throws: +
OpenShiftException
See Also:
IEmbeddedCartridge, +#addEmbeddableCartridge(IEmbeddedCartridge), +#removeEmbeddedCartridge(IEmbeddedCartridge)
+
+
+
+ +

+hasEmbeddedCartridge

+
+boolean hasEmbeddedCartridge(IEmbeddableCartridge cartridge)
+                             throws OpenShiftException
+
+
Returns true if this application has an embedded cartridge. + Returns false otherwise. +

+

+
+
+
+
Parameters:
the - name of the cartridge to look for +
Returns:
true if there's an embedded cartridge with the given name +
Throws: +
OpenShiftException
See Also:
IEmbeddedCartridge, +#addEmbeddableCartridge(IEmbeddedCartridge), +#removeEmbeddedCartridge(IEmbeddedCartridge)
+
+
+
+ +

+hasEmbeddedCartridge

+
+boolean hasEmbeddedCartridge(String cartridgeName)
+                             throws OpenShiftException
+
+
Returns true if this application has an embedded cartridge. + Returns false otherwise. +

+

+
+
+
+
Parameters:
the - name of the cartridge to look for +
Returns:
true if there's an embedded cartridge with the given name +
Throws: +
OpenShiftException
See Also:
IEmbeddedCartridge, +#addEmbeddableCartridge(IEmbeddedCartridge), +#removeEmbeddedCartridge(IEmbeddedCartridge)
+
+
+
+ +

+getEmbeddedCartridge

+
+IEmbeddedCartridge getEmbeddedCartridge(String cartridgeName)
+                                        throws OpenShiftException
+
+
Returns the embedded cartridge given its name. Returns null + if none was found. +

+

+
+
+
+
Parameters:
cartridgeName - +
Returns:
the embedded cartridge with the given name +
Throws: +
OpenShiftException
+
+
+
+ +

+getEmbeddedCartridge

+
+IEmbeddedCartridge getEmbeddedCartridge(IEmbeddableCartridge cartridge)
+                                        throws OpenShiftException
+
+
Returns the embedded cartridge in this application. Returns null if none was + found. +

+

+
+
+
+
Parameters:
cartridge - +
Returns:
the embedded cartridge +
Throws: +
OpenShiftException
+
+
+
+ +

+removeEmbeddedCartridge

+
+void removeEmbeddedCartridge(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. +

+

+
+
+
+
Parameters:
cartridge - the cartridge that shall be removed +
Throws: +
OpenShiftException
+
+
+
+ +

+removeEmbeddedCartridges

+
+void removeEmbeddedCartridges(Collection<IEmbeddableCartridge> cartridges)
+                              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. +

+

+
+
+
+
Parameters:
cartridges - the cartridges that shall get removed +
Throws: +
OpenShiftException
+
+
+
+ +

+getGearGroups

+
+Collection<IGearGroup> getGearGroups()
+                                     throws OpenShiftException
+
+
Returns the gear groups for this application. + The collection is never cached, so each call will trigger a request to the OpenShift Broker. +

+

+
+
+
+ +
Returns:
the collection of IGearGroup for this application. +
Throws: +
OpenShiftException
+
+
+
+ +

+getCreationTime

+
+Date getCreationTime()
+
+
Returns the timestamp at which this app was created. +

+

+
+
+
+ +
Returns:
the creation time +
Throws: +
OpenShiftException
+
+
+
+ +

+destroy

+
+void destroy()
+             throws OpenShiftException
+
+
Destroys this application (and removes it from the list of available + applications) +

+

+
+
+
+ +
Throws: +
OpenShiftException
See Also:
IUser#getApplications()
+
+
+
+ +

+start

+
+void start()
+           throws OpenShiftException
+
+
Starts this application. Has no effect if this app is already running. +

+

+
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+restart

+
+void restart()
+             throws OpenShiftException
+
+
Restarts this application. +

+

+
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+stop

+
+void stop()
+          throws OpenShiftException
+
+
Stops this application. +

+

+
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+stop

+
+void stop(boolean force)
+          throws OpenShiftException
+
+
Stops this application +

+

+
+
+
+
Parameters:
force - : true to force stop, false otherwise +
Throws: +
OpenShiftException
+
+
+
+ +

+waitForAccessible

+
+boolean waitForAccessible(long timeout)
+                          throws OpenShiftException
+
+
Waits for this application to become accessible on its public url. +

+

+
+
+
+
Parameters:
timeout - +
Returns:
+
Throws: +
OpenShiftException
See Also:
getApplicationUrl()
+
+
+
+ +

+waitForAccessibleAsync

+
+Future<Boolean> waitForAccessibleAsync(long timeout)
+                                       throws OpenShiftException
+
+
Returns a Future that the caller can use to wait for the application to + become accessible on its public url. +

+

+
+
+
+
Parameters:
timeout - +
Returns:
+
Throws: +
OpenShiftException
See Also:
getApplicationUrl(), +waitForAccessible(long), +IOpenShiftConnection.getExecutorService(), +Future
+
+
+
+ +

+getDomain

+
+IDomain getDomain()
+
+
Get the domain of the application. +

+

+
+
+
+ +
Returns:
the domain
+
+
+
+ +

+scaleDown

+
+void scaleDown()
+               throws OpenShiftException
+
+
Scale down application +

+

+
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+scaleUp

+
+void scaleUp()
+             throws OpenShiftException
+
+
Scale up application +

+

+
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+addAlias

+
+void addAlias(String string)
+              throws OpenShiftException
+
+
Add application alias +

+

+
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+getAliases

+
+List<String> getAliases()
+
+
Retrieve all application aliases +

+

+
+
+
+ +
Returns:
application aliases in an unmodifiable collection
+
+
+
+ +

+hasAlias

+
+boolean hasAlias(String name)
+
+
+
+
+
+
+
+
+
+ +

+removeAlias

+
+void removeAlias(String alias)
+                 throws OpenShiftException
+
+
Remove application alias +

+

+
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+refresh

+
+void refresh()
+             throws OpenShiftException
+
+
Refresh the application but reloading its content from OpenShift. At the + same time, this operation automatically set the embedded cartridges back + to an 'unloaded' state. +

+

+
Specified by:
refresh in interface IOpenShiftResource
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+setSSHSession

+
+void setSSHSession(com.jcraft.jsch.Session session)
+
+
Sets the SSH session that this application will use to connect to + OpenShift to perform some operations. This SSH session must be + initialized out of the library, since the user's SSH settings may depend + on the runtime environment (Eclipse, etc.). +

+

+
+
+
+
Parameters:
session - the SSH session
+
+
+
+ +

+getSSHSession

+
+com.jcraft.jsch.Session getSSHSession()
+
+
Returns the SSH session that this application uses to connect to + OpenShift. +

+

+
+
+
+ +
Returns:
the SSH session that this application uses to connect to + OpenShift.
+
+
+
+ +

+hasSSHSession

+
+boolean hasSSHSession()
+
+
Returns true if the application was already provided with an SSH session, + and this session is still valid (connected). +

+

+
+
+
+ +
Returns:
true if the application was already provided with an SSH session, + and this session is still valid (connected).
+
+
+
+ +

+isPortFowardingStarted

+
+boolean isPortFowardingStarted()
+                               throws OpenShiftSSHOperationException
+
+
Returns true if the port-forwarding has been started, false otherwise. +

+

+
+
+
+ +
Returns:
true if the port-forwarding has been started, false otherwise. +
Throws: +
OpenShiftSSHOperationException
+
+
+
+ +

+getForwardablePorts

+
+List<IApplicationPortForwarding> getForwardablePorts()
+                                                     throws OpenShiftSSHOperationException
+
+
Returns the list of forwardable ports on OpenShift for this application. +

+

+
+
+
+ +
Returns:
the list of forwardable ports on OpenShift for this application. +
Throws: +
OpenShiftSSHOperationException
+
+
+
+ +

+startPortForwarding

+
+List<IApplicationPortForwarding> startPortForwarding()
+                                                     throws OpenShiftSSHOperationException
+
+
+
+
+
+ +
Returns:
the list of forwardable ports on OpenShift for this application. +
Throws: +
com.jcraft.jsch.JSchException +
OpenShiftSSHOperationException
+
+
+
+ +

+stopPortForwarding

+
+List<IApplicationPortForwarding> stopPortForwarding()
+                                                    throws OpenShiftSSHOperationException
+
+
Stop the port-forwarding for all ports. +

+

+
+
+
+ +
Returns:
the list of forwardable ports on OpenShift for this application. +
Throws: +
OpenShiftSSHOperationException
+
+
+
+ +

+refreshForwardablePorts

+
+List<IApplicationPortForwarding> refreshForwardablePorts()
+                                                         throws OpenShiftSSHOperationException
+
+
Refreshes the list of port-forwarding. Started ones are kept as-is. +

+

+
+
+
+ +
Returns:
the list of forwardable ports on OpenShift for this application. +
Throws: +
OpenShiftSSHOperationException
+
+
+
+ +

+getEnvironmentProperties

+
+List<String> getEnvironmentProperties()
+                                      throws OpenShiftSSHOperationException
+
+
Retrieves the list of environment properties. +

+

+
+
+
+ +
Returns:
the list of environment properties. +
Throws: +
OpenShiftSSHOperationException
+
+
+
+ +

+getEnvironmentVariables

+
+Map<String,IEnvironmentVariable> getEnvironmentVariables()
+                                                         throws OpenShiftSSHOperationException
+
+
Retrieves the map of environment variables +

+

+
+
+
+ +
Returns:
the Map of environment variables +
Throws: +
OpenShiftSSHOperationException
+
+
+
+ +

+hasEnvironmentVariable

+
+boolean hasEnvironmentVariable(String name)
+                               throws OpenShiftException
+
+
Checks if the environment variable is present in the application. +

+

+
+
+
+
Parameters:
name - Name of the environment variable +
Returns:
true if the current instance has IEnvironmentVariables to return
+ false if the current instance has no IEnvironmentVariables to return +
Throws: +
OpenShiftSSHOperationException +
OpenShiftException
+
+
+
+ +

+addEnvironmentVariable

+
+IEnvironmentVariable addEnvironmentVariable(String name,
+                                            String value)
+                                            throws OpenShiftException
+
+
Adds an environment variable to this application. +

+

+
+
+
+
Parameters:
name - key associated with the variable to add
value - value of the new variable +
Throws: +
OpenShiftSSHOperationException - - if the variable already exists +
OpenShiftException
+
+
+
+ +

+addEnvironmentVariables

+
+Map<String,IEnvironmentVariable> addEnvironmentVariables(Map<String,String> environmentVariables)
+                                                         throws OpenShiftException
+
+
Adds a map of environment variables to the application +

+

+
+
+
+
Parameters:
environmentVariables - Map of environment variables +
Throws: +
OpenShiftSSHOperationException +
OpenShiftException
+
+
+
+ +

+getEnvironmentVariable

+
+IEnvironmentVariable getEnvironmentVariable(String name)
+                                            throws OpenShiftException
+
+
Return the environment variable for the specified name +

+

+
+
+
+
Parameters:
name - key to be used to locate the environment variable +
Returns:
IEnvironmentVariable associated with the provided key +
Throws: +
OpenShiftSSHOperationException - - thrown if the key does not exist +
OpenShiftException
+
+
+
+ +

+removeEnvironmentVariable

+
+void removeEnvironmentVariable(String name)
+                               throws OpenShiftException
+
+
Removes the environment variables with the given name from this application. +

+

+
+
+
+
Parameters:
name - key associated with the IEnvironmentVariable to be removed +
Throws: +
OpenShiftException - - thrown if there is no IEnvironmentVariable associated with the explicit parameter.
+
+
+
+ +

+removeEnvironmentVariable

+
+void removeEnvironmentVariable(IEnvironmentVariable environmentVariable)
+
+
Removes the environment variables with the given name from this application. +

+

+
+
+
+
Parameters:
environmentVariable - IEnvironmentVariable instance which should be removed +
Throws: +
OpenShiftException - - thrown if there is no instance of IEnvironmentVariable available to be removed
+
+
+
+ +

+canGetEnvironmentVariables

+
+boolean canGetEnvironmentVariables()
+
+
Used to determine if environment variables exist and are available to be retrieved +

+

+
+
+
+ +
Returns:
Returns true if this application can list its environment variables.
+ Returns false if it cannot. Internally this translates to the presence of the link to list environment variables.
See Also:
#getEnvironmentVariablesMap(), +getEnvironmentVariable(String), +ApplicationResource.LINK_LIST_ENVIRONMENT_VARIABLES
+
+
+
+ +

+canUpdateEnvironmentVariables

+
+boolean canUpdateEnvironmentVariables()
+
+
Used to determine if the current instance is able to update environment variables. +

+

+
+
+
+ +
Returns:
Returns true if this application can augment its environment variables.
+ Returns false if it cannot.
See Also:
addEnvironmentVariable(String, String), +addEnvironmentVariables(Map), +ApplicationResource.LINK_SET_UNSET_ENVIRONMENT_VARIABLES
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/IApplicationPortForwarding.html b/documentation/com/openshift/client/IApplicationPortForwarding.html new file mode 100644 index 00000000..d03079a3 --- /dev/null +++ b/documentation/com/openshift/client/IApplicationPortForwarding.html @@ -0,0 +1,400 @@ + + + + + + + +IApplicationPortForwarding (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client +
+Interface IApplicationPortForwarding

+
+
All Known Implementing Classes:
ApplicationPortForwarding
+
+
+
+
public interface IApplicationPortForwarding
+ + +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetLocalAddress() + +
+           
+ intgetLocalPort() + +
+           
+ StringgetName() + +
+           
+ StringgetRemoteAddress() + +
+           
+ intgetRemotePort() + +
+           
+ booleanisStarted(com.jcraft.jsch.Session session) + +
+           
+ voidsetLocalAddress(String localAddress) + +
+           
+ voidsetLocalPort(int localPort) + +
+           
+ voidstart(com.jcraft.jsch.Session session) + +
+          Start the binding, ie, open a SSH tunnel between local address:port and remote address:port.
+ voidstop(com.jcraft.jsch.Session session) + +
+          Stop the SSH tunnel.
+  +

+ + + + + + + + +
+Method Detail
+ +

+start

+
+void start(com.jcraft.jsch.Session session)
+           throws OpenShiftSSHOperationException
+
+
Start the binding, ie, open a SSH tunnel between local address:port and remote address:port. +

+

+ +
Throws: +
OpenShiftSSHOperationException
+
+
+
+ +

+stop

+
+void stop(com.jcraft.jsch.Session session)
+          throws OpenShiftSSHOperationException
+
+
Stop the SSH tunnel. +

+

+ +
Throws: +
OpenShiftSSHOperationException
+
+
+
+ +

+isStarted

+
+boolean isStarted(com.jcraft.jsch.Session session)
+                  throws OpenShiftSSHOperationException
+
+
+ +
Returns:
true if the SSH tunnel is open, false otherwise. +
Throws: +
OpenShiftSSHOperationException
+
+
+
+ +

+getName

+
+String getName()
+
+
+ +
Returns:
the name
+
+
+
+ +

+getLocalAddress

+
+String getLocalAddress()
+
+
+ +
Returns:
the localAddress
+
+
+
+ +

+setLocalAddress

+
+void setLocalAddress(String localAddress)
+
+
+
Parameters:
localAddress - the localAddress to set
+
+
+
+ +

+getLocalPort

+
+int getLocalPort()
+
+
+ +
Returns:
the localPort
+
+
+
+ +

+setLocalPort

+
+void setLocalPort(int localPort)
+
+
+
Parameters:
localPort - the localPort to set
+
+
+
+ +

+getRemoteAddress

+
+String getRemoteAddress()
+
+
+ +
Returns:
the remoteIp
+
+
+
+ +

+getRemotePort

+
+int getRemotePort()
+
+
+ +
Returns:
the remotePort
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/IDomain.html b/documentation/com/openshift/client/IDomain.html new file mode 100644 index 00000000..aa5b9ba3 --- /dev/null +++ b/documentation/com/openshift/client/IDomain.html @@ -0,0 +1,862 @@ + + + + + + + +IDomain (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client +
+Interface IDomain

+
+
All Superinterfaces:
IOpenShiftResource
+
+
+
All Known Implementing Classes:
DomainResource
+
+
+
+
public interface IDomain
extends IOpenShiftResource
+ + +

+

+
Author:
+
André Dietisheim, Nicolas Spano, Syed Iqbal
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleancanCreateApplicationWithEnvironmentVariables() + +
+          Returns true if this domain can create application with environment variables.
+ IApplicationcreateApplication(String name, + IStandaloneCartridge cartridge) + +
+           
+ IApplicationcreateApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale) + +
+           
+ IApplicationcreateApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale, + IGearProfile gearProfile) + +
+           
+ IApplicationcreateApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale, + IGearProfile gearProfile, + String initialGitUrl) + +
+          Creates a new application with the given name and the given + cartridge/framework.
+ IApplicationcreateApplication(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.
+ IApplicationcreateApplication(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.
+ IApplicationcreateApplication(String name, + IStandaloneCartridge cartridge, + IGearProfile gearProfile) + +
+           
+ IApplicationcreateApplication(String name, + IStandaloneCartridge cartridge, + String initialGitUrl) + +
+           
+ voiddestroy() + +
+          Destroys the current domain.
+ voiddestroy(boolean force) + +
+          Destroys the current domain, using the 'force' parameter to also destroy the domain applications.
+ IApplicationgetApplicationByName(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).
+ StringgetId() + +
+           
+ StringgetSuffix() + +
+          The domain suffix is the host part eg: 'rhcloud.com')
+ IUsergetUser() + +
+          Returns the currently connected user that manages this domain.
+ booleanhasApplicationByCartridge(IStandaloneCartridge cartridge) + +
+           
+ booleanhasApplicationByName(String name) + +
+          Returns true if the application identified by the given name exists in the domain.
+ voidrename(String id) + +
+          Rename the current domain with the given id....
+ + + + + + + +
Methods inherited from interface com.openshift.client.IOpenShiftResource
getCreationLog, getMessages, hasCreationLog, refresh
+  +

+ + + + + + + + +
+Method Detail
+ +

+getId

+
+String getId()
+
+
+
+
+
+ +
Returns:
the domain id (formerly known as 'namespace'). A unique litteral identifier on OpenShift.
+
+
+
+ +

+getSuffix

+
+String getSuffix()
+
+
The domain suffix is the host part eg: 'rhcloud.com') +

+

+
+
+
+ +
Returns:
+
+
+
+ +

+rename

+
+void rename(String id)
+            throws OpenShiftException
+
+
Rename the current domain with the given id.... +

+

+
+
+
+
Parameters:
id - +
Throws: +
OpenShiftException
+
+
+
+ +

+getUser

+
+IUser getUser()
+              throws OpenShiftException
+
+
Returns the currently connected user that manages this domain. +

+

+
+
+
+ +
Returns:
+
Throws: +
OpenShiftException
+
+
+
+ +

+destroy

+
+void destroy()
+             throws OpenShiftException
+
+
Destroys the current domain. This method works only if it has not application. +

+

+
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+destroy

+
+void destroy(boolean force)
+             throws OpenShiftException
+
+
Destroys the current domain, using the 'force' parameter to also destroy the domain applications. The domain cannot + be destroyed without setting 'force-true' if it still contains applications. +

+

+
+
+
+
Parameters:
force - +
Throws: +
OpenShiftException
+
+
+
+ +

+canCreateApplicationWithEnvironmentVariables

+
+boolean canCreateApplicationWithEnvironmentVariables()
+
+
Returns true if this domain can create application with environment variables. Returns false otherwise. +

+

+
+
+
+ +
Returns:
true if can create an application with environment variables
See Also:
IApplication.getEnvironmentVariables()
+
+
+
+ +

+createApplication

+
+IApplication createApplication(String name,
+                               IStandaloneCartridge cartridge)
+                               throws OpenShiftException
+
+
+
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+createApplication

+
+IApplication createApplication(String name,
+                               IStandaloneCartridge cartridge,
+                               String initialGitUrl)
+                               throws OpenShiftException
+
+
+
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+createApplication

+
+IApplication createApplication(String name,
+                               IStandaloneCartridge cartridge,
+                               ApplicationScale scale)
+                               throws OpenShiftException
+
+
+
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+createApplication

+
+IApplication createApplication(String name,
+                               IStandaloneCartridge cartridge,
+                               IGearProfile gearProfile)
+                               throws OpenShiftException
+
+
+
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+createApplication

+
+IApplication createApplication(String name,
+                               IStandaloneCartridge cartridge,
+                               ApplicationScale scale,
+                               IGearProfile gearProfile)
+                               throws OpenShiftException
+
+
+
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+createApplication

+
+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 and a specific gear + profile and a git url to use for the initial template. +

+

+
+
+
+
Parameters:
name - the name of the application
cartridge - 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 +
Returns:
+
Throws: +
OpenShiftException
+
+
+
+ +

+createApplication

+
+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 and + the embeddable (add-on) cartridges for it. +

+

+
+
+
+
Parameters:
name - the name of the application
cartridge - 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
timeout - the timeout value in milliseconds
cartridges - the embeddable cartridges that shall get added to the new + application (the add-on cartridges mysql, mongodb, postgresql, + etc.) +
Returns:
IApplication created +
Throws: +
OpenShiftException
+
+
+
+ +

+createApplication

+
+IApplication createApplication(String name,
+                               IStandaloneCartridge cartridge,
+                               ApplicationScale scale,
+                               IGearProfile gearProfile,
+                               String initialGitUrl,
+                               int timeout,
+                               Map<String,String> environmentVariable,
+                               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. +

+

+
+
+
+
Parameters:
name - the name of the application
cartridge - 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
timeout - the timeout value in milliseconds
environmentVariable - the environment variables to be added to the application
cartridges - the embeddable cartridges that shall get added to the new + application (the add-on cartridges mysql, mongodb, postgresql, + etc.) +
Returns:
IApplication created +
Throws: +
OpenShiftException
+
+
+
+ +

+getApplications

+
+List<IApplication> getApplications()
+                                   throws OpenShiftException
+
+
+
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+getAvailableCartridgeNames

+
+List<String> getAvailableCartridgeNames()
+                                        throws OpenShiftException
+
+
Returns the list of cartridges that can be used to create a new application. +

+

+
+
+
+ +
Returns:
the list of cartridges that can be used to create a new application. +
Throws: +
OpenShiftException
+
+
+
+ +

+getApplicationByName

+
+IApplication getApplicationByName(String name)
+                                  throws OpenShiftException
+
+
Returns the application identified by the given name. +

+

+
+
+
+
Parameters:
name - +
Returns:
+
Throws: +
OpenShiftException
+
+
+
+ +

+hasApplicationByName

+
+boolean hasApplicationByName(String name)
+                             throws OpenShiftException
+
+
Returns true if the application identified by the given name exists in the domain. +

+

+
+
+
+
Parameters:
name - +
Returns:
+
Throws: +
OpenShiftException
+
+
+
+ +

+getApplicationsByCartridge

+
+List<IApplication> getApplicationsByCartridge(IStandaloneCartridge cartridge)
+                                              throws OpenShiftException
+
+
+
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+hasApplicationByCartridge

+
+boolean hasApplicationByCartridge(IStandaloneCartridge cartridge)
+                                  throws OpenShiftException
+
+
+
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+getAvailableGearProfiles

+
+List<IGearProfile> getAvailableGearProfiles()
+                                            throws OpenShiftException
+
+
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). +

+

+
+
+
+ +
Returns:
+
Throws: +
OpenShiftException
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/IEnvironmentVariable.html b/documentation/com/openshift/client/IEnvironmentVariable.html new file mode 100644 index 00000000..368a913b --- /dev/null +++ b/documentation/com/openshift/client/IEnvironmentVariable.html @@ -0,0 +1,332 @@ + + + + + + + +IEnvironmentVariable (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client +
+Interface IEnvironmentVariable

+
+
All Superinterfaces:
IOpenShiftResource
+
+
+
All Known Implementing Classes:
EnvironmentVariableResource
+
+
+
+
public interface IEnvironmentVariable
extends IOpenShiftResource
+ + +

+

+
Author:
+
Syed Iqbal
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddestroy() + +
+          Destroys this environment variable
+ IApplicationgetApplication() + +
+          Returns the application for this environment variable
+ StringgetName() + +
+           
+ StringgetValue() + +
+           
+ voidupdate(String value) + +
+          Updates this environment variable to the given value.
+ + + + + + + +
Methods inherited from interface com.openshift.client.IOpenShiftResource
getCreationLog, getMessages, hasCreationLog, refresh
+  +

+ + + + + + + + +
+Method Detail
+ +

+getName

+
+String getName()
+
+
+
+
+
+ +
Returns:
Name of the environment variable
+
+
+
+ +

+getValue

+
+String getValue()
+
+
+
+
+
+ +
Returns:
Value of the environment variable
+
+
+
+ +

+update

+
+void update(String value)
+            throws OpenShiftException
+
+
Updates this environment variable to the given value. +

+

+
+
+
+
Parameters:
value - new value for this environment variable +
Throws: +
OpenShiftException
+
+
+
+ +

+destroy

+
+void destroy()
+             throws OpenShiftException
+
+
Destroys this environment variable +

+

+
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+getApplication

+
+IApplication getApplication()
+
+
Returns the application for this environment variable +

+

+
+
+
+ +
Returns:
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/IField.html b/documentation/com/openshift/client/IField.html new file mode 100644 index 00000000..d1dce6be --- /dev/null +++ b/documentation/com/openshift/client/IField.html @@ -0,0 +1,286 @@ + + + + + + + +IField (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client +
+Interface IField

+
+
All Known Implementing Classes:
Field
+
+
+
+
public interface IField
+ + +

+

+
Author:
+
Andre Dietisheim
+
+
+ +

+ + + + + + + + + + + + + + + + + + + +
+Field Summary
+static IFieldAPPINFO + +
+           
+static IFieldDEFAULT + +
+           
+static IFieldRESULT + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ StringgetValue() + +
+           
+  +

+ + + + + + + + +
+Field Detail
+ +

+DEFAULT

+
+static final IField DEFAULT
+
+
+
+
+
+ +

+RESULT

+
+static final IField RESULT
+
+
+
+
+
+ +

+APPINFO

+
+static final IField APPINFO
+
+
+
+
+ + + + + + + + +
+Method Detail
+ +

+getValue

+
+String getValue()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/IGear.html b/documentation/com/openshift/client/IGear.html new file mode 100644 index 00000000..8ecf9f70 --- /dev/null +++ b/documentation/com/openshift/client/IGear.html @@ -0,0 +1,259 @@ + + + + + + + +IGear (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client +
+Interface IGear

+
+
All Known Implementing Classes:
Gear
+
+
+
+
public interface IGear
+ + +

+


+ +

+ + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetId() + +
+          Returns the id of this gear.
+ StringgetSshUrl() + +
+          The URL to use when connecting with SSH in the following form: + ssh://<username>@<host>
+ GearStategetState() + +
+          Returns the state of this gear
+  +

+ + + + + + + + +
+Method Detail
+ +

+getId

+
+String getId()
+
+
Returns the id of this gear. +

+

+ +
Returns:
the id
+
+
+
+ +

+getState

+
+GearState getState()
+
+
Returns the state of this gear +

+

+ +
Returns:
the state
+
+
+
+ +

+getSshUrl

+
+String getSshUrl()
+
+
The URL to use when connecting with SSH in the following form: + ssh://<username>@<host> +

+

+ +
Returns:
the SSH URL
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/IGearGroup.html b/documentation/com/openshift/client/IGearGroup.html new file mode 100644 index 00000000..f7262728 --- /dev/null +++ b/documentation/com/openshift/client/IGearGroup.html @@ -0,0 +1,279 @@ + + + + + + + +IGearGroup (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client +
+Interface IGearGroup

+
+
All Known Implementing Classes:
GearGroupResource
+
+
+
+
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
+ StringgetName() + +
+          Returns the name of this gear groups
+ StringgetUUID() + +
+          Returns the uuid of this gear groups.
+  +

+ + + + + + + + +
+Method Detail
+ +

+getUUID

+
+String getUUID()
+
+
Returns the uuid of this gear groups. +

+

+ +
Returns:
the uuid
+
+
+
+ +

+getName

+
+String getName()
+
+
Returns the name of this gear groups +

+

+ +
Returns:
the name
+
+
+
+ +

+getGears

+
+Collection<IGear> getGears()
+
+
Returns the gears in this gear group resource +

+

+ +
Returns:
the gears
+
+
+
+ +

+getCartridges

+
+Collection<ICartridge> getCartridges()
+
+
Returns the cartridges in this gear group resource +

+

+ +
Returns:
the gears
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/IGearProfile.html b/documentation/com/openshift/client/IGearProfile.html new file mode 100644 index 00000000..da845536 --- /dev/null +++ b/documentation/com/openshift/client/IGearProfile.html @@ -0,0 +1,340 @@ + + + + + + + +IGearProfile (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client +
+Interface IGearProfile

+
+
All Known Implementing Classes:
GearProfile
+
+
+
+
public interface IGearProfile
+ + +

+

+
Author:
+
Andre Dietisheim
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+static IGearProfileEXLARGE + +
+           
+static IGearProfileJUMBO + +
+           
+static IGearProfileLARGE + +
+           
+static IGearProfileMEDIUM + +
+           
+static IGearProfileMICRO + +
+           
+static IGearProfileSMALL + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ StringgetName() + +
+           
+  +

+ + + + + + + + +
+Field Detail
+ +

+JUMBO

+
+static final IGearProfile JUMBO
+
+
+
+
+
+ +

+EXLARGE

+
+static final IGearProfile EXLARGE
+
+
+
+
+
+ +

+LARGE

+
+static final IGearProfile LARGE
+
+
+
+
+
+ +

+MEDIUM

+
+static final IGearProfile MEDIUM
+
+
+
+
+
+ +

+MICRO

+
+static final IGearProfile MICRO
+
+
+
+
+
+ +

+SMALL

+
+static final IGearProfile SMALL
+
+
+
+
+ + + + + + + + +
+Method Detail
+ +

+getName

+
+String getName()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/IHttpClient.html b/documentation/com/openshift/client/IHttpClient.html new file mode 100644 index 00000000..d99d1879 --- /dev/null +++ b/documentation/com/openshift/client/IHttpClient.html @@ -0,0 +1,1054 @@ + + + + + + + +IHttpClient (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client +
+Interface IHttpClient

+
+
All Known Implementing Classes:
UrlConnectionHttpClient
+
+
+
+
public interface IHttpClient
+ + +

+

+
Author:
+
André Dietisheim, Nicolas Spano
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+static charAMPERSAND + +
+           
+static StringAUTHORIZATION_BASIC + +
+           
+static charCOLON + +
+           
+static charCOMMA + +
+           
+static intDEFAULT_CONNECT_TIMEOUT + +
+           
+static intDEFAULT_READ_TIMEOUT + +
+           
+static charEQUALS + +
+           
+static StringHTTP + +
+           
+static StringMEDIATYPE_APPLICATION_FORMURLENCODED + +
+           
+static StringMEDIATYPE_APPLICATION_JSON + +
+           
+static StringMEDIATYPE_APPLICATION_XML + +
+           
+static intNO_TIMEOUT + +
+           
+static StringPROPERTY_ACCEPT + +
+           
+static StringPROPERTY_AUTHIV + +
+           
+static StringPROPERTY_AUTHKEY + +
+           
+static StringPROPERTY_AUTHORIZATION + +
+           
+static StringPROPERTY_CONTENT_TYPE + +
+           
+static StringPROPERTY_USER_AGENT + +
+           
+static charQUESTION_MARK + +
+           
+static charSEMICOLON + +
+           
+static charSLASH + +
+           
+static charSPACE + +
+           
+static intSTATUS_BAD_REQUEST + +
+           
+static intSTATUS_INTERNAL_SERVER_ERROR + +
+           
+static intSTATUS_NOT_FOUND + +
+           
+static intSTATUS_OK + +
+           
+static intSTATUS_UNAUTHORIZED + +
+           
+static StringSYSPROP_DEFAULT_CONNECT_TIMEOUT + +
+           
+static StringSYSPROP_DEFAULT_READ_TIMEOUT + +
+           
+static StringSYSPROP_OPENSHIFT_CONNECT_TIMEOUT + +
+           
+static StringSYSPROP_OPENSHIFT_READ_TIMEOUT + +
+           
+static StringVERSION + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ Stringdelete(URL url, + IMediaType mediaType, + int timeout, + Parameter... parameters) + +
+           
+ Stringdelete(URL url, + int timeout) + +
+           
+ Stringget(URL url, + int timeout) + +
+           
+ Stringhead(URL url, + int timeout) + +
+           
+ Stringpatch(URL url, + IMediaType mediaType, + int timeout, + Parameter... parameters) + +
+           
+ Stringpost(URL url, + IMediaType mediaType, + int timeout, + Parameter... parameters) + +
+           
+ Stringput(URL url, + IMediaType mediaType, + int timeout, + Parameter... parameters) + +
+           
+ voidsetAcceptedMediaType(String acceptedMediaType) + +
+           
+ voidsetAcceptVersion(String version) + +
+           
+ voidsetUserAgent(String userAgent) + +
+           
+  +

+ + + + + + + + +
+Field Detail
+ +

+HTTP

+
+static final String HTTP
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_CONTENT_TYPE

+
+static final String PROPERTY_CONTENT_TYPE
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_AUTHORIZATION

+
+static final String PROPERTY_AUTHORIZATION
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_ACCEPT

+
+static final String PROPERTY_ACCEPT
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_USER_AGENT

+
+static final String PROPERTY_USER_AGENT
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_AUTHKEY

+
+static final String PROPERTY_AUTHKEY
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_AUTHIV

+
+static final String PROPERTY_AUTHIV
+
+
+
See Also:
Constant Field Values
+
+
+ +

+MEDIATYPE_APPLICATION_JSON

+
+static final String MEDIATYPE_APPLICATION_JSON
+
+
+
See Also:
Constant Field Values
+
+
+ +

+MEDIATYPE_APPLICATION_XML

+
+static final String MEDIATYPE_APPLICATION_XML
+
+
+
See Also:
Constant Field Values
+
+
+ +

+MEDIATYPE_APPLICATION_FORMURLENCODED

+
+static final String MEDIATYPE_APPLICATION_FORMURLENCODED
+
+
+
See Also:
Constant Field Values
+
+
+ +

+AUTHORIZATION_BASIC

+
+static final String AUTHORIZATION_BASIC
+
+
+
See Also:
Constant Field Values
+
+
+ +

+STATUS_OK

+
+static final int STATUS_OK
+
+
+
See Also:
Constant Field Values
+
+
+ +

+STATUS_INTERNAL_SERVER_ERROR

+
+static final int STATUS_INTERNAL_SERVER_ERROR
+
+
+
See Also:
Constant Field Values
+
+
+ +

+STATUS_BAD_REQUEST

+
+static final int STATUS_BAD_REQUEST
+
+
+
See Also:
Constant Field Values
+
+
+ +

+STATUS_UNAUTHORIZED

+
+static final int STATUS_UNAUTHORIZED
+
+
+
See Also:
Constant Field Values
+
+
+ +

+STATUS_NOT_FOUND

+
+static final int STATUS_NOT_FOUND
+
+
+
See Also:
Constant Field Values
+
+
+ +

+SPACE

+
+static final char SPACE
+
+
+
See Also:
Constant Field Values
+
+
+ +

+COLON

+
+static final char COLON
+
+
+
See Also:
Constant Field Values
+
+
+ +

+COMMA

+
+static final char COMMA
+
+
+
See Also:
Constant Field Values
+
+
+ +

+SEMICOLON

+
+static final char SEMICOLON
+
+
+
See Also:
Constant Field Values
+
+
+ +

+AMPERSAND

+
+static final char AMPERSAND
+
+
+
See Also:
Constant Field Values
+
+
+ +

+EQUALS

+
+static final char EQUALS
+
+
+
See Also:
Constant Field Values
+
+
+ +

+SLASH

+
+static final char SLASH
+
+
+
See Also:
Constant Field Values
+
+
+ +

+QUESTION_MARK

+
+static final char QUESTION_MARK
+
+
+
See Also:
Constant Field Values
+
+
+ +

+VERSION

+
+static final String VERSION
+
+
+
See Also:
Constant Field Values
+
+
+ +

+SYSPROP_OPENSHIFT_CONNECT_TIMEOUT

+
+static final String SYSPROP_OPENSHIFT_CONNECT_TIMEOUT
+
+
+
See Also:
Constant Field Values
+
+
+ +

+SYSPROP_OPENSHIFT_READ_TIMEOUT

+
+static final String SYSPROP_OPENSHIFT_READ_TIMEOUT
+
+
+
See Also:
Constant Field Values
+
+
+ +

+SYSPROP_DEFAULT_CONNECT_TIMEOUT

+
+static final String SYSPROP_DEFAULT_CONNECT_TIMEOUT
+
+
+
See Also:
Constant Field Values
+
+
+ +

+SYSPROP_DEFAULT_READ_TIMEOUT

+
+static final String SYSPROP_DEFAULT_READ_TIMEOUT
+
+
+
See Also:
Constant Field Values
+
+
+ +

+DEFAULT_CONNECT_TIMEOUT

+
+static final int DEFAULT_CONNECT_TIMEOUT
+
+
+
See Also:
Constant Field Values
+
+
+ +

+DEFAULT_READ_TIMEOUT

+
+static final int DEFAULT_READ_TIMEOUT
+
+
+
See Also:
Constant Field Values
+
+
+ +

+NO_TIMEOUT

+
+static final int NO_TIMEOUT
+
+
+
See Also:
Constant Field Values
+
+ + + + + + + + +
+Method Detail
+ +

+get

+
+String get(URL url,
+           int timeout)
+           throws HttpClientException,
+                  SocketTimeoutException
+
+
+ +
Throws: +
HttpClientException +
SocketTimeoutException
+
+
+
+ +

+head

+
+String head(URL url,
+            int timeout)
+            throws HttpClientException,
+                   SocketTimeoutException
+
+
+ +
Throws: +
HttpClientException +
SocketTimeoutException
+
+
+
+ +

+post

+
+String post(URL url,
+            IMediaType mediaType,
+            int timeout,
+            Parameter... parameters)
+            throws HttpClientException,
+                   SocketTimeoutException,
+                   EncodingException
+
+
+ +
Throws: +
HttpClientException +
SocketTimeoutException +
EncodingException
+
+
+
+ +

+put

+
+String put(URL url,
+           IMediaType mediaType,
+           int timeout,
+           Parameter... parameters)
+           throws HttpClientException,
+                  SocketTimeoutException,
+                  EncodingException
+
+
+ +
Throws: +
HttpClientException +
SocketTimeoutException +
EncodingException
+
+
+
+ +

+patch

+
+String patch(URL url,
+             IMediaType mediaType,
+             int timeout,
+             Parameter... parameters)
+             throws HttpClientException,
+                    SocketTimeoutException,
+                    EncodingException
+
+
+ +
Throws: +
HttpClientException +
SocketTimeoutException +
EncodingException
+
+
+
+ +

+delete

+
+String delete(URL url,
+              IMediaType mediaType,
+              int timeout,
+              Parameter... parameters)
+              throws HttpClientException,
+                     SocketTimeoutException,
+                     EncodingException
+
+
+ +
Throws: +
HttpClientException +
SocketTimeoutException +
EncodingException
+
+
+
+ +

+delete

+
+String delete(URL url,
+              int timeout)
+              throws HttpClientException,
+                     SocketTimeoutException,
+                     EncodingException
+
+
+ +
Throws: +
HttpClientException +
SocketTimeoutException +
EncodingException
+
+
+
+ +

+setUserAgent

+
+void setUserAgent(String userAgent)
+
+
+
+
+
+
+ +

+setAcceptVersion

+
+void setAcceptVersion(String version)
+
+
+
+
+
+
+ +

+setAcceptedMediaType

+
+void setAcceptedMediaType(String acceptedMediaType)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/IOpenShiftConnection.html b/documentation/com/openshift/client/IOpenShiftConnection.html new file mode 100644 index 00000000..65da650a --- /dev/null +++ b/documentation/com/openshift/client/IOpenShiftConnection.html @@ -0,0 +1,431 @@ + + + + + + + +IOpenShiftConnection (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client +
+Interface IOpenShiftConnection

+
+
All Known Implementing Classes:
APIResource
+
+
+
+
public interface IOpenShiftConnection
+ + +

+

+
Author:
+
Xavier Coulon, Andre Dietisheim
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+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.
+ ExecutorServicegetExecutorService() + +
+          Returns the executor service instance that's available in this + connection.
+ StringgetServer() + +
+          Returns the server this connection is bound to.
+ List<IStandaloneCartridge>getStandaloneCartridges() + +
+          Returns the available standalone cartridges associated with the current + OpenShift connection.
+ IUsergetUser() + +
+          Returns the user associated with the current OpenShift connection.
+ voidsetEnableSSLCertChecks(boolean doSSLChecks) + +
+          Sets flag for enabling SSL certificate checks (i.e.
+ voidsetProxyHost(String proxyHost) + +
+          Sets the HTTP proxy hostname
+ voidsetProxyPort(String proxyPort) + +
+          Sets the HTTP proxy port
+ voidsetProxySet(boolean proxySet) + +
+          Sets flag for using an HTTP proxy
+  +

+ + + + + + + + +
+Method Detail
+ +

+getServer

+
+String getServer()
+
+
Returns the server this connection is bound to. +

+

+ +
Returns:
the server
+
+
+
+ +

+getUser

+
+IUser getUser()
+              throws OpenShiftException
+
+
Returns the user associated with the current OpenShift connection. +

+

+ +
Returns:
the user +
Throws: +
OpenShiftException
+
+
+
+ +

+getDomains

+
+List<IDomain> getDomains()
+                         throws OpenShiftException
+
+
Returns the domains associated with the current OpenShift connection. +

+

+ +
Returns:
the domains +
Throws: +
OpenShiftException
+
+
+
+ +

+getStandaloneCartridges

+
+List<IStandaloneCartridge> getStandaloneCartridges()
+                                                   throws OpenShiftException
+
+
Returns the available standalone cartridges associated with the current + OpenShift connection. +

+

+ +
Returns:
the available standalone cartridges +
Throws: +
OpenShiftException
+
+
+
+ +

+getEmbeddableCartridges

+
+List<IEmbeddableCartridge> getEmbeddableCartridges()
+                                                   throws OpenShiftException
+
+
Returns the available embeddable cartridges associated with the current + OpenShift connection. +

+

+ +
Returns:
the available embeddable cartridges +
Throws: +
OpenShiftException
+
+
+
+ +

+setEnableSSLCertChecks

+
+void setEnableSSLCertChecks(boolean doSSLChecks)
+
+
Sets flag for enabling SSL certificate checks (i.e. self-signed SSL + certificates) +

+

+
Parameters:
doSSLChecks -
+
+
+
+ +

+setProxySet

+
+void setProxySet(boolean proxySet)
+
+
Sets flag for using an HTTP proxy +

+

+
Parameters:
proxySet -
+
+
+
+ +

+setProxyHost

+
+void setProxyHost(String proxyHost)
+
+
Sets the HTTP proxy hostname +

+

+
Parameters:
proxyHost -
+
+
+
+ +

+setProxyPort

+
+void setProxyPort(String proxyPort)
+
+
Sets the HTTP proxy port +

+

+
Parameters:
proxyPort -
+
+
+
+ +

+getExecutorService

+
+ExecutorService getExecutorService()
+
+
Returns the executor service instance that's available in this + connection. +

+

+ +
Returns:
the executor service instance for this connection
See Also:
ExecutorService, +Executors
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/IOpenShiftResource.html b/documentation/com/openshift/client/IOpenShiftResource.html new file mode 100644 index 00000000..e746f387 --- /dev/null +++ b/documentation/com/openshift/client/IOpenShiftResource.html @@ -0,0 +1,292 @@ + + + + + + + +IOpenShiftResource (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client +
+Interface IOpenShiftResource

+
+
All Known Subinterfaces:
IApplication, IDomain, IEmbeddedCartridge, IEnvironmentVariable, IUser
+
+
+
All Known Implementing Classes:
AbstractOpenShiftResource, APIResource, ApplicationResource, DomainResource, EmbeddedCartridgeResource, EnvironmentVariableResource, GearGroupResource, SSHKeyResource, UserResource
+
+
+
+
public interface IOpenShiftResource
+ + +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetCreationLog() + +
+          Returns the log that was created when the resource was created.
+ MessagesgetMessages() + +
+          Returns all the (creation log) messages.
+ booleanhasCreationLog() + +
+          Returns + true if there is log about the creation of this resource.
+ voidrefresh() + +
+          Refresh the resource and its list of children resources that were + previously loaded
+  +

+ + + + + + + + +
+Method Detail
+ +

+hasCreationLog

+
+boolean hasCreationLog()
+
+
Returns + 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
+
+
+
+ +

+getCreationLog

+
+String getCreationLog()
+
+
Returns the log that was created when the resource was created. +

+

+ +
Returns:
the log which reported the creation of this resource
+
+
+
+ +

+getMessages

+
+Messages getMessages()
+
+
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. +

+

+ +
Returns:
all messages by field
See Also:
getCreationLog()
+
+
+
+ +

+refresh

+
+void refresh()
+             throws OpenShiftException
+
+
Refresh the resource and its list of children resources that were + previously loaded +

+

+ +
Throws: +
OpenShiftException
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/IOpenShiftSSHKey.html b/documentation/com/openshift/client/IOpenShiftSSHKey.html new file mode 100644 index 00000000..63200b06 --- /dev/null +++ b/documentation/com/openshift/client/IOpenShiftSSHKey.html @@ -0,0 +1,313 @@ + + + + + + + +IOpenShiftSSHKey (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client +
+Interface IOpenShiftSSHKey

+
+
All Superinterfaces:
ISSHPublicKey
+
+
+
All Known Implementing Classes:
SSHKeyResource
+
+
+
+
public interface IOpenShiftSSHKey
extends ISSHPublicKey
+ + +

+

+
Author:
+
Andre Dietisheim
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voiddestroy() + +
+           
+ StringgetName() + +
+          Returns the name that is used to store this key on OpenShift.
+ voidsetKeyType(SSHKeyType type, + String publicKey) + +
+          Sets the new type and public key of this ssh key to the OpenShift PaaS
+ voidsetPublicKey(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
+ +

+getName

+
+String getName()
+
+
Returns the name that is used to store this key on OpenShift. +

+

+
+
+
+ +
Returns:
+
+
+
+ +

+setPublicKey

+
+void setPublicKey(String publicKey)
+                  throws OpenShiftException
+
+
Sets the public key portion of this ssh key to the OpenShift PaaS. +

+

+
+
+
+
Parameters:
publicKey - the new public key porition of this key +
Throws: +
OpenShiftException
+
+
+
+ +

+setKeyType

+
+void setKeyType(SSHKeyType type,
+                String publicKey)
+                throws OpenShiftException
+
+
Sets the new type and public key of this ssh key to the OpenShift PaaS +

+

+
+
+
+
Parameters:
type - +
Throws: +
OpenShiftException
+
+
+
+ +

+destroy

+
+void destroy()
+             throws OpenShiftException
+
+
+
+
+
+ +
Throws: +
OpenShiftException
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/ISSHPublicKey.html b/documentation/com/openshift/client/ISSHPublicKey.html new file mode 100644 index 00000000..73fbe967 --- /dev/null +++ b/documentation/com/openshift/client/ISSHPublicKey.html @@ -0,0 +1,249 @@ + + + + + + + +ISSHPublicKey (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client +
+Interface ISSHPublicKey

+
+
All Known Subinterfaces:
IOpenShiftSSHKey
+
+
+
All Known Implementing Classes:
AbstractSSHKey, SSHKeyPair, SSHKeyResource, SSHPublicKey
+
+
+
+
public interface ISSHPublicKey
+ + +

+

+
Author:
+
André Dietisheim
+
+
+ +

+ + + + + + + + + + + + + + + + +
+Method Summary
+ SSHKeyTypegetKeyType() + +
+          Returns the type of the key (ssh-rsa or ssh-dss)
+ StringgetPublicKey() + +
+          Returns the content of the public key (key content without ssh-rsa + identifier nor comment) of the ssh key
+  +

+ + + + + + + + +
+Method Detail
+ +

+getPublicKey

+
+String getPublicKey()
+
+
Returns the content of the public key (key content without ssh-rsa + identifier nor comment) of the ssh key +

+

+ +
Returns:
the content of the public key (without signature, without + comment) +
Throws: +
OpenShiftException
+
+
+
+ +

+getKeyType

+
+SSHKeyType getKeyType()
+
+
Returns the type of the key (ssh-rsa or ssh-dss) +

+

+ +
Returns:
the type of key, either ssh-rsa or ssh-dss +
Throws: +
OpenShiftException
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/ISeverity.html b/documentation/com/openshift/client/ISeverity.html new file mode 100644 index 00000000..65fa750d --- /dev/null +++ b/documentation/com/openshift/client/ISeverity.html @@ -0,0 +1,304 @@ + + + + + + + +ISeverity (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client +
+Interface ISeverity

+
+
All Known Implementing Classes:
Severity
+
+
+
+
public interface ISeverity
+ + +

+

+
Author:
+
Andre Dietisheim
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+static ISeverityDEBUG + +
+           
+static ISeverityERROR + +
+           
+static ISeverityINFO + +
+           
+static ISeverityRESULT + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ StringgetValue() + +
+           
+  +

+ + + + + + + + +
+Field Detail
+ +

+INFO

+
+static final ISeverity INFO
+
+
+
+
+
+ +

+DEBUG

+
+static final ISeverity DEBUG
+
+
+
+
+
+ +

+ERROR

+
+static final ISeverity ERROR
+
+
+
+
+
+ +

+RESULT

+
+static final ISeverity RESULT
+
+
+
+
+ + + + + + + + +
+Method Detail
+ +

+getValue

+
+String getValue()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/IUser.html b/documentation/com/openshift/client/IUser.html new file mode 100644 index 00000000..11f60ded --- /dev/null +++ b/documentation/com/openshift/client/IUser.html @@ -0,0 +1,707 @@ + + + + + + + +IUser (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client +
+Interface IUser

+
+
All Superinterfaces:
IOpenShiftResource
+
+
+
All Known Implementing Classes:
UserResource
+
+
+
+
public interface IUser
extends IOpenShiftResource
+ + +

+

+
Author:
+
André Dietisheim
+
+
+ +

+ + + + + + + + + + + +
+Field Summary
+static StringID + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ IDomaincreateDomain(String id) + +
+           
+ voiddeleteKey(String name) + +
+           
+ IOpenShiftConnectiongetConnection() + +
+           
+ intgetConsumedGears() + +
+           
+ IDomaingetDefaultDomain() + +
+           
+ IDomaingetDomain(String id) + +
+           
+ List<IDomain>getDomains() + +
+           
+ intgetMaxGears() + +
+           
+ StringgetPassword() + +
+           
+ StringgetRhlogin() + +
+           
+ StringgetServer() + +
+           
+ IOpenShiftSSHKeygetSSHKeyByName(String name) + +
+           
+ IOpenShiftSSHKeygetSSHKeyByPublicKey(String publicKey) + +
+           
+ List<IOpenShiftSSHKey>getSSHKeys() + +
+           
+ booleanhasDomain() + +
+           
+ booleanhasDomain(String id) + +
+           
+ booleanhasSSHKeyName(String name) + +
+           
+ booleanhasSSHPublicKey(String publicKey) + +
+           
+ IOpenShiftSSHKeyputSSHKey(String name, + ISSHPublicKey key) + +
+           
+ + + + + + + +
Methods inherited from interface com.openshift.client.IOpenShiftResource
getCreationLog, getMessages, hasCreationLog, refresh
+  +

+ + + + + + + + +
+Field Detail
+ +

+ID

+
+static final String ID
+
+
+
See Also:
Constant Field Values
+
+ + + + + + + + +
+Method Detail
+ +

+getRhlogin

+
+String getRhlogin()
+
+
+
+
+
+
+
+
+
+ +

+getPassword

+
+String getPassword()
+
+
+
+
+
+
+
+
+
+ +

+getServer

+
+String getServer()
+
+
+
+
+
+
+
+
+
+ +

+getConnection

+
+IOpenShiftConnection getConnection()
+
+
+
+
+
+
+
+
+
+ +

+createDomain

+
+IDomain createDomain(String id)
+                     throws OpenShiftException
+
+
+
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+getDomains

+
+List<IDomain> getDomains()
+                         throws OpenShiftException
+
+
+
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+getDefaultDomain

+
+IDomain getDefaultDomain()
+                         throws OpenShiftException
+
+
+
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+getDomain

+
+IDomain getDomain(String id)
+                  throws OpenShiftException
+
+
+
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+hasDomain

+
+boolean hasDomain()
+                  throws OpenShiftException
+
+
+
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+hasDomain

+
+boolean hasDomain(String id)
+                  throws OpenShiftException
+
+
+
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+getSSHKeys

+
+List<IOpenShiftSSHKey> getSSHKeys()
+                                  throws OpenShiftException
+
+
+
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+putSSHKey

+
+IOpenShiftSSHKey putSSHKey(String name,
+                           ISSHPublicKey key)
+                           throws OpenShiftException
+
+
+
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+getSSHKeyByName

+
+IOpenShiftSSHKey getSSHKeyByName(String name)
+                                 throws OpenShiftUnknonwSSHKeyTypeException,
+                                        OpenShiftException
+
+
+
+
+
+ +
Throws: +
OpenShiftUnknonwSSHKeyTypeException +
OpenShiftException
+
+
+
+ +

+getSSHKeyByPublicKey

+
+IOpenShiftSSHKey getSSHKeyByPublicKey(String publicKey)
+                                      throws OpenShiftUnknonwSSHKeyTypeException,
+                                             OpenShiftException
+
+
+
+
+
+ +
Throws: +
OpenShiftUnknonwSSHKeyTypeException +
OpenShiftException
+
+
+
+ +

+hasSSHKeyName

+
+boolean hasSSHKeyName(String name)
+                      throws OpenShiftUnknonwSSHKeyTypeException,
+                             OpenShiftException
+
+
+
+
+
+ +
Throws: +
OpenShiftUnknonwSSHKeyTypeException +
OpenShiftException
+
+
+
+ +

+hasSSHPublicKey

+
+boolean hasSSHPublicKey(String publicKey)
+                        throws OpenShiftUnknonwSSHKeyTypeException,
+                               OpenShiftException
+
+
+
+
+
+ +
Throws: +
OpenShiftUnknonwSSHKeyTypeException +
OpenShiftException
+
+
+
+ +

+deleteKey

+
+void deleteKey(String name)
+
+
+
+
+
+
+
+
+
+ +

+getMaxGears

+
+int getMaxGears()
+
+
+
+
+
+
+
+
+
+ +

+getConsumedGears

+
+int getConsumedGears()
+
+
+
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/InvalidCredentialsOpenShiftException.html b/documentation/com/openshift/client/InvalidCredentialsOpenShiftException.html new file mode 100644 index 00000000..48730a43 --- /dev/null +++ b/documentation/com/openshift/client/InvalidCredentialsOpenShiftException.html @@ -0,0 +1,264 @@ + + + + + + + +InvalidCredentialsOpenShiftException (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client +
+Class InvalidCredentialsOpenShiftException

+
+java.lang.Object
+  extended by java.lang.Throwable
+      extended by java.lang.Exception
+          extended by java.lang.RuntimeException
+              extended by com.openshift.client.OpenShiftException
+                  extended by com.openshift.client.OpenShiftEndpointException
+                      extended by com.openshift.client.InvalidCredentialsOpenShiftException
+
+
+
All Implemented Interfaces:
Serializable
+
+
+
+
public class InvalidCredentialsOpenShiftException
extends OpenShiftEndpointException
+ + +

+

+
Author:
+
André Dietisheim
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + +
+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
+ +

+InvalidCredentialsOpenShiftException

+
+public InvalidCredentialsOpenShiftException(String url,
+                                            HttpClientException cause,
+                                            RestResponse restResponse)
+                                     throws OpenShiftException
+
+
+ +
Throws: +
OpenShiftException
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/InvalidNameOpenShiftException.html b/documentation/com/openshift/client/InvalidNameOpenShiftException.html new file mode 100644 index 00000000..d463e78b --- /dev/null +++ b/documentation/com/openshift/client/InvalidNameOpenShiftException.html @@ -0,0 +1,247 @@ + + + + + + + +InvalidNameOpenShiftException (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client +
+Class InvalidNameOpenShiftException

+
+java.lang.Object
+  extended by java.lang.Throwable
+      extended by java.lang.Exception
+          extended by java.lang.RuntimeException
+              extended by com.openshift.client.OpenShiftException
+                  extended by com.openshift.client.InvalidNameOpenShiftException
+
+
+
All Implemented Interfaces:
Serializable
+
+
+
+
public class InvalidNameOpenShiftException
extends OpenShiftException
+ + +

+

+
Author:
+
Andre Dietisheim
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + +
+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
+ +

+InvalidNameOpenShiftException

+
+public InvalidNameOpenShiftException(String message,
+                                     Object... arguments)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/Message.html b/documentation/com/openshift/client/Message.html new file mode 100644 index 00000000..c2b4df59 --- /dev/null +++ b/documentation/com/openshift/client/Message.html @@ -0,0 +1,342 @@ + + + + + + + +Message (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client +
+Class Message

+
+java.lang.Object
+  extended by com.openshift.client.Message
+
+
+
+
public class Message
extends Object
+ + +

+

+
Author:
+
Andre Dietisheim
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
Message(String text, + String field, + String severity, + int exitCode) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ intgetExitCode() + +
+           
+ IFieldgetField() + +
+           
+ ISeveritygetSeverity() + +
+           
+ StringgetText() + +
+           
+ StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Message

+
+public Message(String text,
+               String field,
+               String severity,
+               int exitCode)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getField

+
+public IField getField()
+
+
+
+
+
+
+ +

+getText

+
+public String getText()
+
+
+
+
+
+
+ +

+getSeverity

+
+public ISeverity getSeverity()
+
+
+
+
+
+
+ +

+getExitCode

+
+public int getExitCode()
+
+
+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/Messages.html b/documentation/com/openshift/client/Messages.html new file mode 100644 index 00000000..55e5f582 --- /dev/null +++ b/documentation/com/openshift/client/Messages.html @@ -0,0 +1,423 @@ + + + + + + + +Messages (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client +
+Class Messages

+
+java.lang.Object
+  extended by com.openshift.client.Messages
+
+
+
+
public class Messages
extends Object
+ + +

+

+
Author:
+
Andre Dietisheim
+
+
+ +

+ + + + + + + + + + + +
+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.
+ MessagegetFirstBy(IField field) + +
+          Returns the first message of the given field type.
+ MessagegetFirstBy(IField field, + ISeverity severity) + +
+          Returns the first message of the given field type and severity.
+ booleanhasMessages() + +
+           
+ intsize() + +
+           
+ StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Messages

+
+public Messages(Map<IField,List<Message>> messages)
+
+
Instantiates a new abstract open shift resource. +

+

+
Parameters:
service - the service
links - the links
+
+ + + + + + + + +
+Method Detail
+ +

+getAll

+
+public List<Message> getAll()
+
+
+
+
+
+
+ +

+getFirstBy

+
+public Message getFirstBy(IField field,
+                          ISeverity severity)
+
+
Returns the first message of the given field type and severity. The messages only exist + at creation time. See #getCreationLog() for further details. +

+

+
Parameters:
field - the field type
severity - the severity +
Returns:
See Also:
Message#FIELD_APPINFO, +Message#FIELD_RESULT, +ISeverity
+
+
+
+ +

+getBy

+
+public List<Message> getBy(IField field,
+                           ISeverity severity)
+
+
Returns the messages of the given field type and severity. These messages only exist + at creation time. See #getCreationLog() for further details. +

+

+
Parameters:
field - the field type
severity - the severity +
Returns:
See Also:
Message#FIELD_APPINFO, +Message#FIELD_RESULT, +ISeverity
+
+
+
+ +

+getFirstBy

+
+public Message getFirstBy(IField field)
+
+
Returns the first message of the given field type. The messages only exist + at creation time. See #getCreationLog() for further details. +

+

+
Parameters:
field - the field type +
Returns:
See Also:
Message#FIELD_APPINFO, +Message#FIELD_RESULT
+
+
+
+ +

+getBy

+
+public List<Message> getBy(IField field)
+
+
Returns all the message of the given field type. The messages only exist + at creation time. See #getCreationLog() for further details. +

+

+
Parameters:
field - the field type +
Returns:
See Also:
Message#FIELD_APPINFO, +Message#FIELD_RESULT
+
+
+
+ +

+hasMessages

+
+public boolean hasMessages()
+
+
+
+
+
+
+ +

+size

+
+public int size()
+
+
+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/NotFoundOpenShiftException.html b/documentation/com/openshift/client/NotFoundOpenShiftException.html new file mode 100644 index 00000000..3e115b2d --- /dev/null +++ b/documentation/com/openshift/client/NotFoundOpenShiftException.html @@ -0,0 +1,264 @@ + + + + + + + +NotFoundOpenShiftException (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client +
+Class NotFoundOpenShiftException

+
+java.lang.Object
+  extended by java.lang.Throwable
+      extended by java.lang.Exception
+          extended by java.lang.RuntimeException
+              extended by com.openshift.client.OpenShiftException
+                  extended by com.openshift.client.OpenShiftEndpointException
+                      extended by com.openshift.client.NotFoundOpenShiftException
+
+
+
All Implemented Interfaces:
Serializable
+
+
+
+
public class NotFoundOpenShiftException
extends OpenShiftEndpointException
+ + +

+

+
Author:
+
André Dietisheim
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + +
+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
+ +

+NotFoundOpenShiftException

+
+public NotFoundOpenShiftException(String url,
+                                  HttpClientException e,
+                                  RestResponse restResponse)
+                           throws OpenShiftException
+
+
+ +
Throws: +
OpenShiftException
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/OpenShiftApplicationNotAvailableException.html b/documentation/com/openshift/client/OpenShiftApplicationNotAvailableException.html new file mode 100644 index 00000000..b1b2880e --- /dev/null +++ b/documentation/com/openshift/client/OpenShiftApplicationNotAvailableException.html @@ -0,0 +1,245 @@ + + + + + + + +OpenShiftApplicationNotAvailableException (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client +
+Class OpenShiftApplicationNotAvailableException

+
+java.lang.Object
+  extended by java.lang.Throwable
+      extended by java.lang.Exception
+          extended by java.lang.RuntimeException
+              extended by com.openshift.client.OpenShiftException
+                  extended by com.openshift.client.OpenShiftApplicationNotAvailableException
+
+
+
All Implemented Interfaces:
Serializable
+
+
+
+
public class OpenShiftApplicationNotAvailableException
extends OpenShiftException
+ + +

+

+
Author:
+
Xavier Coulon
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + +
+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
+ +

+OpenShiftApplicationNotAvailableException

+
+public OpenShiftApplicationNotAvailableException(String message)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/OpenShiftConnectionFactory.html b/documentation/com/openshift/client/OpenShiftConnectionFactory.html new file mode 100644 index 00000000..a22beb99 --- /dev/null +++ b/documentation/com/openshift/client/OpenShiftConnectionFactory.html @@ -0,0 +1,423 @@ + + + + + + + +OpenShiftConnectionFactory (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client +
+Class OpenShiftConnectionFactory

+
+java.lang.Object
+  extended by com.openshift.internal.client.AbstractOpenShiftConnectionFactory
+      extended by com.openshift.client.OpenShiftConnectionFactory
+
+
+
+
public class OpenShiftConnectionFactory
extends AbstractOpenShiftConnectionFactory
+ + +

+Connection Factory, used to establish a connection and retrieve a user. +

+ +

+

+
Author:
+
Xavier Coulon, Andre Dietisheim
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
OpenShiftConnectionFactory() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ IOpenShiftConnectiongetConnection(String clientId, + String password) + +
+          Establish a connection with the clientId along with user's password.
+ IOpenShiftConnectiongetConnection(String clientId, + String username, + String password) + +
+          Establish a connection with the clientId along with user's login and + password.
+ IOpenShiftConnectiongetConnection(String clientId, + String username, + String password, + String serverUrl) + +
+          Establish a connection with the clientId along with user's login and + password.
+protected  IOpenShiftConnectiongetConnection(String clientId, + String username, + String password, + String serverUrl, + IHttpClient httpClient) + +
+           
+ IOpenShiftConnectiongetConnection(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
+ +

+OpenShiftConnectionFactory

+
+public OpenShiftConnectionFactory()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getConnection

+
+public IOpenShiftConnection getConnection(String clientId,
+                                          String password)
+                                   throws OpenShiftException
+
+
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) +

+

+
Parameters:
clientId - http client id
password - user's password +
Returns:
a valid connection +
Throws: +
FileNotFoundException +
IOException +
OpenShiftException
+
+
+
+ +

+getConnection

+
+public IOpenShiftConnection getConnection(String clientId,
+                                          String username,
+                                          String password)
+                                   throws OpenShiftException
+
+
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) +

+

+
Parameters:
clientId - http client id
username - user's login
password - user's password +
Returns:
a valid connection +
Throws: +
FileNotFoundException +
IOException +
OpenShiftException
+
+
+
+ +

+getConnection

+
+public IOpenShiftConnection getConnection(String clientId,
+                                          String username,
+                                          String password,
+                                          String serverUrl)
+                                   throws OpenShiftException
+
+
Establish a connection with the clientId along with user's login and + password. +

+

+
Parameters:
clientId - http client id
username - user's login.
password - user's password.
serverUrl - the server url. +
Returns:
a valid connection +
Throws: +
FileNotFoundException +
IOException +
OpenShiftException
+
+
+
+ +

+getConnection

+
+public IOpenShiftConnection getConnection(String clientId,
+                                          String username,
+                                          String password,
+                                          String authKey,
+                                          String authIV,
+                                          String serverUrl)
+                                   throws OpenShiftException
+
+
Establish a connection with the clientId along with user's login and + password. +

+

+
Parameters:
clientId - http client id
username - user's login.
password - user's password.
serverUrl - the server url. +
Returns:
a valid connection +
Throws: +
FileNotFoundException +
IOException +
OpenShiftException
+
+
+
+ +

+getConnection

+
+protected IOpenShiftConnection getConnection(String clientId,
+                                             String username,
+                                             String password,
+                                             String serverUrl,
+                                             IHttpClient httpClient)
+                                      throws OpenShiftException,
+                                             IOException
+
+
+ +
Throws: +
OpenShiftException +
IOException
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/OpenShiftEndpointException.html b/documentation/com/openshift/client/OpenShiftEndpointException.html new file mode 100644 index 00000000..33a0beb4 --- /dev/null +++ b/documentation/com/openshift/client/OpenShiftEndpointException.html @@ -0,0 +1,351 @@ + + + + + + + +OpenShiftEndpointException (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client +
+Class OpenShiftEndpointException

+
+java.lang.Object
+  extended by java.lang.Throwable
+      extended by java.lang.Exception
+          extended by java.lang.RuntimeException
+              extended by com.openshift.client.OpenShiftException
+                  extended by com.openshift.client.OpenShiftEndpointException
+
+
+
All Implemented Interfaces:
Serializable
+
+
+
Direct Known Subclasses:
InvalidCredentialsOpenShiftException, NotFoundOpenShiftException, OpenShiftTimeoutException
+
+
+
+
public class OpenShiftEndpointException
extends OpenShiftException
+ + +

+

+
Author:
+
André Dietisheim
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
OpenShiftEndpointException(String url, + Throwable cause, + RestResponse response, + String message, + Object... arguments) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ RestResponsegetRestResponse() + +
+           
+ List<Message>getRestResponseMessage(IField field) + +
+          Returns the message for the given field.
+ MessagesgetRestResponseMessages() + +
+           
+protected  StringgetUrl() + +
+           
+ + + + + + + +
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
+ +

+OpenShiftEndpointException

+
+public OpenShiftEndpointException(String url,
+                                  Throwable cause,
+                                  RestResponse response,
+                                  String message,
+                                  Object... arguments)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getRestResponse

+
+public RestResponse getRestResponse()
+                             throws OpenShiftException
+
+
+ +
Returns:
the server response after converting it into a RestResponse. +
Throws: +
OpenShiftException - if the unmarshalling fails
+
+
+
+ +

+getRestResponseMessages

+
+public Messages getRestResponseMessages()
+
+
+ +
Returns:
the server response messages after converting the response into a RestResponse. If the unmarshalling fails, the returned list is null.
+
+
+
+ +

+getRestResponseMessage

+
+public List<Message> getRestResponseMessage(IField field)
+
+
Returns the message for the given field. Returns null otherwise. +

+

+
Parameters:
field - +
Returns:
the message for the given field
See Also:
Message#FIELD_DEFAULT, +Message#FIELD_APPINFO, +Message#FIELD_RESULT
+
+
+
+ +

+getUrl

+
+protected String getUrl()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/OpenShiftException.html b/documentation/com/openshift/client/OpenShiftException.html new file mode 100644 index 00000000..7b4c625b --- /dev/null +++ b/documentation/com/openshift/client/OpenShiftException.html @@ -0,0 +1,267 @@ + + + + + + + +OpenShiftException (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client +
+Class OpenShiftException

+
+java.lang.Object
+  extended by java.lang.Throwable
+      extended by java.lang.Exception
+          extended by java.lang.RuntimeException
+              extended by com.openshift.client.OpenShiftException
+
+
+
All Implemented Interfaces:
Serializable
+
+
+
Direct Known Subclasses:
InvalidNameOpenShiftException, OpenShiftApplicationNotAvailableException, OpenShiftEndpointException, OpenShiftRequestException, OpenShiftSSHKeyException, OpenShiftSSHOperationException, OpenShiftUnknonwSSHKeyTypeException
+
+
+
+
public class OpenShiftException
extends RuntimeException
+ + +

+

+
Author:
+
André Dietisheim
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + + + + +
+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
+ +

+OpenShiftException

+
+public OpenShiftException(Throwable cause,
+                          String message,
+                          Object... arguments)
+
+
+
+ +

+OpenShiftException

+
+public OpenShiftException(String message,
+                          Object... arguments)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/OpenShiftRequestException.html b/documentation/com/openshift/client/OpenShiftRequestException.html new file mode 100644 index 00000000..f4ddd6c1 --- /dev/null +++ b/documentation/com/openshift/client/OpenShiftRequestException.html @@ -0,0 +1,247 @@ + + + + + + + +OpenShiftRequestException (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client +
+Class OpenShiftRequestException

+
+java.lang.Object
+  extended by java.lang.Throwable
+      extended by java.lang.Exception
+          extended by java.lang.RuntimeException
+              extended by com.openshift.client.OpenShiftException
+                  extended by com.openshift.client.OpenShiftRequestException
+
+
+
All Implemented Interfaces:
Serializable
+
+
+
+
public class OpenShiftRequestException
extends OpenShiftException
+ + +

+

+
Author:
+
Andre Dietisheim
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + +
+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
+ +

+OpenShiftRequestException

+
+public OpenShiftRequestException(String message,
+                                 Object... arguments)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/OpenShiftSSHKeyException.html b/documentation/com/openshift/client/OpenShiftSSHKeyException.html new file mode 100644 index 00000000..7d89a67d --- /dev/null +++ b/documentation/com/openshift/client/OpenShiftSSHKeyException.html @@ -0,0 +1,247 @@ + + + + + + + +OpenShiftSSHKeyException (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client +
+Class OpenShiftSSHKeyException

+
+java.lang.Object
+  extended by java.lang.Throwable
+      extended by java.lang.Exception
+          extended by java.lang.RuntimeException
+              extended by com.openshift.client.OpenShiftException
+                  extended by com.openshift.client.OpenShiftSSHKeyException
+
+
+
All Implemented Interfaces:
Serializable
+
+
+
+
public class OpenShiftSSHKeyException
extends OpenShiftException
+ + +

+

+
Author:
+
Andre Dietisheim
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + +
+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
+ +

+OpenShiftSSHKeyException

+
+public OpenShiftSSHKeyException(String message,
+                                Object... arguments)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/OpenShiftSSHOperationException.html b/documentation/com/openshift/client/OpenShiftSSHOperationException.html new file mode 100644 index 00000000..7d046e4f --- /dev/null +++ b/documentation/com/openshift/client/OpenShiftSSHOperationException.html @@ -0,0 +1,269 @@ + + + + + + + +OpenShiftSSHOperationException (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client +
+Class OpenShiftSSHOperationException

+
+java.lang.Object
+  extended by java.lang.Throwable
+      extended by java.lang.Exception
+          extended by java.lang.RuntimeException
+              extended by com.openshift.client.OpenShiftException
+                  extended by com.openshift.client.OpenShiftSSHOperationException
+
+
+
All Implemented Interfaces:
Serializable
+
+
+
+
public class OpenShiftSSHOperationException
extends OpenShiftException
+ + +

+OpenShift Exception that encapsulates an underlying exception that occurred during an SSH operation. +

+ +

+

+
Author:
+
Xavier Coulon
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + + + + +
+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
+ +

+OpenShiftSSHOperationException

+
+public OpenShiftSSHOperationException(Throwable cause,
+                                      String message,
+                                      Object... arguments)
+
+
+
+ +

+OpenShiftSSHOperationException

+
+public OpenShiftSSHOperationException(String message,
+                                      Object... arguments)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/OpenShiftTimeoutException.html b/documentation/com/openshift/client/OpenShiftTimeoutException.html new file mode 100644 index 00000000..46bb8f59 --- /dev/null +++ b/documentation/com/openshift/client/OpenShiftTimeoutException.html @@ -0,0 +1,261 @@ + + + + + + + +OpenShiftTimeoutException (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client +
+Class OpenShiftTimeoutException

+
+java.lang.Object
+  extended by java.lang.Throwable
+      extended by java.lang.Exception
+          extended by java.lang.RuntimeException
+              extended by com.openshift.client.OpenShiftException
+                  extended by com.openshift.client.OpenShiftEndpointException
+                      extended by com.openshift.client.OpenShiftTimeoutException
+
+
+
All Implemented Interfaces:
Serializable
+
+
+
+
public class OpenShiftTimeoutException
extends OpenShiftEndpointException
+ + +

+

+
Author:
+
Andre Dietisheim
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + +
+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
+ +

+OpenShiftTimeoutException

+
+public OpenShiftTimeoutException(String url,
+                                 Throwable e,
+                                 String message,
+                                 Object... arguments)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/OpenShiftUnknonwSSHKeyTypeException.html b/documentation/com/openshift/client/OpenShiftUnknonwSSHKeyTypeException.html new file mode 100644 index 00000000..a3fe091a --- /dev/null +++ b/documentation/com/openshift/client/OpenShiftUnknonwSSHKeyTypeException.html @@ -0,0 +1,247 @@ + + + + + + + +OpenShiftUnknonwSSHKeyTypeException (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client +
+Class OpenShiftUnknonwSSHKeyTypeException

+
+java.lang.Object
+  extended by java.lang.Throwable
+      extended by java.lang.Exception
+          extended by java.lang.RuntimeException
+              extended by com.openshift.client.OpenShiftException
+                  extended by com.openshift.client.OpenShiftUnknonwSSHKeyTypeException
+
+
+
All Implemented Interfaces:
Serializable
+
+
+
+
public class OpenShiftUnknonwSSHKeyTypeException
extends OpenShiftException
+ + +

+

+
Author:
+
Andre Dietisheim
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + +
+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
+ +

+OpenShiftUnknonwSSHKeyTypeException

+
+public OpenShiftUnknonwSSHKeyTypeException(String message,
+                                           Object... arguments)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/SSHKeyPair.html b/documentation/com/openshift/client/SSHKeyPair.html new file mode 100644 index 00000000..4e2e8a1a --- /dev/null +++ b/documentation/com/openshift/client/SSHKeyPair.html @@ -0,0 +1,368 @@ + + + + + + + +SSHKeyPair (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client +
+Class SSHKeyPair

+
+java.lang.Object
+  extended by com.openshift.internal.client.ssh.AbstractSSHKey
+      extended by com.openshift.client.SSHKeyPair
+
+
+
All Implemented Interfaces:
ISSHPublicKey
+
+
+
+
public class SSHKeyPair
extends AbstractSSHKey
+ + +

+

+
Author:
+
André Dietisheim
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static SSHKeyPaircreate(SSHKeyType type, + String passPhrase, + String privateKeyPath, + String publicKeyPath) + +
+          Creates private and public ssh-rsa keys and stores them to the given + paths.
+static SSHKeyPaircreate(String passPhrase, + String privateKeyPath, + String publicKeyPath) + +
+           
+ StringgetPrivateKeyPath() + +
+           
+ StringgetPublicKey() + +
+          Returns the content of the public key (key content without ssh-rsa + identifier nor comment) of the ssh key
+ StringgetPublicKeyPath() + +
+           
+static SSHKeyPairload(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
+ +

+create

+
+public static SSHKeyPair create(String passPhrase,
+                                String privateKeyPath,
+                                String publicKeyPath)
+                         throws OpenShiftException
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+create

+
+public static SSHKeyPair create(SSHKeyType type,
+                                String passPhrase,
+                                String privateKeyPath,
+                                String publicKeyPath)
+                         throws OpenShiftException
+
+
Creates private and public ssh-rsa keys and stores them to the given + paths. The key is created while using the given pass phrase. +

+

+
Parameters:
passPhrase - the pass phrase to set to the new key
privateKeyPath - the path where the new private key gets stored
publicKeyPath - the path where the new public key gets stored +
Returns:
+
Throws: +
OpenShiftException - if the key could not be created
+
+
+
+ +

+load

+
+public static SSHKeyPair load(String privateKeyPath,
+                              String publicKeyPath)
+                       throws OpenShiftException
+
+
Loads existing private and public ssh key from the given paths. +

+

+
Parameters:
privateKeyPath - the path to the private key
publicKeyPath - the path to the public key +
Returns:
+
Throws: +
OpenShiftException
+
+
+
+ +

+getPublicKey

+
+public String getPublicKey()
+
+
Description copied from interface: ISSHPublicKey
+
Returns the content of the public key (key content without ssh-rsa + identifier nor comment) of the ssh key +

+

+ +
Returns:
the content of the public key (without signature, without + comment)
+
+
+
+ +

+getPrivateKeyPath

+
+public String getPrivateKeyPath()
+
+
+
+
+
+
+ +

+getPublicKeyPath

+
+public String getPublicKeyPath()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/SSHKeyType.html b/documentation/com/openshift/client/SSHKeyType.html new file mode 100644 index 00000000..0e68f9db --- /dev/null +++ b/documentation/com/openshift/client/SSHKeyType.html @@ -0,0 +1,435 @@ + + + + + + + +SSHKeyType (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client +
+Enum SSHKeyType

+
+java.lang.Object
+  extended by java.lang.Enum<SSHKeyType>
+      extended by com.openshift.client.SSHKeyType
+
+
+
All Implemented Interfaces:
Serializable, Comparable<SSHKeyType>
+
+
+
+
public enum SSHKeyType
extends Enum<SSHKeyType>
+ + +

+

+
Author:
+
Andre Dietisheim
+
+
+ +

+ + + + + + + + + + + + + +
+Enum Constant Summary
SSH_DSA + +
+           
SSH_RSA + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static SSHKeyTypegetByJSchKeyType(int jschKeyType) + +
+           
+static SSHKeyTypegetByJSchKeyType(com.jcraft.jsch.KeyPair keyPair) + +
+           
+static SSHKeyTypegetByTypeId(String keyTypeId) + +
+           
+ StringgetTypeId() + +
+           
+ inttoJSchKeyType() + +
+          Returns the JSch key pair constant for a given SSHKeyType.
+static SSHKeyTypevalueOf(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
+ +

+SSH_RSA

+
+public static final SSHKeyType SSH_RSA
+
+
+
+
+
+ +

+SSH_DSA

+
+public static final SSHKeyType SSH_DSA
+
+
+
+
+ + + + + + + + +
+Method Detail
+ +

+values

+
+public static SSHKeyType[] values()
+
+
Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
+for (SSHKeyType c : SSHKeyType.values())
+    System.out.println(c);
+
+

+

+ +
Returns:
an array containing the constants of this enum type, in +the order they are declared
+
+
+
+ +

+valueOf

+
+public static SSHKeyType valueOf(String name)
+
+
Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.) +

+

+
Parameters:
name - the name of the enum constant to be returned. +
Returns:
the enum constant with the specified name +
Throws: +
IllegalArgumentException - if this enum type has no constant +with the specified name +
NullPointerException - if the argument is null
+
+
+
+ +

+getTypeId

+
+public String getTypeId()
+
+
+
+
+
+
+ +

+toJSchKeyType

+
+public int toJSchKeyType()
+
+
Returns the JSch key pair constant for a given SSHKeyType. +

+

+
Parameters:
type - the SSHKeyType that the JSch KeyPair constant will get + returned for +
Returns:
+
+
+
+ +

+getByTypeId

+
+public static SSHKeyType getByTypeId(String keyTypeId)
+                              throws OpenShiftUnknonwSSHKeyTypeException
+
+
+ +
Throws: +
OpenShiftUnknonwSSHKeyTypeException
+
+
+
+ +

+getByJSchKeyType

+
+public static SSHKeyType getByJSchKeyType(com.jcraft.jsch.KeyPair keyPair)
+                                   throws OpenShiftUnknonwSSHKeyTypeException
+
+
+ +
Throws: +
OpenShiftUnknonwSSHKeyTypeException
+
+
+
+ +

+getByJSchKeyType

+
+public static SSHKeyType getByJSchKeyType(int jschKeyType)
+                                   throws OpenShiftUnknonwSSHKeyTypeException
+
+
+ +
Throws: +
OpenShiftUnknonwSSHKeyTypeException
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/SSHPublicKey.html b/documentation/com/openshift/client/SSHPublicKey.html new file mode 100644 index 00000000..fc75021e --- /dev/null +++ b/documentation/com/openshift/client/SSHPublicKey.html @@ -0,0 +1,309 @@ + + + + + + + +SSHPublicKey (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client +
+Class SSHPublicKey

+
+java.lang.Object
+  extended by com.openshift.internal.client.ssh.AbstractSSHKey
+      extended by com.openshift.client.SSHPublicKey
+
+
+
All Implemented Interfaces:
ISSHPublicKey
+
+
+
+
public class SSHPublicKey
extends AbstractSSHKey
+ + +

+

+
Author:
+
André Dietisheim
+
+
+ +

+ + + + + + + + + + + + + + +
+Constructor Summary
SSHPublicKey(File publicKeyFile) + +
+           
SSHPublicKey(String publicKeyFilePath) + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ StringgetPublicKey() + +
+          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
+ +

+SSHPublicKey

+
+public SSHPublicKey(String publicKeyFilePath)
+             throws FileNotFoundException,
+                    OpenShiftException,
+                    IOException
+
+
+ +
Throws: +
FileNotFoundException +
OpenShiftException +
IOException
+
+
+ +

+SSHPublicKey

+
+public SSHPublicKey(File publicKeyFile)
+             throws FileNotFoundException,
+                    OpenShiftException,
+                    IOException
+
+
+ +
Throws: +
FileNotFoundException +
OpenShiftException +
IOException
+
+ + + + + + + + +
+Method Detail
+ +

+getPublicKey

+
+public String getPublicKey()
+
+
Description copied from interface: ISSHPublicKey
+
Returns the content of the public key (key content without ssh-rsa + identifier nor comment) of the ssh key +

+

+ +
Returns:
the content of the public key (without signature, without + comment)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/cartridge/EmbeddableCartridge.html b/documentation/com/openshift/client/cartridge/EmbeddableCartridge.html new file mode 100644 index 00000000..149eb4b8 --- /dev/null +++ b/documentation/com/openshift/client/cartridge/EmbeddableCartridge.html @@ -0,0 +1,367 @@ + + + + + + + +EmbeddableCartridge (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client.cartridge +
+Class EmbeddableCartridge

+
+java.lang.Object
+  extended by com.openshift.internal.client.cartridge.BaseCartridge
+      extended by com.openshift.client.cartridge.EmbeddableCartridge
+
+
+
All Implemented Interfaces:
ICartridge, IEmbeddableCartridge
+
+
+
+
public class EmbeddableCartridge
extends BaseCartridge
implements IEmbeddableCartridge
+ + +

+An cartridge that may be embedded (added) into an application. Add-on + cartridge is an equivalent name for embedded cartridge. +

+ +

+

+
Author:
+
Xavier Coulon
+
See Also:
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
+ booleanequals(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
+ +

+EmbeddableCartridge

+
+public EmbeddableCartridge(String name)
+
+
+
+ +

+EmbeddableCartridge

+
+public EmbeddableCartridge(URL url)
+
+
+
+ +

+EmbeddableCartridge

+
+public EmbeddableCartridge(String name,
+                           URL url)
+
+
+
+ +

+EmbeddableCartridge

+
+public EmbeddableCartridge(String name,
+                           String displayName,
+                           String description)
+
+
Constructor used when available cartridges are loaded from OpenShift +

+

+
See Also:
APIResource.getEmbeddableCartridges()
+
+ + + + + + + + +
+Method Detail
+ +

+equals

+
+public boolean equals(Object obj)
+
+
+
Overrides:
equals in class BaseCartridge
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/cartridge/ICartridge.html b/documentation/com/openshift/client/cartridge/ICartridge.html new file mode 100644 index 00000000..a1f7378c --- /dev/null +++ b/documentation/com/openshift/client/cartridge/ICartridge.html @@ -0,0 +1,355 @@ + + + + + + + +ICartridge (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client.cartridge +
+Interface ICartridge

+
+
All Known Subinterfaces:
IEmbeddableCartridge, IEmbeddedCartridge, IStandaloneCartridge
+
+
+
All Known Implementing Classes:
BaseCartridge, EmbeddableCartridge, EmbeddedCartridgeResource, StandaloneCartridge
+
+
+
+
public interface ICartridge
+ + +

+

+
Author:
+
André Dietisheim
+
+
+ +

+ + + + + + + + + + + +
+Field Summary
+static charNAME_VERSION_DELIMITER + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetDescription() + +
+          Returns a description for this cartridge
+ StringgetDisplayName() + +
+          Returns a (human readable, nice) display name for this cartridge
+ StringgetName() + +
+          Returns the name of this cartridge
+ URLgetUrl() + +
+          Returns the url at which the code for this cartridge may get downloaded.
+ booleanisDownloadable() + +
+          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
+ +

+NAME_VERSION_DELIMITER

+
+static final char NAME_VERSION_DELIMITER
+
+
+
See Also:
Constant Field Values
+
+ + + + + + + + +
+Method Detail
+ +

+getName

+
+String getName()
+
+
Returns the name of this cartridge +

+

+ +
Returns:
the name
+
+
+
+ +

+getDisplayName

+
+String getDisplayName()
+
+
Returns a (human readable, nice) display name for this cartridge +

+

+ +
Returns:
the display name
+
+
+
+ +

+getDescription

+
+String getDescription()
+
+
Returns a description for this cartridge +

+

+ +
Returns:
the description
+
+
+
+ +

+isDownloadable

+
+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). + 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)
  • +
+

+

+ +
Returns:
true if this is a downloadable cartridge
See Also:
getUrl()
+
+
+
+ +

+getUrl

+
+URL getUrl()
+
+
Returns the url at which the code for this cartridge may get downloaded. + Returns 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 +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/cartridge/IEmbeddableCartridge.html b/documentation/com/openshift/client/cartridge/IEmbeddableCartridge.html new file mode 100644 index 00000000..cfe8eca9 --- /dev/null +++ b/documentation/com/openshift/client/cartridge/IEmbeddableCartridge.html @@ -0,0 +1,426 @@ + + + + + + + +IEmbeddableCartridge (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client.cartridge +
+Interface IEmbeddableCartridge

+
+
All Superinterfaces:
ICartridge
+
+
+
All Known Subinterfaces:
IEmbeddedCartridge
+
+
+
All Known Implementing Classes:
EmbeddableCartridge, EmbeddedCartridgeResource
+
+
+
+
public interface IEmbeddableCartridge
extends ICartridge
+ + +

+

+
Author:
+
Xavier Coulon, Andre Dietisheim
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+static StringNAME_10GEN_MMS_AGENT + +
+           
+static StringNAME_CRON + +
+           
+static StringNAME_HAPROXY + +
+           
+static StringNAME_JENKINS_CLIENT + +
+           
+static StringNAME_METRICS + +
+           
+static StringNAME_MONGODB + +
+           
+static StringNAME_MYSQL + +
+           
+static StringNAME_PHPMYADMIN + +
+           
+static StringNAME_POSTGRESQL + +
+           
+static StringNAME_ROCKMONGO + +
+           
+static StringNAME_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
+ +

+NAME_10GEN_MMS_AGENT

+
+static final String NAME_10GEN_MMS_AGENT
+
+
+
See Also:
Constant Field Values
+
+
+ +

+NAME_CRON

+
+static final String NAME_CRON
+
+
+
See Also:
Constant Field Values
+
+
+ +

+NAME_HAPROXY

+
+static final String NAME_HAPROXY
+
+
+
See Also:
Constant Field Values
+
+
+ +

+NAME_JENKINS_CLIENT

+
+static final String NAME_JENKINS_CLIENT
+
+
+
See Also:
Constant Field Values
+
+
+ +

+NAME_METRICS

+
+static final String NAME_METRICS
+
+
+
See Also:
Constant Field Values
+
+
+ +

+NAME_MONGODB

+
+static final String NAME_MONGODB
+
+
+
See Also:
Constant Field Values
+
+
+ +

+NAME_PHPMYADMIN

+
+static final String NAME_PHPMYADMIN
+
+
+
See Also:
Constant Field Values
+
+
+ +

+NAME_POSTGRESQL

+
+static final String NAME_POSTGRESQL
+
+
+
See Also:
Constant Field Values
+
+
+ +

+NAME_MYSQL

+
+static final String NAME_MYSQL
+
+
+
See Also:
Constant Field Values
+
+
+ +

+NAME_ROCKMONGO

+
+static final String NAME_ROCKMONGO
+
+
+
See Also:
Constant Field Values
+
+
+ +

+NAME_SWITCHYARD

+
+static final String NAME_SWITCHYARD
+
+
+
See Also:
Constant Field Values
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/cartridge/IEmbeddedCartridge.html b/documentation/com/openshift/client/cartridge/IEmbeddedCartridge.html new file mode 100644 index 00000000..5ae9be4a --- /dev/null +++ b/documentation/com/openshift/client/cartridge/IEmbeddedCartridge.html @@ -0,0 +1,352 @@ + + + + + + + +IEmbeddedCartridge (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client.cartridge +
+Interface IEmbeddedCartridge

+
+
All Superinterfaces:
ICartridge, IEmbeddableCartridge, IOpenShiftResource
+
+
+
All Known Implementing Classes:
EmbeddedCartridgeResource
+
+
+
+
public interface IEmbeddedCartridge
extends IOpenShiftResource, IEmbeddableCartridge
+ + +

+Interface to designate a cartridge that has been added and configured +

+ +

+

+
Author:
+
André Dietisheim
+
+
+ +

+ + + + + + + +
+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
+ voiddestroy() + +
+          Destroys this cartridge (and removes it from the list of existing cartridges)
+ IApplicationgetApplication() + +
+          Returns the application this cartridge is embedded into.
+ CartridgeResourcePropertiesgetProperties() + +
+          Returns the properties for this embedded cartridge
+ URLgetUrl() + +
+          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
+ +

+getUrl

+
+URL getUrl()
+           throws OpenShiftException
+
+
The url at which this cartridge may be reached +

+

+
Specified by:
getUrl in interface ICartridge
+
+
+ +
Returns:
the url for this cartridge +
Throws: +
OpenShiftException
See Also:
ICartridge.isDownloadable()
+
+
+
+ +

+destroy

+
+void destroy()
+             throws OpenShiftException
+
+
Destroys this cartridge (and removes it from the list of existing cartridges) +

+

+
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+getApplication

+
+IApplication getApplication()
+
+
Returns the application this cartridge is embedded into. +

+

+
+
+
+ +
Returns:
application this is embedded into
+
+
+
+ +

+getProperties

+
+CartridgeResourceProperties getProperties()
+
+
Returns the properties for this embedded cartridge +

+

+
+
+
+ +
Returns:
the resource properties
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/cartridge/IStandaloneCartridge.html b/documentation/com/openshift/client/cartridge/IStandaloneCartridge.html new file mode 100644 index 00000000..7deed486 --- /dev/null +++ b/documentation/com/openshift/client/cartridge/IStandaloneCartridge.html @@ -0,0 +1,387 @@ + + + + + + + +IStandaloneCartridge (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client.cartridge +
+Interface IStandaloneCartridge

+
+
All Superinterfaces:
ICartridge
+
+
+
All Known Implementing Classes:
StandaloneCartridge
+
+
+
+
public interface IStandaloneCartridge
extends ICartridge
+ + +

+

+
Author:
+
André Dietisheim
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+static StringNAME_JBOSSAS + +
+           
+static StringNAME_JBOSSEAP + +
+           
+static StringNAME_JBOSSEWS + +
+           
+static StringNAME_JENKINS + +
+           
+static StringNAME_PERL + +
+           
+static StringNAME_PHP + +
+           
+static StringNAME_PYTHON + +
+           
+static StringNAME_RUBY + +
+           
+static StringNAME_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
+ +

+NAME_JBOSSEWS

+
+static final String NAME_JBOSSEWS
+
+
+
See Also:
Constant Field Values
+
+
+ +

+NAME_JBOSSAS

+
+static final String NAME_JBOSSAS
+
+
+
See Also:
Constant Field Values
+
+
+ +

+NAME_JBOSSEAP

+
+static final String NAME_JBOSSEAP
+
+
+
See Also:
Constant Field Values
+
+
+ +

+NAME_JENKINS

+
+static final String NAME_JENKINS
+
+
+
See Also:
Constant Field Values
+
+
+ +

+NAME_PERL

+
+static final String NAME_PERL
+
+
+
See Also:
Constant Field Values
+
+
+ +

+NAME_PHP

+
+static final String NAME_PHP
+
+
+
See Also:
Constant Field Values
+
+
+ +

+NAME_PYTHON

+
+static final String NAME_PYTHON
+
+
+
See Also:
Constant Field Values
+
+
+ +

+NAME_RUBY

+
+static final String NAME_RUBY
+
+
+
See Also:
Constant Field Values
+
+
+ +

+NAME_ZEND

+
+static final String NAME_ZEND
+
+
+
See Also:
Constant Field Values
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/cartridge/StandaloneCartridge.html b/documentation/com/openshift/client/cartridge/StandaloneCartridge.html new file mode 100644 index 00000000..ef0093c7 --- /dev/null +++ b/documentation/com/openshift/client/cartridge/StandaloneCartridge.html @@ -0,0 +1,351 @@ + + + + + + + +StandaloneCartridge (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client.cartridge +
+Class StandaloneCartridge

+
+java.lang.Object
+  extended by com.openshift.internal.client.cartridge.BaseCartridge
+      extended by com.openshift.client.cartridge.StandaloneCartridge
+
+
+
All Implemented Interfaces:
ICartridge, IStandaloneCartridge
+
+
+
+
public class StandaloneCartridge
extends BaseCartridge
implements IStandaloneCartridge
+ + +

+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
+
+
+ +

+ + + + + + + +
+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
+ +

+StandaloneCartridge

+
+public StandaloneCartridge(String name)
+
+
+
+ +

+StandaloneCartridge

+
+public StandaloneCartridge(URL url)
+
+
+
+ +

+StandaloneCartridge

+
+public StandaloneCartridge(String name,
+                           URL url)
+
+
+
+ +

+StandaloneCartridge

+
+public StandaloneCartridge(String name,
+                           String displayName,
+                           String description)
+
+
+
+ +

+StandaloneCartridge

+
+public StandaloneCartridge(String name,
+                           URL url,
+                           String displayName,
+                           String description)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/cartridge/class-use/EmbeddableCartridge.html b/documentation/com/openshift/client/cartridge/class-use/EmbeddableCartridge.html new file mode 100644 index 00000000..846f7251 --- /dev/null +++ b/documentation/com/openshift/client/cartridge/class-use/EmbeddableCartridge.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.openshift.client.cartridge.EmbeddableCartridge (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.client.cartridge.EmbeddableCartridge

+
+No usage of com.openshift.client.cartridge.EmbeddableCartridge +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/cartridge/class-use/ICartridge.html b/documentation/com/openshift/client/cartridge/class-use/ICartridge.html new file mode 100644 index 00000000..5d160a0f --- /dev/null +++ b/documentation/com/openshift/client/cartridge/class-use/ICartridge.html @@ -0,0 +1,552 @@ + + + + + + + +Uses of Interface com.openshift.client.cartridge.ICartridge (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Interface
com.openshift.client.cartridge.ICartridge

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+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
+ interfaceIEmbeddableCartridge + +
+           
+ interfaceIEmbeddedCartridge + +
+          Interface to designate a cartridge that has been added and configured
+ interfaceIStandaloneCartridge + +
+           
+  +

+ + + + + + + + + + + + + +
Classes in com.openshift.client.cartridge that implement ICartridge
+ classEmbeddableCartridge + +
+          An cartridge that may be embedded (added) into an application.
+ classStandaloneCartridge + +
+          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
+ + + + + +
+<C extends ICartridge> +
+C
+
LatestVersionQuery.get(Collection<C> cartridges) + +
+           
+ + + + + +
+<C extends ICartridge> +
+Collection<C>
+
LatestVersionQuery.getAll(Collection<C> cartridges) + +
+           
+protected + + + + +
+<C extends ICartridge> +
+C
+
LatestVersionQuery.getLatest(Collection<C> matchingCartridges) + +
+           
+protected abstract + + + + +
+<C extends ICartridge> +
+String
+
StringPropertyQuery.getProperty(C cartridge) + +
+           
+ + + + + +
+<C extends ICartridge> +
+boolean
+
StringPropertyQuery.matches(C cartridge) + +
+           
+ + + + + +
+<C extends ICartridge> +
+boolean
+
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
+ classEmbeddedCartridgeResource + +
+          A cartridge that is embedded into an application.
+  +

+ + + + + + + + + +
Methods in com.openshift.internal.client that return ICartridge
+protected  ICartridgeApplicationResource.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
+ classBaseCartridge + +
+          A (base) cartridge for an OpenShift application.
+  +

+ + + + + + + + + + + + + + + + + +
Methods in com.openshift.internal.client.cartridge with type parameters of type ICartridge
+ + + + + +
+<C extends ICartridge> +
+C
+
AbstractCartridgeQuery.get(Collection<C> cartridges) + +
+           
+ + + + + +
+<C extends ICartridge> +
+Collection<C>
+
AbstractCartridgeQuery.getAll(Collection<C> cartridges) + +
+           
+abstract + + + + +
+<C extends ICartridge> +
+boolean
+
AbstractCartridgeQuery.matches(C cartridge) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/cartridge/class-use/IEmbeddableCartridge.html b/documentation/com/openshift/client/cartridge/class-use/IEmbeddableCartridge.html new file mode 100644 index 00000000..bedc222d --- /dev/null +++ b/documentation/com/openshift/client/cartridge/class-use/IEmbeddableCartridge.html @@ -0,0 +1,516 @@ + + + + + + + +Uses of Interface com.openshift.client.cartridge.IEmbeddableCartridge (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Interface
com.openshift.client.cartridge.IEmbeddableCartridge

+
+ + + + + + + + + + + + + + + + + + + + + +
+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
+ IEmbeddedCartridgeIApplication.addEmbeddableCartridge(IEmbeddableCartridge cartridge) + +
+          Adds the given embeddable cartridge to this application.
+ IApplicationIDomain.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.
+ IApplicationIDomain.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.
+ IEmbeddedCartridgeIApplication.getEmbeddedCartridge(IEmbeddableCartridge cartridge) + +
+          Returns the embedded cartridge in this application.
+ booleanIApplication.hasEmbeddedCartridge(IEmbeddableCartridge cartridge) + +
+          Returns true if this application has an embedded cartridge.
+ voidIApplication.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.
+ voidIApplication.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
+ interfaceIEmbeddedCartridge + +
+          Interface to designate a cartridge that has been added and configured
+  +

+ + + + + + + + + +
Classes in com.openshift.client.cartridge that implement IEmbeddableCartridge
+ classEmbeddableCartridge + +
+          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
+ IEmbeddableCartridgeLatestEmbeddableCartridge.get(IApplication application) + +
+           
+ IEmbeddableCartridgeLatestEmbeddableCartridge.get(IUser user) + +
+           
+  +

+ + + + + +
+Uses of IEmbeddableCartridge in com.openshift.internal.client
+  +

+ + + + + + + + + +
Classes in com.openshift.internal.client that implement IEmbeddableCartridge
+ classEmbeddedCartridgeResource + +
+          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.ParametersAbstractOpenShiftResource.Parameters.addCartridge(IEmbeddableCartridge embeddable) + +
+           
+protected  AbstractOpenShiftResource.ParametersAbstractOpenShiftResource.Parameters.addCartridges(IStandaloneCartridge standalone, + IEmbeddableCartridge[] embeddables) + +
+           
+ IEmbeddedCartridgeApplicationResource.addEmbeddableCartridge(IEmbeddableCartridge cartridge) + +
+          Adds the given embedded cartridge to this application.
+ IApplicationDomainResource.createApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale, + IGearProfile gearProfile, + String initialGitUrl, + int timeout, + IEmbeddableCartridge... cartridges) + +
+           
+ IApplicationDomainResource.createApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale, + IGearProfile gearProfile, + String initialGitUrl, + int timeout, + Map<String,String> environmentVariables, + IEmbeddableCartridge... cartridges) + +
+           
+ IEmbeddedCartridgeApplicationResource.getEmbeddedCartridge(IEmbeddableCartridge cartridge) + +
+           
+ booleanApplicationResource.hasEmbeddedCartridge(IEmbeddableCartridge cartridge) + +
+           
+ voidApplicationResource.removeEmbeddedCartridge(IEmbeddableCartridge cartridge) + +
+           
+  +

+ + + + + + + + + + + + + +
Method parameters in com.openshift.internal.client with type arguments of type IEmbeddableCartridge
+ List<IEmbeddedCartridge>ApplicationResource.addEmbeddableCartridges(Collection<IEmbeddableCartridge> cartridges) + +
+           
+ voidApplicationResource.removeEmbeddedCartridges(Collection<IEmbeddableCartridge> cartridges) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/cartridge/class-use/IEmbeddedCartridge.html b/documentation/com/openshift/client/cartridge/class-use/IEmbeddedCartridge.html new file mode 100644 index 00000000..21afcc05 --- /dev/null +++ b/documentation/com/openshift/client/cartridge/class-use/IEmbeddedCartridge.html @@ -0,0 +1,359 @@ + + + + + + + +Uses of Interface com.openshift.client.cartridge.IEmbeddedCartridge (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Interface
com.openshift.client.cartridge.IEmbeddedCartridge

+
+ + + + + + + + + + + + + + + + + +
+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
+ IEmbeddedCartridgeIApplication.addEmbeddableCartridge(IEmbeddableCartridge cartridge) + +
+          Adds the given embeddable cartridge to this application.
+ IEmbeddedCartridgeIApplication.getEmbeddedCartridge(IEmbeddableCartridge cartridge) + +
+          Returns the embedded cartridge in this application.
+ IEmbeddedCartridgeIApplication.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
+ CartridgeResourcePropertyUrlPropertyQuery.getMatchingProperty(IEmbeddedCartridge embeddedCartridge) + +
+           
+abstract  CartridgeResourcePropertyCartridgePropertyQuery.getMatchingProperty(IEmbeddedCartridge embeddedCartridge) + +
+           
+  +

+ + + + + +
+Uses of IEmbeddedCartridge in com.openshift.internal.client
+  +

+ + + + + + + + + +
Classes in com.openshift.internal.client that implement IEmbeddedCartridge
+ classEmbeddedCartridgeResource + +
+          A cartridge that is embedded into an application.
+  +

+ + + + + + + + + + + + + + + + + +
Methods in com.openshift.internal.client that return IEmbeddedCartridge
+ IEmbeddedCartridgeApplicationResource.addEmbeddableCartridge(IEmbeddableCartridge cartridge) + +
+          Adds the given embedded cartridge to this application.
+ IEmbeddedCartridgeApplicationResource.getEmbeddedCartridge(IEmbeddableCartridge cartridge) + +
+           
+ IEmbeddedCartridgeApplicationResource.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  voidApplicationResource.removeEmbeddedCartridge(IEmbeddedCartridge embeddedCartridge) + +
+          "callback" from the embeddedCartridge once it has been destroyed.
+  +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/cartridge/class-use/IStandaloneCartridge.html b/documentation/com/openshift/client/cartridge/class-use/IStandaloneCartridge.html new file mode 100644 index 00000000..68a2e776 --- /dev/null +++ b/documentation/com/openshift/client/cartridge/class-use/IStandaloneCartridge.html @@ -0,0 +1,597 @@ + + + + + + + +Uses of Interface com.openshift.client.cartridge.IStandaloneCartridge (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Interface
com.openshift.client.cartridge.IStandaloneCartridge

+
+ + + + + + + + + + + + + + + + + + + + + +
+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
+ IStandaloneCartridgeIApplication.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
+ IApplicationIDomain.createApplication(String name, + IStandaloneCartridge cartridge) + +
+           
+ IApplicationIDomain.createApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale) + +
+           
+ IApplicationIDomain.createApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale, + IGearProfile gearProfile) + +
+           
+ IApplicationIDomain.createApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale, + IGearProfile gearProfile, + String initialGitUrl) + +
+          Creates a new application with the given name and the given + cartridge/framework.
+ IApplicationIDomain.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.
+ IApplicationIDomain.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.
+ IApplicationIDomain.createApplication(String name, + IStandaloneCartridge cartridge, + IGearProfile gearProfile) + +
+           
+ IApplicationIDomain.createApplication(String name, + IStandaloneCartridge cartridge, + String initialGitUrl) + +
+           
+ List<IApplication>IDomain.getApplicationsByCartridge(IStandaloneCartridge cartridge) + +
+           
+ booleanIDomain.hasApplicationByCartridge(IStandaloneCartridge cartridge) + +
+           
+ ApplicationBuilder.CartridgeHolderApplicationBuilder.setCartridge(IStandaloneCartridge cartridge) + +
+           
+  +

+ + + + + +
+Uses of IStandaloneCartridge in com.openshift.client.cartridge
+  +

+ + + + + + + + + +
Classes in com.openshift.client.cartridge that implement IStandaloneCartridge
+ classStandaloneCartridge + +
+          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
+ IStandaloneCartridgeLatestStandaloneCartridge.get(IApplication application) + +
+           
+ IStandaloneCartridgeLatestStandaloneCartridge.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
+ IStandaloneCartridgeApplicationResource.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.ParametersAbstractOpenShiftResource.Parameters.addCartridges(IStandaloneCartridge standalone, + IEmbeddableCartridge[] embeddables) + +
+           
+ IApplicationDomainResource.createApplication(String name, + IStandaloneCartridge cartridge) + +
+           
+ IApplicationDomainResource.createApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale) + +
+           
+ IApplicationDomainResource.createApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale, + IGearProfile gearProfile) + +
+           
+ IApplicationDomainResource.createApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale, + IGearProfile gearProfile, + String initialGitUrl) + +
+           
+ IApplicationDomainResource.createApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale, + IGearProfile gearProfile, + String initialGitUrl, + int timeout, + IEmbeddableCartridge... cartridges) + +
+           
+ IApplicationDomainResource.createApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale, + IGearProfile gearProfile, + String initialGitUrl, + int timeout, + Map<String,String> environmentVariables, + IEmbeddableCartridge... cartridges) + +
+           
+ IApplicationDomainResource.createApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale, + String initialGitUrl) + +
+           
+ IApplicationDomainResource.createApplication(String name, + IStandaloneCartridge cartridge, + IGearProfile gearProfile) + +
+           
+ IApplicationDomainResource.createApplication(String name, + IStandaloneCartridge cartridge, + IGearProfile gearProfile, + String initialGitUrl) + +
+           
+ IApplicationDomainResource.createApplication(String name, + IStandaloneCartridge cartridge, + String initialGitUrl) + +
+           
+ List<IApplication>DomainResource.getApplicationsByCartridge(IStandaloneCartridge cartridge) + +
+           
+ booleanDomainResource.hasApplicationByCartridge(IStandaloneCartridge cartridge) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/cartridge/class-use/StandaloneCartridge.html b/documentation/com/openshift/client/cartridge/class-use/StandaloneCartridge.html new file mode 100644 index 00000000..aa072e75 --- /dev/null +++ b/documentation/com/openshift/client/cartridge/class-use/StandaloneCartridge.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.openshift.client.cartridge.StandaloneCartridge (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.client.cartridge.StandaloneCartridge

+
+No usage of com.openshift.client.cartridge.StandaloneCartridge +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/cartridge/package-frame.html b/documentation/com/openshift/client/cartridge/package-frame.html new file mode 100644 index 00000000..c93d2d3e --- /dev/null +++ b/documentation/com/openshift/client/cartridge/package-frame.html @@ -0,0 +1,52 @@ + + + + + + + +com.openshift.client.cartridge (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + +com.openshift.client.cartridge + + + + +
+Interfaces  + +
+ICartridge +
+IEmbeddableCartridge +
+IEmbeddedCartridge +
+IStandaloneCartridge
+ + + + + + +
+Classes  + +
+EmbeddableCartridge +
+StandaloneCartridge
+ + + + diff --git a/documentation/com/openshift/client/cartridge/package-summary.html b/documentation/com/openshift/client/cartridge/package-summary.html new file mode 100644 index 00000000..76678ebe --- /dev/null +++ b/documentation/com/openshift/client/cartridge/package-summary.html @@ -0,0 +1,188 @@ + + + + + + + +com.openshift.client.cartridge (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+

+Package com.openshift.client.cartridge +

+ + + + + + + + + + + + + + + + + + + + + +
+Interface Summary
ICartridge 
IEmbeddableCartridge 
IEmbeddedCartridgeInterface to designate a cartridge that has been added and configured
IStandaloneCartridge 
+  + +

+ + + + + + + + + + + + + +
+Class Summary
EmbeddableCartridgeAn cartridge that may be embedded (added) into an application.
StandaloneCartridgeA cartridge that is available on the openshift server.
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/cartridge/package-tree.html b/documentation/com/openshift/client/cartridge/package-tree.html new file mode 100644 index 00000000..16aeff97 --- /dev/null +++ b/documentation/com/openshift/client/cartridge/package-tree.html @@ -0,0 +1,172 @@ + + + + + + + +com.openshift.client.cartridge Class Hierarchy (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Hierarchy For Package com.openshift.client.cartridge +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/cartridge/package-use.html b/documentation/com/openshift/client/cartridge/package-use.html new file mode 100644 index 00000000..e2844a87 --- /dev/null +++ b/documentation/com/openshift/client/cartridge/package-use.html @@ -0,0 +1,332 @@ + + + + + + + +Uses of Package com.openshift.client.cartridge (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Package
com.openshift.client.cartridge

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+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 +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/cartridge/selector/CartridgePropertyQuery.html b/documentation/com/openshift/client/cartridge/selector/CartridgePropertyQuery.html new file mode 100644 index 00000000..168f2e77 --- /dev/null +++ b/documentation/com/openshift/client/cartridge/selector/CartridgePropertyQuery.html @@ -0,0 +1,260 @@ + + + + + + + +CartridgePropertyQuery (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client.cartridge.selector +
+Class CartridgePropertyQuery

+
+java.lang.Object
+  extended by com.openshift.client.cartridge.selector.CartridgePropertyQuery
+
+
+
Direct Known Subclasses:
UrlPropertyQuery
+
+
+
+
public abstract class CartridgePropertyQuery
extends Object
+ + +

+

+
Author:
+
André Dietisheim
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
CartridgePropertyQuery() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+abstract  CartridgeResourcePropertygetMatchingProperty(IEmbeddedCartridge embeddedCartridge) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+CartridgePropertyQuery

+
+public CartridgePropertyQuery()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getMatchingProperty

+
+public abstract CartridgeResourceProperty getMatchingProperty(IEmbeddedCartridge embeddedCartridge)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/cartridge/selector/LatestEmbeddableCartridge.html b/documentation/com/openshift/client/cartridge/selector/LatestEmbeddableCartridge.html new file mode 100644 index 00000000..9f877eac --- /dev/null +++ b/documentation/com/openshift/client/cartridge/selector/LatestEmbeddableCartridge.html @@ -0,0 +1,319 @@ + + + + + + + +LatestEmbeddableCartridge (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client.cartridge.selector +
+Class LatestEmbeddableCartridge

+
+java.lang.Object
+  extended by com.openshift.internal.client.cartridge.AbstractCartridgeQuery
+      extended by com.openshift.client.cartridge.selector.LatestVersionQuery
+          extended by com.openshift.client.cartridge.selector.LatestEmbeddableCartridge
+
+
+
+
public class LatestEmbeddableCartridge
extends LatestVersionQuery
+ + +

+A selector that shall select the latest version of an embedded cartidge that's given by name. +

+ +

+

+
Author:
+
Andre Dietisheim
+
See Also:
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
+ IEmbeddableCartridgeget(IApplication application) + +
+           
+ IEmbeddableCartridgeget(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
+ +

+LatestEmbeddableCartridge

+
+public LatestEmbeddableCartridge(String name)
+
+
+ + + + + + + + +
+Method Detail
+ +

+get

+
+public IEmbeddableCartridge get(IApplication application)
+
+
+
+
+
+
+ +

+get

+
+public IEmbeddableCartridge get(IUser user)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/cartridge/selector/LatestStandaloneCartridge.html b/documentation/com/openshift/client/cartridge/selector/LatestStandaloneCartridge.html new file mode 100644 index 00000000..ee972a90 --- /dev/null +++ b/documentation/com/openshift/client/cartridge/selector/LatestStandaloneCartridge.html @@ -0,0 +1,319 @@ + + + + + + + +LatestStandaloneCartridge (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client.cartridge.selector +
+Class LatestStandaloneCartridge

+
+java.lang.Object
+  extended by com.openshift.internal.client.cartridge.AbstractCartridgeQuery
+      extended by com.openshift.client.cartridge.selector.LatestVersionQuery
+          extended by com.openshift.client.cartridge.selector.LatestStandaloneCartridge
+
+
+
+
public class LatestStandaloneCartridge
extends LatestVersionQuery
+ + +

+A selector that shall select the latest version of a standalone cartidge that's given by name. +

+ +

+

+
Author:
+
Andre Dietisheim
+
See Also:
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
+ IStandaloneCartridgeget(IApplication application) + +
+           
+ IStandaloneCartridgeget(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
+ +

+LatestStandaloneCartridge

+
+public LatestStandaloneCartridge(String name)
+
+
+ + + + + + + + +
+Method Detail
+ +

+get

+
+public IStandaloneCartridge get(IApplication application)
+
+
+
+
+
+
+ +

+get

+
+public IStandaloneCartridge get(IUser user)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/cartridge/selector/LatestVersionOf.html b/documentation/com/openshift/client/cartridge/selector/LatestVersionOf.html new file mode 100644 index 00000000..60618756 --- /dev/null +++ b/documentation/com/openshift/client/cartridge/selector/LatestVersionOf.html @@ -0,0 +1,618 @@ + + + + + + + +LatestVersionOf (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client.cartridge.selector +
+Class LatestVersionOf

+
+java.lang.Object
+  extended by com.openshift.client.cartridge.selector.LatestVersionOf
+
+
+
+
public class LatestVersionOf
extends Object
+ + +

+

+
Author:
+
Andre Dietisheim
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
LatestVersionOf() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static LatestEmbeddableCartridgecron() + +
+           
+static LatestEmbeddableCartridgehaProxy() + +
+           
+static LatestStandaloneCartridgejbossAs() + +
+           
+static LatestStandaloneCartridgejbossEap() + +
+           
+static LatestStandaloneCartridgejbossEws() + +
+           
+static LatestStandaloneCartridgejenkins() + +
+           
+static LatestEmbeddableCartridgejenkinsClient() + +
+           
+static LatestEmbeddableCartridgemetrics() + +
+           
+static LatestEmbeddableCartridgemmsAgent() + +
+           
+static LatestEmbeddableCartridgemongoDB() + +
+           
+static LatestEmbeddableCartridgemySQL() + +
+           
+static LatestStandaloneCartridgeperl() + +
+           
+static LatestStandaloneCartridgephp() + +
+           
+static LatestEmbeddableCartridgephpMyAdmin() + +
+           
+static LatestEmbeddableCartridgepostgreSQL() + +
+           
+static LatestStandaloneCartridgepython() + +
+           
+static LatestEmbeddableCartridgerockMongo() + +
+           
+static LatestStandaloneCartridgeruby() + +
+           
+static LatestEmbeddableCartridgeswitchyard() + +
+           
+static LatestStandaloneCartridgezend() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+LatestVersionOf

+
+public LatestVersionOf()
+
+
+ + + + + + + + +
+Method Detail
+ +

+mmsAgent

+
+public static LatestEmbeddableCartridge mmsAgent()
+
+
+
+
+
+
+ +

+cron

+
+public static LatestEmbeddableCartridge cron()
+
+
+
+
+
+
+ +

+haProxy

+
+public static LatestEmbeddableCartridge haProxy()
+
+
+
+
+
+
+ +

+jenkinsClient

+
+public static LatestEmbeddableCartridge jenkinsClient()
+
+
+
+
+
+
+ +

+metrics

+
+public static LatestEmbeddableCartridge metrics()
+
+
+
+
+
+
+ +

+mongoDB

+
+public static LatestEmbeddableCartridge mongoDB()
+
+
+
+
+
+
+ +

+phpMyAdmin

+
+public static LatestEmbeddableCartridge phpMyAdmin()
+
+
+
+
+
+
+ +

+postgreSQL

+
+public static LatestEmbeddableCartridge postgreSQL()
+
+
+
+
+
+
+ +

+mySQL

+
+public static LatestEmbeddableCartridge mySQL()
+
+
+
+
+
+
+ +

+rockMongo

+
+public static LatestEmbeddableCartridge rockMongo()
+
+
+
+
+
+
+ +

+switchyard

+
+public static LatestEmbeddableCartridge switchyard()
+
+
+
+
+
+
+ +

+jbossEws

+
+public static LatestStandaloneCartridge jbossEws()
+
+
+
+
+
+
+ +

+jbossEap

+
+public static LatestStandaloneCartridge jbossEap()
+
+
+
+
+
+
+ +

+jbossAs

+
+public static LatestStandaloneCartridge jbossAs()
+
+
+
+
+
+
+ +

+jenkins

+
+public static LatestStandaloneCartridge jenkins()
+
+
+
+
+
+
+ +

+perl

+
+public static LatestStandaloneCartridge perl()
+
+
+
+
+
+
+ +

+php

+
+public static LatestStandaloneCartridge php()
+
+
+
+
+
+
+ +

+python

+
+public static LatestStandaloneCartridge python()
+
+
+
+
+
+
+ +

+ruby

+
+public static LatestStandaloneCartridge ruby()
+
+
+
+
+
+
+ +

+zend

+
+public static LatestStandaloneCartridge zend()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/cartridge/selector/LatestVersionQuery.VersionedName.html b/documentation/com/openshift/client/cartridge/selector/LatestVersionQuery.VersionedName.html new file mode 100644 index 00000000..69d5d853 --- /dev/null +++ b/documentation/com/openshift/client/cartridge/selector/LatestVersionQuery.VersionedName.html @@ -0,0 +1,352 @@ + + + + + + + +LatestVersionQuery.VersionedName (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client.cartridge.selector +
+Class LatestVersionQuery.VersionedName

+
+java.lang.Object
+  extended by com.openshift.client.cartridge.selector.LatestVersionQuery.VersionedName
+
+
+
All Implemented Interfaces:
Comparable<LatestVersionQuery.VersionedName>
+
+
+
Enclosing class:
LatestVersionQuery
+
+
+
+
protected class LatestVersionQuery.VersionedName
extends Object
implements Comparable<LatestVersionQuery.VersionedName>
+ + +

+


+ +

+ + + + + + + + + + + + +
+Constructor Summary
+protected LatestVersionQuery.VersionedName(String name) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ intcompareTo(LatestVersionQuery.VersionedName other) + +
+           
+ StringgetMajor() + +
+           
+ StringgetMinor() + +
+           
+ StringgetName() + +
+           
+ booleanhasVersion() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+LatestVersionQuery.VersionedName

+
+protected LatestVersionQuery.VersionedName(String name)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getName

+
+public String getName()
+
+
+
+
+
+
+
+
+
+ +

+hasVersion

+
+public boolean hasVersion()
+
+
+
+
+
+
+
+
+
+ +

+getMajor

+
+public String getMajor()
+
+
+
+
+
+
+
+
+
+ +

+getMinor

+
+public String getMinor()
+
+
+
+
+
+
+
+
+
+ +

+compareTo

+
+public int compareTo(LatestVersionQuery.VersionedName other)
+
+
+
Specified by:
compareTo in interface Comparable<LatestVersionQuery.VersionedName>
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/cartridge/selector/LatestVersionQuery.html b/documentation/com/openshift/client/cartridge/selector/LatestVersionQuery.html new file mode 100644 index 00000000..159fb090 --- /dev/null +++ b/documentation/com/openshift/client/cartridge/selector/LatestVersionQuery.html @@ -0,0 +1,477 @@ + + + + + + + +LatestVersionQuery (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client.cartridge.selector +
+Class LatestVersionQuery

+
+java.lang.Object
+  extended by com.openshift.internal.client.cartridge.AbstractCartridgeQuery
+      extended by com.openshift.client.cartridge.selector.LatestVersionQuery
+
+
+
Direct Known Subclasses:
LatestEmbeddableCartridge, LatestStandaloneCartridge
+
+
+
+
public class LatestVersionQuery
extends AbstractCartridgeQuery
+ + +

+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 Also:
for cartridges that have already been added and + configured to an application.
+
+ +

+ + + + + + + + + + + +
+Nested Class Summary
+protected  classLatestVersionQuery.VersionedName + +
+           
+  + + + + + + + + + + +
+Constructor Summary
LatestVersionQuery(String name) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ Collection<IStandaloneCartridge>allStandaloneCartridges(IApplication application) + +
+           
+ booleanequals(Object obj) + +
+           
+ + + + + +
+<C extends ICartridge> +
+C
+
get(Collection<C> cartridges) + +
+           
+ + + + + +
+<C extends ICartridge> +
+Collection<C>
+
getAll(Collection<C> cartridges) + +
+           
+protected + + + + +
+<C extends ICartridge> +
+C
+
getLatest(Collection<C> matchingCartridges) + +
+           
+ StringgetNameConstraint() + +
+           
+ inthashCode() + +
+           
+ + + + + +
+<C extends ICartridge> +
+boolean
+
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
+ +

+LatestVersionQuery

+
+public LatestVersionQuery(String name)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getNameConstraint

+
+public String getNameConstraint()
+
+
+
+
+
+
+ +

+getAll

+
+public <C extends ICartridge> Collection<C> getAll(Collection<C> cartridges)
+
+
+
Overrides:
getAll in class AbstractCartridgeQuery
+
+
+
+
+
+
+ +

+get

+
+public <C extends ICartridge> C get(Collection<C> cartridges)
+
+
+
Overrides:
get in class AbstractCartridgeQuery
+
+
+
+
+
+
+ +

+matches

+
+public <C extends ICartridge> boolean matches(C cartridge)
+
+
+
Specified by:
matches in class AbstractCartridgeQuery
+
+
+
+
+
+
+ +

+getLatest

+
+protected <C extends ICartridge> C getLatest(Collection<C> matchingCartridges)
+
+
+
+
+
+
+ +

+allStandaloneCartridges

+
+public Collection<IStandaloneCartridge> allStandaloneCartridges(IApplication application)
+
+
+
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class Object
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object obj)
+
+
+
Overrides:
equals in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/cartridge/selector/StringPropertyQuery.html b/documentation/com/openshift/client/cartridge/selector/StringPropertyQuery.html new file mode 100644 index 00000000..35fd956a --- /dev/null +++ b/documentation/com/openshift/client/cartridge/selector/StringPropertyQuery.html @@ -0,0 +1,326 @@ + + + + + + + +StringPropertyQuery (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client.cartridge.selector +
+Class StringPropertyQuery

+
+java.lang.Object
+  extended by com.openshift.internal.client.cartridge.AbstractCartridgeQuery
+      extended by com.openshift.client.cartridge.selector.StringPropertyQuery
+
+
+
+
public abstract class StringPropertyQuery
extends AbstractCartridgeQuery
+ + +

+A constraint that shall match available cartridges by url. +

+ +

+

+
Author:
+
Andre Dietisheim
+
See Also:
IEmbeddableCartridge, +IStandaloneCartridge
+
+ +

+ + + + + + + + + + + + + + +
+Constructor Summary
StringPropertyQuery(Pattern pattern) + +
+           
StringPropertyQuery(String propertyPattern) + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+protected abstract + + + + +
+<C extends ICartridge> +
+String
+
getProperty(C cartridge) + +
+           
+ + + + + +
+<C extends ICartridge> +
+boolean
+
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
+ +

+StringPropertyQuery

+
+public StringPropertyQuery(String propertyPattern)
+
+
+
+ +

+StringPropertyQuery

+
+public StringPropertyQuery(Pattern pattern)
+
+
+ + + + + + + + +
+Method Detail
+ +

+matches

+
+public <C extends ICartridge> boolean matches(C cartridge)
+
+
+
Specified by:
matches in class AbstractCartridgeQuery
+
+
+
+
+
+
+ +

+getProperty

+
+protected abstract <C extends ICartridge> String getProperty(C cartridge)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/cartridge/selector/UrlPropertyQuery.html b/documentation/com/openshift/client/cartridge/selector/UrlPropertyQuery.html new file mode 100644 index 00000000..5504f899 --- /dev/null +++ b/documentation/com/openshift/client/cartridge/selector/UrlPropertyQuery.html @@ -0,0 +1,261 @@ + + + + + + + +UrlPropertyQuery (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client.cartridge.selector +
+Class UrlPropertyQuery

+
+java.lang.Object
+  extended by com.openshift.client.cartridge.selector.CartridgePropertyQuery
+      extended by com.openshift.client.cartridge.selector.UrlPropertyQuery
+
+
+
+
public class UrlPropertyQuery
extends CartridgePropertyQuery
+ + +

+

+
Author:
+
André Dietisheim
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
UrlPropertyQuery() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ CartridgeResourcePropertygetMatchingProperty(IEmbeddedCartridge embeddedCartridge) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+UrlPropertyQuery

+
+public UrlPropertyQuery()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getMatchingProperty

+
+public CartridgeResourceProperty getMatchingProperty(IEmbeddedCartridge embeddedCartridge)
+
+
+
Specified by:
getMatchingProperty in class CartridgePropertyQuery
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/cartridge/selector/class-use/CartridgePropertyQuery.html b/documentation/com/openshift/client/cartridge/selector/class-use/CartridgePropertyQuery.html new file mode 100644 index 00000000..538191b6 --- /dev/null +++ b/documentation/com/openshift/client/cartridge/selector/class-use/CartridgePropertyQuery.html @@ -0,0 +1,181 @@ + + + + + + + +Uses of Class com.openshift.client.cartridge.selector.CartridgePropertyQuery (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.client.cartridge.selector.CartridgePropertyQuery

+
+ + + + + + + + + +
+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
+ classUrlPropertyQuery + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/cartridge/selector/class-use/LatestEmbeddableCartridge.html b/documentation/com/openshift/client/cartridge/selector/class-use/LatestEmbeddableCartridge.html new file mode 100644 index 00000000..3beb1413 --- /dev/null +++ b/documentation/com/openshift/client/cartridge/selector/class-use/LatestEmbeddableCartridge.html @@ -0,0 +1,261 @@ + + + + + + + +Uses of Class com.openshift.client.cartridge.selector.LatestEmbeddableCartridge (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.client.cartridge.selector.LatestEmbeddableCartridge

+
+ + + + + + + + + +
+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 LatestEmbeddableCartridgeLatestVersionOf.cron() + +
+           
+static LatestEmbeddableCartridgeLatestVersionOf.haProxy() + +
+           
+static LatestEmbeddableCartridgeLatestVersionOf.jenkinsClient() + +
+           
+static LatestEmbeddableCartridgeLatestVersionOf.metrics() + +
+           
+static LatestEmbeddableCartridgeLatestVersionOf.mmsAgent() + +
+           
+static LatestEmbeddableCartridgeLatestVersionOf.mongoDB() + +
+           
+static LatestEmbeddableCartridgeLatestVersionOf.mySQL() + +
+           
+static LatestEmbeddableCartridgeLatestVersionOf.phpMyAdmin() + +
+           
+static LatestEmbeddableCartridgeLatestVersionOf.postgreSQL() + +
+           
+static LatestEmbeddableCartridgeLatestVersionOf.rockMongo() + +
+           
+static LatestEmbeddableCartridgeLatestVersionOf.switchyard() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/cartridge/selector/class-use/LatestStandaloneCartridge.html b/documentation/com/openshift/client/cartridge/selector/class-use/LatestStandaloneCartridge.html new file mode 100644 index 00000000..9f9a28c4 --- /dev/null +++ b/documentation/com/openshift/client/cartridge/selector/class-use/LatestStandaloneCartridge.html @@ -0,0 +1,245 @@ + + + + + + + +Uses of Class com.openshift.client.cartridge.selector.LatestStandaloneCartridge (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.client.cartridge.selector.LatestStandaloneCartridge

+
+ + + + + + + + + +
+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 LatestStandaloneCartridgeLatestVersionOf.jbossAs() + +
+           
+static LatestStandaloneCartridgeLatestVersionOf.jbossEap() + +
+           
+static LatestStandaloneCartridgeLatestVersionOf.jbossEws() + +
+           
+static LatestStandaloneCartridgeLatestVersionOf.jenkins() + +
+           
+static LatestStandaloneCartridgeLatestVersionOf.perl() + +
+           
+static LatestStandaloneCartridgeLatestVersionOf.php() + +
+           
+static LatestStandaloneCartridgeLatestVersionOf.python() + +
+           
+static LatestStandaloneCartridgeLatestVersionOf.ruby() + +
+           
+static LatestStandaloneCartridgeLatestVersionOf.zend() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/cartridge/selector/class-use/LatestVersionOf.html b/documentation/com/openshift/client/cartridge/selector/class-use/LatestVersionOf.html new file mode 100644 index 00000000..3770e106 --- /dev/null +++ b/documentation/com/openshift/client/cartridge/selector/class-use/LatestVersionOf.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.openshift.client.cartridge.selector.LatestVersionOf (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.client.cartridge.selector.LatestVersionOf

+
+No usage of com.openshift.client.cartridge.selector.LatestVersionOf +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/cartridge/selector/class-use/LatestVersionQuery.VersionedName.html b/documentation/com/openshift/client/cartridge/selector/class-use/LatestVersionQuery.VersionedName.html new file mode 100644 index 00000000..b0093176 --- /dev/null +++ b/documentation/com/openshift/client/cartridge/selector/class-use/LatestVersionQuery.VersionedName.html @@ -0,0 +1,181 @@ + + + + + + + +Uses of Class com.openshift.client.cartridge.selector.LatestVersionQuery.VersionedName (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.client.cartridge.selector.LatestVersionQuery.VersionedName

+
+ + + + + + + + + +
+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
+ intLatestVersionQuery.VersionedName.compareTo(LatestVersionQuery.VersionedName other) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/cartridge/selector/class-use/LatestVersionQuery.html b/documentation/com/openshift/client/cartridge/selector/class-use/LatestVersionQuery.html new file mode 100644 index 00000000..26545ad2 --- /dev/null +++ b/documentation/com/openshift/client/cartridge/selector/class-use/LatestVersionQuery.html @@ -0,0 +1,189 @@ + + + + + + + +Uses of Class com.openshift.client.cartridge.selector.LatestVersionQuery (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.client.cartridge.selector.LatestVersionQuery

+
+ + + + + + + + + +
+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
+ classLatestEmbeddableCartridge + +
+          A selector that shall select the latest version of an embedded cartidge that's given by name.
+ classLatestStandaloneCartridge + +
+          A selector that shall select the latest version of a standalone cartidge that's given by name.
+  +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/cartridge/selector/class-use/StringPropertyQuery.html b/documentation/com/openshift/client/cartridge/selector/class-use/StringPropertyQuery.html new file mode 100644 index 00000000..1bd6e35a --- /dev/null +++ b/documentation/com/openshift/client/cartridge/selector/class-use/StringPropertyQuery.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.openshift.client.cartridge.selector.StringPropertyQuery (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.client.cartridge.selector.StringPropertyQuery

+
+No usage of com.openshift.client.cartridge.selector.StringPropertyQuery +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/cartridge/selector/class-use/UrlPropertyQuery.html b/documentation/com/openshift/client/cartridge/selector/class-use/UrlPropertyQuery.html new file mode 100644 index 00000000..4d5ee3e8 --- /dev/null +++ b/documentation/com/openshift/client/cartridge/selector/class-use/UrlPropertyQuery.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.openshift.client.cartridge.selector.UrlPropertyQuery (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.client.cartridge.selector.UrlPropertyQuery

+
+No usage of com.openshift.client.cartridge.selector.UrlPropertyQuery +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/cartridge/selector/package-frame.html b/documentation/com/openshift/client/cartridge/selector/package-frame.html new file mode 100644 index 00000000..9ce007ef --- /dev/null +++ b/documentation/com/openshift/client/cartridge/selector/package-frame.html @@ -0,0 +1,45 @@ + + + + + + + +com.openshift.client.cartridge.selector (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + +com.openshift.client.cartridge.selector + + + + +
+Classes  + +
+CartridgePropertyQuery +
+LatestEmbeddableCartridge +
+LatestStandaloneCartridge +
+LatestVersionOf +
+LatestVersionQuery +
+StringPropertyQuery +
+UrlPropertyQuery
+ + + + diff --git a/documentation/com/openshift/client/cartridge/selector/package-summary.html b/documentation/com/openshift/client/cartridge/selector/package-summary.html new file mode 100644 index 00000000..c1795166 --- /dev/null +++ b/documentation/com/openshift/client/cartridge/selector/package-summary.html @@ -0,0 +1,182 @@ + + + + + + + +com.openshift.client.cartridge.selector (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+

+Package com.openshift.client.cartridge.selector +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
CartridgePropertyQuery 
LatestEmbeddableCartridgeA selector that shall select the latest version of an embedded cartidge that's given by name.
LatestStandaloneCartridgeA selector that shall select the latest version of a standalone cartidge that's given by name.
LatestVersionOf 
LatestVersionQueryA constraint that shall match available embeddable and standalone cartridges by name.
StringPropertyQueryA constraint that shall match available cartridges by url.
UrlPropertyQuery 
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/cartridge/selector/package-tree.html b/documentation/com/openshift/client/cartridge/selector/package-tree.html new file mode 100644 index 00000000..65f10a86 --- /dev/null +++ b/documentation/com/openshift/client/cartridge/selector/package-tree.html @@ -0,0 +1,161 @@ + + + + + + + +com.openshift.client.cartridge.selector Class Hierarchy (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Hierarchy For Package com.openshift.client.cartridge.selector +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/cartridge/selector/package-use.html b/documentation/com/openshift/client/cartridge/selector/package-use.html new file mode 100644 index 00000000..21ead84f --- /dev/null +++ b/documentation/com/openshift/client/cartridge/selector/package-use.html @@ -0,0 +1,195 @@ + + + + + + + +Uses of Package com.openshift.client.cartridge.selector (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Package
com.openshift.client.cartridge.selector

+
+ + + + + + + + + +
+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 +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/class-use/ApplicationBuilder.CartridgeHolder.html b/documentation/com/openshift/client/class-use/ApplicationBuilder.CartridgeHolder.html new file mode 100644 index 00000000..5e5d3682 --- /dev/null +++ b/documentation/com/openshift/client/class-use/ApplicationBuilder.CartridgeHolder.html @@ -0,0 +1,181 @@ + + + + + + + +Uses of Class com.openshift.client.ApplicationBuilder.CartridgeHolder (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.client.ApplicationBuilder.CartridgeHolder

+
+ + + + + + + + + +
+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.CartridgeHolderApplicationBuilder.setCartridge(IStandaloneCartridge cartridge) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/class-use/ApplicationBuilder.NamedCartridgeHolder.html b/documentation/com/openshift/client/class-use/ApplicationBuilder.NamedCartridgeHolder.html new file mode 100644 index 00000000..f22223fe --- /dev/null +++ b/documentation/com/openshift/client/class-use/ApplicationBuilder.NamedCartridgeHolder.html @@ -0,0 +1,205 @@ + + + + + + + +Uses of Class com.openshift.client.ApplicationBuilder.NamedCartridgeHolder (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.client.ApplicationBuilder.NamedCartridgeHolder

+
+ + + + + + + + + +
+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.NamedCartridgeHolderApplicationBuilder.NamedCartridgeHolder.setApplicationScale(ApplicationScale applicationScale) + +
+           
+ ApplicationBuilder.NamedCartridgeHolderApplicationBuilder.NamedCartridgeHolder.setGearProfile(IGearProfile gearProfile) + +
+           
+ ApplicationBuilder.NamedCartridgeHolderApplicationBuilder.NamedCartridgeHolder.setInitialGitUrl(String initialGitUrl) + +
+           
+ ApplicationBuilder.NamedCartridgeHolderApplicationBuilder.CartridgeHolder.setName(String name) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/class-use/ApplicationBuilder.html b/documentation/com/openshift/client/class-use/ApplicationBuilder.html new file mode 100644 index 00000000..2e4167ac --- /dev/null +++ b/documentation/com/openshift/client/class-use/ApplicationBuilder.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.openshift.client.ApplicationBuilder (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.client.ApplicationBuilder

+
+No usage of com.openshift.client.ApplicationBuilder +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/class-use/ApplicationScale.html b/documentation/com/openshift/client/class-use/ApplicationScale.html new file mode 100644 index 00000000..ce43fca5 --- /dev/null +++ b/documentation/com/openshift/client/class-use/ApplicationScale.html @@ -0,0 +1,462 @@ + + + + + + + +Uses of Class com.openshift.client.ApplicationScale (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.client.ApplicationScale

+
+ + + + + + + + + + + + + + + + + +
+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
+ ApplicationScaleIApplication.getApplicationScale() + +
+          Returns true if scaling is enabled on this application (only set at + creation time).
+static ApplicationScaleApplicationScale.safeValueOf(String value) + +
+           
+static ApplicationScaleApplicationScale.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
+ IApplicationIDomain.createApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale) + +
+           
+ IApplicationIDomain.createApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale, + IGearProfile gearProfile) + +
+           
+ IApplicationIDomain.createApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale, + IGearProfile gearProfile, + String initialGitUrl) + +
+          Creates a new application with the given name and the given + cartridge/framework.
+ IApplicationIDomain.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.
+ IApplicationIDomain.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.NamedCartridgeHolderApplicationBuilder.NamedCartridgeHolder.setApplicationScale(ApplicationScale applicationScale) + +
+           
+  +

+ + + + + +
+Uses of ApplicationScale in com.openshift.internal.client
+  +

+ + + + + + + + + +
Methods in com.openshift.internal.client that return ApplicationScale
+ ApplicationScaleApplicationResource.getApplicationScale() + +
+           
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in com.openshift.internal.client with parameters of type ApplicationScale
+ IApplicationDomainResource.createApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale) + +
+           
+ IApplicationDomainResource.createApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale, + IGearProfile gearProfile) + +
+           
+ IApplicationDomainResource.createApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale, + IGearProfile gearProfile, + String initialGitUrl) + +
+           
+ IApplicationDomainResource.createApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale, + IGearProfile gearProfile, + String initialGitUrl, + int timeout, + IEmbeddableCartridge... cartridges) + +
+           
+ IApplicationDomainResource.createApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale, + IGearProfile gearProfile, + String initialGitUrl, + int timeout, + Map<String,String> environmentVariables, + IEmbeddableCartridge... cartridges) + +
+           
+ IApplicationDomainResource.createApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale, + String initialGitUrl) + +
+           
+protected  AbstractOpenShiftResource.ParametersAbstractOpenShiftResource.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
+ ApplicationScaleApplicationResourceDTO.getApplicationScale() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/class-use/GearState.html b/documentation/com/openshift/client/class-use/GearState.html new file mode 100644 index 00000000..aadf0775 --- /dev/null +++ b/documentation/com/openshift/client/class-use/GearState.html @@ -0,0 +1,251 @@ + + + + + + + +Uses of Class com.openshift.client.GearState (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.client.GearState

+
+ + + + + + + + + + + + + +
+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
+ GearStateIGear.getState() + +
+          Returns the state of this gear
+static GearStateGearState.safeValueOf(String gearStateString) + +
+           
+static GearStateGearState.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
+ GearStateGear.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 +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/class-use/HttpMethod.html b/documentation/com/openshift/client/class-use/HttpMethod.html new file mode 100644 index 00000000..2b463962 --- /dev/null +++ b/documentation/com/openshift/client/class-use/HttpMethod.html @@ -0,0 +1,297 @@ + + + + + + + +Uses of Class com.openshift.client.HttpMethod (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.client.HttpMethod

+
+ + + + + + + + + + + + + + + + + +
+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 HttpMethodHttpMethod.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  StringUrlConnectionHttpClient.request(HttpMethod httpMethod, + URL url, + IMediaType requestMediaType, + int timeout, + Parameter... parameters) + +
+           
+protected  StringUrlConnectionHttpClient.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
+ HttpMethodLink.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 +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/class-use/IApplication.html b/documentation/com/openshift/client/class-use/IApplication.html new file mode 100644 index 00000000..262d593f --- /dev/null +++ b/documentation/com/openshift/client/class-use/IApplication.html @@ -0,0 +1,687 @@ + + + + + + + +Uses of Interface com.openshift.client.IApplication (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Interface
com.openshift.client.IApplication

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+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
+ IApplicationApplicationBuilder.NamedCartridgeHolder.build() + +
+           
+ IApplicationIDomain.createApplication(String name, + IStandaloneCartridge cartridge) + +
+           
+ IApplicationIDomain.createApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale) + +
+           
+ IApplicationIDomain.createApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale, + IGearProfile gearProfile) + +
+           
+ IApplicationIDomain.createApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale, + IGearProfile gearProfile, + String initialGitUrl) + +
+          Creates a new application with the given name and the given + cartridge/framework.
+ IApplicationIDomain.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.
+ IApplicationIDomain.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.
+ IApplicationIDomain.createApplication(String name, + IStandaloneCartridge cartridge, + IGearProfile gearProfile) + +
+           
+ IApplicationIDomain.createApplication(String name, + IStandaloneCartridge cartridge, + String initialGitUrl) + +
+           
+ IApplicationIEnvironmentVariable.getApplication() + +
+          Returns the application for this environment variable
+ IApplicationIDomain.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
+ IApplicationIEmbeddedCartridge.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) + +
+           
+ IStandaloneCartridgeLatestStandaloneCartridge.get(IApplication application) + +
+           
+ IEmbeddableCartridgeLatestEmbeddableCartridge.get(IApplication application) + +
+           
+  +

+ + + + + +
+Uses of IApplication in com.openshift.internal.client
+  +

+ + + + + + + + + +
Classes in com.openshift.internal.client that implement IApplication
+ classApplicationResource + +
+          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
+ IApplicationDomainResource.createApplication(String name, + IStandaloneCartridge cartridge) + +
+           
+ IApplicationDomainResource.createApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale) + +
+           
+ IApplicationDomainResource.createApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale, + IGearProfile gearProfile) + +
+           
+ IApplicationDomainResource.createApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale, + IGearProfile gearProfile, + String initialGitUrl) + +
+           
+ IApplicationDomainResource.createApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale, + IGearProfile gearProfile, + String initialGitUrl, + int timeout, + IEmbeddableCartridge... cartridges) + +
+           
+ IApplicationDomainResource.createApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale, + IGearProfile gearProfile, + String initialGitUrl, + int timeout, + Map<String,String> environmentVariables, + IEmbeddableCartridge... cartridges) + +
+           
+ IApplicationDomainResource.createApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale, + String initialGitUrl) + +
+           
+ IApplicationDomainResource.createApplication(String name, + IStandaloneCartridge cartridge, + IGearProfile gearProfile) + +
+           
+ IApplicationDomainResource.createApplication(String name, + IStandaloneCartridge cartridge, + IGearProfile gearProfile, + String initialGitUrl) + +
+           
+ IApplicationDomainResource.createApplication(String name, + IStandaloneCartridge cartridge, + String initialGitUrl) + +
+           
+ IApplicationEnvironmentVariableResource.getApplication() + +
+           
+ IApplicationEmbeddedCartridgeResource.getApplication() + +
+           
+ IApplicationDomainResource.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  voidDomainResource.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  IOpenShiftConnectionAbstractCartridgeQuery.getConnection(IApplication application) + +
+           
+  +

+ + + + + +
+Uses of IApplication in com.openshift.internal.client.ssh
+  +

+ + + + + + + + + +
Methods in com.openshift.internal.client.ssh that return IApplication
+protected  IApplicationApplicationPortForwarding.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 +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/class-use/IApplicationPortForwarding.html b/documentation/com/openshift/client/class-use/IApplicationPortForwarding.html new file mode 100644 index 00000000..16f33ec7 --- /dev/null +++ b/documentation/com/openshift/client/class-use/IApplicationPortForwarding.html @@ -0,0 +1,287 @@ + + + + + + + +Uses of Interface com.openshift.client.IApplicationPortForwarding (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Interface
com.openshift.client.IApplicationPortForwarding

+
+ + + + + + + + + + + + + + + + + +
+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
+ classApplicationPortForwarding + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/class-use/IDomain.html b/documentation/com/openshift/client/class-use/IDomain.html new file mode 100644 index 00000000..01c2d582 --- /dev/null +++ b/documentation/com/openshift/client/class-use/IDomain.html @@ -0,0 +1,405 @@ + + + + + + + +Uses of Interface com.openshift.client.IDomain (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Interface
com.openshift.client.IDomain

+
+ + + + + + + + + + + + + + + + + +
+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
+ IDomainIUser.createDomain(String id) + +
+           
+ IDomainIUser.getDefaultDomain() + +
+           
+ IDomainIApplication.getDomain() + +
+          Get the domain of the application.
+ IDomainIUser.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
+ classDomainResource + +
+           
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in com.openshift.internal.client that return IDomain
+ IDomainUserResource.createDomain(String id) + +
+           
+ IDomainAPIResource.createDomain(String id) + +
+           
+ IDomainUserResource.getDefaultDomain() + +
+           
+ IDomainAPIResource.getDefaultDomain() + +
+           
+ IDomainApplicationResource.getDomain() + +
+           
+ IDomainUserResource.getDomain(String id) + +
+           
+ IDomainAPIResource.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  voidAPIResource.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  IOpenShiftConnectionAbstractCartridgeQuery.getConnection(IDomain domain) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/class-use/IEnvironmentVariable.html b/documentation/com/openshift/client/class-use/IEnvironmentVariable.html new file mode 100644 index 00000000..c1b456e5 --- /dev/null +++ b/documentation/com/openshift/client/class-use/IEnvironmentVariable.html @@ -0,0 +1,332 @@ + + + + + + + +Uses of Interface com.openshift.client.IEnvironmentVariable (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Interface
com.openshift.client.IEnvironmentVariable

+
+ + + + + + + + + + + + + +
+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
+ IEnvironmentVariableIApplication.addEnvironmentVariable(String name, + String value) + +
+          Adds an environment variable to this application.
+ IEnvironmentVariableIApplication.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
+ voidIApplication.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
+ classEnvironmentVariableResource + +
+           
+  +

+ + + + + + + + + + + + + +
Methods in com.openshift.internal.client that return IEnvironmentVariable
+ IEnvironmentVariableApplicationResource.addEnvironmentVariable(String name, + String value) + +
+           
+ IEnvironmentVariableApplicationResource.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
+ voidApplicationResource.removeEnvironmentVariable(IEnvironmentVariable environmentVariable) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/class-use/IField.html b/documentation/com/openshift/client/class-use/IField.html new file mode 100644 index 00000000..4d14706a --- /dev/null +++ b/documentation/com/openshift/client/class-use/IField.html @@ -0,0 +1,306 @@ + + + + + + + +Uses of Interface com.openshift.client.IField (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Interface
com.openshift.client.IField

+
+ + + + + + + + + + + + + +
+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 IFieldIField.APPINFO + +
+           
+static IFieldIField.DEFAULT + +
+           
+static IFieldIField.RESULT + +
+           
+  +

+ + + + + + + + + +
Methods in com.openshift.client that return IField
+ IFieldMessage.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.
+ MessageMessages.getFirstBy(IField field) + +
+          Returns the first message of the given field type.
+ MessageMessages.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
+ classField + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/class-use/IGear.html b/documentation/com/openshift/client/class-use/IGear.html new file mode 100644 index 00000000..814d094c --- /dev/null +++ b/documentation/com/openshift/client/class-use/IGear.html @@ -0,0 +1,226 @@ + + + + + + + +Uses of Interface com.openshift.client.IGear (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Interface
com.openshift.client.IGear

+
+ + + + + + + + + + + + + +
+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
+ classGear + +
+          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 +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/class-use/IGearGroup.html b/documentation/com/openshift/client/class-use/IGearGroup.html new file mode 100644 index 00000000..f7a9d7e0 --- /dev/null +++ b/documentation/com/openshift/client/class-use/IGearGroup.html @@ -0,0 +1,226 @@ + + + + + + + +Uses of Interface com.openshift.client.IGearGroup (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Interface
com.openshift.client.IGearGroup

+
+ + + + + + + + + + + + + +
+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
+ classGearGroupResource + +
+           
+  +

+ + + + + + + + + +
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 +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/class-use/IGearProfile.html b/documentation/com/openshift/client/class-use/IGearProfile.html new file mode 100644 index 00000000..33b01304 --- /dev/null +++ b/documentation/com/openshift/client/class-use/IGearProfile.html @@ -0,0 +1,541 @@ + + + + + + + +Uses of Interface com.openshift.client.IGearProfile (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Interface
com.openshift.client.IGearProfile

+
+ + + + + + + + + + + + + + + + + +
+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 IGearProfileIGearProfile.EXLARGE + +
+           
+static IGearProfileIGearProfile.JUMBO + +
+           
+static IGearProfileIGearProfile.LARGE + +
+           
+static IGearProfileIGearProfile.MEDIUM + +
+           
+static IGearProfileIGearProfile.MICRO + +
+           
+static IGearProfileIGearProfile.SMALL + +
+           
+  +

+ + + + + + + + + +
Methods in com.openshift.client that return IGearProfile
+ IGearProfileIApplication.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
+ IApplicationIDomain.createApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale, + IGearProfile gearProfile) + +
+           
+ IApplicationIDomain.createApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale, + IGearProfile gearProfile, + String initialGitUrl) + +
+          Creates a new application with the given name and the given + cartridge/framework.
+ IApplicationIDomain.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.
+ IApplicationIDomain.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.
+ IApplicationIDomain.createApplication(String name, + IStandaloneCartridge cartridge, + IGearProfile gearProfile) + +
+           
+ ApplicationBuilder.NamedCartridgeHolderApplicationBuilder.NamedCartridgeHolder.setGearProfile(IGearProfile gearProfile) + +
+           
+  +

+ + + + + +
+Uses of IGearProfile in com.openshift.internal.client
+  +

+ + + + + + + + + +
Classes in com.openshift.internal.client that implement IGearProfile
+ classGearProfile + +
+           
+  +

+ + + + + + + + + +
Methods in com.openshift.internal.client that return IGearProfile
+ IGearProfileApplicationResource.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
+ IApplicationDomainResource.createApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale, + IGearProfile gearProfile) + +
+           
+ IApplicationDomainResource.createApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale, + IGearProfile gearProfile, + String initialGitUrl) + +
+           
+ IApplicationDomainResource.createApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale, + IGearProfile gearProfile, + String initialGitUrl, + int timeout, + IEmbeddableCartridge... cartridges) + +
+           
+ IApplicationDomainResource.createApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale, + IGearProfile gearProfile, + String initialGitUrl, + int timeout, + Map<String,String> environmentVariables, + IEmbeddableCartridge... cartridges) + +
+           
+ IApplicationDomainResource.createApplication(String name, + IStandaloneCartridge cartridge, + IGearProfile gearProfile) + +
+           
+ IApplicationDomainResource.createApplication(String name, + IStandaloneCartridge cartridge, + IGearProfile gearProfile, + String initialGitUrl) + +
+           
+protected  AbstractOpenShiftResource.ParametersAbstractOpenShiftResource.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
+ IGearProfileApplicationResourceDTO.getGearProfile() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/class-use/IHttpClient.html b/documentation/com/openshift/client/class-use/IHttpClient.html new file mode 100644 index 00000000..932cd656 --- /dev/null +++ b/documentation/com/openshift/client/class-use/IHttpClient.html @@ -0,0 +1,287 @@ + + + + + + + +Uses of Interface com.openshift.client.IHttpClient (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Interface
com.openshift.client.IHttpClient

+
+ + + + + + + + + + + + + + + + + +
+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  IOpenShiftConnectionOpenShiftConnectionFactory.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
+ classUrlConnectionHttpClient + +
+           
+  +

+ + + + + + + + + +
Methods in com.openshift.internal.client.httpclient that return IHttpClient
+ IHttpClientUrlConnectionHttpClientBuilder.client() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/class-use/IOpenShiftConnection.html b/documentation/com/openshift/client/class-use/IOpenShiftConnection.html new file mode 100644 index 00000000..c8a27eb0 --- /dev/null +++ b/documentation/com/openshift/client/class-use/IOpenShiftConnection.html @@ -0,0 +1,339 @@ + + + + + + + +Uses of Interface com.openshift.client.IOpenShiftConnection (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Interface
com.openshift.client.IOpenShiftConnection

+
+ + + + + + + + + + + + + + + + + +
+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
+ IOpenShiftConnectionIUser.getConnection() + +
+           
+ IOpenShiftConnectionOpenShiftConnectionFactory.getConnection(String clientId, + String password) + +
+          Establish a connection with the clientId along with user's password.
+ IOpenShiftConnectionOpenShiftConnectionFactory.getConnection(String clientId, + String username, + String password) + +
+          Establish a connection with the clientId along with user's login and + password.
+ IOpenShiftConnectionOpenShiftConnectionFactory.getConnection(String clientId, + String username, + String password, + String serverUrl) + +
+          Establish a connection with the clientId along with user's login and + password.
+protected  IOpenShiftConnectionOpenShiftConnectionFactory.getConnection(String clientId, + String username, + String password, + String serverUrl, + IHttpClient httpClient) + +
+           
+ IOpenShiftConnectionOpenShiftConnectionFactory.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
+ classAPIResource + +
+           
+  +

+ + + + + + + + + + + + + + + + + +
Methods in com.openshift.internal.client that return IOpenShiftConnection
+ IOpenShiftConnectionUserResource.getConnection() + +
+           
+protected  IOpenShiftConnectionApplicationResource.getConnection() + +
+           
+protected  IOpenShiftConnectionAbstractOpenShiftConnectionFactory.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  IOpenShiftConnectionAbstractCartridgeQuery.getConnection(IApplication application) + +
+           
+protected  IOpenShiftConnectionAbstractCartridgeQuery.getConnection(IDomain domain) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/class-use/IOpenShiftResource.html b/documentation/com/openshift/client/class-use/IOpenShiftResource.html new file mode 100644 index 00000000..0c175424 --- /dev/null +++ b/documentation/com/openshift/client/class-use/IOpenShiftResource.html @@ -0,0 +1,328 @@ + + + + + + + +Uses of Interface com.openshift.client.IOpenShiftResource (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Interface
com.openshift.client.IOpenShiftResource

+
+ + + + + + + + + + + + + + + + + +
+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
+ interfaceIApplication + +
+           
+ interfaceIDomain + +
+           
+ interfaceIEnvironmentVariable + +
+           
+ interfaceIUser + +
+           
+  +

+ + + + + +
+Uses of IOpenShiftResource in com.openshift.client.cartridge
+  +

+ + + + + + + + + +
Subinterfaces of IOpenShiftResource in com.openshift.client.cartridge
+ interfaceIEmbeddedCartridge + +
+          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
+ classAbstractOpenShiftResource + +
+          The Class AbstractOpenShiftResource.
+ classAPIResource + +
+           
+ classApplicationResource + +
+          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.
+ classDomainResource + +
+           
+ classEmbeddedCartridgeResource + +
+          A cartridge that is embedded into an application.
+ classEnvironmentVariableResource + +
+           
+ classGearGroupResource + +
+           
+ classSSHKeyResource + +
+           
+ classUserResource + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/class-use/IOpenShiftSSHKey.html b/documentation/com/openshift/client/class-use/IOpenShiftSSHKey.html new file mode 100644 index 00000000..dba7e0e4 --- /dev/null +++ b/documentation/com/openshift/client/class-use/IOpenShiftSSHKey.html @@ -0,0 +1,292 @@ + + + + + + + +Uses of Interface com.openshift.client.IOpenShiftSSHKey (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Interface
com.openshift.client.IOpenShiftSSHKey

+
+ + + + + + + + + + + + + +
+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
+ IOpenShiftSSHKeyIUser.getSSHKeyByName(String name) + +
+           
+ IOpenShiftSSHKeyIUser.getSSHKeyByPublicKey(String publicKey) + +
+           
+ IOpenShiftSSHKeyIUser.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
+ classSSHKeyResource + +
+           
+  +

+ + + + + + + + + + + + + + + + + +
Methods in com.openshift.internal.client that return IOpenShiftSSHKey
+ IOpenShiftSSHKeyUserResource.getSSHKeyByName(String name) + +
+           
+ IOpenShiftSSHKeyUserResource.getSSHKeyByPublicKey(String publicKey) + +
+           
+ IOpenShiftSSHKeyUserResource.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 +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/class-use/ISSHPublicKey.html b/documentation/com/openshift/client/class-use/ISSHPublicKey.html new file mode 100644 index 00000000..e295d37d --- /dev/null +++ b/documentation/com/openshift/client/class-use/ISSHPublicKey.html @@ -0,0 +1,297 @@ + + + + + + + +Uses of Interface com.openshift.client.ISSHPublicKey (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Interface
com.openshift.client.ISSHPublicKey

+
+ + + + + + + + + + + + + + + + + +
+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
+ interfaceIOpenShiftSSHKey + +
+           
+  +

+ + + + + + + + + + + + + +
Classes in com.openshift.client that implement ISSHPublicKey
+ classSSHKeyPair + +
+           
+ classSSHPublicKey + +
+           
+  +

+ + + + + + + + + +
Methods in com.openshift.client with parameters of type ISSHPublicKey
+ IOpenShiftSSHKeyIUser.putSSHKey(String name, + ISSHPublicKey key) + +
+           
+  +

+ + + + + +
+Uses of ISSHPublicKey in com.openshift.internal.client
+  +

+ + + + + + + + + +
Classes in com.openshift.internal.client that implement ISSHPublicKey
+ classSSHKeyResource + +
+           
+  +

+ + + + + + + + + +
Methods in com.openshift.internal.client with parameters of type ISSHPublicKey
+ IOpenShiftSSHKeyUserResource.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
+ classAbstractSSHKey + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/class-use/ISeverity.html b/documentation/com/openshift/client/class-use/ISeverity.html new file mode 100644 index 00000000..c13eacc5 --- /dev/null +++ b/documentation/com/openshift/client/class-use/ISeverity.html @@ -0,0 +1,276 @@ + + + + + + + +Uses of Interface com.openshift.client.ISeverity (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Interface
com.openshift.client.ISeverity

+
+ + + + + + + + + + + + + +
+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 ISeverityISeverity.DEBUG + +
+           
+static ISeverityISeverity.ERROR + +
+           
+static ISeverityISeverity.INFO + +
+           
+static ISeverityISeverity.RESULT + +
+           
+  +

+ + + + + + + + + +
Methods in com.openshift.client that return ISeverity
+ ISeverityMessage.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.
+ MessageMessages.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
+ classSeverity + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/class-use/IUser.html b/documentation/com/openshift/client/class-use/IUser.html new file mode 100644 index 00000000..d30dbc67 --- /dev/null +++ b/documentation/com/openshift/client/class-use/IUser.html @@ -0,0 +1,279 @@ + + + + + + + +Uses of Interface com.openshift.client.IUser (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Interface
com.openshift.client.IUser

+
+ + + + + + + + + + + + + + + + + +
+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
+ IUserIOpenShiftConnection.getUser() + +
+          Returns the user associated with the current OpenShift connection.
+ IUserIDomain.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
+ IStandaloneCartridgeLatestStandaloneCartridge.get(IUser user) + +
+           
+ IEmbeddableCartridgeLatestEmbeddableCartridge.get(IUser user) + +
+           
+  +

+ + + + + +
+Uses of IUser in com.openshift.internal.client
+  +

+ + + + + + + + + +
Classes in com.openshift.internal.client that implement IUser
+ classUserResource + +
+           
+  +

+ + + + + + + + + + + + + +
Methods in com.openshift.internal.client that return IUser
+ IUserDomainResource.getUser() + +
+           
+ IUserAPIResource.getUser() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/class-use/InvalidCredentialsOpenShiftException.html b/documentation/com/openshift/client/class-use/InvalidCredentialsOpenShiftException.html new file mode 100644 index 00000000..ea5dc79c --- /dev/null +++ b/documentation/com/openshift/client/class-use/InvalidCredentialsOpenShiftException.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.openshift.client.InvalidCredentialsOpenShiftException (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.client.InvalidCredentialsOpenShiftException

+
+No usage of com.openshift.client.InvalidCredentialsOpenShiftException +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/class-use/InvalidNameOpenShiftException.html b/documentation/com/openshift/client/class-use/InvalidNameOpenShiftException.html new file mode 100644 index 00000000..44c1644f --- /dev/null +++ b/documentation/com/openshift/client/class-use/InvalidNameOpenShiftException.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.openshift.client.InvalidNameOpenShiftException (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.client.InvalidNameOpenShiftException

+
+No usage of com.openshift.client.InvalidNameOpenShiftException +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/class-use/Message.html b/documentation/com/openshift/client/class-use/Message.html new file mode 100644 index 00000000..01f1f961 --- /dev/null +++ b/documentation/com/openshift/client/class-use/Message.html @@ -0,0 +1,245 @@ + + + + + + + +Uses of Class com.openshift.client.Message (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.client.Message

+
+ + + + + + + + + +
+Packages that use Message
com.openshift.client  
+  +

+ + + + + +
+Uses of Message in com.openshift.client
+  +

+ + + + + + + + + + + + + +
Methods in com.openshift.client that return Message
+ MessageMessages.getFirstBy(IField field) + +
+          Returns the first message of the given field type.
+ MessageMessages.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 +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/class-use/Messages.html b/documentation/com/openshift/client/class-use/Messages.html new file mode 100644 index 00000000..5282a0a5 --- /dev/null +++ b/documentation/com/openshift/client/class-use/Messages.html @@ -0,0 +1,356 @@ + + + + + + + +Uses of Class com.openshift.client.Messages (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.client.Messages

+
+ + + + + + + + + + + + + + + + + +
+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
+ MessagesIOpenShiftResource.getMessages() + +
+          Returns all the (creation log) messages.
+ MessagesOpenShiftEndpointException.getRestResponseMessages() + +
+           
+  +

+ + + + + +
+Uses of Messages in com.openshift.internal.client
+  +

+ + + + + + + + + +
Methods in com.openshift.internal.client that return Messages
+ MessagesAbstractOpenShiftResource.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
+ MessagesRestResponse.getMessages() + +
+          Gets the messages.
+ MessagesBaseResourceDTO.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 +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/class-use/NotFoundOpenShiftException.html b/documentation/com/openshift/client/class-use/NotFoundOpenShiftException.html new file mode 100644 index 00000000..0bb18789 --- /dev/null +++ b/documentation/com/openshift/client/class-use/NotFoundOpenShiftException.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.openshift.client.NotFoundOpenShiftException (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.client.NotFoundOpenShiftException

+
+No usage of com.openshift.client.NotFoundOpenShiftException +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/class-use/OpenShiftApplicationNotAvailableException.html b/documentation/com/openshift/client/class-use/OpenShiftApplicationNotAvailableException.html new file mode 100644 index 00000000..a8247435 --- /dev/null +++ b/documentation/com/openshift/client/class-use/OpenShiftApplicationNotAvailableException.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.openshift.client.OpenShiftApplicationNotAvailableException (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.client.OpenShiftApplicationNotAvailableException

+
+No usage of com.openshift.client.OpenShiftApplicationNotAvailableException +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/class-use/OpenShiftConnectionFactory.html b/documentation/com/openshift/client/class-use/OpenShiftConnectionFactory.html new file mode 100644 index 00000000..70a31fce --- /dev/null +++ b/documentation/com/openshift/client/class-use/OpenShiftConnectionFactory.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.openshift.client.OpenShiftConnectionFactory (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.client.OpenShiftConnectionFactory

+
+No usage of com.openshift.client.OpenShiftConnectionFactory +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/class-use/OpenShiftEndpointException.html b/documentation/com/openshift/client/class-use/OpenShiftEndpointException.html new file mode 100644 index 00000000..7185cb31 --- /dev/null +++ b/documentation/com/openshift/client/class-use/OpenShiftEndpointException.html @@ -0,0 +1,197 @@ + + + + + + + +Uses of Class com.openshift.client.OpenShiftEndpointException (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.client.OpenShiftEndpointException

+
+ + + + + + + + + +
+Packages that use OpenShiftEndpointException
com.openshift.client  
+  +

+ + + + + +
+Uses of OpenShiftEndpointException in com.openshift.client
+  +

+ + + + + + + + + + + + + + + + + +
Subclasses of OpenShiftEndpointException in com.openshift.client
+ classInvalidCredentialsOpenShiftException + +
+           
+ classNotFoundOpenShiftException + +
+           
+ classOpenShiftTimeoutException + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/class-use/OpenShiftException.html b/documentation/com/openshift/client/class-use/OpenShiftException.html new file mode 100644 index 00000000..7553c205 --- /dev/null +++ b/documentation/com/openshift/client/class-use/OpenShiftException.html @@ -0,0 +1,2077 @@ + + + + + + + +Uses of Class com.openshift.client.OpenShiftException (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.client.OpenShiftException

+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+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
+ classInvalidCredentialsOpenShiftException + +
+           
+ classInvalidNameOpenShiftException + +
+           
+ classNotFoundOpenShiftException + +
+           
+ classOpenShiftApplicationNotAvailableException + +
+           
+ classOpenShiftEndpointException + +
+           
+ classOpenShiftRequestException + +
+           
+ classOpenShiftSSHKeyException + +
+           
+ classOpenShiftSSHOperationException + +
+          OpenShift Exception that encapsulates an underlying exception that occurred during an SSH operation.
+ classOpenShiftTimeoutException + +
+           
+ classOpenShiftUnknonwSSHKeyTypeException + +
+           
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in com.openshift.client that throw OpenShiftException
+ voidIApplication.addAlias(String string) + +
+          Add application alias
+ IEmbeddedCartridgeIApplication.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.
+ IEnvironmentVariableIApplication.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 SSHKeyPairSSHKeyPair.create(SSHKeyType type, + String passPhrase, + String privateKeyPath, + String publicKeyPath) + +
+          Creates private and public ssh-rsa keys and stores them to the given + paths.
+static SSHKeyPairSSHKeyPair.create(String passPhrase, + String privateKeyPath, + String publicKeyPath) + +
+           
+ IApplicationIDomain.createApplication(String name, + IStandaloneCartridge cartridge) + +
+           
+ IApplicationIDomain.createApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale) + +
+           
+ IApplicationIDomain.createApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale, + IGearProfile gearProfile) + +
+           
+ IApplicationIDomain.createApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale, + IGearProfile gearProfile, + String initialGitUrl) + +
+          Creates a new application with the given name and the given + cartridge/framework.
+ IApplicationIDomain.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.
+ IApplicationIDomain.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.
+ IApplicationIDomain.createApplication(String name, + IStandaloneCartridge cartridge, + IGearProfile gearProfile) + +
+           
+ IApplicationIDomain.createApplication(String name, + IStandaloneCartridge cartridge, + String initialGitUrl) + +
+           
+ IDomainIUser.createDomain(String id) + +
+           
+ voidIOpenShiftSSHKey.destroy() + +
+           
+ voidIEnvironmentVariable.destroy() + +
+          Destroys this environment variable
+ voidIDomain.destroy() + +
+          Destroys the current domain.
+ voidIApplication.destroy() + +
+          Destroys this application (and removes it from the list of available + applications)
+ voidIDomain.destroy(boolean force) + +
+          Destroys the current domain, using the 'force' parameter to also destroy the domain applications.
+ IApplicationIDomain.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).
+ IOpenShiftConnectionOpenShiftConnectionFactory.getConnection(String clientId, + String password) + +
+          Establish a connection with the clientId along with user's password.
+ IOpenShiftConnectionOpenShiftConnectionFactory.getConnection(String clientId, + String username, + String password) + +
+          Establish a connection with the clientId along with user's login and + password.
+ IOpenShiftConnectionOpenShiftConnectionFactory.getConnection(String clientId, + String username, + String password, + String serverUrl) + +
+          Establish a connection with the clientId along with user's login and + password.
+protected  IOpenShiftConnectionOpenShiftConnectionFactory.getConnection(String clientId, + String username, + String password, + String serverUrl, + IHttpClient httpClient) + +
+           
+ IOpenShiftConnectionOpenShiftConnectionFactory.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.
+ IDomainIUser.getDefaultDomain() + +
+           
+ IDomainIUser.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.
+ IEmbeddedCartridgeIApplication.getEmbeddedCartridge(IEmbeddableCartridge cartridge) + +
+          Returns the embedded cartridge in this application.
+ IEmbeddedCartridgeIApplication.getEmbeddedCartridge(String cartridgeName) + +
+          Returns the embedded cartridge given its name.
+ List<IEmbeddedCartridge>IApplication.getEmbeddedCartridges() + +
+          Returns all embedded cartridges.
+ IEnvironmentVariableIApplication.getEnvironmentVariable(String name) + +
+          Return the environment variable for the specified name
+ Collection<IGearGroup>IApplication.getGearGroups() + +
+          Returns the gear groups for this application.
+ RestResponseOpenShiftEndpointException.getRestResponse() + +
+           
+ IOpenShiftSSHKeyIUser.getSSHKeyByName(String name) + +
+           
+ IOpenShiftSSHKeyIUser.getSSHKeyByPublicKey(String publicKey) + +
+           
+ List<IOpenShiftSSHKey>IUser.getSSHKeys() + +
+           
+ List<IStandaloneCartridge>IOpenShiftConnection.getStandaloneCartridges() + +
+          Returns the available standalone cartridges associated with the current + OpenShift connection.
+ IUserIOpenShiftConnection.getUser() + +
+          Returns the user associated with the current OpenShift connection.
+ IUserIDomain.getUser() + +
+          Returns the currently connected user that manages this domain.
+ booleanIDomain.hasApplicationByCartridge(IStandaloneCartridge cartridge) + +
+           
+ booleanIDomain.hasApplicationByName(String name) + +
+          Returns true if the application identified by the given name exists in the domain.
+ booleanIUser.hasDomain() + +
+           
+ booleanIUser.hasDomain(String id) + +
+           
+ booleanIApplication.hasEmbeddedCartridge(IEmbeddableCartridge cartridge) + +
+          Returns true if this application has an embedded cartridge.
+ booleanIApplication.hasEmbeddedCartridge(String cartridgeName) + +
+          Returns true if this application has an embedded cartridge.
+ booleanIApplication.hasEnvironmentVariable(String name) + +
+          Checks if the environment variable is present in the application.
+ booleanIUser.hasSSHKeyName(String name) + +
+           
+ booleanIUser.hasSSHPublicKey(String publicKey) + +
+           
+static SSHKeyPairSSHKeyPair.load(String privateKeyPath, + String publicKeyPath) + +
+          Loads existing private and public ssh key from the given paths.
+ IOpenShiftSSHKeyIUser.putSSHKey(String name, + ISSHPublicKey key) + +
+           
+ voidIOpenShiftResource.refresh() + +
+          Refresh the resource and its list of children resources that were + previously loaded
+ voidIApplication.refresh() + +
+          Refresh the application but reloading its content from OpenShift.
+ voidIApplication.removeAlias(String alias) + +
+          Remove application alias
+ voidIApplication.removeEmbeddedCartridge(IEmbeddableCartridge cartridge) + +
+          Removes the given embedded cartridge that is equal to the given + embeddable cartridge.
+ voidIApplication.removeEmbeddedCartridges(Collection<IEmbeddableCartridge> cartridges) + +
+          Removes the given embedded cartridges in this application that are equal to the + given IEmbeddableCartridge.
+ voidIApplication.removeEnvironmentVariable(String name) + +
+          Removes the environment variables with the given name from this application.
+ voidIDomain.rename(String id) + +
+          Rename the current domain with the given id....
+ voidIApplication.restart() + +
+          Restarts this application.
+ voidIApplication.scaleDown() + +
+          Scale down application
+ voidIApplication.scaleUp() + +
+          Scale up application
+ voidIOpenShiftSSHKey.setKeyType(SSHKeyType type, + String publicKey) + +
+          Sets the new type and public key of this ssh key to the OpenShift PaaS
+ voidIOpenShiftSSHKey.setPublicKey(String publicKey) + +
+          Sets the public key portion of this ssh key to the OpenShift PaaS.
+ voidIApplication.start() + +
+          Starts this application.
+ voidIApplication.stop() + +
+          Stops this application.
+ voidIApplication.stop(boolean force) + +
+          Stops this application
+ voidIEnvironmentVariable.update(String value) + +
+          Updates this environment variable to the given value.
+ booleanIApplication.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
+ voidIEmbeddedCartridge.destroy() + +
+          Destroys this cartridge (and removes it from the list of existing cartridges)
+ URLIEmbeddedCartridge.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
+ voidApplicationResource.addAlias(String alias) + +
+           
+ IEmbeddedCartridgeApplicationResource.addEmbeddableCartridge(IEmbeddableCartridge cartridge) + +
+          Adds the given embedded cartridge to this application.
+ List<IEmbeddedCartridge>ApplicationResource.addEmbeddableCartridges(Collection<IEmbeddableCartridge> cartridges) + +
+           
+ IEnvironmentVariableApplicationResource.addEnvironmentVariable(String name, + String value) + +
+           
+ Map<String,IEnvironmentVariable>ApplicationResource.addEnvironmentVariables(Map<String,String> environmentVariables) + +
+           
+ IApplicationDomainResource.createApplication(String name, + IStandaloneCartridge cartridge) + +
+           
+ IApplicationDomainResource.createApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale) + +
+           
+ IApplicationDomainResource.createApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale, + IGearProfile gearProfile) + +
+           
+ IApplicationDomainResource.createApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale, + IGearProfile gearProfile, + String initialGitUrl) + +
+           
+ IApplicationDomainResource.createApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale, + IGearProfile gearProfile, + String initialGitUrl, + int timeout, + IEmbeddableCartridge... cartridges) + +
+           
+ IApplicationDomainResource.createApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale, + IGearProfile gearProfile, + String initialGitUrl, + int timeout, + Map<String,String> environmentVariables, + IEmbeddableCartridge... cartridges) + +
+           
+ IApplicationDomainResource.createApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale, + String initialGitUrl) + +
+           
+ IApplicationDomainResource.createApplication(String name, + IStandaloneCartridge cartridge, + IGearProfile gearProfile) + +
+           
+ IApplicationDomainResource.createApplication(String name, + IStandaloneCartridge cartridge, + IGearProfile gearProfile, + String initialGitUrl) + +
+           
+ IApplicationDomainResource.createApplication(String name, + IStandaloneCartridge cartridge, + String initialGitUrl) + +
+           
+ IDomainUserResource.createDomain(String id) + +
+           
+ IDomainAPIResource.createDomain(String id) + +
+           
+ voidSSHKeyResource.destroy() + +
+           
+ voidEnvironmentVariableResource.destroy() + +
+           
+ voidEmbeddedCartridgeResource.destroy() + +
+           
+ voidDomainResource.destroy() + +
+           
+ voidApplicationResource.destroy() + +
+           
+ voidDomainResource.destroy(boolean force) + +
+           
+protected + + + + +
+<DTO> DTO
+
AbstractOpenShiftResource.ServiceRequest.execute(int timeout, + IMediaType mediaType, + Parameter... parameters) + +
+           
+protected + + + + +
+<DTO> DTO
+
AbstractOpenShiftResource.ServiceRequest.execute(int timeout, + List<Parameter> urlParameter, + IMediaType mediaType, + Parameter... parameters) + +
+           
+protected + + + + +
+<DTO> DTO
+
AbstractOpenShiftResource.ServiceRequest.execute(int timeout, + List<Parameter> urlParameter, + Parameter... parameters) + +
+           
+protected + + + + +
+<DTO> DTO
+
AbstractOpenShiftResource.ServiceRequest.execute(int timeout, + Parameter... parameters) + +
+           
+protected + + + + +
+<DTO> DTO
+
AbstractOpenShiftResource.ServiceRequest.execute(List<Parameter> urlParameter, + Parameter... parameters) + +
+           
+protected + + + + +
+<DTO> DTO
+
AbstractOpenShiftResource.ServiceRequest.execute(Parameter... parameters) + +
+           
+ IApplicationDomainResource.getApplicationByName(String name) + +
+           
+ List<IApplication>DomainResource.getApplications() + +
+           
+ List<IApplication>DomainResource.getApplicationsByCartridge(IStandaloneCartridge cartridge) + +
+           
+ List<String>DomainResource.getAvailableCartridgeNames() + +
+           
+ List<IGearProfile>DomainResource.getAvailableGearProfiles() + +
+           
+protected  IOpenShiftConnectionAbstractOpenShiftConnectionFactory.getConnection(IRestService service, + String login, + String password) + +
+           
+ IDomainUserResource.getDefaultDomain() + +
+           
+ IDomainUserResource.getDomain(String id) + +
+           
+ IDomainAPIResource.getDomain(String id) + +
+           
+ List<IDomain>UserResource.getDomains() + +
+           
+ List<IDomain>APIResource.getDomains() + +
+           
+ List<IEmbeddableCartridge>APIResource.getEmbeddableCartridges() + +
+           
+ IEmbeddedCartridgeApplicationResource.getEmbeddedCartridge(IEmbeddableCartridge cartridge) + +
+           
+ IEmbeddedCartridgeApplicationResource.getEmbeddedCartridge(String cartridgeName) + +
+           
+ List<IEmbeddedCartridge>ApplicationResource.getEmbeddedCartridges() + +
+           
+ Map<String,IEnvironmentVariable>ApplicationResource.getEnvironmentVariables() + +
+           
+ Collection<IGearGroup>ApplicationResource.getGearGroups() + +
+           
+protected  LinkAbstractOpenShiftResource.getLink(String linkName) + +
+          Gets the link for the given name.
+protected  List<IApplication>DomainResource.getOrLoadApplications() + +
+           
+protected  Map<String,IEnvironmentVariable>ApplicationResource.getOrLoadEnvironmentVariables() + +
+           
+ IOpenShiftSSHKeyUserResource.getSSHKeyByName(String name) + +
+           
+ IOpenShiftSSHKeyUserResource.getSSHKeyByPublicKey(String publicKey) + +
+           
+ List<IOpenShiftSSHKey>UserResource.getSSHKeys() + +
+           
+ List<IStandaloneCartridge>APIResource.getStandaloneCartridges() + +
+           
+ IUserDomainResource.getUser() + +
+           
+ IUserAPIResource.getUser() + +
+           
+ booleanDomainResource.hasApplicationByCartridge(IStandaloneCartridge cartridge) + +
+           
+ booleanDomainResource.hasApplicationByName(String name) + +
+           
+ booleanUserResource.hasDomain() + +
+           
+ booleanUserResource.hasDomain(String id) + +
+           
+protected  booleanAPIResource.hasDomain(String name) + +
+           
+ booleanApplicationResource.hasEmbeddedCartridge(IEmbeddableCartridge cartridge) + +
+           
+ booleanApplicationResource.hasEmbeddedCartridge(String cartridgeName) + +
+           
+ booleanApplicationResource.hasEnvironmentVariable(String name) + +
+           
+ booleanUserResource.hasSSHKeyName(String name) + +
+           
+ booleanUserResource.hasSSHPublicKey(String publicKey) + +
+           
+ IOpenShiftSSHKeyUserResource.putSSHKey(String name, + ISSHPublicKey key) + +
+          Adds the given ssh key with the given name.
+ voidUserResource.refresh() + +
+           
+ voidSSHKeyResource.refresh() + +
+           
+ voidGearGroupResource.refresh() + +
+           
+ voidEnvironmentVariableResource.refresh() + +
+           
+ voidEmbeddedCartridgeResource.refresh() + +
+          Refreshes the content of this embedded cartridge.
+ voidDomainResource.refresh() + +
+           
+ voidApplicationResource.refresh() + +
+           
+ voidAPIResource.refresh() + +
+           
+protected  voidApplicationResource.refreshEmbeddedCartridges() + +
+          Queries the backend to list the embedded cartridges and adds the new ones + & update the ones that are already present
+ voidApplicationResource.removeAlias(String alias) + +
+           
+ voidApplicationResource.removeEmbeddedCartridge(IEmbeddableCartridge cartridge) + +
+           
+protected  voidApplicationResource.removeEmbeddedCartridge(IEmbeddedCartridge embeddedCartridge) + +
+          "callback" from the embeddedCartridge once it has been destroyed.
+ voidApplicationResource.removeEmbeddedCartridges(Collection<IEmbeddableCartridge> cartridges) + +
+           
+ voidDomainResource.rename(String id) + +
+           
+ RestResponseRestService.request(Link link, + int timeout, + IMediaType requestMediaType, + Parameter... parameters) + +
+           
+ RestResponseIRestService.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.
+ RestResponseRestService.request(Link link, + int timeout, + List<Parameter> urlParameters, + IMediaType requestMediaType, + Parameter... parameters) + +
+           
+ RestResponseIRestService.request(Link link, + int timeout, + List<Parameter> urlParameters, + IMediaType mediaType, + Parameter... parameters) + +
+           
+ RestResponseRestService.request(Link link, + int timeout, + List<Parameter> urlParameters, + Parameter... parameters) + +
+           
+ RestResponseIRestService.request(Link link, + int timeout, + List<Parameter> urlParameters, + Parameter... parameters) + +
+           
+ RestResponseRestService.request(Link link, + int timeout, + Parameter... parameters) + +
+           
+ RestResponseIRestService.request(Link link, + int timeout, + Parameter... parameters) + +
+           
+ RestResponseRestService.request(Link link, + List<Parameter> urlParameters, + Parameter... parameters) + +
+           
+ RestResponseIRestService.request(Link link, + List<Parameter> urlParameters, + Parameter... parameters) + +
+           
+ RestResponseRestService.request(Link link, + Parameter... parameters) + +
+           
+ RestResponseIRestService.request(Link link, + Parameter... parameters) + +
+           
+ voidApplicationResource.restart() + +
+           
+ voidApplicationResource.scaleDown() + +
+           
+ voidApplicationResource.scaleUp() + +
+           
+ voidSSHKeyResource.setKeyType(SSHKeyType type, + String publicKey) + +
+           
+ voidSSHKeyResource.setPublicKey(String publicKey) + +
+           
+ voidApplicationResource.start() + +
+           
+ voidApplicationResource.stop() + +
+           
+ voidApplicationResource.stop(boolean force) + +
+           
+ voidEnvironmentVariableResource.update(String newValue) + +
+           
+protected  voidApplicationResource.updateEnvironmentVariables() + +
+           
+ booleanApplicationResource.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
+ RestResponseOpenShiftJsonDTOFactory.get(String json) + +
+           
+ RestResponseIRestResponseFactory.get(String restResponse) + +
+          Returns a RestResponse instance for a given rest response string.
+  +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/class-use/OpenShiftRequestException.html b/documentation/com/openshift/client/class-use/OpenShiftRequestException.html new file mode 100644 index 00000000..46394680 --- /dev/null +++ b/documentation/com/openshift/client/class-use/OpenShiftRequestException.html @@ -0,0 +1,209 @@ + + + + + + + +Uses of Class com.openshift.client.OpenShiftRequestException (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.client.OpenShiftRequestException

+
+ + + + + + + + + +
+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
+ voidLink.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 +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/class-use/OpenShiftSSHKeyException.html b/documentation/com/openshift/client/class-use/OpenShiftSSHKeyException.html new file mode 100644 index 00000000..51fc7f95 --- /dev/null +++ b/documentation/com/openshift/client/class-use/OpenShiftSSHKeyException.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.openshift.client.OpenShiftSSHKeyException (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.client.OpenShiftSSHKeyException

+
+No usage of com.openshift.client.OpenShiftSSHKeyException +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/class-use/OpenShiftSSHOperationException.html b/documentation/com/openshift/client/class-use/OpenShiftSSHOperationException.html new file mode 100644 index 00000000..de043988 --- /dev/null +++ b/documentation/com/openshift/client/class-use/OpenShiftSSHOperationException.html @@ -0,0 +1,376 @@ + + + + + + + +Uses of Class com.openshift.client.OpenShiftSSHOperationException (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.client.OpenShiftSSHOperationException

+
+ + + + + + + + + + + + + + + + + +
+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.
+ booleanIApplication.isPortFowardingStarted() + +
+          Returns true if the port-forwarding has been started, false otherwise.
+ booleanIApplicationPortForwarding.isStarted(com.jcraft.jsch.Session session) + +
+           
+ List<IApplicationPortForwarding>IApplication.refreshForwardablePorts() + +
+          Refreshes the list of port-forwarding.
+ voidIApplicationPortForwarding.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() + +
+           
+ voidIApplicationPortForwarding.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() + +
+           
+ booleanApplicationResource.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
+ booleanApplicationPortForwarding.isStarted(com.jcraft.jsch.Session session) + +
+           
+ voidApplicationPortForwarding.start(com.jcraft.jsch.Session session) + +
+           
+ voidApplicationPortForwarding.stop(com.jcraft.jsch.Session session) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/class-use/OpenShiftTimeoutException.html b/documentation/com/openshift/client/class-use/OpenShiftTimeoutException.html new file mode 100644 index 00000000..c0439e1f --- /dev/null +++ b/documentation/com/openshift/client/class-use/OpenShiftTimeoutException.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.openshift.client.OpenShiftTimeoutException (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.client.OpenShiftTimeoutException

+
+No usage of com.openshift.client.OpenShiftTimeoutException +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/class-use/OpenShiftUnknonwSSHKeyTypeException.html b/documentation/com/openshift/client/class-use/OpenShiftUnknonwSSHKeyTypeException.html new file mode 100644 index 00000000..a57cd665 --- /dev/null +++ b/documentation/com/openshift/client/class-use/OpenShiftUnknonwSSHKeyTypeException.html @@ -0,0 +1,342 @@ + + + + + + + +Uses of Class com.openshift.client.OpenShiftUnknonwSSHKeyTypeException (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.client.OpenShiftUnknonwSSHKeyTypeException

+
+ + + + + + + + + + + + + + + + + +
+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 SSHKeyTypeSSHKeyType.getByJSchKeyType(int jschKeyType) + +
+           
+static SSHKeyTypeSSHKeyType.getByJSchKeyType(com.jcraft.jsch.KeyPair keyPair) + +
+           
+static SSHKeyTypeSSHKeyType.getByTypeId(String keyTypeId) + +
+           
+ IOpenShiftSSHKeyIUser.getSSHKeyByName(String name) + +
+           
+ IOpenShiftSSHKeyIUser.getSSHKeyByPublicKey(String publicKey) + +
+           
+ booleanIUser.hasSSHKeyName(String name) + +
+           
+ booleanIUser.hasSSHPublicKey(String publicKey) + +
+           
+  +

+ + + + + +
+Uses of OpenShiftUnknonwSSHKeyTypeException in com.openshift.internal.client
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in com.openshift.internal.client that throw OpenShiftUnknonwSSHKeyTypeException
+ IOpenShiftSSHKeyUserResource.getSSHKeyByName(String name) + +
+           
+ IOpenShiftSSHKeyUserResource.getSSHKeyByPublicKey(String publicKey) + +
+           
+ List<IOpenShiftSSHKey>UserResource.getSSHKeys() + +
+           
+ booleanUserResource.hasSSHKeyName(String name) + +
+           
+ booleanUserResource.hasSSHPublicKey(String publicKey) + +
+           
+protected  voidSSHKeyResource.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  voidAbstractSSHKey.setKeyType(String keyTypeId) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/class-use/SSHKeyPair.html b/documentation/com/openshift/client/class-use/SSHKeyPair.html new file mode 100644 index 00000000..825bd342 --- /dev/null +++ b/documentation/com/openshift/client/class-use/SSHKeyPair.html @@ -0,0 +1,204 @@ + + + + + + + +Uses of Class com.openshift.client.SSHKeyPair (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.client.SSHKeyPair

+
+ + + + + + + + + +
+Packages that use SSHKeyPair
com.openshift.client  
+  +

+ + + + + +
+Uses of SSHKeyPair in com.openshift.client
+  +

+ + + + + + + + + + + + + + + + + +
Methods in com.openshift.client that return SSHKeyPair
+static SSHKeyPairSSHKeyPair.create(SSHKeyType type, + String passPhrase, + String privateKeyPath, + String publicKeyPath) + +
+          Creates private and public ssh-rsa keys and stores them to the given + paths.
+static SSHKeyPairSSHKeyPair.create(String passPhrase, + String privateKeyPath, + String publicKeyPath) + +
+           
+static SSHKeyPairSSHKeyPair.load(String privateKeyPath, + String publicKeyPath) + +
+          Loads existing private and public ssh key from the given paths.
+  +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/class-use/SSHKeyType.html b/documentation/com/openshift/client/class-use/SSHKeyType.html new file mode 100644 index 00000000..873db358 --- /dev/null +++ b/documentation/com/openshift/client/class-use/SSHKeyType.html @@ -0,0 +1,356 @@ + + + + + + + +Uses of Class com.openshift.client.SSHKeyType (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.client.SSHKeyType

+
+ + + + + + + + + + + + + + + + + +
+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 SSHKeyTypeSSHKeyType.getByJSchKeyType(int jschKeyType) + +
+           
+static SSHKeyTypeSSHKeyType.getByJSchKeyType(com.jcraft.jsch.KeyPair keyPair) + +
+           
+static SSHKeyTypeSSHKeyType.getByTypeId(String keyTypeId) + +
+           
+ SSHKeyTypeISSHPublicKey.getKeyType() + +
+          Returns the type of the key (ssh-rsa or ssh-dss)
+static SSHKeyTypeSSHKeyType.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 SSHKeyPairSSHKeyPair.create(SSHKeyType type, + String passPhrase, + String privateKeyPath, + String publicKeyPath) + +
+          Creates private and public ssh-rsa keys and stores them to the given + paths.
+ voidIOpenShiftSSHKey.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
+ SSHKeyTypeSSHKeyResource.getKeyType() + +
+           
+  +

+ + + + + + + + + +
Methods in com.openshift.internal.client with parameters of type SSHKeyType
+ voidSSHKeyResource.setKeyType(SSHKeyType type, + String publicKey) + +
+           
+  +

+ + + + + +
+Uses of SSHKeyType in com.openshift.internal.client.ssh
+  +

+ + + + + + + + + +
Methods in com.openshift.internal.client.ssh that return SSHKeyType
+ SSHKeyTypeAbstractSSHKey.getKeyType() + +
+           
+  +

+ + + + + + + + + +
Methods in com.openshift.internal.client.ssh with parameters of type SSHKeyType
+protected  voidAbstractSSHKey.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 +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/class-use/SSHPublicKey.html b/documentation/com/openshift/client/class-use/SSHPublicKey.html new file mode 100644 index 00000000..11eeac0c --- /dev/null +++ b/documentation/com/openshift/client/class-use/SSHPublicKey.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.openshift.client.SSHPublicKey (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.client.SSHPublicKey

+
+No usage of com.openshift.client.SSHPublicKey +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/configuration/AbstractOpenshiftConfiguration.html b/documentation/com/openshift/client/configuration/AbstractOpenshiftConfiguration.html new file mode 100644 index 00000000..c8b956f7 --- /dev/null +++ b/documentation/com/openshift/client/configuration/AbstractOpenshiftConfiguration.html @@ -0,0 +1,898 @@ + + + + + + + +AbstractOpenshiftConfiguration (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client.configuration +
+Class AbstractOpenshiftConfiguration

+
+java.lang.Object
+  extended by com.openshift.client.configuration.AbstractOpenshiftConfiguration
+
+
+
All Implemented Interfaces:
IOpenShiftConfiguration
+
+
+
Direct Known Subclasses:
DefaultConfiguration, OpenShiftConfiguration, SystemConfiguration, SystemProperties, UserConfiguration
+
+
+
+
public abstract class AbstractOpenshiftConfiguration
extends Object
implements IOpenShiftConfiguration
+ + +

+

+
Author:
+
André Dietisheim
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+protected static StringKEY_CLIENT_ID + +
+           
+protected static StringKEY_LIBRA_DOMAIN + +
+           
+protected static StringKEY_LIBRA_SERVER + +
+           
+protected static StringKEY_PASSWORD + +
+           
+protected static StringKEY_RHLOGIN + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Constructor Summary
+protected AbstractOpenshiftConfiguration() + +
+           
+protected AbstractOpenshiftConfiguration(File file, + IOpenShiftConfiguration parentConfiguration) + +
+           
+protected AbstractOpenshiftConfiguration(IOpenShiftConfiguration parentConfiguration) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  StringensureIsSingleQuoted(String value) + +
+           
+ StringgetClientId() + +
+           
+protected  FilegetFile() + +
+           
+ StringgetLibraDomain() + +
+           
+ StringgetLibraServer() + +
+           
+ StringgetPassword() + +
+           
+ PropertiesgetProperties() + +
+           
+protected  PropertiesgetProperties(File file, + Properties defaultProperties) + +
+           
+ StringgetProxyHost() + +
+           
+ StringgetProxyPort() + +
+           
+ booleangetProxySet() + +
+           
+ StringgetRhlogin() + +
+           
+protected  voidinitProperties(File file) + +
+           
+protected  voidinitProperties(File file, + Properties defaultProperties) + +
+           
+protected  voidinitProperties(Properties defaultProperties) + +
+           
+protected  StringremoveQuotes(String value) + +
+           
+ voidsave() + +
+           
+ voidsetEnableSSLCertChecks(boolean doSSLChecks) + +
+           
+ voidsetLibraDomain(String libraDomain) + +
+           
+ voidsetLibraServer(String libraServer) + +
+           
+ voidsetRhlogin(String rhlogin) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+KEY_RHLOGIN

+
+protected static final String KEY_RHLOGIN
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_LIBRA_SERVER

+
+protected static final String KEY_LIBRA_SERVER
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_LIBRA_DOMAIN

+
+protected static final String KEY_LIBRA_DOMAIN
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_PASSWORD

+
+protected static final String KEY_PASSWORD
+
+
+
See Also:
Constant Field Values
+
+
+ +

+KEY_CLIENT_ID

+
+protected static final String KEY_CLIENT_ID
+
+
+
See Also:
Constant Field Values
+
+ + + + + + + + +
+Constructor Detail
+ +

+AbstractOpenshiftConfiguration

+
+protected AbstractOpenshiftConfiguration()
+                                  throws FileNotFoundException,
+                                         IOException
+
+
+ +
Throws: +
FileNotFoundException +
IOException
+
+
+ +

+AbstractOpenshiftConfiguration

+
+protected AbstractOpenshiftConfiguration(IOpenShiftConfiguration parentConfiguration)
+                                  throws FileNotFoundException,
+                                         IOException
+
+
+ +
Throws: +
FileNotFoundException +
IOException
+
+
+ +

+AbstractOpenshiftConfiguration

+
+protected AbstractOpenshiftConfiguration(File file,
+                                         IOpenShiftConfiguration parentConfiguration)
+                                  throws FileNotFoundException,
+                                         IOException
+
+
+ +
Throws: +
FileNotFoundException +
IOException
+
+ + + + + + + + +
+Method Detail
+ +

+initProperties

+
+protected void initProperties(File file)
+                       throws FileNotFoundException,
+                              IOException
+
+
+
+
+
+ +
Throws: +
FileNotFoundException +
IOException
+
+
+
+ +

+initProperties

+
+protected void initProperties(Properties defaultProperties)
+                       throws FileNotFoundException,
+                              IOException
+
+
+
+
+
+ +
Throws: +
FileNotFoundException +
IOException
+
+
+
+ +

+initProperties

+
+protected void initProperties(File file,
+                              Properties defaultProperties)
+                       throws FileNotFoundException,
+                              IOException
+
+
+
+
+
+ +
Throws: +
FileNotFoundException +
IOException
+
+
+
+ +

+getProperties

+
+protected Properties getProperties(File file,
+                                   Properties defaultProperties)
+                            throws FileNotFoundException,
+                                   IOException
+
+
+
+
+
+ +
Throws: +
FileNotFoundException +
IOException
+
+
+
+ +

+getFile

+
+protected File getFile()
+
+
+
+
+
+
+
+
+
+ +

+getProperties

+
+public Properties getProperties()
+
+
+
Specified by:
getProperties in interface IOpenShiftConfiguration
+
+
+
+
+
+
+ +

+save

+
+public void save()
+          throws IOException
+
+
+
+
+
+ +
Throws: +
IOException
+
+
+
+ +

+setRhlogin

+
+public void setRhlogin(String rhlogin)
+
+
+
Specified by:
setRhlogin in interface IOpenShiftConfiguration
+
+
+
+
+
+
+ +

+getRhlogin

+
+public String getRhlogin()
+
+
+
Specified by:
getRhlogin in interface IOpenShiftConfiguration
+
+
+
+
+
+
+ +

+setLibraServer

+
+public void setLibraServer(String libraServer)
+
+
+
Specified by:
setLibraServer in interface IOpenShiftConfiguration
+
+
+
+
+
+
+ +

+getLibraServer

+
+public String getLibraServer()
+
+
+
Specified by:
getLibraServer in interface IOpenShiftConfiguration
+
+
+
+
+
+
+ +

+setLibraDomain

+
+public void setLibraDomain(String libraDomain)
+
+
+
Specified by:
setLibraDomain in interface IOpenShiftConfiguration
+
+
+
+
+
+
+ +

+getLibraDomain

+
+public String getLibraDomain()
+
+
+
Specified by:
getLibraDomain in interface IOpenShiftConfiguration
+
+
+
+
+
+
+ +

+ensureIsSingleQuoted

+
+protected String ensureIsSingleQuoted(String value)
+
+
+
+
+
+
+
+
+
+ +

+removeQuotes

+
+protected String removeQuotes(String value)
+
+
+
+
+
+
+
+
+
+ +

+getPassword

+
+public String getPassword()
+
+
+
+
+
+
+
+
+
+ +

+getClientId

+
+public String getClientId()
+
+
+
+
+
+
+
+
+
+ +

+setEnableSSLCertChecks

+
+public void setEnableSSLCertChecks(boolean doSSLChecks)
+
+
+
+
+
+
+
+
+
+ +

+getProxySet

+
+public boolean getProxySet()
+
+
+
+
+
+
+
+
+
+ +

+getProxyHost

+
+public String getProxyHost()
+
+
+
+
+
+
+
+
+
+ +

+getProxyPort

+
+public String getProxyPort()
+
+
+
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/configuration/DefaultConfiguration.html b/documentation/com/openshift/client/configuration/DefaultConfiguration.html new file mode 100644 index 00000000..0c324913 --- /dev/null +++ b/documentation/com/openshift/client/configuration/DefaultConfiguration.html @@ -0,0 +1,345 @@ + + + + + + + +DefaultConfiguration (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client.configuration +
+Class DefaultConfiguration

+
+java.lang.Object
+  extended by com.openshift.client.configuration.AbstractOpenshiftConfiguration
+      extended by com.openshift.client.configuration.DefaultConfiguration
+
+
+
All Implemented Interfaces:
IOpenShiftConfiguration
+
+
+
+
public class DefaultConfiguration
extends AbstractOpenshiftConfiguration
+ + +

+

+
Author:
+
André Dietisheim
+
+
+ +

+ + + + + + + + + + + + + + + +
+Field Summary
+static StringLIBRA_DOMAIN + +
+           
+static StringLIBRA_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  PropertiesgetProperties(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
+ +

+LIBRA_SERVER

+
+public static final String LIBRA_SERVER
+
+
+
See Also:
Constant Field Values
+
+
+ +

+LIBRA_DOMAIN

+
+public static final String LIBRA_DOMAIN
+
+
+
See Also:
Constant Field Values
+
+ + + + + + + + +
+Constructor Detail
+ +

+DefaultConfiguration

+
+public DefaultConfiguration()
+                     throws OpenShiftException,
+                            IOException
+
+
+ +
Throws: +
OpenShiftException +
IOException
+
+ + + + + + + + +
+Method Detail
+ +

+getProperties

+
+protected Properties getProperties(File file,
+                                   Properties defaultProperties)
+
+
+
Overrides:
getProperties in class AbstractOpenshiftConfiguration
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/configuration/IOpenShiftConfiguration.html b/documentation/com/openshift/client/configuration/IOpenShiftConfiguration.html new file mode 100644 index 00000000..a108e593 --- /dev/null +++ b/documentation/com/openshift/client/configuration/IOpenShiftConfiguration.html @@ -0,0 +1,328 @@ + + + + + + + +IOpenShiftConfiguration (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client.configuration +
+Interface IOpenShiftConfiguration

+
+
All Known Implementing Classes:
AbstractOpenshiftConfiguration, DefaultConfiguration, OpenShiftConfiguration, SystemConfiguration, SystemProperties, UserConfiguration
+
+
+
+
public interface IOpenShiftConfiguration
+ + +

+

+
Author:
+
André Dietisheim
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetLibraDomain() + +
+           
+ StringgetLibraServer() + +
+           
+ PropertiesgetProperties() + +
+           
+ StringgetRhlogin() + +
+           
+ voidsetLibraDomain(String libraDomain) + +
+           
+ voidsetLibraServer(String libraServer) + +
+           
+ voidsetRhlogin(String rhlogin) + +
+           
+  +

+ + + + + + + + +
+Method Detail
+ +

+getRhlogin

+
+String getRhlogin()
+
+
+
+
+
+
+ +

+setRhlogin

+
+void setRhlogin(String rhlogin)
+
+
+
+
+
+
+ +

+getLibraServer

+
+String getLibraServer()
+
+
+
+
+
+
+ +

+setLibraServer

+
+void setLibraServer(String libraServer)
+
+
+
+
+
+
+ +

+getLibraDomain

+
+String getLibraDomain()
+
+
+
+
+
+
+ +

+setLibraDomain

+
+void setLibraDomain(String libraDomain)
+
+
+
+
+
+
+ +

+getProperties

+
+Properties getProperties()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/configuration/OpenShiftConfiguration.html b/documentation/com/openshift/client/configuration/OpenShiftConfiguration.html new file mode 100644 index 00000000..9ae506fb --- /dev/null +++ b/documentation/com/openshift/client/configuration/OpenShiftConfiguration.html @@ -0,0 +1,269 @@ + + + + + + + +OpenShiftConfiguration (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client.configuration +
+Class OpenShiftConfiguration

+
+java.lang.Object
+  extended by com.openshift.client.configuration.AbstractOpenshiftConfiguration
+      extended by com.openshift.client.configuration.OpenShiftConfiguration
+
+
+
All Implemented Interfaces:
IOpenShiftConfiguration
+
+
+
+
public class OpenShiftConfiguration
extends AbstractOpenshiftConfiguration
+ + +

+

+
Author:
+
André Dietisheim
+
+
+ +

+ + + + + + + +
+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
+ +

+OpenShiftConfiguration

+
+public OpenShiftConfiguration()
+                       throws FileNotFoundException,
+                              IOException,
+                              OpenShiftException
+
+
+ +
Throws: +
FileNotFoundException +
IOException +
OpenShiftException
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/configuration/SystemConfiguration.html b/documentation/com/openshift/client/configuration/SystemConfiguration.html new file mode 100644 index 00000000..66dba5ba --- /dev/null +++ b/documentation/com/openshift/client/configuration/SystemConfiguration.html @@ -0,0 +1,271 @@ + + + + + + + +SystemConfiguration (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client.configuration +
+Class SystemConfiguration

+
+java.lang.Object
+  extended by com.openshift.client.configuration.AbstractOpenshiftConfiguration
+      extended by com.openshift.client.configuration.SystemConfiguration
+
+
+
All Implemented Interfaces:
IOpenShiftConfiguration
+
+
+
+
public class SystemConfiguration
extends AbstractOpenshiftConfiguration
+ + +

+The system wide OpenShift configuration that is at /etc/express.conf +

+ +

+

+
Author:
+
André Dietisheim
+
+
+ +

+ + + + + + + +
+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
+ +

+SystemConfiguration

+
+public SystemConfiguration(IOpenShiftConfiguration parentConfiguration)
+                    throws OpenShiftException,
+                           IOException
+
+
+ +
Throws: +
OpenShiftException +
IOException
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/configuration/SystemProperties.html b/documentation/com/openshift/client/configuration/SystemProperties.html new file mode 100644 index 00000000..5f8c7685 --- /dev/null +++ b/documentation/com/openshift/client/configuration/SystemProperties.html @@ -0,0 +1,300 @@ + + + + + + + +SystemProperties (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client.configuration +
+Class SystemProperties

+
+java.lang.Object
+  extended by com.openshift.client.configuration.AbstractOpenshiftConfiguration
+      extended by com.openshift.client.configuration.SystemProperties
+
+
+
All Implemented Interfaces:
IOpenShiftConfiguration
+
+
+
+
public class SystemProperties
extends AbstractOpenshiftConfiguration
+ + +

+

+
Author:
+
André Dietisheim
+
+
+ +

+ + + + + + + +
+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  PropertiesgetProperties(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
+ +

+SystemProperties

+
+public SystemProperties(IOpenShiftConfiguration parentConfiguration)
+                 throws OpenShiftException,
+                        IOException
+
+
+ +
Throws: +
OpenShiftException +
IOException
+
+ + + + + + + + +
+Method Detail
+ +

+getProperties

+
+protected Properties getProperties(File file,
+                                   Properties defaultProperties)
+
+
+
Overrides:
getProperties in class AbstractOpenshiftConfiguration
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/configuration/UserConfiguration.html b/documentation/com/openshift/client/configuration/UserConfiguration.html new file mode 100644 index 00000000..9f205ee3 --- /dev/null +++ b/documentation/com/openshift/client/configuration/UserConfiguration.html @@ -0,0 +1,267 @@ + + + + + + + +UserConfiguration (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client.configuration +
+Class UserConfiguration

+
+java.lang.Object
+  extended by com.openshift.client.configuration.AbstractOpenshiftConfiguration
+      extended by com.openshift.client.configuration.UserConfiguration
+
+
+
All Implemented Interfaces:
IOpenShiftConfiguration
+
+
+
+
public class UserConfiguration
extends AbstractOpenshiftConfiguration
+ + +

+

+
Author:
+
André Dietisheim
+
+
+ +

+ + + + + + + +
+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
+ +

+UserConfiguration

+
+public UserConfiguration(SystemConfiguration systemConfiguration)
+                  throws OpenShiftException,
+                         IOException
+
+
+ +
Throws: +
OpenShiftException +
IOException
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/configuration/class-use/AbstractOpenshiftConfiguration.html b/documentation/com/openshift/client/configuration/class-use/AbstractOpenshiftConfiguration.html new file mode 100644 index 00000000..5aa83a75 --- /dev/null +++ b/documentation/com/openshift/client/configuration/class-use/AbstractOpenshiftConfiguration.html @@ -0,0 +1,213 @@ + + + + + + + +Uses of Class com.openshift.client.configuration.AbstractOpenshiftConfiguration (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.client.configuration.AbstractOpenshiftConfiguration

+
+ + + + + + + + + +
+Packages that use AbstractOpenshiftConfiguration
com.openshift.client.configuration  
+  +

+ + + + + +
+Uses of AbstractOpenshiftConfiguration in com.openshift.client.configuration
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Subclasses of AbstractOpenshiftConfiguration in com.openshift.client.configuration
+ classDefaultConfiguration + +
+           
+ classOpenShiftConfiguration + +
+           
+ classSystemConfiguration + +
+          The system wide OpenShift configuration that is at /etc/express.conf
+ classSystemProperties + +
+           
+ classUserConfiguration + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/configuration/class-use/DefaultConfiguration.html b/documentation/com/openshift/client/configuration/class-use/DefaultConfiguration.html new file mode 100644 index 00000000..568c6b0d --- /dev/null +++ b/documentation/com/openshift/client/configuration/class-use/DefaultConfiguration.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.openshift.client.configuration.DefaultConfiguration (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.client.configuration.DefaultConfiguration

+
+No usage of com.openshift.client.configuration.DefaultConfiguration +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/configuration/class-use/IOpenShiftConfiguration.html b/documentation/com/openshift/client/configuration/class-use/IOpenShiftConfiguration.html new file mode 100644 index 00000000..f8a4a70d --- /dev/null +++ b/documentation/com/openshift/client/configuration/class-use/IOpenShiftConfiguration.html @@ -0,0 +1,254 @@ + + + + + + + +Uses of Interface com.openshift.client.configuration.IOpenShiftConfiguration (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Interface
com.openshift.client.configuration.IOpenShiftConfiguration

+
+ + + + + + + + + +
+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
+ classAbstractOpenshiftConfiguration + +
+           
+ classDefaultConfiguration + +
+           
+ classOpenShiftConfiguration + +
+           
+ classSystemConfiguration + +
+          The system wide OpenShift configuration that is at /etc/express.conf
+ classSystemProperties + +
+           
+ classUserConfiguration + +
+           
+  +

+ + + + + + + + + + + + + + + + + +
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 +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/configuration/class-use/OpenShiftConfiguration.html b/documentation/com/openshift/client/configuration/class-use/OpenShiftConfiguration.html new file mode 100644 index 00000000..82a391ba --- /dev/null +++ b/documentation/com/openshift/client/configuration/class-use/OpenShiftConfiguration.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.openshift.client.configuration.OpenShiftConfiguration (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.client.configuration.OpenShiftConfiguration

+
+No usage of com.openshift.client.configuration.OpenShiftConfiguration +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/configuration/class-use/SystemConfiguration.html b/documentation/com/openshift/client/configuration/class-use/SystemConfiguration.html new file mode 100644 index 00000000..16d9166e --- /dev/null +++ b/documentation/com/openshift/client/configuration/class-use/SystemConfiguration.html @@ -0,0 +1,179 @@ + + + + + + + +Uses of Class com.openshift.client.configuration.SystemConfiguration (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.client.configuration.SystemConfiguration

+
+ + + + + + + + + +
+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 +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/configuration/class-use/SystemProperties.html b/documentation/com/openshift/client/configuration/class-use/SystemProperties.html new file mode 100644 index 00000000..068515f3 --- /dev/null +++ b/documentation/com/openshift/client/configuration/class-use/SystemProperties.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.openshift.client.configuration.SystemProperties (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.client.configuration.SystemProperties

+
+No usage of com.openshift.client.configuration.SystemProperties +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/configuration/class-use/UserConfiguration.html b/documentation/com/openshift/client/configuration/class-use/UserConfiguration.html new file mode 100644 index 00000000..d91f7323 --- /dev/null +++ b/documentation/com/openshift/client/configuration/class-use/UserConfiguration.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.openshift.client.configuration.UserConfiguration (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.client.configuration.UserConfiguration

+
+No usage of com.openshift.client.configuration.UserConfiguration +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/configuration/package-frame.html b/documentation/com/openshift/client/configuration/package-frame.html new file mode 100644 index 00000000..9b9ab077 --- /dev/null +++ b/documentation/com/openshift/client/configuration/package-frame.html @@ -0,0 +1,54 @@ + + + + + + + +com.openshift.client.configuration (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + +com.openshift.client.configuration + + + + +
+Interfaces  + +
+IOpenShiftConfiguration
+ + + + + + +
+Classes  + +
+AbstractOpenshiftConfiguration +
+DefaultConfiguration +
+OpenShiftConfiguration +
+SystemConfiguration +
+SystemProperties +
+UserConfiguration
+ + + + diff --git a/documentation/com/openshift/client/configuration/package-summary.html b/documentation/com/openshift/client/configuration/package-summary.html new file mode 100644 index 00000000..ac7803ff --- /dev/null +++ b/documentation/com/openshift/client/configuration/package-summary.html @@ -0,0 +1,192 @@ + + + + + + + +com.openshift.client.configuration (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+

+Package com.openshift.client.configuration +

+ + + + + + + + + +
+Interface Summary
IOpenShiftConfiguration 
+  + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
AbstractOpenshiftConfiguration 
DefaultConfiguration 
OpenShiftConfiguration 
SystemConfigurationThe system wide OpenShift configuration that is at /etc/express.conf
SystemProperties 
UserConfiguration 
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/configuration/package-tree.html b/documentation/com/openshift/client/configuration/package-tree.html new file mode 100644 index 00000000..d4c81f85 --- /dev/null +++ b/documentation/com/openshift/client/configuration/package-tree.html @@ -0,0 +1,162 @@ + + + + + + + +com.openshift.client.configuration Class Hierarchy (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Hierarchy For Package com.openshift.client.configuration +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/configuration/package-use.html b/documentation/com/openshift/client/configuration/package-use.html new file mode 100644 index 00000000..4067c01c --- /dev/null +++ b/documentation/com/openshift/client/configuration/package-use.html @@ -0,0 +1,183 @@ + + + + + + + +Uses of Package com.openshift.client.configuration (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Package
com.openshift.client.configuration

+
+ + + + + + + + + +
+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 +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/package-frame.html b/documentation/com/openshift/client/package-frame.html new file mode 100644 index 00000000..51c62123 --- /dev/null +++ b/documentation/com/openshift/client/package-frame.html @@ -0,0 +1,130 @@ + + + + + + + +com.openshift.client (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + +com.openshift.client + + + + +
+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
+ + + + + + +
+Exceptions  + +
+InvalidCredentialsOpenShiftException +
+InvalidNameOpenShiftException +
+NotFoundOpenShiftException +
+OpenShiftApplicationNotAvailableException +
+OpenShiftEndpointException +
+OpenShiftException +
+OpenShiftRequestException +
+OpenShiftSSHKeyException +
+OpenShiftSSHOperationException +
+OpenShiftTimeoutException +
+OpenShiftUnknonwSSHKeyTypeException
+ + + + diff --git a/documentation/com/openshift/client/package-summary.html b/documentation/com/openshift/client/package-summary.html new file mode 100644 index 00000000..7993ce1e --- /dev/null +++ b/documentation/com/openshift/client/package-summary.html @@ -0,0 +1,328 @@ + + + + + + + +com.openshift.client (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+

+Package com.openshift.client +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Interface Summary
IApplication 
IApplicationPortForwarding 
IDomain 
IEnvironmentVariable 
IField 
IGear 
IGearGroup 
IGearProfile 
IHttpClient 
IOpenShiftConnection 
IOpenShiftResource 
IOpenShiftSSHKey 
ISeverity 
ISSHPublicKey 
IUser 
+  + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
ApplicationBuilder 
Message 
Messages 
OpenShiftConnectionFactoryConnection Factory, used to establish a connection and retrieve a user.
SSHKeyPair 
SSHPublicKey 
+  + +

+ + + + + + + + + + + + + + + + + + + + + +
+Enum Summary
ApplicationScaleEnum to indicate the support for scalability when creating a new application
GearState 
HttpMethod 
SSHKeyType 
+  + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Exception Summary
InvalidCredentialsOpenShiftException 
InvalidNameOpenShiftException 
NotFoundOpenShiftException 
OpenShiftApplicationNotAvailableException 
OpenShiftEndpointException 
OpenShiftException 
OpenShiftRequestException 
OpenShiftSSHKeyException 
OpenShiftSSHOperationExceptionOpenShift Exception that encapsulates an underlying exception that occurred during an SSH operation.
OpenShiftTimeoutException 
OpenShiftUnknonwSSHKeyTypeException 
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/package-tree.html b/documentation/com/openshift/client/package-tree.html new file mode 100644 index 00000000..269efcb0 --- /dev/null +++ b/documentation/com/openshift/client/package-tree.html @@ -0,0 +1,189 @@ + + + + + + + +com.openshift.client Class Hierarchy (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Hierarchy For Package com.openshift.client +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+ +

+Enum Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/package-use.html b/documentation/com/openshift/client/package-use.html new file mode 100644 index 00000000..a20b143d --- /dev/null +++ b/documentation/com/openshift/client/package-use.html @@ -0,0 +1,707 @@ + + + + + + + +Uses of Package com.openshift.client (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Package
com.openshift.client

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+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 +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/utils/Base64Coder.html b/documentation/com/openshift/client/utils/Base64Coder.html new file mode 100644 index 00000000..74eacaed --- /dev/null +++ b/documentation/com/openshift/client/utils/Base64Coder.html @@ -0,0 +1,297 @@ + + + + + + + +Base64Coder (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client.utils +
+Class Base64Coder

+
+java.lang.Object
+  extended by com.openshift.client.utils.Base64Coder
+
+
+
+
public class Base64Coder
extends Object
+ + +

+A utility class that offers methods to encode and decode strings from and to + base64 +

+ +

+

+
Author:
+
Andre Dietisheim
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static Stringdecode(byte[] encoded) + +
+           
+static Stringdecode(String encoded) + +
+          Decodes the given base64 encoded string.
+static Stringencode(byte[] unencoded) + +
+          Encodes the given byte array to a base64 encoded String
+static Stringencode(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
+ +

+encode

+
+public static String encode(byte[] unencoded)
+
+
Encodes the given byte array to a base64 encoded String +

+

+
Parameters:
unencoded - the array of unencoded bytes that shall get encoded +
Returns:
the encoded string
+
+
+
+ +

+encode

+
+public static String encode(String unencoded)
+
+
Encodes the given string to a base64 encoded string. Returns + null if the given string is null. +

+

+
Parameters:
unencoded - +
Returns:
+
+
+
+ +

+decode

+
+public static String decode(byte[] encoded)
+
+
+
+
+
+
+ +

+decode

+
+public static String decode(String encoded)
+
+
Decodes the given base64 encoded string. Returns null if the + given string is null. +

+

+
Parameters:
encoded - the base64 encoded string +
Returns:
the decoded string
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/utils/HostUtils.html b/documentation/com/openshift/client/utils/HostUtils.html new file mode 100644 index 00000000..bbd3a581 --- /dev/null +++ b/documentation/com/openshift/client/utils/HostUtils.html @@ -0,0 +1,260 @@ + + + + + + + +HostUtils (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client.utils +
+Class HostUtils

+
+java.lang.Object
+  extended by com.openshift.client.utils.HostUtils
+
+
+
+
public class HostUtils
extends Object
+ + +

+

+
Author:
+
Andre Dietisheim
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
HostUtils() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+static booleancanResolv(String urlString) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+HostUtils

+
+public HostUtils()
+
+
+ + + + + + + + +
+Method Detail
+ +

+canResolv

+
+public static boolean canResolv(String urlString)
+                         throws MalformedURLException
+
+
+ +
Throws: +
MalformedURLException
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/utils/OpenShiftResourceUtils.html b/documentation/com/openshift/client/utils/OpenShiftResourceUtils.html new file mode 100644 index 00000000..fab948a1 --- /dev/null +++ b/documentation/com/openshift/client/utils/OpenShiftResourceUtils.html @@ -0,0 +1,257 @@ + + + + + + + +OpenShiftResourceUtils (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client.utils +
+Class OpenShiftResourceUtils

+
+java.lang.Object
+  extended by com.openshift.client.utils.OpenShiftResourceUtils
+
+
+
+
public class OpenShiftResourceUtils
extends Object
+ + +

+

+
Author:
+
Andre Dietisheim
+
+
+ +

+ + + + + + + + + + + +
+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
+ +

+OpenShiftResourceUtils

+
+public OpenShiftResourceUtils()
+
+
+ + + + + + + + +
+Method Detail
+ +

+toNames

+
+public static List<String> toNames(ICartridge... cartridges)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/utils/RFC822DateUtils.html b/documentation/com/openshift/client/utils/RFC822DateUtils.html new file mode 100644 index 00000000..deb927e3 --- /dev/null +++ b/documentation/com/openshift/client/utils/RFC822DateUtils.html @@ -0,0 +1,312 @@ + + + + + + + +RFC822DateUtils (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.client.utils +
+Class RFC822DateUtils

+
+java.lang.Object
+  extended by com.openshift.client.utils.RFC822DateUtils
+
+
+
+
public class RFC822DateUtils
extends Object
+ + +

+

+
Author:
+
André Dietisheim
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
RFC822DateUtils() + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static DategetDate(String rfc822DateString) + +
+          Returns a date instance for a given timestamp string that complies to the + RFC 822 standard
+static StringgetString(Date date) + +
+           
+static DatesafeGetDate(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
+ +

+RFC822DateUtils

+
+public RFC822DateUtils()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getDate

+
+public static Date getDate(String rfc822DateString)
+                    throws DatatypeConfigurationException
+
+
Returns a date instance for a given timestamp string that complies to the + RFC 822 standard +

+

+
Parameters:
rfc822DateString - +
Returns:
+
Throws: +
DatatypeConfigurationException
+
+
+
+ +

+safeGetDate

+
+public static Date safeGetDate(String rfc822DateString)
+
+
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. +

+

+
Parameters:
rfc822DateString - +
Returns:
+
+
+
+ +

+getString

+
+public static String getString(Date date)
+                        throws DatatypeConfigurationException
+
+
+ +
Throws: +
DatatypeConfigurationException
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/utils/class-use/Base64Coder.html b/documentation/com/openshift/client/utils/class-use/Base64Coder.html new file mode 100644 index 00000000..341b4d67 --- /dev/null +++ b/documentation/com/openshift/client/utils/class-use/Base64Coder.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.openshift.client.utils.Base64Coder (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.client.utils.Base64Coder

+
+No usage of com.openshift.client.utils.Base64Coder +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/utils/class-use/HostUtils.html b/documentation/com/openshift/client/utils/class-use/HostUtils.html new file mode 100644 index 00000000..8255d83c --- /dev/null +++ b/documentation/com/openshift/client/utils/class-use/HostUtils.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.openshift.client.utils.HostUtils (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.client.utils.HostUtils

+
+No usage of com.openshift.client.utils.HostUtils +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/utils/class-use/OpenShiftResourceUtils.html b/documentation/com/openshift/client/utils/class-use/OpenShiftResourceUtils.html new file mode 100644 index 00000000..bc6b3ea8 --- /dev/null +++ b/documentation/com/openshift/client/utils/class-use/OpenShiftResourceUtils.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.openshift.client.utils.OpenShiftResourceUtils (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.client.utils.OpenShiftResourceUtils

+
+No usage of com.openshift.client.utils.OpenShiftResourceUtils +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/utils/class-use/RFC822DateUtils.html b/documentation/com/openshift/client/utils/class-use/RFC822DateUtils.html new file mode 100644 index 00000000..374d0801 --- /dev/null +++ b/documentation/com/openshift/client/utils/class-use/RFC822DateUtils.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.openshift.client.utils.RFC822DateUtils (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.client.utils.RFC822DateUtils

+
+No usage of com.openshift.client.utils.RFC822DateUtils +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/utils/package-frame.html b/documentation/com/openshift/client/utils/package-frame.html new file mode 100644 index 00000000..7aeb6ddd --- /dev/null +++ b/documentation/com/openshift/client/utils/package-frame.html @@ -0,0 +1,39 @@ + + + + + + + +com.openshift.client.utils (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + +com.openshift.client.utils + + + + +
+Classes  + +
+Base64Coder +
+HostUtils +
+OpenShiftResourceUtils +
+RFC822DateUtils
+ + + + diff --git a/documentation/com/openshift/client/utils/package-summary.html b/documentation/com/openshift/client/utils/package-summary.html new file mode 100644 index 00000000..b559df29 --- /dev/null +++ b/documentation/com/openshift/client/utils/package-summary.html @@ -0,0 +1,171 @@ + + + + + + + +com.openshift.client.utils (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+

+Package com.openshift.client.utils +

+ + + + + + + + + + + + + + + + + + + + + +
+Class Summary
Base64CoderA utility class that offers methods to encode and decode strings from and to + base64
HostUtils 
OpenShiftResourceUtils 
RFC822DateUtils 
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/utils/package-tree.html b/documentation/com/openshift/client/utils/package-tree.html new file mode 100644 index 00000000..36b2ff9a --- /dev/null +++ b/documentation/com/openshift/client/utils/package-tree.html @@ -0,0 +1,154 @@ + + + + + + + +com.openshift.client.utils Class Hierarchy (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Hierarchy For Package com.openshift.client.utils +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/client/utils/package-use.html b/documentation/com/openshift/client/utils/package-use.html new file mode 100644 index 00000000..71710f06 --- /dev/null +++ b/documentation/com/openshift/client/utils/package-use.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Package com.openshift.client.utils (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Package
com.openshift.client.utils

+
+No usage of com.openshift.client.utils +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/APIResource.html b/documentation/com/openshift/internal/client/APIResource.html new file mode 100644 index 00000000..6931562e --- /dev/null +++ b/documentation/com/openshift/internal/client/APIResource.html @@ -0,0 +1,771 @@ + + + + + + + +APIResource (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client +
+Class APIResource

+
+java.lang.Object
+  extended by com.openshift.internal.client.AbstractOpenShiftResource
+      extended by com.openshift.internal.client.APIResource
+
+
+
All Implemented Interfaces:
IOpenShiftConnection, IOpenShiftResource
+
+
+
+
public class APIResource
extends AbstractOpenShiftResource
implements IOpenShiftConnection
+ + +

+

+
Author:
+
Andre Dietisheim, Xavier Coulon
+
+
+ +

+ + + + + + + +
+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
+ IDomaincreateDomain(String id) + +
+           
+ voiddisconnect() + +
+           
+ IDomaingetDefaultDomain() + +
+           
+ IDomaingetDomain(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.
+ ExecutorServicegetExecutorService() + +
+          Returns the executor service instance that's available in this + connection.
+protected  StringgetLogin() + +
+           
+protected  StringgetPassword() + +
+           
+ StringgetServer() + +
+          Returns the server this connection is bound to.
+ List<IStandaloneCartridge>getStandaloneCartridges() + +
+          Returns the available standalone cartridges associated with the current + OpenShift connection.
+ IUsergetUser() + +
+          Returns the user associated with the current OpenShift connection.
+protected  booleanhasDomain(String name) + +
+           
+ voidrefresh() + +
+          Refresh the resource and its list of children resources that were + previously loaded
+protected  voidremoveDomain(IDomain domain) + +
+          Called after a domain has been destroyed
+ voidsetEnableSSLCertChecks(boolean doSSLChecks) + +
+          Sets flag for enabling SSL certificate checks (i.e.
+ voidsetProxyHost(String proxyHost) + +
+          Sets the HTTP proxy hostname
+ voidsetProxyPort(String proxyPort) + +
+          Sets the HTTP proxy port
+ voidsetProxySet(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
+ +

+APIResource

+
+protected APIResource(String login,
+                      String password,
+                      IRestService service,
+                      Map<String,Link> links)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getLogin

+
+protected final String getLogin()
+
+
+
+
+
+
+
+
+
+ +

+getPassword

+
+protected final String getPassword()
+
+
+
+
+
+
+
+
+
+ +

+getServer

+
+public String getServer()
+
+
Description copied from interface: IOpenShiftConnection
+
Returns the server this connection is bound to. +

+

+
Specified by:
getServer in interface IOpenShiftConnection
+
+
+ +
Returns:
the server
+
+
+
+ +

+setEnableSSLCertChecks

+
+public void setEnableSSLCertChecks(boolean doSSLChecks)
+
+
Description copied from interface: IOpenShiftConnection
+
Sets flag for enabling SSL certificate checks (i.e. self-signed SSL + certificates) +

+

+
Specified by:
setEnableSSLCertChecks in interface IOpenShiftConnection
+
+
+
+
+
+
+ +

+setProxySet

+
+public void setProxySet(boolean proxySet)
+
+
Description copied from interface: IOpenShiftConnection
+
Sets flag for using an HTTP proxy +

+

+
Specified by:
setProxySet in interface IOpenShiftConnection
+
+
+
+
+
+
+ +

+setProxyHost

+
+public void setProxyHost(String proxyHost)
+
+
Description copied from interface: IOpenShiftConnection
+
Sets the HTTP proxy hostname +

+

+
Specified by:
setProxyHost in interface IOpenShiftConnection
+
+
+
+
+
+
+ +

+setProxyPort

+
+public void setProxyPort(String proxyPort)
+
+
Description copied from interface: IOpenShiftConnection
+
Sets the HTTP proxy port +

+

+
Specified by:
setProxyPort in interface IOpenShiftConnection
+
+
+
+
+
+
+ +

+getUser

+
+public IUser getUser()
+              throws OpenShiftException
+
+
Description copied from interface: IOpenShiftConnection
+
Returns the user associated with the current OpenShift connection. +

+

+
Specified by:
getUser in interface IOpenShiftConnection
+
+
+ +
Returns:
the user +
Throws: +
OpenShiftException
+
+
+
+ +

+getDomains

+
+public List<IDomain> getDomains()
+                         throws OpenShiftException
+
+
Description copied from interface: IOpenShiftConnection
+
Returns the domains associated with the current OpenShift connection. +

+

+
Specified by:
getDomains in interface IOpenShiftConnection
+
+
+ +
Returns:
the domains +
Throws: +
OpenShiftException
+
+
+
+ +

+getDomain

+
+public IDomain getDomain(String id)
+                  throws OpenShiftException
+
+
+
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+getDefaultDomain

+
+public IDomain getDefaultDomain()
+
+
+
+
+
+
+
+
+
+ +

+createDomain

+
+public IDomain createDomain(String id)
+                     throws OpenShiftException
+
+
+
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+getStandaloneCartridges

+
+public List<IStandaloneCartridge> getStandaloneCartridges()
+                                                   throws OpenShiftException
+
+
Description copied from interface: IOpenShiftConnection
+
Returns the available standalone cartridges associated with the current + OpenShift connection. +

+

+
Specified by:
getStandaloneCartridges in interface IOpenShiftConnection
+
+
+ +
Returns:
the available standalone cartridges +
Throws: +
OpenShiftException
+
+
+
+ +

+getEmbeddableCartridges

+
+public List<IEmbeddableCartridge> getEmbeddableCartridges()
+                                                   throws OpenShiftException
+
+
Description copied from interface: IOpenShiftConnection
+
Returns the available embeddable cartridges associated with the current + OpenShift connection. +

+

+
Specified by:
getEmbeddableCartridges in interface IOpenShiftConnection
+
+
+ +
Returns:
the available embeddable cartridges +
Throws: +
OpenShiftException
+
+
+
+ +

+refresh

+
+public void refresh()
+             throws OpenShiftException
+
+
Description copied from interface: IOpenShiftResource
+
Refresh the resource and its list of children resources that were + previously loaded +

+

+
Specified by:
refresh in interface IOpenShiftResource
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+removeDomain

+
+protected void removeDomain(IDomain domain)
+
+
Called after a domain has been destroyed +

+

+
+
+
+
Parameters:
domain - the domain to remove from the API's domains list.
+
+
+
+ +

+hasDomain

+
+protected boolean hasDomain(String name)
+                     throws OpenShiftException
+
+
+
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+getExecutorService

+
+public ExecutorService getExecutorService()
+
+
Description copied from interface: IOpenShiftConnection
+
Returns the executor service instance that's available in this + connection. +

+

+
Specified by:
getExecutorService in interface IOpenShiftConnection
+
+
+ +
Returns:
the executor service instance for this connection
See Also:
ExecutorService, +Executors
+
+
+
+ +

+disconnect

+
+public void disconnect()
+
+
+
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/AbstractOpenShiftConnectionFactory.html b/documentation/com/openshift/internal/client/AbstractOpenShiftConnectionFactory.html new file mode 100644 index 00000000..e96d0cdc --- /dev/null +++ b/documentation/com/openshift/internal/client/AbstractOpenShiftConnectionFactory.html @@ -0,0 +1,273 @@ + + + + + + + +AbstractOpenShiftConnectionFactory (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client +
+Class AbstractOpenShiftConnectionFactory

+
+java.lang.Object
+  extended by com.openshift.internal.client.AbstractOpenShiftConnectionFactory
+
+
+
Direct Known Subclasses:
OpenShiftConnectionFactory
+
+
+
+
public abstract class AbstractOpenShiftConnectionFactory
extends Object
+ + +

+Connection Factory, used to establish a connection and retrieve a user. +

+ +

+

+
Author:
+
Xavier Coulon, Andre Dietisheim
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
AbstractOpenShiftConnectionFactory() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+protected  IOpenShiftConnectiongetConnection(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
+ +

+AbstractOpenShiftConnectionFactory

+
+public AbstractOpenShiftConnectionFactory()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getConnection

+
+protected IOpenShiftConnection getConnection(IRestService service,
+                                             String login,
+                                             String password)
+                                      throws IOException,
+                                             OpenShiftException
+
+
+ +
Throws: +
IOException +
OpenShiftException
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/AbstractOpenShiftResource.Parameters.html b/documentation/com/openshift/internal/client/AbstractOpenShiftResource.Parameters.html new file mode 100644 index 00000000..c90c66d4 --- /dev/null +++ b/documentation/com/openshift/internal/client/AbstractOpenShiftResource.Parameters.html @@ -0,0 +1,433 @@ + + + + + + + +AbstractOpenShiftResource.Parameters (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client +
+Class AbstractOpenShiftResource.Parameters

+
+java.lang.Object
+  extended by com.openshift.internal.client.AbstractOpenShiftResource.Parameters
+
+
+
Enclosing class:
AbstractOpenShiftResource
+
+
+
+
protected static class AbstractOpenShiftResource.Parameters
extends Object
+ + +

+


+ +

+ + + + + + + + + + + + +
+Constructor Summary
+protected AbstractOpenShiftResource.Parameters() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  AbstractOpenShiftResource.Parametersadd(Parameter parameter) + +
+           
+protected  AbstractOpenShiftResource.Parametersadd(String name, + String value) + +
+           
+protected  AbstractOpenShiftResource.ParametersaddCartridge(IEmbeddableCartridge embeddable) + +
+           
+protected  AbstractOpenShiftResource.ParametersaddCartridges(IStandaloneCartridge standalone, + IEmbeddableCartridge[] embeddables) + +
+           
+protected  AbstractOpenShiftResource.ParametersaddEnvironmentVariables(Map<String,String> environmentVariables) + +
+           
+protected  AbstractOpenShiftResource.ParametersgearProfile(IGearProfile gearProfile) + +
+           
+protected  AbstractOpenShiftResource.Parametersinclude(String includedResource) + +
+           
+protected  AbstractOpenShiftResource.Parametersscale(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
+ +

+AbstractOpenShiftResource.Parameters

+
+protected AbstractOpenShiftResource.Parameters()
+
+
+ + + + + + + + +
+Method Detail
+ +

+addCartridge

+
+protected AbstractOpenShiftResource.Parameters addCartridge(IEmbeddableCartridge embeddable)
+
+
+
+
+
+
+ +

+addCartridges

+
+protected AbstractOpenShiftResource.Parameters addCartridges(IStandaloneCartridge standalone,
+                                                             IEmbeddableCartridge[] embeddables)
+
+
+
+
+
+
+ +

+addEnvironmentVariables

+
+protected AbstractOpenShiftResource.Parameters addEnvironmentVariables(Map<String,String> environmentVariables)
+
+
+
+
+
+
+ +

+scale

+
+protected AbstractOpenShiftResource.Parameters scale(ApplicationScale scale)
+
+
+
+
+
+
+ +

+gearProfile

+
+protected AbstractOpenShiftResource.Parameters gearProfile(IGearProfile gearProfile)
+
+
+
+
+
+
+ +

+include

+
+protected AbstractOpenShiftResource.Parameters include(String includedResource)
+
+
+
+
+
+
+ +

+add

+
+protected AbstractOpenShiftResource.Parameters add(String name,
+                                                   String value)
+
+
+
+
+
+
+ +

+add

+
+protected AbstractOpenShiftResource.Parameters add(Parameter parameter)
+
+
+
+
+
+
+ +

+toArray

+
+protected Parameter[] toArray()
+
+
+
+
+
+
+ +

+toList

+
+protected List<Parameter> toList()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/AbstractOpenShiftResource.ServiceRequest.html b/documentation/com/openshift/internal/client/AbstractOpenShiftResource.ServiceRequest.html new file mode 100644 index 00000000..747002ae --- /dev/null +++ b/documentation/com/openshift/internal/client/AbstractOpenShiftResource.ServiceRequest.html @@ -0,0 +1,493 @@ + + + + + + + +AbstractOpenShiftResource.ServiceRequest (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client +
+Class AbstractOpenShiftResource.ServiceRequest

+
+java.lang.Object
+  extended by com.openshift.internal.client.AbstractOpenShiftResource.ServiceRequest
+
+
+
Enclosing class:
AbstractOpenShiftResource
+
+
+
+
protected class AbstractOpenShiftResource.ServiceRequest
extends Object
+ + +

+


+ +

+ + + + + + + + + + + +
+Field Summary
+protected  StringlinkName + +
+           
+  + + + + + + + + + + + +
+Constructor Summary
+protected AbstractOpenShiftResource.ServiceRequest(String linkName) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected + + + + +
+<DTO> DTO
+
execute(int timeout, + IMediaType mediaType, + Parameter... parameters) + +
+           
+protected + + + + +
+<DTO> DTO
+
execute(int timeout, + List<Parameter> urlParameter, + IMediaType mediaType, + Parameter... parameters) + +
+           
+protected + + + + +
+<DTO> DTO
+
execute(int timeout, + List<Parameter> urlParameter, + Parameter... parameters) + +
+           
+protected + + + + +
+<DTO> DTO
+
execute(int timeout, + Parameter... parameters) + +
+           
+protected + + + + +
+<DTO> DTO
+
execute(List<Parameter> urlParameter, + Parameter... parameters) + +
+           
+protected + + + + +
+<DTO> DTO
+
execute(Parameter... parameters) + +
+           
+protected + + + + +
+<DTO> DTO
+
getData(RestResponse response) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+linkName

+
+protected final String linkName
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+AbstractOpenShiftResource.ServiceRequest

+
+protected AbstractOpenShiftResource.ServiceRequest(String linkName)
+
+
+ + + + + + + + +
+Method Detail
+ +

+execute

+
+protected <DTO> DTO execute(Parameter... parameters)
+               throws OpenShiftException
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+execute

+
+protected <DTO> DTO execute(int timeout,
+                            Parameter... parameters)
+               throws OpenShiftException
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+execute

+
+protected <DTO> DTO execute(int timeout,
+                            IMediaType mediaType,
+                            Parameter... parameters)
+               throws OpenShiftException
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+execute

+
+protected <DTO> DTO execute(List<Parameter> urlParameter,
+                            Parameter... parameters)
+               throws OpenShiftException
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+execute

+
+protected <DTO> DTO execute(int timeout,
+                            List<Parameter> urlParameter,
+                            Parameter... parameters)
+               throws OpenShiftException
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+execute

+
+protected <DTO> DTO execute(int timeout,
+                            List<Parameter> urlParameter,
+                            IMediaType mediaType,
+                            Parameter... parameters)
+               throws OpenShiftException
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+getData

+
+protected <DTO> DTO getData(RestResponse response)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/AbstractOpenShiftResource.html b/documentation/com/openshift/internal/client/AbstractOpenShiftResource.html new file mode 100644 index 00000000..d9c72946 --- /dev/null +++ b/documentation/com/openshift/internal/client/AbstractOpenShiftResource.html @@ -0,0 +1,449 @@ + + + + + + + +AbstractOpenShiftResource (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client +
+Class AbstractOpenShiftResource

+
+java.lang.Object
+  extended by com.openshift.internal.client.AbstractOpenShiftResource
+
+
+
All Implemented Interfaces:
IOpenShiftResource
+
+
+
Direct Known Subclasses:
APIResource, ApplicationResource, DomainResource, EmbeddedCartridgeResource, EnvironmentVariableResource, GearGroupResource, SSHKeyResource, UserResource
+
+
+
+
public abstract class AbstractOpenShiftResource
extends Object
implements IOpenShiftResource
+ + +

+The Class AbstractOpenShiftResource. +

+ +

+

+
Author:
+
Xavier Coulon, Andre Dietisheim, Syed Iqbal
+
+
+ +

+ + + + + + + + + + + + + + + +
+Nested Class Summary
+protected static classAbstractOpenShiftResource.Parameters + +
+           
+protected  classAbstractOpenShiftResource.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
+ StringgetCreationLog() + +
+          Returns the log that was created when the resource was created.
+protected  LinkgetLink(String linkName) + +
+          Gets the link for the given name.
+ MessagesgetMessages() + +
+          Returns all the (creation log) messages.
+ booleanhasCreationLog() + +
+          Returns + true if there is log about the creation of this resource.
+protected  voidsetLinks(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
+ +

+AbstractOpenShiftResource

+
+protected AbstractOpenShiftResource(IRestService service)
+
+
Instantiates a new abstract open shift resource. +

+

+
Parameters:
service - the service
+
+
+ +

+AbstractOpenShiftResource

+
+protected AbstractOpenShiftResource(IRestService service,
+                                    Map<String,Link> links,
+                                    Messages messages)
+
+
Instantiates a new abstract open shift resource. +

+

+
Parameters:
service - the service
links - the links
+
+ + + + + + + + +
+Method Detail
+ +

+setLinks

+
+protected void setLinks(Map<String,Link> links)
+
+
+
+
+
+
+
+
+
+ +

+getLink

+
+protected Link getLink(String linkName)
+                throws OpenShiftException
+
+
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. +

+

+
+
+
+
Parameters:
linkName - the name of the link that shall get retrieved +
Returns:
the link with the given name +
Throws: +
OpenShiftException - thrown if no link with the given name exists
+
+
+
+ +

+hasCreationLog

+
+public boolean hasCreationLog()
+
+
Description copied from interface: IOpenShiftResource
+
Returns + 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. +

+

+
Specified by:
hasCreationLog in interface IOpenShiftResource
+
+
+ +
Returns:
true if there's cretion log for this resource
+
+
+
+ +

+getCreationLog

+
+public String getCreationLog()
+
+
Description copied from interface: IOpenShiftResource
+
Returns the log that was created when the resource was created. +

+

+
Specified by:
getCreationLog in interface IOpenShiftResource
+
+
+ +
Returns:
the log which reported the creation of this resource
+
+
+
+ +

+getMessages

+
+public Messages getMessages()
+
+
Description copied from interface: IOpenShiftResource
+
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. +

+

+
Specified by:
getMessages in interface IOpenShiftResource
+
+
+ +
Returns:
all messages by field
See Also:
IOpenShiftResource.getCreationLog()
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/ApplicationResource.SshStreams.html b/documentation/com/openshift/internal/client/ApplicationResource.SshStreams.html new file mode 100644 index 00000000..1789d678 --- /dev/null +++ b/documentation/com/openshift/internal/client/ApplicationResource.SshStreams.html @@ -0,0 +1,370 @@ + + + + + + + +ApplicationResource.SshStreams (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client +
+Enum ApplicationResource.SshStreams

+
+java.lang.Object
+  extended by java.lang.Enum<ApplicationResource.SshStreams>
+      extended by com.openshift.internal.client.ApplicationResource.SshStreams
+
+
+
All Implemented Interfaces:
Serializable, Comparable<ApplicationResource.SshStreams>
+
+
+
Enclosing class:
ApplicationResource
+
+
+
+
protected static enum ApplicationResource.SshStreams
extends Enum<ApplicationResource.SshStreams>
+ + +

+


+ +

+ + + + + + + + + + + + + +
+Enum Constant Summary
EXT_INPUT + +
+           
INPUT + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected abstract  InputStreamgetInputStream(com.jcraft.jsch.Channel channel) + +
+           
+ List<String>getLines(com.jcraft.jsch.Channel channel) + +
+           
+static ApplicationResource.SshStreamsvalueOf(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
+ +

+EXT_INPUT

+
+public static final ApplicationResource.SshStreams EXT_INPUT
+
+
+
+
+
+ +

+INPUT

+
+public static final ApplicationResource.SshStreams INPUT
+
+
+
+
+ + + + + + + + +
+Method Detail
+ +

+values

+
+public static ApplicationResource.SshStreams[] values()
+
+
Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
+for (ApplicationResource.SshStreams c : ApplicationResource.SshStreams.values())
+    System.out.println(c);
+
+

+

+ +
Returns:
an array containing the constants of this enum type, in +the order they are declared
+
+
+
+ +

+valueOf

+
+public static ApplicationResource.SshStreams valueOf(String name)
+
+
Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.) +

+

+
Parameters:
name - the name of the enum constant to be returned. +
Returns:
the enum constant with the specified name +
Throws: +
IllegalArgumentException - if this enum type has no constant +with the specified name +
NullPointerException - if the argument is null
+
+
+
+ +

+getLines

+
+public List<String> getLines(com.jcraft.jsch.Channel channel)
+                      throws IOException
+
+
+ +
Throws: +
IOException
+
+
+
+ +

+getInputStream

+
+protected abstract InputStream getInputStream(com.jcraft.jsch.Channel channel)
+                                       throws IOException
+
+
+ +
Throws: +
IOException
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/ApplicationResource.html b/documentation/com/openshift/internal/client/ApplicationResource.html new file mode 100644 index 00000000..8c8caec1 --- /dev/null +++ b/documentation/com/openshift/internal/client/ApplicationResource.html @@ -0,0 +1,2168 @@ + + + + + + + +ApplicationResource (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client +
+Class ApplicationResource

+
+java.lang.Object
+  extended by com.openshift.internal.client.AbstractOpenShiftResource
+      extended by com.openshift.internal.client.ApplicationResource
+
+
+
All Implemented Interfaces:
IApplication, IOpenShiftResource
+
+
+
+
public class ApplicationResource
extends AbstractOpenShiftResource
implements IApplication
+ + +

+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, Syed Iqbal, Martes G Wigglesworth
+
+
+ +

+ + + + + + + + + + + +
+Nested Class Summary
+protected static classApplicationResource.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
+ voidaddAlias(String alias) + +
+          Add application alias
+ IEmbeddedCartridgeaddEmbeddableCartridge(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.
+ IEnvironmentVariableaddEnvironmentVariable(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
+ booleancanGetEnvironmentVariables() + +
+          Used to determine if environment variables exist and are available to be retrieved
+protected  booleancanResolv(String url) + +
+           
+ booleancanUpdateEnvironmentVariables() + +
+          Used to determine if the current instance is able to update environment variables.
+ voiddestroy() + +
+          Destroys this application (and removes it from the list of available + applications)
+ booleanequals(Object object) + +
+           
+ List<String>getAliases() + +
+          Retrieve all application aliases
+ ApplicationScalegetApplicationScale() + +
+          Returns true if scaling is enabled on this application (only set at + creation time).
+ StringgetApplicationUrl() + +
+          Returns the url at which this application may be reached at.
+ IStandaloneCartridgegetCartridge() + +
+          Returns the cartridge (application type) that this app is running on.
+protected  ICartridgegetCartridge(String cartridgeName) + +
+          Returns the main (standalone) cartrige or one of the embedded cartridges + whose name matches the given param.
+protected  IOpenShiftConnectiongetConnection() + +
+           
+ DategetCreationTime() + +
+          Returns the timestamp at which this app was created.
+ voidgetDescriptor() + +
+           
+ IDomaingetDomain() + +
+          Get the domain of the application.
+ IEmbeddedCartridgegetEmbeddedCartridge(IEmbeddableCartridge cartridge) + +
+          Returns the embedded cartridge in this application.
+ IEmbeddedCartridgegetEmbeddedCartridge(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.
+ IEnvironmentVariablegetEnvironmentVariable(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.
+ IGearProfilegetGearProfile() + +
+          Returns true if scaling is enabled on this application (only set at + creation time).
+ StringgetGitUrl() + +
+          Returns the uri at which the git repository of this application may be + reached at.
+ StringgetInitialGitUrl() + +
+          Returns the git url that the application will get its initial code and configuration from.
+ StringgetName() + +
+          Returns the name of this application.
+protected  Map<String,IEnvironmentVariable>getOrLoadEnvironmentVariables() + +
+           
+ com.jcraft.jsch.SessiongetSSHSession() + +
+          Returns the SSH session that this application uses to connect to + OpenShift.
+ StringgetSshUrl() + +
+          Returns the url to use to connect with ssh.
+ StringgetUUID() + +
+          Returns the uuid of this application.
+ booleanhasAlias(String name) + +
+           
+ booleanhasEmbeddedCartridge(IEmbeddableCartridge cartridge) + +
+          Returns true if this application has an embedded cartridge.
+ booleanhasEmbeddedCartridge(String cartridgeName) + +
+          Returns true if this application has an embedded cartridge.
+ booleanhasEnvironmentVariable(String name) + +
+          Checks if the environment variable is present in the application.
+ inthashCode() + +
+           
+ booleanhasSSHSession() + +
+          Returns true if the application was already provided with an SSH session, + and this session is still valid (connected).
+ booleanisPortFowardingStarted() + +
+          Returns true if the port-forwarding has been started, false otherwise.
+ voidrefresh() + +
+          Refresh the application but reloading its content from OpenShift.
+protected  voidrefreshEmbeddedCartridges() + +
+          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.
+ voidremoveAlias(String alias) + +
+          Remove application alias
+ voidremoveEmbeddedCartridge(IEmbeddableCartridge cartridge) + +
+          Removes the given embedded cartridge that is equal to the given + embeddable cartridge.
+protected  voidremoveEmbeddedCartridge(IEmbeddedCartridge embeddedCartridge) + +
+          "callback" from the embeddedCartridge once it has been destroyed.
+ voidremoveEmbeddedCartridges(Collection<IEmbeddableCartridge> cartridges) + +
+          Removes the given embedded cartridges in this application that are equal to the + given IEmbeddableCartridge.
+ voidremoveEnvironmentVariable(IEnvironmentVariable environmentVariable) + +
+          Removes the environment variables with the given name from this application.
+ voidremoveEnvironmentVariable(String targetName) + +
+          Removes the environment variables with the given name from this application.
+ voidrestart() + +
+          Restarts this application.
+ voidscaleDown() + +
+          Scale down application
+ voidscaleUp() + +
+          Scale up application
+ voidsetSSHSession(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) + +
+           
+ voidstart() + +
+          Starts this application.
+ List<IApplicationPortForwarding>startPortForwarding() + +
+           
+ voidstop() + +
+          Stops this application.
+ voidstop(boolean force) + +
+          Stops this application
+ List<IApplicationPortForwarding>stopPortForwarding() + +
+          Stop the port-forwarding for all ports.
+ StringtoString() + +
+           
+protected  voidupdate(ApplicationResourceDTO dto) + +
+           
+protected  voidupdateEnvironmentVariables() + +
+           
+ booleanwaitForAccessible(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
+ +

+ApplicationResource

+
+protected ApplicationResource(ApplicationResourceDTO dto,
+                              DomainResource domain)
+
+
+
+ +

+ApplicationResource

+
+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. +

+

+
Parameters:
name - the name
uuid - the uuid
creationTime - the creation time
messages - the creation log
applicationUrl - the application url
gitUrl - the git url
sshUrl - the ssh url
cartridge - the cartridge (type/framework)
aliases - the aliases
links - the links
domain - the domain this application belongs to +
Throws: +
DatatypeConfigurationException
+
+ + + + + + + + +
+Method Detail
+ +

+getName

+
+public String getName()
+
+
Description copied from interface: IApplication
+
Returns the name of this application. +

+

+
Specified by:
getName in interface IApplication
+
+
+ +
Returns:
+
+
+
+ +

+getApplicationScale

+
+public ApplicationScale getApplicationScale()
+
+
Description copied from interface: IApplication
+
Returns true if scaling is enabled on this application (only set at + creation time). +

+

+
Specified by:
getApplicationScale in interface IApplication
+
+
+ +
Returns:
true if scaling is enabled on this application (only set at + creation time).
+
+
+
+ +

+getGearProfile

+
+public IGearProfile getGearProfile()
+
+
Description copied from interface: IApplication
+
Returns true if scaling is enabled on this application (only set at + creation time). +

+

+
Specified by:
getGearProfile in interface IApplication
+
+
+ +
Returns:
true if scaling is enabled on this application (only set at + creation time).
+
+
+
+ +

+getUUID

+
+public String getUUID()
+
+
Description copied from interface: IApplication
+
Returns the uuid of this application. +

+

+
Specified by:
getUUID in interface IApplication
+
+
+ +
Returns:
the uuid of this application.
+
+
+
+ +

+getCartridge

+
+public IStandaloneCartridge getCartridge()
+
+
Description copied from interface: IApplication
+
Returns the cartridge (application type) that this app is running on. +

+

+
Specified by:
getCartridge in interface IApplication
+
+
+ +
Returns:
the cartridge of this application
+
+
+
+ +

+getCartridge

+
+protected ICartridge getCartridge(String cartridgeName)
+
+
Returns the main (standalone) cartrige or one of the embedded cartridges + whose name matches the given param. +

+

+
+
+
+
Parameters:
cartridgeName - the name of the cartridge to look for. +
Returns:
the cartridge or null if none has this name.
+
+
+
+ +

+getCreationTime

+
+public Date getCreationTime()
+
+
Description copied from interface: IApplication
+
Returns the timestamp at which this app was created. +

+

+
Specified by:
getCreationTime in interface IApplication
+
+
+ +
Returns:
the creation time
+
+
+
+ +

+getDomain

+
+public IDomain getDomain()
+
+
Description copied from interface: IApplication
+
Get the domain of the application. +

+

+
Specified by:
getDomain in interface IApplication
+
+
+ +
Returns:
the domain
+
+
+
+ +

+destroy

+
+public void destroy()
+             throws OpenShiftException
+
+
Description copied from interface: IApplication
+
Destroys this application (and removes it from the list of available + applications) +

+

+
Specified by:
destroy in interface IApplication
+
+
+ +
Throws: +
OpenShiftException
See Also:
IUser#getApplications()
+
+
+
+ +

+start

+
+public void start()
+           throws OpenShiftException
+
+
Description copied from interface: IApplication
+
Starts this application. Has no effect if this app is already running. +

+

+
Specified by:
start in interface IApplication
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+restart

+
+public void restart()
+             throws OpenShiftException
+
+
Description copied from interface: IApplication
+
Restarts this application. +

+

+
Specified by:
restart in interface IApplication
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+stop

+
+public void stop()
+          throws OpenShiftException
+
+
Description copied from interface: IApplication
+
Stops this application. +

+

+
Specified by:
stop in interface IApplication
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+stop

+
+public void stop(boolean force)
+          throws OpenShiftException
+
+
Description copied from interface: IApplication
+
Stops this application +

+

+
Specified by:
stop in interface IApplication
+
+
+
Parameters:
force - : true to force stop, false otherwise +
Throws: +
OpenShiftException
+
+
+
+ +

+getDescriptor

+
+public void getDescriptor()
+
+
+
+
+
+
+
+
+
+ +

+scaleDown

+
+public void scaleDown()
+               throws OpenShiftException
+
+
Description copied from interface: IApplication
+
Scale down application +

+

+
Specified by:
scaleDown in interface IApplication
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+scaleUp

+
+public void scaleUp()
+             throws OpenShiftException
+
+
Description copied from interface: IApplication
+
Scale up application +

+

+
Specified by:
scaleUp in interface IApplication
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+addAlias

+
+public void addAlias(String alias)
+              throws OpenShiftException
+
+
Description copied from interface: IApplication
+
Add application alias +

+

+
Specified by:
addAlias in interface IApplication
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+getAliases

+
+public List<String> getAliases()
+
+
Description copied from interface: IApplication
+
Retrieve all application aliases +

+

+
Specified by:
getAliases in interface IApplication
+
+
+ +
Returns:
application aliases in an unmodifiable collection
+
+
+
+ +

+hasAlias

+
+public boolean hasAlias(String name)
+
+
+
Specified by:
hasAlias in interface IApplication
+
+
+
+
+
+
+ +

+removeAlias

+
+public void removeAlias(String alias)
+                 throws OpenShiftException
+
+
Description copied from interface: IApplication
+
Remove application alias +

+

+
Specified by:
removeAlias in interface IApplication
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+getGitUrl

+
+public String getGitUrl()
+
+
Description copied from interface: IApplication
+
Returns the uri at which the git repository of this application may be + reached at. +

+

+
Specified by:
getGitUrl in interface IApplication
+
+
+ +
Returns:
the uri of the git repo of this application.
+
+
+
+ +

+getInitialGitUrl

+
+public String getInitialGitUrl()
+
+
Description copied from interface: IApplication
+
Returns the git url that the application will get its initial code and configuration from. +

+

+
Specified by:
getInitialGitUrl in interface IApplication
+
+
+ +
Returns:
the initial git url
+
+
+
+ +

+getSshUrl

+
+public String getSshUrl()
+
+
Description copied from interface: IApplication
+
Returns the url to use to connect with ssh. +

+

+
Specified by:
getSshUrl in interface IApplication
+
+
+ +
Returns:
the sshUrl
+
+
+
+ +

+getApplicationUrl

+
+public String getApplicationUrl()
+
+
Description copied from interface: IApplication
+
Returns the url at which this application may be reached at. +

+

+
Specified by:
getApplicationUrl in interface IApplication
+
+
+ +
Returns:
the url of this application.
+
+
+
+ +

+addEmbeddableCartridge

+
+public IEmbeddedCartridge addEmbeddableCartridge(IEmbeddableCartridge cartridge)
+                                          throws OpenShiftException
+
+
Adds the given embedded cartridge to this application. +

+

+
Specified by:
addEmbeddableCartridge in interface IApplication
+
+
+
Parameters:
cartridge - the embeddable cartridge that shall be added to this + application +
Throws: +
OpenShiftException
+
+
+
+ +

+addEmbeddableCartridges

+
+public List<IEmbeddedCartridge> addEmbeddableCartridges(Collection<IEmbeddableCartridge> cartridges)
+                                                 throws OpenShiftException
+
+
Description copied from interface: IApplication
+
Adds all given embedded cartridges from this app, given their names. +

+

+
Specified by:
addEmbeddableCartridges in interface IApplication
+
+
+ +
Throws: +
OpenShiftException
See Also:
#addEmbeddableCartridge(IEmbeddedCartridge), +#removeEmbeddedCartridge(IEmbeddedCartridge)
+
+
+
+ +

+removeEmbeddedCartridge

+
+protected void removeEmbeddedCartridge(IEmbeddedCartridge embeddedCartridge)
+                                throws OpenShiftException
+
+
"callback" from the embeddedCartridge once it has been destroyed. +

+

+
+
+
+
Parameters:
embeddedCartridge - +
Throws: +
OpenShiftException
+
+
+
+ +

+refreshEmbeddedCartridges

+
+protected void refreshEmbeddedCartridges()
+                                  throws OpenShiftException
+
+
Queries the backend to list the embedded cartridges and adds the new ones + & update the ones that are already present +

+

+
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+getEmbeddedCartridges

+
+public List<IEmbeddedCartridge> getEmbeddedCartridges()
+                                               throws OpenShiftException
+
+
Description copied from interface: IApplication
+
Returns all embedded cartridges. +

+

+
Specified by:
getEmbeddedCartridges in interface IApplication
+
+
+ +
Returns:
all embedded cartridges. +
Throws: +
OpenShiftException
See Also:
IEmbeddedCartridge, +#addEmbeddableCartridge(IEmbeddedCartridge), +#removeEmbeddedCartridge(IEmbeddedCartridge)
+
+
+
+ +

+hasEmbeddedCartridge

+
+public boolean hasEmbeddedCartridge(String cartridgeName)
+                             throws OpenShiftException
+
+
Description copied from interface: IApplication
+
Returns true if this application has an embedded cartridge. + Returns false otherwise. +

+

+
Specified by:
hasEmbeddedCartridge in interface IApplication
+
+
+ +
Returns:
true if there's an embedded cartridge with the given name +
Throws: +
OpenShiftException
See Also:
IEmbeddedCartridge, +#addEmbeddableCartridge(IEmbeddedCartridge), +#removeEmbeddedCartridge(IEmbeddedCartridge)
+
+
+
+ +

+hasEmbeddedCartridge

+
+public boolean hasEmbeddedCartridge(IEmbeddableCartridge cartridge)
+                             throws OpenShiftException
+
+
Description copied from interface: IApplication
+
Returns true if this application has an embedded cartridge. + Returns false otherwise. +

+

+
Specified by:
hasEmbeddedCartridge in interface IApplication
+
+
+ +
Returns:
true if there's an embedded cartridge with the given name +
Throws: +
OpenShiftException
See Also:
IEmbeddedCartridge, +#addEmbeddableCartridge(IEmbeddedCartridge), +#removeEmbeddedCartridge(IEmbeddedCartridge)
+
+
+
+ +

+getEmbeddedCartridge

+
+public IEmbeddedCartridge getEmbeddedCartridge(IEmbeddableCartridge cartridge)
+                                        throws OpenShiftException
+
+
Description copied from interface: IApplication
+
Returns the embedded cartridge in this application. Returns null if none was + found. +

+

+
Specified by:
getEmbeddedCartridge in interface IApplication
+
+
+ +
Returns:
the embedded cartridge +
Throws: +
OpenShiftException
+
+
+
+ +

+getEmbeddedCartridge

+
+public IEmbeddedCartridge getEmbeddedCartridge(String cartridgeName)
+                                        throws OpenShiftException
+
+
Description copied from interface: IApplication
+
Returns the embedded cartridge given its name. Returns null + if none was found. +

+

+
Specified by:
getEmbeddedCartridge in interface IApplication
+
+
+ +
Returns:
the embedded cartridge with the given name +
Throws: +
OpenShiftException
+
+
+
+ +

+removeEmbeddedCartridge

+
+public void removeEmbeddedCartridge(IEmbeddableCartridge cartridge)
+                             throws OpenShiftException
+
+
Description copied from interface: IApplication
+
Removes the given embedded cartridge that is equal to the given + embeddable cartridge. Does nothing if the cartridge is not present in + this application. +

+

+
Specified by:
removeEmbeddedCartridge in interface IApplication
+
+
+
Parameters:
cartridge - the cartridge that shall be removed +
Throws: +
OpenShiftException
+
+
+
+ +

+removeEmbeddedCartridges

+
+public void removeEmbeddedCartridges(Collection<IEmbeddableCartridge> cartridges)
+                              throws OpenShiftException
+
+
Description copied from interface: IApplication
+
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. +

+

+
Specified by:
removeEmbeddedCartridges in interface IApplication
+
+
+
Parameters:
cartridges - the cartridges that shall get removed +
Throws: +
OpenShiftException
+
+
+
+ +

+getGearGroups

+
+public Collection<IGearGroup> getGearGroups()
+                                     throws OpenShiftException
+
+
Description copied from interface: IApplication
+
Returns the gear groups for this application. + The collection is never cached, so each call will trigger a request to the OpenShift Broker. +

+

+
Specified by:
getGearGroups in interface IApplication
+
+
+ +
Returns:
the collection of IGearGroup for this application. +
Throws: +
OpenShiftException
+
+
+
+ +

+waitForAccessible

+
+public boolean waitForAccessible(long timeout)
+                          throws OpenShiftException
+
+
Description copied from interface: IApplication
+
Waits for this application to become accessible on its public url. +

+

+
Specified by:
waitForAccessible in interface IApplication
+
+
+ +
Returns:
+
Throws: +
OpenShiftException
See Also:
IApplication.getApplicationUrl()
+
+
+
+ +

+waitForAccessibleAsync

+
+public Future<Boolean> waitForAccessibleAsync(long timeout)
+                                       throws OpenShiftException
+
+
Description copied from interface: IApplication
+
Returns a Future that the caller can use to wait for the application to + become accessible on its public url. +

+

+
Specified by:
waitForAccessibleAsync in interface IApplication
+
+
+ +
Returns:
+
Throws: +
OpenShiftException
See Also:
IApplication.getApplicationUrl(), +IApplication.waitForAccessible(long), +IOpenShiftConnection.getExecutorService(), +Future
+
+
+
+ +

+getConnection

+
+protected IOpenShiftConnection getConnection()
+
+
+
+
+
+
+
+
+
+ +

+canResolv

+
+protected boolean canResolv(String url)
+                     throws MalformedURLException
+
+
+
+
+
+ +
Throws: +
MalformedURLException
+
+
+
+ +

+refresh

+
+public void refresh()
+             throws OpenShiftException
+
+
Description copied from interface: IApplication
+
Refresh the application but reloading its content from OpenShift. At the + same time, this operation automatically set the embedded cartridges back + to an 'unloaded' state. +

+

+
Specified by:
refresh in interface IApplication
Specified by:
refresh in interface IOpenShiftResource
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+setSSHSession

+
+public void setSSHSession(com.jcraft.jsch.Session session)
+
+
Description copied from interface: IApplication
+
Sets the SSH session that this application will use to connect to + OpenShift to perform some operations. This SSH session must be + initialized out of the library, since the user's SSH settings may depend + on the runtime environment (Eclipse, etc.). +

+

+
Specified by:
setSSHSession in interface IApplication
+
+
+
Parameters:
session - the SSH session
+
+
+
+ +

+getSSHSession

+
+public com.jcraft.jsch.Session getSSHSession()
+
+
Description copied from interface: IApplication
+
Returns the SSH session that this application uses to connect to + OpenShift. +

+

+
Specified by:
getSSHSession in interface IApplication
+
+
+ +
Returns:
the SSH session that this application uses to connect to + OpenShift.
+
+
+
+ +

+hasSSHSession

+
+public boolean hasSSHSession()
+
+
Description copied from interface: IApplication
+
Returns true if the application was already provided with an SSH session, + and this session is still valid (connected). +

+

+
Specified by:
hasSSHSession in interface IApplication
+
+
+ +
Returns:
true if the application was already provided with an SSH session, + and this session is still valid (connected).
+
+
+
+ +

+isPortFowardingStarted

+
+public boolean isPortFowardingStarted()
+                               throws OpenShiftSSHOperationException
+
+
Description copied from interface: IApplication
+
Returns true if the port-forwarding has been started, false otherwise. +

+

+
Specified by:
isPortFowardingStarted in interface IApplication
+
+
+ +
Returns:
true if the port-forwarding has been started, false otherwise. +
Throws: +
OpenShiftSSHOperationException
+
+
+
+ +

+refreshForwardablePorts

+
+public List<IApplicationPortForwarding> refreshForwardablePorts()
+                                                         throws OpenShiftSSHOperationException
+
+
Description copied from interface: IApplication
+
Refreshes the list of port-forwarding. Started ones are kept as-is. +

+

+
Specified by:
refreshForwardablePorts in interface IApplication
+
+
+ +
Returns:
the list of forwardable ports on OpenShift for this application. +
Throws: +
OpenShiftSSHOperationException
+
+
+
+ +

+getForwardablePorts

+
+public List<IApplicationPortForwarding> getForwardablePorts()
+                                                     throws OpenShiftSSHOperationException
+
+
Description copied from interface: IApplication
+
Returns the list of forwardable ports on OpenShift for this application. +

+

+
Specified by:
getForwardablePorts in interface IApplication
+
+
+ +
Returns:
the list of forwardable ports on OpenShift for this application. +
Throws: +
OpenShiftSSHOperationException
+
+
+
+ +

+getEnvironmentProperties

+
+public List<String> getEnvironmentProperties()
+                                      throws OpenShiftSSHOperationException
+
+
Description copied from interface: IApplication
+
Retrieves the list of environment properties. +

+

+
Specified by:
getEnvironmentProperties in interface IApplication
+
+
+ +
Returns:
the list of environment properties. +
Throws: +
OpenShiftSSHOperationException
+
+
+
+ +

+getEnvironmentVariables

+
+public Map<String,IEnvironmentVariable> getEnvironmentVariables()
+                                                         throws OpenShiftException
+
+
Description copied from interface: IApplication
+
Retrieves the map of environment variables +

+

+
Specified by:
getEnvironmentVariables in interface IApplication
+
+
+ +
Returns:
the Map of environment variables +
Throws: +
OpenShiftSSHOperationException +
OpenShiftException
+
+
+
+ +

+getOrLoadEnvironmentVariables

+
+protected Map<String,IEnvironmentVariable> getOrLoadEnvironmentVariables()
+                                                                  throws OpenShiftException
+
+
+
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+addEnvironmentVariable

+
+public IEnvironmentVariable addEnvironmentVariable(String name,
+                                                   String value)
+                                            throws OpenShiftException
+
+
Description copied from interface: IApplication
+
Adds an environment variable to this application. +

+

+
Specified by:
addEnvironmentVariable in interface IApplication
+
+
+
Parameters:
name - key associated with the variable to add
value - value of the new variable +
Throws: +
OpenShiftSSHOperationException - - if the variable already exists +
OpenShiftException
+
+
+
+ +

+addEnvironmentVariables

+
+public Map<String,IEnvironmentVariable> addEnvironmentVariables(Map<String,String> environmentVariables)
+                                                         throws OpenShiftException
+
+
Description copied from interface: IApplication
+
Adds a map of environment variables to the application +

+

+
Specified by:
addEnvironmentVariables in interface IApplication
+
+
+
Parameters:
environmentVariables - Map of environment variables +
Throws: +
OpenShiftSSHOperationException +
OpenShiftException
+
+
+
+ +

+removeEnvironmentVariable

+
+public void removeEnvironmentVariable(String targetName)
+
+
Description copied from interface: IApplication
+
Removes the environment variables with the given name from this application. +

+

+
Specified by:
removeEnvironmentVariable in interface IApplication
+
+
+
Parameters:
targetName - key associated with the IEnvironmentVariable to be removed
+
+
+
+ +

+removeEnvironmentVariable

+
+public void removeEnvironmentVariable(IEnvironmentVariable environmentVariable)
+
+
Description copied from interface: IApplication
+
Removes the environment variables with the given name from this application. +

+

+
Specified by:
removeEnvironmentVariable in interface IApplication
+
+
+
Parameters:
environmentVariable - IEnvironmentVariable instance which should be removed
+
+
+
+ +

+hasEnvironmentVariable

+
+public boolean hasEnvironmentVariable(String name)
+                               throws OpenShiftException
+
+
Description copied from interface: IApplication
+
Checks if the environment variable is present in the application. +

+

+
Specified by:
hasEnvironmentVariable in interface IApplication
+
+
+
Parameters:
name - Name of the environment variable +
Returns:
true if the current instance has IEnvironmentVariables to return
+ false if the current instance has no IEnvironmentVariables to return +
Throws: +
OpenShiftSSHOperationException +
OpenShiftException
+
+
+
+ +

+updateEnvironmentVariables

+
+protected void updateEnvironmentVariables()
+                                   throws OpenShiftException
+
+
+
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+getEnvironmentVariable

+
+public IEnvironmentVariable getEnvironmentVariable(String name)
+
+
Description copied from interface: IApplication
+
Return the environment variable for the specified name +

+

+
Specified by:
getEnvironmentVariable in interface IApplication
+
+
+
Parameters:
name - key to be used to locate the environment variable +
Returns:
IEnvironmentVariable associated with the provided key
+
+
+
+ +

+canGetEnvironmentVariables

+
+public boolean canGetEnvironmentVariables()
+
+
Description copied from interface: IApplication
+
Used to determine if environment variables exist and are available to be retrieved +

+

+
Specified by:
canGetEnvironmentVariables in interface IApplication
+
+
+ +
Returns:
Returns true if this application can list its environment variables.
+ Returns false if it cannot. Internally this translates to the presence of the link to list environment variables.
See Also:
#getEnvironmentVariablesMap(), +IApplication.getEnvironmentVariable(String), +LINK_LIST_ENVIRONMENT_VARIABLES
+
+
+
+ +

+canUpdateEnvironmentVariables

+
+public boolean canUpdateEnvironmentVariables()
+
+
Description copied from interface: IApplication
+
Used to determine if the current instance is able to update environment variables. +

+

+
Specified by:
canUpdateEnvironmentVariables in interface IApplication
+
+
+ +
Returns:
Returns true if this application can augment its environment variables.
+ Returns false if it cannot.
See Also:
IApplication.addEnvironmentVariable(String, String), +IApplication.addEnvironmentVariables(Map), +LINK_SET_UNSET_ENVIRONMENT_VARIABLES
+
+
+
+ +

+sshExecCmd

+
+protected List<String> sshExecCmd(String command,
+                                  ApplicationResource.SshStreams sshStream)
+                           throws OpenShiftSSHOperationException
+
+
+
+
+
+
Parameters:
command - +
Returns:
+
Throws: +
OpenShiftSSHOperationException
+
+
+
+ +

+startPortForwarding

+
+public List<IApplicationPortForwarding> startPortForwarding()
+                                                     throws OpenShiftSSHOperationException
+
+
+
Specified by:
startPortForwarding in interface IApplication
+
+
+ +
Returns:
the list of forwardable ports on OpenShift for this application. +
Throws: +
OpenShiftSSHOperationException
+
+
+
+ +

+stopPortForwarding

+
+public List<IApplicationPortForwarding> stopPortForwarding()
+                                                    throws OpenShiftSSHOperationException
+
+
Description copied from interface: IApplication
+
Stop the port-forwarding for all ports. +

+

+
Specified by:
stopPortForwarding in interface IApplication
+
+
+ +
Returns:
the list of forwardable ports on OpenShift for this application. +
Throws: +
OpenShiftSSHOperationException
+
+
+
+ +

+update

+
+protected void update(ApplicationResourceDTO dto)
+
+
+
+
+
+
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class Object
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object object)
+
+
+
Overrides:
equals in class Object
+
+
+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/CartridgeType.html b/documentation/com/openshift/internal/client/CartridgeType.html new file mode 100644 index 00000000..7646e400 --- /dev/null +++ b/documentation/com/openshift/internal/client/CartridgeType.html @@ -0,0 +1,342 @@ + + + + + + + +CartridgeType (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client +
+Enum CartridgeType

+
+java.lang.Object
+  extended by java.lang.Enum<CartridgeType>
+      extended by com.openshift.internal.client.CartridgeType
+
+
+
All Implemented Interfaces:
Serializable, Comparable<CartridgeType>
+
+
+
+
public enum CartridgeType
extends Enum<CartridgeType>
+ + +

+


+ +

+ + + + + + + + + + + + + +
+Enum Constant Summary
EMBEDDED + +
+           
STANDALONE + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static CartridgeTypesafeValueOf(String type) + +
+           
+static CartridgeTypevalueOf(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
+ +

+EMBEDDED

+
+public static final CartridgeType EMBEDDED
+
+
+
+
+
+ +

+STANDALONE

+
+public static final CartridgeType STANDALONE
+
+
+
+
+ + + + + + + + +
+Method Detail
+ +

+values

+
+public static CartridgeType[] values()
+
+
Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
+for (CartridgeType c : CartridgeType.values())
+    System.out.println(c);
+
+

+

+ +
Returns:
an array containing the constants of this enum type, in +the order they are declared
+
+
+
+ +

+valueOf

+
+public static CartridgeType valueOf(String name)
+
+
Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.) +

+

+
Parameters:
name - the name of the enum constant to be returned. +
Returns:
the enum constant with the specified name +
Throws: +
IllegalArgumentException - if this enum type has no constant +with the specified name +
NullPointerException - if the argument is null
+
+
+
+ +

+safeValueOf

+
+public static CartridgeType safeValueOf(String type)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/DomainResource.html b/documentation/com/openshift/internal/client/DomainResource.html new file mode 100644 index 00000000..46fa7342 --- /dev/null +++ b/documentation/com/openshift/internal/client/DomainResource.html @@ -0,0 +1,1180 @@ + + + + + + + +DomainResource (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client +
+Class DomainResource

+
+java.lang.Object
+  extended by com.openshift.internal.client.AbstractOpenShiftResource
+      extended by com.openshift.internal.client.DomainResource
+
+
+
All Implemented Interfaces:
IDomain, IOpenShiftResource
+
+
+
+
public class DomainResource
extends AbstractOpenShiftResource
implements IDomain
+ + +

+

+
Author:
+
André Dietisheim, Nicolas Spano
+
+
+ +

+ + + + + + + +
+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
+ booleancanCreateApplicationWithEnvironmentVariables() + +
+          Returns true if this domain can create application with environment variables.
+ IApplicationcreateApplication(String name, + IStandaloneCartridge cartridge) + +
+           
+ IApplicationcreateApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale) + +
+           
+ IApplicationcreateApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale, + IGearProfile gearProfile) + +
+           
+ IApplicationcreateApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale, + IGearProfile gearProfile, + String initialGitUrl) + +
+          Creates a new application with the given name and the given + cartridge/framework.
+ IApplicationcreateApplication(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.
+ IApplicationcreateApplication(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.
+ IApplicationcreateApplication(String name, + IStandaloneCartridge cartridge, + ApplicationScale scale, + String initialGitUrl) + +
+           
+ IApplicationcreateApplication(String name, + IStandaloneCartridge cartridge, + IGearProfile gearProfile) + +
+           
+ IApplicationcreateApplication(String name, + IStandaloneCartridge cartridge, + IGearProfile gearProfile, + String initialGitUrl) + +
+           
+ IApplicationcreateApplication(String name, + IStandaloneCartridge cartridge, + String initialGitUrl) + +
+           
+ voiddestroy() + +
+          Destroys the current domain.
+ voiddestroy(boolean force) + +
+          Destroys the current domain, using the 'force' parameter to also destroy the domain applications.
+ booleanequals(Object obj) + +
+           
+ IApplicationgetApplicationByName(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).
+ StringgetId() + +
+           
+protected  List<IApplication>getOrLoadApplications() + +
+           
+ StringgetSuffix() + +
+          The domain suffix is the host part eg: 'rhcloud.com')
+ IUsergetUser() + +
+          Returns the currently connected user that manages this domain.
+ booleanhasApplicationByCartridge(IStandaloneCartridge cartridge) + +
+           
+ booleanhasApplicationByName(String name) + +
+          Returns true if the application identified by the given name exists in the domain.
+ inthashCode() + +
+           
+ voidrefresh() + +
+          Refresh the resource and its list of children resources that were + previously loaded
+protected  voidremoveApplication(IApplication application) + +
+           
+ voidrename(String id) + +
+          Rename the current domain with the given id....
+ StringtoString() + +
+           
+ + + + + + + +
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
+ +

+DomainResource

+
+protected DomainResource(String namespace,
+                         String suffix,
+                         Map<String,Link> links,
+                         Messages messages,
+                         APIResource api)
+
+
+
+ +

+DomainResource

+
+protected DomainResource(DomainResourceDTO domainDTO,
+                         APIResource api)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getId

+
+public String getId()
+
+
+
Specified by:
getId in interface IDomain
+
+
+ +
Returns:
the domain id (formerly known as 'namespace'). A unique litteral identifier on OpenShift.
+
+
+
+ +

+getSuffix

+
+public String getSuffix()
+
+
Description copied from interface: IDomain
+
The domain suffix is the host part eg: 'rhcloud.com') +

+

+
Specified by:
getSuffix in interface IDomain
+
+
+ +
Returns:
+
+
+
+ +

+rename

+
+public void rename(String id)
+            throws OpenShiftException
+
+
Description copied from interface: IDomain
+
Rename the current domain with the given id.... +

+

+
Specified by:
rename in interface IDomain
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+getUser

+
+public IUser getUser()
+              throws OpenShiftException
+
+
Description copied from interface: IDomain
+
Returns the currently connected user that manages this domain. +

+

+
Specified by:
getUser in interface IDomain
+
+
+ +
Returns:
+
Throws: +
OpenShiftException
+
+
+
+ +

+createApplication

+
+public IApplication createApplication(String name,
+                                      IStandaloneCartridge cartridge)
+                               throws OpenShiftException
+
+
+
Specified by:
createApplication in interface IDomain
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+createApplication

+
+public IApplication createApplication(String name,
+                                      IStandaloneCartridge cartridge,
+                                      ApplicationScale scale)
+                               throws OpenShiftException
+
+
+
Specified by:
createApplication in interface IDomain
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+createApplication

+
+public IApplication createApplication(String name,
+                                      IStandaloneCartridge cartridge,
+                                      String initialGitUrl)
+                               throws OpenShiftException
+
+
+
Specified by:
createApplication in interface IDomain
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+createApplication

+
+public IApplication createApplication(String name,
+                                      IStandaloneCartridge cartridge,
+                                      ApplicationScale scale,
+                                      String initialGitUrl)
+                               throws OpenShiftException
+
+
+
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+createApplication

+
+public IApplication createApplication(String name,
+                                      IStandaloneCartridge cartridge,
+                                      IGearProfile gearProfile)
+                               throws OpenShiftException
+
+
+
Specified by:
createApplication in interface IDomain
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+createApplication

+
+public IApplication createApplication(String name,
+                                      IStandaloneCartridge cartridge,
+                                      IGearProfile gearProfile,
+                                      String initialGitUrl)
+                               throws OpenShiftException
+
+
+
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+createApplication

+
+public IApplication createApplication(String name,
+                                      IStandaloneCartridge cartridge,
+                                      ApplicationScale scale,
+                                      IGearProfile gearProfile)
+                               throws OpenShiftException
+
+
+
Specified by:
createApplication in interface IDomain
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+createApplication

+
+public IApplication createApplication(String name,
+                                      IStandaloneCartridge cartridge,
+                                      ApplicationScale scale,
+                                      IGearProfile gearProfile,
+                                      String initialGitUrl)
+                               throws OpenShiftException
+
+
Description copied from interface: IDomain
+
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. +

+

+
Specified by:
createApplication in interface IDomain
+
+
+
Parameters:
name - the name of the application
cartridge - 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 +
Returns:
+
Throws: +
OpenShiftException
+
+
+
+ +

+createApplication

+
+public IApplication createApplication(String name,
+                                      IStandaloneCartridge cartridge,
+                                      ApplicationScale scale,
+                                      IGearProfile gearProfile,
+                                      String initialGitUrl,
+                                      int timeout,
+                                      IEmbeddableCartridge... cartridges)
+                               throws OpenShiftException
+
+
Description copied from interface: IDomain
+
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. +

+

+
Specified by:
createApplication in interface IDomain
+
+
+
Parameters:
name - the name of the application
cartridge - 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
timeout - the timeout value in milliseconds
cartridges - the embeddable cartridges that shall get added to the new + application (the add-on cartridges mysql, mongodb, postgresql, + etc.) +
Returns:
IApplication created +
Throws: +
OpenShiftException
+
+
+
+ +

+createApplication

+
+public IApplication createApplication(String name,
+                                      IStandaloneCartridge cartridge,
+                                      ApplicationScale scale,
+                                      IGearProfile gearProfile,
+                                      String initialGitUrl,
+                                      int timeout,
+                                      Map<String,String> environmentVariables,
+                                      IEmbeddableCartridge... cartridges)
+                               throws OpenShiftException
+
+
Description copied from interface: IDomain
+
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. +

+

+
Specified by:
createApplication in interface IDomain
+
+
+
Parameters:
name - the name of the application
cartridge - 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
timeout - the timeout value in milliseconds
environmentVariables - the environment variables to be added to the application
cartridges - the embeddable cartridges that shall get added to the new + application (the add-on cartridges mysql, mongodb, postgresql, + etc.) +
Returns:
IApplication created +
Throws: +
OpenShiftException
+
+
+
+ +

+hasApplicationByName

+
+public boolean hasApplicationByName(String name)
+                             throws OpenShiftException
+
+
Description copied from interface: IDomain
+
Returns true if the application identified by the given name exists in the domain. +

+

+
Specified by:
hasApplicationByName in interface IDomain
+
+
+ +
Returns:
+
Throws: +
OpenShiftException
+
+
+
+ +

+getApplicationByName

+
+public IApplication getApplicationByName(String name)
+                                  throws OpenShiftException
+
+
Description copied from interface: IDomain
+
Returns the application identified by the given name. +

+

+
Specified by:
getApplicationByName in interface IDomain
+
+
+ +
Returns:
+
Throws: +
OpenShiftException
+
+
+
+ +

+getApplicationsByCartridge

+
+public List<IApplication> getApplicationsByCartridge(IStandaloneCartridge cartridge)
+                                              throws OpenShiftException
+
+
+
Specified by:
getApplicationsByCartridge in interface IDomain
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+hasApplicationByCartridge

+
+public boolean hasApplicationByCartridge(IStandaloneCartridge cartridge)
+                                  throws OpenShiftException
+
+
+
Specified by:
hasApplicationByCartridge in interface IDomain
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+canCreateApplicationWithEnvironmentVariables

+
+public boolean canCreateApplicationWithEnvironmentVariables()
+
+
Description copied from interface: IDomain
+
Returns true if this domain can create application with environment variables. Returns false otherwise. +

+

+
Specified by:
canCreateApplicationWithEnvironmentVariables in interface IDomain
+
+
+ +
Returns:
true if can create an application with environment variables
See Also:
IApplication.getEnvironmentVariables()
+
+
+
+ +

+destroy

+
+public void destroy()
+             throws OpenShiftException
+
+
Description copied from interface: IDomain
+
Destroys the current domain. This method works only if it has not application. +

+

+
Specified by:
destroy in interface IDomain
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+destroy

+
+public void destroy(boolean force)
+             throws OpenShiftException
+
+
Description copied from interface: IDomain
+
Destroys the current domain, using the 'force' parameter to also destroy the domain applications. The domain cannot + be destroyed without setting 'force-true' if it still contains applications. +

+

+
Specified by:
destroy in interface IDomain
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+getApplications

+
+public List<IApplication> getApplications()
+                                   throws OpenShiftException
+
+
+
Specified by:
getApplications in interface IDomain
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+getOrLoadApplications

+
+protected List<IApplication> getOrLoadApplications()
+                                            throws OpenShiftException
+
+
+
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+removeApplication

+
+protected void removeApplication(IApplication application)
+
+
+
+
+
+
+
+
+
+ +

+getAvailableCartridgeNames

+
+public List<String> getAvailableCartridgeNames()
+                                        throws OpenShiftException
+
+
Description copied from interface: IDomain
+
Returns the list of cartridges that can be used to create a new application. +

+

+
Specified by:
getAvailableCartridgeNames in interface IDomain
+
+
+ +
Returns:
the list of cartridges that can be used to create a new application. +
Throws: +
OpenShiftException
+
+
+
+ +

+getAvailableGearProfiles

+
+public List<IGearProfile> getAvailableGearProfiles()
+                                            throws OpenShiftException
+
+
Description copied from interface: IDomain
+
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). +

+

+
Specified by:
getAvailableGearProfiles in interface IDomain
+
+
+ +
Returns:
+
Throws: +
OpenShiftException
+
+
+
+ +

+refresh

+
+public void refresh()
+             throws OpenShiftException
+
+
Description copied from interface: IOpenShiftResource
+
Refresh the resource and its list of children resources that were + previously loaded +

+

+
Specified by:
refresh in interface IOpenShiftResource
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class Object
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object obj)
+
+
+
Overrides:
equals in class Object
+
+
+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/EmbeddedCartridgeResource.html b/documentation/com/openshift/internal/client/EmbeddedCartridgeResource.html new file mode 100644 index 00000000..5a9ad815 --- /dev/null +++ b/documentation/com/openshift/internal/client/EmbeddedCartridgeResource.html @@ -0,0 +1,677 @@ + + + + + + + +EmbeddedCartridgeResource (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client +
+Class EmbeddedCartridgeResource

+
+java.lang.Object
+  extended by com.openshift.internal.client.AbstractOpenShiftResource
+      extended by com.openshift.internal.client.EmbeddedCartridgeResource
+
+
+
All Implemented Interfaces:
ICartridge, IEmbeddableCartridge, IEmbeddedCartridge, IOpenShiftResource
+
+
+
+
public class EmbeddedCartridgeResource
extends AbstractOpenShiftResource
implements IEmbeddedCartridge
+ + +

+A cartridge that is embedded into an application. +

+ +

+

+
Author:
+
André Dietisheim
+
+
+ +

+ + + + + + + +
+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
+ voiddestroy() + +
+          Destroys this cartridge (and removes it from the list of existing cartridges)
+ booleanequals(Object obj) + +
+          TODO: implement fully correct #equals and #hashcode.
+ IApplicationgetApplication() + +
+          Returns the application this cartridge is embedded into.
+ StringgetDescription() + +
+          Returns a description for this cartridge
+ StringgetDisplayName() + +
+          Returns a (human readable, nice) display name for this cartridge
+ StringgetName() + +
+          Returns the name of this cartridge
+ CartridgeResourcePropertiesgetProperties() + +
+          Returns the properties for this embedded cartridge
+protected  CartridgeTypegetType() + +
+           
+ URLgetUrl() + +
+          The url at which this cartridge may be reached
+ inthashCode() + +
+           
+ booleanisDownloadable() + +
+          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).
+ voidrefresh() + +
+          Refreshes the content of this embedded cartridge.
+ StringtoString() + +
+           
+protected  voidupdate(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
+ +

+EmbeddedCartridgeResource

+
+protected EmbeddedCartridgeResource(CartridgeResourceDTO dto,
+                                    ApplicationResource application)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getName

+
+public String getName()
+
+
Description copied from interface: ICartridge
+
Returns the name of this cartridge +

+

+
Specified by:
getName in interface ICartridge
+
+
+ +
Returns:
the name
+
+
+
+ +

+getDisplayName

+
+public String getDisplayName()
+
+
Description copied from interface: ICartridge
+
Returns a (human readable, nice) display name for this cartridge +

+

+
Specified by:
getDisplayName in interface ICartridge
+
+
+ +
Returns:
the display name
+
+
+
+ +

+getDescription

+
+public String getDescription()
+
+
Description copied from interface: ICartridge
+
Returns a description for this cartridge +

+

+
Specified by:
getDescription in interface ICartridge
+
+
+ +
Returns:
the description
+
+
+
+ +

+getType

+
+protected CartridgeType getType()
+
+
+
+
+
+
+
+
+
+ +

+getUrl

+
+public URL getUrl()
+
+
Description copied from interface: IEmbeddedCartridge
+
The url at which this cartridge may be reached +

+

+
Specified by:
getUrl in interface ICartridge
Specified by:
getUrl in interface IEmbeddedCartridge
+
+
+ +
Returns:
the url for this cartridge
See Also:
ICartridge.isDownloadable()
+
+
+
+ +

+isDownloadable

+
+public boolean isDownloadable()
+
+
Description copied from interface: ICartridge
+
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). + 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)
  • +
+

+

+
Specified by:
isDownloadable in interface ICartridge
+
+
+ +
Returns:
true if this is a downloadable cartridge
See Also:
ICartridge.getUrl()
+
+
+
+ +

+getApplication

+
+public IApplication getApplication()
+
+
Description copied from interface: IEmbeddedCartridge
+
Returns the application this cartridge is embedded into. +

+

+
Specified by:
getApplication in interface IEmbeddedCartridge
+
+
+ +
Returns:
application this is embedded into
+
+
+
+ +

+update

+
+protected void update(CartridgeResourceDTO dto)
+
+
+
+
+
+
+
+
+
+ +

+refresh

+
+public void refresh()
+             throws OpenShiftException
+
+
Refreshes the content of this embedded cartridge. Causes all embedded + cartridges of the same application to get updated. +

+

+
Specified by:
refresh in interface IOpenShiftResource
+
+
+ +
Throws: +
OpenShiftException
See Also:
update(CartridgeResourceDTO), +ApplicationResource.refreshEmbeddedCartridges()
+
+
+
+ +

+destroy

+
+public void destroy()
+             throws OpenShiftException
+
+
Description copied from interface: IEmbeddedCartridge
+
Destroys this cartridge (and removes it from the list of existing cartridges) +

+

+
Specified by:
destroy in interface IEmbeddedCartridge
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+getProperties

+
+public CartridgeResourceProperties getProperties()
+
+
Description copied from interface: IEmbeddedCartridge
+
Returns the properties for this embedded cartridge +

+

+
Specified by:
getProperties in interface IEmbeddedCartridge
+
+
+ +
Returns:
the resource properties
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class Object
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object obj)
+
+
TODO: implement fully correct #equals and #hashcode. The current + implementation only ensures that EmbeddedCartridgeResource may be + compared to EmbeddableCartridge. +

+

+
Overrides:
equals in class Object
+
+
+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/EnvironmentVariableResource.html b/documentation/com/openshift/internal/client/EnvironmentVariableResource.html new file mode 100644 index 00000000..7a1cff7e --- /dev/null +++ b/documentation/com/openshift/internal/client/EnvironmentVariableResource.html @@ -0,0 +1,487 @@ + + + + + + + +EnvironmentVariableResource (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client +
+Class EnvironmentVariableResource

+
+java.lang.Object
+  extended by com.openshift.internal.client.AbstractOpenShiftResource
+      extended by com.openshift.internal.client.EnvironmentVariableResource
+
+
+
All Implemented Interfaces:
IEnvironmentVariable, IOpenShiftResource
+
+
+
+
public class EnvironmentVariableResource
extends AbstractOpenShiftResource
implements IEnvironmentVariable
+ + +

+

+
Author:
+
Syed Iqbal
+
+
+ +

+ + + + + + + +
+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
+ voiddestroy() + +
+          Destroys this environment variable
+ IApplicationgetApplication() + +
+          Returns the application for this environment variable
+ StringgetName() + +
+           
+ StringgetValue() + +
+           
+ voidrefresh() + +
+          Refresh the resource and its list of children resources that were + previously loaded
+ StringtoString() + +
+           
+ voidupdate(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
+ +

+EnvironmentVariableResource

+
+protected EnvironmentVariableResource(EnvironmentVariableResourceDTO dto,
+                                      ApplicationResource application)
+
+
+
+ +

+EnvironmentVariableResource

+
+protected EnvironmentVariableResource(String name,
+                                      String value,
+                                      Messages messages,
+                                      Map<String,Link> links,
+                                      ApplicationResource application)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getName

+
+public String getName()
+
+
+
Specified by:
getName in interface IEnvironmentVariable
+
+
+ +
Returns:
Name of the environment variable
+
+
+
+ +

+getValue

+
+public String getValue()
+
+
+
Specified by:
getValue in interface IEnvironmentVariable
+
+
+ +
Returns:
Value of the environment variable
+
+
+
+ +

+update

+
+public void update(String newValue)
+            throws OpenShiftException
+
+
Description copied from interface: IEnvironmentVariable
+
Updates this environment variable to the given value. +

+

+
Specified by:
update in interface IEnvironmentVariable
+
+
+
Parameters:
newValue - new value for this environment variable +
Throws: +
OpenShiftException
+
+
+
+ +

+destroy

+
+public void destroy()
+             throws OpenShiftException
+
+
Description copied from interface: IEnvironmentVariable
+
Destroys this environment variable +

+

+
Specified by:
destroy in interface IEnvironmentVariable
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+refresh

+
+public void refresh()
+             throws OpenShiftException
+
+
Description copied from interface: IOpenShiftResource
+
Refresh the resource and its list of children resources that were + previously loaded +

+

+
Specified by:
refresh in interface IOpenShiftResource
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+getApplication

+
+public IApplication getApplication()
+
+
Description copied from interface: IEnvironmentVariable
+
Returns the application for this environment variable +

+

+
Specified by:
getApplication in interface IEnvironmentVariable
+
+
+ +
Returns:
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/Field.html b/documentation/com/openshift/internal/client/Field.html new file mode 100644 index 00000000..81d8d535 --- /dev/null +++ b/documentation/com/openshift/internal/client/Field.html @@ -0,0 +1,325 @@ + + + + + + + +Field (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client +
+Class Field

+
+java.lang.Object
+  extended by com.openshift.internal.client.Field
+
+
+
All Implemented Interfaces:
IField
+
+
+
+
public class Field
extends Object
implements IField
+ + +

+

+
Author:
+
Andre Dietisheim
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from interface com.openshift.client.IField
APPINFO, DEFAULT, RESULT
+  + + + + + + + + + + +
+Constructor Summary
Field(String field) + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleanequals(Object obj) + +
+           
+ StringgetValue() + +
+           
+ inthashCode() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Field

+
+public Field(String field)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getValue

+
+public String getValue()
+
+
+
Specified by:
getValue in interface IField
+
+
+
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class Object
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object obj)
+
+
+
Overrides:
equals in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/Gear.html b/documentation/com/openshift/internal/client/Gear.html new file mode 100644 index 00000000..b24c166e --- /dev/null +++ b/documentation/com/openshift/internal/client/Gear.html @@ -0,0 +1,351 @@ + + + + + + + +Gear (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client +
+Class Gear

+
+java.lang.Object
+  extended by com.openshift.internal.client.Gear
+
+
+
All Implemented Interfaces:
IGear
+
+
+
+
public class Gear
extends Object
implements IGear
+ + +

+A gear that a cartridge is running on. +

+ +

+

+
Author:
+
Andre Dietisheim
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
Gear(String id, + GearState state, + String sshUrl) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetId() + +
+          Returns the id of this gear.
+ StringgetSshUrl() + +
+          The URL to use when connecting with SSH in the following form: + ssh://<username>@<host>
+ GearStategetState() + +
+          Returns the state of this gear
+ StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Gear

+
+public Gear(String id,
+            GearState state,
+            String sshUrl)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getId

+
+public String getId()
+
+
Description copied from interface: IGear
+
Returns the id of this gear. +

+

+
Specified by:
getId in interface IGear
+
+
+ +
Returns:
the id
+
+
+
+ +

+getState

+
+public GearState getState()
+
+
Description copied from interface: IGear
+
Returns the state of this gear +

+

+
Specified by:
getState in interface IGear
+
+
+ +
Returns:
the state
+
+
+
+ +

+getSshUrl

+
+public String getSshUrl()
+
+
Description copied from interface: IGear
+
The URL to use when connecting with SSH in the following form: + ssh://<username>@<host> +

+

+
Specified by:
getSshUrl in interface IGear
+
+
+ +
Returns:
the sshUrl
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/GearGroupResource.html b/documentation/com/openshift/internal/client/GearGroupResource.html new file mode 100644 index 00000000..30cb25a2 --- /dev/null +++ b/documentation/com/openshift/internal/client/GearGroupResource.html @@ -0,0 +1,444 @@ + + + + + + + +GearGroupResource (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client +
+Class GearGroupResource

+
+java.lang.Object
+  extended by com.openshift.internal.client.AbstractOpenShiftResource
+      extended by com.openshift.internal.client.GearGroupResource
+
+
+
All Implemented Interfaces:
IGearGroup, IOpenShiftResource
+
+
+
+
public class GearGroupResource
extends AbstractOpenShiftResource
implements IGearGroup
+ + +

+

+
Author:
+
Andre Dietisheim, Xavier Coulon
+
+
+ +

+ + + + + + + +
+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
+ StringgetName() + +
+          Returns the name of this gear groups
+ StringgetUUID() + +
+          Returns the uuid of this gear groups.
+ voidrefresh() + +
+          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
+ +

+GearGroupResource

+
+protected GearGroupResource(String uuid,
+                            String name,
+                            Collection<GearResourceDTO> gearDTOs,
+                            Map<String,CartridgeResourceDTO> cartridgeDTOs,
+                            ApplicationResource application,
+                            IRestService service)
+
+
Constructor. +

+

+
Parameters:
uuid - the gear group's UUID
name - the gear group's name
gearDTOs - the gear group's gears
cartridgeDTOs - the gear group's cartridges, indexed by their name
application - the gear group's parent application
service - the underlying REST Service
+
+
+ +

+GearGroupResource

+
+protected GearGroupResource(GearGroupResourceDTO dto,
+                            ApplicationResource application,
+                            IRestService service)
+
+
Constructor. +

+

+
Parameters:
dto - the associated GearGroupResourceDTO
application - the parent application
servicethe - underlying REST Service
+
+ + + + + + + + +
+Method Detail
+ +

+getUUID

+
+public final String getUUID()
+
+
Description copied from interface: IGearGroup
+
Returns the uuid of this gear groups. +

+

+
Specified by:
getUUID in interface IGearGroup
+
+
+ +
Returns:
the uuid
+
+
+
+ +

+getName

+
+public final String getName()
+
+
Description copied from interface: IGearGroup
+
Returns the name of this gear groups +

+

+
Specified by:
getName in interface IGearGroup
+
+
+ +
Returns:
the name
+
+
+
+ +

+getGears

+
+public Collection<IGear> getGears()
+
+
Description copied from interface: IGearGroup
+
Returns the gears in this gear group resource +

+

+
Specified by:
getGears in interface IGearGroup
+
+
+ +
Returns:
the gears
+
+
+
+ +

+getCartridges

+
+public Collection<ICartridge> getCartridges()
+
+
Description copied from interface: IGearGroup
+
Returns the cartridges in this gear group resource +

+

+
Specified by:
getCartridges in interface IGearGroup
+
+
+ +
Returns:
the cartridges
+
+
+
+ +

+refresh

+
+public void refresh()
+             throws OpenShiftException
+
+
Description copied from interface: IOpenShiftResource
+
Refresh the resource and its list of children resources that were + previously loaded +

+

+
Specified by:
refresh in interface IOpenShiftResource
+
+
+ +
Throws: +
OpenShiftException
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/GearProfile.html b/documentation/com/openshift/internal/client/GearProfile.html new file mode 100644 index 00000000..aa5d8a1f --- /dev/null +++ b/documentation/com/openshift/internal/client/GearProfile.html @@ -0,0 +1,347 @@ + + + + + + + +GearProfile (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client +
+Class GearProfile

+
+java.lang.Object
+  extended by com.openshift.internal.client.GearProfile
+
+
+
All Implemented Interfaces:
IGearProfile
+
+
+
+
public class GearProfile
extends Object
implements IGearProfile
+ + +

+

+
Author:
+
Andre Dietisheim
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from interface com.openshift.client.IGearProfile
EXLARGE, JUMBO, LARGE, MEDIUM, MICRO, SMALL
+  + + + + + + + + + + +
+Constructor Summary
GearProfile(String name) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleanequals(Object obj) + +
+           
+ StringgetName() + +
+           
+ inthashCode() + +
+           
+ StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+GearProfile

+
+public GearProfile(String name)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getName

+
+public String getName()
+
+
+
Specified by:
getName in interface IGearProfile
+
+
+
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class Object
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object obj)
+
+
+
Overrides:
equals in class Object
+
+
+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/IRestService.html b/documentation/com/openshift/internal/client/IRestService.html new file mode 100644 index 00000000..b5ae6bd4 --- /dev/null +++ b/documentation/com/openshift/internal/client/IRestService.html @@ -0,0 +1,474 @@ + + + + + + + +IRestService (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client +
+Interface IRestService

+
+
All Known Implementing Classes:
RestService
+
+
+
+
public interface IRestService
+ + +

+A rest service that executes request against the OpenShift server +

+ +

+

+
Author:
+
Andre Dietisheim
+
+
+ +

+ + + + + + + + + + + + + + + +
+Field Summary
+static StringSERVICE_PATH + +
+           
+static StringSERVICE_VERSION + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetPlatformUrl() + +
+          Returns the OpenShift server.
+ StringgetServiceUrl() + +
+          Returns the url for the OpenShift service, the endpoint which this rest + service class is talking to.
+ RestResponserequest(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.
+ RestResponserequest(Link link, + int timeout, + List<Parameter> urlParameters, + IMediaType mediaType, + Parameter... parameters) + +
+           
+ RestResponserequest(Link link, + int timeout, + List<Parameter> urlParameters, + Parameter... parameters) + +
+           
+ RestResponserequest(Link link, + int timeout, + Parameter... parameters) + +
+           
+ RestResponserequest(Link link, + List<Parameter> urlParameters, + Parameter... parameters) + +
+           
+ RestResponserequest(Link link, + Parameter... parameters) + +
+           
+  +

+ + + + + + + + +
+Field Detail
+ +

+SERVICE_VERSION

+
+static final String SERVICE_VERSION
+
+
+
See Also:
Constant Field Values
+
+
+ +

+SERVICE_PATH

+
+static final String SERVICE_PATH
+
+
+
See Also:
Constant Field Values
+
+ + + + + + + + +
+Method Detail
+ +

+request

+
+RestResponse request(Link link,
+                     Parameter... parameters)
+                     throws OpenShiftException
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+request

+
+RestResponse request(Link link,
+                     int timeout,
+                     Parameter... parameters)
+                     throws OpenShiftException
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+request

+
+RestResponse request(Link link,
+                     int timeout,
+                     IMediaType mediaType,
+                     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:
link - the link to use
parameters - the parameters to send +
Returns:
the rest response +
Throws: +
OpenShiftException
See Also:
Link, +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
+
+
+
+ +

+request

+
+RestResponse request(Link link,
+                     List<Parameter> urlParameters,
+                     Parameter... parameters)
+                     throws OpenShiftException
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+request

+
+RestResponse request(Link link,
+                     int timeout,
+                     List<Parameter> urlParameters,
+                     Parameter... parameters)
+                     throws OpenShiftException
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+request

+
+RestResponse request(Link link,
+                     int timeout,
+                     List<Parameter> urlParameters,
+                     IMediaType mediaType,
+                     Parameter... parameters)
+                     throws OpenShiftException
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+getServiceUrl

+
+String getServiceUrl()
+
+
Returns the url for the OpenShift service, the endpoint which this rest + service class is talking to. +

+

+ +
Returns:
the url of the OpenShift service
+
+
+
+ +

+getPlatformUrl

+
+String getPlatformUrl()
+
+
Returns the OpenShift server. +

+

+ +
Returns:
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/RestService.html b/documentation/com/openshift/internal/client/RestService.html new file mode 100644 index 00000000..98910074 --- /dev/null +++ b/documentation/com/openshift/internal/client/RestService.html @@ -0,0 +1,577 @@ + + + + + + + +RestService (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client +
+Class RestService

+
+java.lang.Object
+  extended by com.openshift.internal.client.RestService
+
+
+
All Implemented Interfaces:
IRestService
+
+
+
+
public class RestService
extends Object
implements IRestService
+ + +

+

+
Author:
+
André Dietisheim
+
+
+ +

+ + + + + + + +
+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
+ StringgetPlatformUrl() + +
+          Returns the OpenShift server.
+ StringgetServiceUrl() + +
+          Returns the url for the OpenShift service, the endpoint which this rest + service class is talking to.
+ RestResponserequest(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.
+ RestResponserequest(Link link, + int timeout, + List<Parameter> urlParameters, + IMediaType requestMediaType, + Parameter... parameters) + +
+           
+ RestResponserequest(Link link, + int timeout, + List<Parameter> urlParameters, + Parameter... parameters) + +
+           
+ RestResponserequest(Link link, + int timeout, + Parameter... parameters) + +
+           
+ RestResponserequest(Link link, + List<Parameter> urlParameters, + Parameter... parameters) + +
+           
+ RestResponserequest(Link link, + Parameter... parameters) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+RestService

+
+public RestService(String server,
+                   String clientId,
+                   IMediaType defaultRequestMediaType,
+                   String acceptedMediaType,
+                   IRestResponseFactory factory,
+                   IHttpClient client)
+
+
+
+ +

+RestService

+
+protected RestService(String server,
+                      String clientId,
+                      IMediaType defaultRequestMediaType,
+                      String acceptedMediaType,
+                      IRestResponseFactory factory,
+                      IHttpClient client,
+                      RestServiceProperties properties)
+
+
+
+ +

+RestService

+
+protected RestService(String server,
+                      String clientId,
+                      String protocolVersion,
+                      IMediaType defaultRequestMediaType,
+                      String acceptedMediaType,
+                      IRestResponseFactory factory,
+                      IHttpClient client,
+                      RestServiceProperties properties)
+
+
+ + + + + + + + +
+Method Detail
+ +

+request

+
+public RestResponse request(Link link,
+                            Parameter... parameters)
+                     throws OpenShiftException
+
+
+
Specified by:
request in interface IRestService
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+request

+
+public RestResponse request(Link link,
+                            int timeout,
+                            Parameter... parameters)
+                     throws OpenShiftException
+
+
+
Specified by:
request in interface IRestService
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+request

+
+public RestResponse request(Link link,
+                            List<Parameter> urlParameters,
+                            Parameter... parameters)
+                     throws OpenShiftException
+
+
+
Specified by:
request in interface IRestService
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+request

+
+public RestResponse request(Link link,
+                            int timeout,
+                            IMediaType requestMediaType,
+                            Parameter... parameters)
+                     throws OpenShiftException
+
+
Description copied from interface: IRestService
+
Requests the given link sending the given parameters while encoding the + parameters with the given media type and respecting the given timeout. +

+

+
Specified by:
request in interface IRestService
+
+
+
Parameters:
link - the link to use
parameters - the parameters to send +
Returns:
the rest response +
Throws: +
OpenShiftException
See Also:
Link, +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
+
+
+
+ +

+request

+
+public RestResponse request(Link link,
+                            int timeout,
+                            List<Parameter> urlParameters,
+                            Parameter... parameters)
+                     throws OpenShiftException
+
+
+
Specified by:
request in interface IRestService
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+request

+
+public RestResponse request(Link link,
+                            int timeout,
+                            List<Parameter> urlParameters,
+                            IMediaType requestMediaType,
+                            Parameter... parameters)
+                     throws OpenShiftException
+
+
+
Specified by:
request in interface IRestService
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+getServiceUrl

+
+public String getServiceUrl()
+
+
Description copied from interface: IRestService
+
Returns the url for the OpenShift service, the endpoint which this rest + service class is talking to. +

+

+
Specified by:
getServiceUrl in interface IRestService
+
+
+ +
Returns:
the url of the OpenShift service
+
+
+
+ +

+getPlatformUrl

+
+public String getPlatformUrl()
+
+
Description copied from interface: IRestService
+
Returns the OpenShift server. +

+

+
Specified by:
getPlatformUrl in interface IRestService
+
+
+ +
Returns:
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/RestServiceProperties.html b/documentation/com/openshift/internal/client/RestServiceProperties.html new file mode 100644 index 00000000..fe553e65 --- /dev/null +++ b/documentation/com/openshift/internal/client/RestServiceProperties.html @@ -0,0 +1,336 @@ + + + + + + + +RestServiceProperties (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client +
+Class RestServiceProperties

+
+java.lang.Object
+  extended by com.openshift.internal.client.RestServiceProperties
+
+
+
+
public class RestServiceProperties
extends Object
+ + +

+

+
Author:
+
Andre Dietisheim
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
RestServiceProperties() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetClientId() + +
+           
+protected  PropertiesgetProperties() + +
+           
+ StringgetUseragent(String clientId) + +
+           
+protected  StringgetUseragentPattern() + +
+           
+ StringgetVersion() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+RestServiceProperties

+
+public RestServiceProperties()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getVersion

+
+public String getVersion()
+
+
+
+
+
+
+ +

+getUseragent

+
+public String getUseragent(String clientId)
+
+
+
+
+
+
+ +

+getUseragentPattern

+
+protected String getUseragentPattern()
+
+
+
+
+
+
+ +

+getClientId

+
+public String getClientId()
+
+
+
+
+
+
+ +

+getProperties

+
+protected Properties getProperties()
+                            throws IOException
+
+
+ +
Throws: +
IOException
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/SSHKeyResource.html b/documentation/com/openshift/internal/client/SSHKeyResource.html new file mode 100644 index 00000000..027d9a84 --- /dev/null +++ b/documentation/com/openshift/internal/client/SSHKeyResource.html @@ -0,0 +1,520 @@ + + + + + + + +SSHKeyResource (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client +
+Class SSHKeyResource

+
+java.lang.Object
+  extended by com.openshift.internal.client.AbstractOpenShiftResource
+      extended by com.openshift.internal.client.SSHKeyResource
+
+
+
All Implemented Interfaces:
IOpenShiftResource, IOpenShiftSSHKey, ISSHPublicKey
+
+
+
+
public class SSHKeyResource
extends AbstractOpenShiftResource
implements IOpenShiftSSHKey
+ + +

+

+
Author:
+
Andre Dietisheim
+
+
+ +

+ + + + + + + +
+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
+ voiddestroy() + +
+           
+ SSHKeyTypegetKeyType() + +
+          Returns the type of the key (ssh-rsa or ssh-dss)
+ StringgetName() + +
+          Returns the name that is used to store this key on OpenShift.
+ StringgetPublicKey() + +
+          Returns the content of the public key (key content without ssh-rsa + identifier nor comment) of the ssh key
+ voidrefresh() + +
+          Refresh the resource and its list of children resources that were + previously loaded
+ voidsetKeyType(SSHKeyType type, + String publicKey) + +
+          Sets the new type and public key of this ssh key to the OpenShift PaaS
+ voidsetPublicKey(String publicKey) + +
+          Sets the public key portion of this ssh key to the OpenShift PaaS.
+ StringtoString() + +
+           
+protected  voidupdate(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
+ +

+SSHKeyResource

+
+protected SSHKeyResource(KeyResourceDTO dto,
+                         UserResource user)
+                  throws OpenShiftUnknonwSSHKeyTypeException
+
+
+ +
Throws: +
OpenShiftUnknonwSSHKeyTypeException
+
+ + + + + + + + +
+Method Detail
+ +

+setKeyType

+
+public void setKeyType(SSHKeyType type,
+                       String publicKey)
+                throws OpenShiftException
+
+
Description copied from interface: IOpenShiftSSHKey
+
Sets the new type and public key of this ssh key to the OpenShift PaaS +

+

+
Specified by:
setKeyType in interface IOpenShiftSSHKey
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+getName

+
+public String getName()
+
+
Description copied from interface: IOpenShiftSSHKey
+
Returns the name that is used to store this key on OpenShift. +

+

+
Specified by:
getName in interface IOpenShiftSSHKey
+
+
+ +
Returns:
+
+
+
+ +

+getKeyType

+
+public SSHKeyType getKeyType()
+
+
Description copied from interface: ISSHPublicKey
+
Returns the type of the key (ssh-rsa or ssh-dss) +

+

+
Specified by:
getKeyType in interface ISSHPublicKey
+
+
+ +
Returns:
the type of key, either ssh-rsa or ssh-dss
+
+
+
+ +

+setPublicKey

+
+public void setPublicKey(String publicKey)
+                  throws OpenShiftException
+
+
Description copied from interface: IOpenShiftSSHKey
+
Sets the public key portion of this ssh key to the OpenShift PaaS. +

+

+
Specified by:
setPublicKey in interface IOpenShiftSSHKey
+
+
+
Parameters:
publicKey - the new public key porition of this key +
Throws: +
OpenShiftException
+
+
+
+ +

+getPublicKey

+
+public String getPublicKey()
+
+
Description copied from interface: ISSHPublicKey
+
Returns the content of the public key (key content without ssh-rsa + identifier nor comment) of the ssh key +

+

+
Specified by:
getPublicKey in interface ISSHPublicKey
+
+
+ +
Returns:
the content of the public key (without signature, without + comment)
+
+
+
+ +

+refresh

+
+public void refresh()
+             throws OpenShiftException
+
+
Description copied from interface: IOpenShiftResource
+
Refresh the resource and its list of children resources that were + previously loaded +

+

+
Specified by:
refresh in interface IOpenShiftResource
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+destroy

+
+public void destroy()
+             throws OpenShiftException
+
+
+
Specified by:
destroy in interface IOpenShiftSSHKey
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+update

+
+protected void update(KeyResourceDTO dto)
+               throws OpenShiftUnknonwSSHKeyTypeException
+
+
+
+
+
+ +
Throws: +
OpenShiftUnknonwSSHKeyTypeException
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/Severity.html b/documentation/com/openshift/internal/client/Severity.html new file mode 100644 index 00000000..98d6084f --- /dev/null +++ b/documentation/com/openshift/internal/client/Severity.html @@ -0,0 +1,325 @@ + + + + + + + +Severity (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client +
+Class Severity

+
+java.lang.Object
+  extended by com.openshift.internal.client.Severity
+
+
+
All Implemented Interfaces:
ISeverity
+
+
+
+
public class Severity
extends Object
implements ISeverity
+ + +

+

+
Author:
+
Andre Dietisheim
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from interface com.openshift.client.ISeverity
DEBUG, ERROR, INFO, RESULT
+  + + + + + + + + + + +
+Constructor Summary
Severity(String severity) + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleanequals(Object obj) + +
+           
+ StringgetValue() + +
+           
+ inthashCode() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Severity

+
+public Severity(String severity)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getValue

+
+public String getValue()
+
+
+
Specified by:
getValue in interface ISeverity
+
+
+
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class Object
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object obj)
+
+
+
Overrides:
equals in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/UserResource.html b/documentation/com/openshift/internal/client/UserResource.html new file mode 100644 index 00000000..68f5bc1a --- /dev/null +++ b/documentation/com/openshift/internal/client/UserResource.html @@ -0,0 +1,845 @@ + + + + + + + +UserResource (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client +
+Class UserResource

+
+java.lang.Object
+  extended by com.openshift.internal.client.AbstractOpenShiftResource
+      extended by com.openshift.internal.client.UserResource
+
+
+
All Implemented Interfaces:
IOpenShiftResource, IUser
+
+
+
+
public class UserResource
extends AbstractOpenShiftResource
implements IUser
+ + +

+

+
Author:
+
André Dietisheim
+
+
+ +

+ + + + + + + +
+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
+ IDomaincreateDomain(String id) + +
+           
+ voiddeleteKey(String name) + +
+           
+ IOpenShiftConnectiongetConnection() + +
+           
+ intgetConsumedGears() + +
+           
+ IDomaingetDefaultDomain() + +
+           
+ IDomaingetDomain(String id) + +
+           
+ List<IDomain>getDomains() + +
+           
+ intgetMaxGears() + +
+           
+ StringgetPassword() + +
+           
+ StringgetRhlogin() + +
+           
+ StringgetServer() + +
+           
+ IOpenShiftSSHKeygetSSHKeyByName(String name) + +
+           
+ IOpenShiftSSHKeygetSSHKeyByPublicKey(String publicKey) + +
+           
+ List<IOpenShiftSSHKey>getSSHKeys() + +
+           
+ booleanhasDomain() + +
+           
+ booleanhasDomain(String id) + +
+           
+ booleanhasSSHKeyName(String name) + +
+           
+ booleanhasSSHPublicKey(String publicKey) + +
+           
+ IOpenShiftSSHKeyputSSHKey(String name, + ISSHPublicKey key) + +
+          Adds the given ssh key with the given name.
+ voidrefresh() + +
+          Refresh the resource and its list of children resources that were + previously loaded
+protected  voidremoveSSHKey(SSHKeyResource key) + +
+           
+ StringtoString() + +
+           
+ + + + + + + +
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
+ +

+UserResource

+
+public UserResource(APIResource api,
+                    UserResourceDTO dto,
+                    String password)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getConnection

+
+public IOpenShiftConnection getConnection()
+
+
+
Specified by:
getConnection in interface IUser
+
+
+
+
+
+
+ +

+getRhlogin

+
+public String getRhlogin()
+
+
+
Specified by:
getRhlogin in interface IUser
+
+
+
+
+
+
+ +

+getPassword

+
+public String getPassword()
+
+
+
Specified by:
getPassword in interface IUser
+
+
+
+
+
+
+ +

+getServer

+
+public String getServer()
+
+
+
Specified by:
getServer in interface IUser
+
+
+
+
+
+
+ +

+getMaxGears

+
+public int getMaxGears()
+
+
+
Specified by:
getMaxGears in interface IUser
+
+
+
+
+
+
+ +

+getConsumedGears

+
+public int getConsumedGears()
+
+
+
Specified by:
getConsumedGears in interface IUser
+
+
+
+
+
+
+ +

+createDomain

+
+public IDomain createDomain(String id)
+                     throws OpenShiftException
+
+
+
Specified by:
createDomain in interface IUser
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+getDomains

+
+public List<IDomain> getDomains()
+                         throws OpenShiftException
+
+
+
Specified by:
getDomains in interface IUser
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+getDefaultDomain

+
+public IDomain getDefaultDomain()
+                         throws OpenShiftException
+
+
+
Specified by:
getDefaultDomain in interface IUser
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+getDomain

+
+public IDomain getDomain(String id)
+                  throws OpenShiftException
+
+
+
Specified by:
getDomain in interface IUser
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+hasDomain

+
+public boolean hasDomain()
+                  throws OpenShiftException
+
+
+
Specified by:
hasDomain in interface IUser
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+hasDomain

+
+public boolean hasDomain(String id)
+                  throws OpenShiftException
+
+
+
Specified by:
hasDomain in interface IUser
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+refresh

+
+public void refresh()
+             throws OpenShiftException
+
+
Description copied from interface: IOpenShiftResource
+
Refresh the resource and its list of children resources that were + previously loaded +

+

+
Specified by:
refresh in interface IOpenShiftResource
+
+
+ +
Throws: +
OpenShiftException
+
+
+
+ +

+getSSHKeys

+
+public List<IOpenShiftSSHKey> getSSHKeys()
+                                  throws OpenShiftUnknonwSSHKeyTypeException,
+                                         OpenShiftException
+
+
+
Specified by:
getSSHKeys in interface IUser
+
+
+ +
Throws: +
OpenShiftUnknonwSSHKeyTypeException +
OpenShiftException
+
+
+
+ +

+deleteKey

+
+public void deleteKey(String name)
+
+
+
Specified by:
deleteKey in interface IUser
+
+
+
+
+
+
+ +

+getSSHKeyByName

+
+public IOpenShiftSSHKey getSSHKeyByName(String name)
+                                 throws OpenShiftUnknonwSSHKeyTypeException,
+                                        OpenShiftException
+
+
+
Specified by:
getSSHKeyByName in interface IUser
+
+
+ +
Throws: +
OpenShiftUnknonwSSHKeyTypeException +
OpenShiftException
+
+
+
+ +

+getSSHKeyByPublicKey

+
+public IOpenShiftSSHKey getSSHKeyByPublicKey(String publicKey)
+                                      throws OpenShiftUnknonwSSHKeyTypeException,
+                                             OpenShiftException
+
+
+
Specified by:
getSSHKeyByPublicKey in interface IUser
+
+
+ +
Throws: +
OpenShiftUnknonwSSHKeyTypeException +
OpenShiftException
+
+
+
+ +

+hasSSHKeyName

+
+public boolean hasSSHKeyName(String name)
+                      throws OpenShiftUnknonwSSHKeyTypeException,
+                             OpenShiftException
+
+
+
Specified by:
hasSSHKeyName in interface IUser
+
+
+ +
Throws: +
OpenShiftUnknonwSSHKeyTypeException +
OpenShiftException
+
+
+
+ +

+hasSSHPublicKey

+
+public boolean hasSSHPublicKey(String publicKey)
+                        throws OpenShiftUnknonwSSHKeyTypeException,
+                               OpenShiftException
+
+
+
Specified by:
hasSSHPublicKey in interface IUser
+
+
+ +
Throws: +
OpenShiftUnknonwSSHKeyTypeException +
OpenShiftException
+
+
+
+ +

+putSSHKey

+
+public IOpenShiftSSHKey putSSHKey(String name,
+                                  ISSHPublicKey key)
+                           throws OpenShiftException
+
+
Adds the given ssh key with the given name. Key names and public keys have to be unique. Throws + OpenShiftSSHKeyException if either the key name or the public key are already used. +

+

+
Specified by:
putSSHKey in interface IUser
+
+
+
Parameters:
name - the name to identify the key
key - the key to add +
Returns:
+
Throws: +
OpenShiftException
+
+
+
+ +

+removeSSHKey

+
+protected void removeSSHKey(SSHKeyResource key)
+
+
+
+
+
+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/cartridge/AbstractCartridgeQuery.html b/documentation/com/openshift/internal/client/cartridge/AbstractCartridgeQuery.html new file mode 100644 index 00000000..7550af76 --- /dev/null +++ b/documentation/com/openshift/internal/client/cartridge/AbstractCartridgeQuery.html @@ -0,0 +1,370 @@ + + + + + + + +AbstractCartridgeQuery (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client.cartridge +
+Class AbstractCartridgeQuery

+
+java.lang.Object
+  extended by com.openshift.internal.client.cartridge.AbstractCartridgeQuery
+
+
+
Direct Known Subclasses:
LatestVersionQuery, StringPropertyQuery
+
+
+
+
public abstract class AbstractCartridgeQuery
extends Object
+ + +

+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. +

+ +

+

+
Author:
+
Andre Dietisheim
+
See Also:
for cartridges that have already been added and + configured to an application.
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
AbstractCartridgeQuery() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ + + + + +
+<C extends ICartridge> +
+C
+
get(Collection<C> cartridges) + +
+           
+ + + + + +
+<C extends ICartridge> +
+Collection<C>
+
getAll(Collection<C> cartridges) + +
+           
+protected  IOpenShiftConnectiongetConnection(IApplication application) + +
+           
+protected  IOpenShiftConnectiongetConnection(IDomain domain) + +
+           
+abstract + + + + +
+<C extends ICartridge> +
+boolean
+
matches(C cartridge) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+AbstractCartridgeQuery

+
+public AbstractCartridgeQuery()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getAll

+
+public <C extends ICartridge> Collection<C> getAll(Collection<C> cartridges)
+
+
+
+
+
+
+ +

+get

+
+public <C extends ICartridge> C get(Collection<C> cartridges)
+
+
+
+
+
+
+ +

+matches

+
+public abstract <C extends ICartridge> boolean matches(C cartridge)
+
+
+
+
+
+
+ +

+getConnection

+
+protected IOpenShiftConnection getConnection(IApplication application)
+
+
+
+
+
+
+ +

+getConnection

+
+protected IOpenShiftConnection getConnection(IDomain domain)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/cartridge/BaseCartridge.html b/documentation/com/openshift/internal/client/cartridge/BaseCartridge.html new file mode 100644 index 00000000..5f6c94dd --- /dev/null +++ b/documentation/com/openshift/internal/client/cartridge/BaseCartridge.html @@ -0,0 +1,552 @@ + + + + + + + +BaseCartridge (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client.cartridge +
+Class BaseCartridge

+
+java.lang.Object
+  extended by com.openshift.internal.client.cartridge.BaseCartridge
+
+
+
All Implemented Interfaces:
ICartridge
+
+
+
Direct Known Subclasses:
EmbeddableCartridge, StandaloneCartridge
+
+
+
+
public abstract class BaseCartridge
extends Object
implements ICartridge
+ + +

+A (base) cartridge for an OpenShift application. +

+ +

+

+
Author:
+
Andre Dietisheim
+
See Also:
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
+ booleanequals(Object obj) + +
+           
+ StringgetDescription() + +
+          Returns a description for this cartridge
+ StringgetDisplayName() + +
+          Returns a (human readable, nice) display name for this cartridge
+ StringgetName() + +
+          Returns the name of this cartridge
+ URLgetUrl() + +
+          Returns the url at which the code for this cartridge may get downloaded.
+ inthashCode() + +
+           
+ booleanisDownloadable() + +
+          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).
+ StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+BaseCartridge

+
+protected BaseCartridge(String name)
+
+
+
+ +

+BaseCartridge

+
+protected BaseCartridge(URL url)
+
+
+
+ +

+BaseCartridge

+
+protected BaseCartridge(String name,
+                        URL url)
+
+
+
+ +

+BaseCartridge

+
+protected BaseCartridge(String name,
+                        String displayName,
+                        String description)
+
+
+
+ +

+BaseCartridge

+
+protected BaseCartridge(String name,
+                        URL url,
+                        String displayName,
+                        String description)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getName

+
+public String getName()
+
+
Description copied from interface: ICartridge
+
Returns the name of this cartridge +

+

+
Specified by:
getName in interface ICartridge
+
+
+ +
Returns:
the name
+
+
+
+ +

+getDisplayName

+
+public String getDisplayName()
+
+
Description copied from interface: ICartridge
+
Returns a (human readable, nice) display name for this cartridge +

+

+
Specified by:
getDisplayName in interface ICartridge
+
+
+ +
Returns:
the display name
+
+
+
+ +

+getDescription

+
+public String getDescription()
+
+
Description copied from interface: ICartridge
+
Returns a description for this cartridge +

+

+
Specified by:
getDescription in interface ICartridge
+
+
+ +
Returns:
the description
+
+
+
+ +

+isDownloadable

+
+public boolean isDownloadable()
+
+
Description copied from interface: ICartridge
+
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). + 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)
  • +
+

+

+
Specified by:
isDownloadable in interface ICartridge
+
+
+ +
Returns:
true if this is a downloadable cartridge
See Also:
ICartridge.getUrl()
+
+
+
+ +

+getUrl

+
+public URL getUrl()
+
+
Description copied from interface: ICartridge
+
Returns the url at which the code for this cartridge may get downloaded. + Returns null 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()
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class Object
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object obj)
+
+
+
Overrides:
equals in class Object
+
+
+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/cartridge/class-use/AbstractCartridgeQuery.html b/documentation/com/openshift/internal/client/cartridge/class-use/AbstractCartridgeQuery.html new file mode 100644 index 00000000..a59753cb --- /dev/null +++ b/documentation/com/openshift/internal/client/cartridge/class-use/AbstractCartridgeQuery.html @@ -0,0 +1,205 @@ + + + + + + + +Uses of Class com.openshift.internal.client.cartridge.AbstractCartridgeQuery (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.cartridge.AbstractCartridgeQuery

+
+ + + + + + + + + +
+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
+ classLatestEmbeddableCartridge + +
+          A selector that shall select the latest version of an embedded cartidge that's given by name.
+ classLatestStandaloneCartridge + +
+          A selector that shall select the latest version of a standalone cartidge that's given by name.
+ classLatestVersionQuery + +
+          A constraint that shall match available embeddable and standalone cartridges by name.
+ classStringPropertyQuery + +
+          A constraint that shall match available cartridges by url.
+  +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/cartridge/class-use/BaseCartridge.html b/documentation/com/openshift/internal/client/cartridge/class-use/BaseCartridge.html new file mode 100644 index 00000000..39d640a8 --- /dev/null +++ b/documentation/com/openshift/internal/client/cartridge/class-use/BaseCartridge.html @@ -0,0 +1,189 @@ + + + + + + + +Uses of Class com.openshift.internal.client.cartridge.BaseCartridge (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.cartridge.BaseCartridge

+
+ + + + + + + + + +
+Packages that use BaseCartridge
com.openshift.client.cartridge  
+  +

+ + + + + +
+Uses of BaseCartridge in com.openshift.client.cartridge
+  +

+ + + + + + + + + + + + + +
Subclasses of BaseCartridge in com.openshift.client.cartridge
+ classEmbeddableCartridge + +
+          An cartridge that may be embedded (added) into an application.
+ classStandaloneCartridge + +
+          A cartridge that is available on the openshift server.
+  +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/cartridge/package-frame.html b/documentation/com/openshift/internal/client/cartridge/package-frame.html new file mode 100644 index 00000000..b01706d9 --- /dev/null +++ b/documentation/com/openshift/internal/client/cartridge/package-frame.html @@ -0,0 +1,35 @@ + + + + + + + +com.openshift.internal.client.cartridge (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + +com.openshift.internal.client.cartridge + + + + +
+Classes  + +
+AbstractCartridgeQuery +
+BaseCartridge
+ + + + diff --git a/documentation/com/openshift/internal/client/cartridge/package-summary.html b/documentation/com/openshift/internal/client/cartridge/package-summary.html new file mode 100644 index 00000000..d874c272 --- /dev/null +++ b/documentation/com/openshift/internal/client/cartridge/package-summary.html @@ -0,0 +1,163 @@ + + + + + + + +com.openshift.internal.client.cartridge (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+

+Package com.openshift.internal.client.cartridge +

+ + + + + + + + + + + + + +
+Class Summary
AbstractCartridgeQueryA base class for a constraint that shall match available embeddable + cartridges (on the platform).
BaseCartridgeA (base) cartridge for an OpenShift application.
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/cartridge/package-tree.html b/documentation/com/openshift/internal/client/cartridge/package-tree.html new file mode 100644 index 00000000..b8e00d65 --- /dev/null +++ b/documentation/com/openshift/internal/client/cartridge/package-tree.html @@ -0,0 +1,155 @@ + + + + + + + +com.openshift.internal.client.cartridge Class Hierarchy (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Hierarchy For Package com.openshift.internal.client.cartridge +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/cartridge/package-use.html b/documentation/com/openshift/internal/client/cartridge/package-use.html new file mode 100644 index 00000000..31f173fa --- /dev/null +++ b/documentation/com/openshift/internal/client/cartridge/package-use.html @@ -0,0 +1,191 @@ + + + + + + + +Uses of Package com.openshift.internal.client.cartridge (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Package
com.openshift.internal.client.cartridge

+
+ + + + + + + + + + + + + +
+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 +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/class-use/APIResource.html b/documentation/com/openshift/internal/client/class-use/APIResource.html new file mode 100644 index 00000000..4c3880f9 --- /dev/null +++ b/documentation/com/openshift/internal/client/class-use/APIResource.html @@ -0,0 +1,198 @@ + + + + + + + +Uses of Class com.openshift.internal.client.APIResource (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.APIResource

+
+ + + + + + + + + +
+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 +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/class-use/AbstractOpenShiftConnectionFactory.html b/documentation/com/openshift/internal/client/class-use/AbstractOpenShiftConnectionFactory.html new file mode 100644 index 00000000..9314d700 --- /dev/null +++ b/documentation/com/openshift/internal/client/class-use/AbstractOpenShiftConnectionFactory.html @@ -0,0 +1,181 @@ + + + + + + + +Uses of Class com.openshift.internal.client.AbstractOpenShiftConnectionFactory (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.AbstractOpenShiftConnectionFactory

+
+ + + + + + + + + +
+Packages that use AbstractOpenShiftConnectionFactory
com.openshift.client  
+  +

+ + + + + +
+Uses of AbstractOpenShiftConnectionFactory in com.openshift.client
+  +

+ + + + + + + + + +
Subclasses of AbstractOpenShiftConnectionFactory in com.openshift.client
+ classOpenShiftConnectionFactory + +
+          Connection Factory, used to establish a connection and retrieve a user.
+  +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/class-use/AbstractOpenShiftResource.Parameters.html b/documentation/com/openshift/internal/client/class-use/AbstractOpenShiftResource.Parameters.html new file mode 100644 index 00000000..f5282f24 --- /dev/null +++ b/documentation/com/openshift/internal/client/class-use/AbstractOpenShiftResource.Parameters.html @@ -0,0 +1,239 @@ + + + + + + + +Uses of Class com.openshift.internal.client.AbstractOpenShiftResource.Parameters (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.AbstractOpenShiftResource.Parameters

+
+ + + + + + + + + +
+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.ParametersAbstractOpenShiftResource.Parameters.add(Parameter parameter) + +
+           
+protected  AbstractOpenShiftResource.ParametersAbstractOpenShiftResource.Parameters.add(String name, + String value) + +
+           
+protected  AbstractOpenShiftResource.ParametersAbstractOpenShiftResource.Parameters.addCartridge(IEmbeddableCartridge embeddable) + +
+           
+protected  AbstractOpenShiftResource.ParametersAbstractOpenShiftResource.Parameters.addCartridges(IStandaloneCartridge standalone, + IEmbeddableCartridge[] embeddables) + +
+           
+protected  AbstractOpenShiftResource.ParametersAbstractOpenShiftResource.Parameters.addEnvironmentVariables(Map<String,String> environmentVariables) + +
+           
+protected  AbstractOpenShiftResource.ParametersAbstractOpenShiftResource.Parameters.gearProfile(IGearProfile gearProfile) + +
+           
+protected  AbstractOpenShiftResource.ParametersAbstractOpenShiftResource.Parameters.include(String includedResource) + +
+           
+protected  AbstractOpenShiftResource.ParametersAbstractOpenShiftResource.Parameters.scale(ApplicationScale scale) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/class-use/AbstractOpenShiftResource.ServiceRequest.html b/documentation/com/openshift/internal/client/class-use/AbstractOpenShiftResource.ServiceRequest.html new file mode 100644 index 00000000..da7f9300 --- /dev/null +++ b/documentation/com/openshift/internal/client/class-use/AbstractOpenShiftResource.ServiceRequest.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.openshift.internal.client.AbstractOpenShiftResource.ServiceRequest (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.AbstractOpenShiftResource.ServiceRequest

+
+No usage of com.openshift.internal.client.AbstractOpenShiftResource.ServiceRequest +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/class-use/AbstractOpenShiftResource.html b/documentation/com/openshift/internal/client/class-use/AbstractOpenShiftResource.html new file mode 100644 index 00000000..37459c59 --- /dev/null +++ b/documentation/com/openshift/internal/client/class-use/AbstractOpenShiftResource.html @@ -0,0 +1,238 @@ + + + + + + + +Uses of Class com.openshift.internal.client.AbstractOpenShiftResource (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.AbstractOpenShiftResource

+
+ + + + + + + + + +
+Packages that use AbstractOpenShiftResource
com.openshift.internal.client  
+  +

+ + + + + +
+Uses of AbstractOpenShiftResource in com.openshift.internal.client
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Subclasses of AbstractOpenShiftResource in com.openshift.internal.client
+ classAPIResource + +
+           
+ classApplicationResource + +
+          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.
+ classDomainResource + +
+           
+ classEmbeddedCartridgeResource + +
+          A cartridge that is embedded into an application.
+ classEnvironmentVariableResource + +
+           
+ classGearGroupResource + +
+           
+ classSSHKeyResource + +
+           
+ classUserResource + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/class-use/ApplicationResource.SshStreams.html b/documentation/com/openshift/internal/client/class-use/ApplicationResource.SshStreams.html new file mode 100644 index 00000000..3e403184 --- /dev/null +++ b/documentation/com/openshift/internal/client/class-use/ApplicationResource.SshStreams.html @@ -0,0 +1,207 @@ + + + + + + + +Uses of Class com.openshift.internal.client.ApplicationResource.SshStreams (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.ApplicationResource.SshStreams

+
+ + + + + + + + + +
+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.SshStreamsApplicationResource.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 +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/class-use/ApplicationResource.html b/documentation/com/openshift/internal/client/class-use/ApplicationResource.html new file mode 100644 index 00000000..ecd41b83 --- /dev/null +++ b/documentation/com/openshift/internal/client/class-use/ApplicationResource.html @@ -0,0 +1,216 @@ + + + + + + + +Uses of Class com.openshift.internal.client.ApplicationResource (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.ApplicationResource

+
+ + + + + + + + + +
+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 +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/class-use/CartridgeType.html b/documentation/com/openshift/internal/client/class-use/CartridgeType.html new file mode 100644 index 00000000..078872e6 --- /dev/null +++ b/documentation/com/openshift/internal/client/class-use/CartridgeType.html @@ -0,0 +1,251 @@ + + + + + + + +Uses of Class com.openshift.internal.client.CartridgeType (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.CartridgeType

+
+ + + + + + + + + + + + + +
+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  CartridgeTypeEmbeddedCartridgeResource.getType() + +
+           
+static CartridgeTypeCartridgeType.safeValueOf(String type) + +
+           
+static CartridgeTypeCartridgeType.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
+ CartridgeTypeCartridgeResourceDTO.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 +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/class-use/DomainResource.html b/documentation/com/openshift/internal/client/class-use/DomainResource.html new file mode 100644 index 00000000..b8718058 --- /dev/null +++ b/documentation/com/openshift/internal/client/class-use/DomainResource.html @@ -0,0 +1,199 @@ + + + + + + + +Uses of Class com.openshift.internal.client.DomainResource (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.DomainResource

+
+ + + + + + + + + +
+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 +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/class-use/EmbeddedCartridgeResource.html b/documentation/com/openshift/internal/client/class-use/EmbeddedCartridgeResource.html new file mode 100644 index 00000000..b8ba2a4a --- /dev/null +++ b/documentation/com/openshift/internal/client/class-use/EmbeddedCartridgeResource.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.openshift.internal.client.EmbeddedCartridgeResource (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.EmbeddedCartridgeResource

+
+No usage of com.openshift.internal.client.EmbeddedCartridgeResource +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/class-use/EnvironmentVariableResource.html b/documentation/com/openshift/internal/client/class-use/EnvironmentVariableResource.html new file mode 100644 index 00000000..2ae0471a --- /dev/null +++ b/documentation/com/openshift/internal/client/class-use/EnvironmentVariableResource.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.openshift.internal.client.EnvironmentVariableResource (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.EnvironmentVariableResource

+
+No usage of com.openshift.internal.client.EnvironmentVariableResource +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/class-use/Field.html b/documentation/com/openshift/internal/client/class-use/Field.html new file mode 100644 index 00000000..1bffd4b6 --- /dev/null +++ b/documentation/com/openshift/internal/client/class-use/Field.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.openshift.internal.client.Field (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.Field

+
+No usage of com.openshift.internal.client.Field +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/class-use/Gear.html b/documentation/com/openshift/internal/client/class-use/Gear.html new file mode 100644 index 00000000..5ea8f77d --- /dev/null +++ b/documentation/com/openshift/internal/client/class-use/Gear.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.openshift.internal.client.Gear (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.Gear

+
+No usage of com.openshift.internal.client.Gear +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/class-use/GearGroupResource.html b/documentation/com/openshift/internal/client/class-use/GearGroupResource.html new file mode 100644 index 00000000..f5f97ed5 --- /dev/null +++ b/documentation/com/openshift/internal/client/class-use/GearGroupResource.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.openshift.internal.client.GearGroupResource (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.GearGroupResource

+
+No usage of com.openshift.internal.client.GearGroupResource +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/class-use/GearProfile.html b/documentation/com/openshift/internal/client/class-use/GearProfile.html new file mode 100644 index 00000000..1b826da3 --- /dev/null +++ b/documentation/com/openshift/internal/client/class-use/GearProfile.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.openshift.internal.client.GearProfile (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.GearProfile

+
+No usage of com.openshift.internal.client.GearProfile +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/class-use/IRestService.html b/documentation/com/openshift/internal/client/class-use/IRestService.html new file mode 100644 index 00000000..f0a7f0bf --- /dev/null +++ b/documentation/com/openshift/internal/client/class-use/IRestService.html @@ -0,0 +1,249 @@ + + + + + + + +Uses of Interface com.openshift.internal.client.IRestService (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Interface
com.openshift.internal.client.IRestService

+
+ + + + + + + + + +
+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
+ classRestService + +
+           
+  +

+ + + + + + + + + +
Methods in com.openshift.internal.client with parameters of type IRestService
+protected  IOpenShiftConnectionAbstractOpenShiftConnectionFactory.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 +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/class-use/RestService.html b/documentation/com/openshift/internal/client/class-use/RestService.html new file mode 100644 index 00000000..c1d1e803 --- /dev/null +++ b/documentation/com/openshift/internal/client/class-use/RestService.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.openshift.internal.client.RestService (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.RestService

+
+No usage of com.openshift.internal.client.RestService +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/class-use/RestServiceProperties.html b/documentation/com/openshift/internal/client/class-use/RestServiceProperties.html new file mode 100644 index 00000000..877dbedd --- /dev/null +++ b/documentation/com/openshift/internal/client/class-use/RestServiceProperties.html @@ -0,0 +1,198 @@ + + + + + + + +Uses of Class com.openshift.internal.client.RestServiceProperties (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.RestServiceProperties

+
+ + + + + + + + + +
+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 +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/class-use/SSHKeyResource.html b/documentation/com/openshift/internal/client/class-use/SSHKeyResource.html new file mode 100644 index 00000000..dd3a89bd --- /dev/null +++ b/documentation/com/openshift/internal/client/class-use/SSHKeyResource.html @@ -0,0 +1,181 @@ + + + + + + + +Uses of Class com.openshift.internal.client.SSHKeyResource (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.SSHKeyResource

+
+ + + + + + + + + +
+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  voidUserResource.removeSSHKey(SSHKeyResource key) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/class-use/Severity.html b/documentation/com/openshift/internal/client/class-use/Severity.html new file mode 100644 index 00000000..edbca722 --- /dev/null +++ b/documentation/com/openshift/internal/client/class-use/Severity.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.openshift.internal.client.Severity (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.Severity

+
+No usage of com.openshift.internal.client.Severity +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/class-use/UserResource.html b/documentation/com/openshift/internal/client/class-use/UserResource.html new file mode 100644 index 00000000..ab360578 --- /dev/null +++ b/documentation/com/openshift/internal/client/class-use/UserResource.html @@ -0,0 +1,180 @@ + + + + + + + +Uses of Class com.openshift.internal.client.UserResource (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.UserResource

+
+ + + + + + + + + +
+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 +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/httpclient/BadRequestException.html b/documentation/com/openshift/internal/client/httpclient/BadRequestException.html new file mode 100644 index 00000000..8b4764fd --- /dev/null +++ b/documentation/com/openshift/internal/client/httpclient/BadRequestException.html @@ -0,0 +1,261 @@ + + + + + + + +BadRequestException (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client.httpclient +
+Class BadRequestException

+
+java.lang.Object
+  extended by java.lang.Throwable
+      extended by java.lang.Exception
+          extended by java.lang.RuntimeException
+              extended by com.openshift.internal.client.httpclient.HttpClientException
+                  extended by com.openshift.internal.client.httpclient.BadRequestException
+
+
+
All Implemented Interfaces:
Serializable
+
+
+
+
public class BadRequestException
extends HttpClientException
+ + +

+

+
Author:
+
André Dietisheim
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + + + + +
+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
+ +

+BadRequestException

+
+public BadRequestException(String message,
+                           Throwable cause)
+
+
+
+ +

+BadRequestException

+
+public BadRequestException(Throwable cause)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/httpclient/EncodingException.html b/documentation/com/openshift/internal/client/httpclient/EncodingException.html new file mode 100644 index 00000000..345e6972 --- /dev/null +++ b/documentation/com/openshift/internal/client/httpclient/EncodingException.html @@ -0,0 +1,247 @@ + + + + + + + +EncodingException (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client.httpclient +
+Class EncodingException

+
+java.lang.Object
+  extended by java.lang.Throwable
+      extended by java.lang.Exception
+          extended by java.lang.RuntimeException
+              extended by com.openshift.internal.client.httpclient.HttpClientException
+                  extended by com.openshift.internal.client.httpclient.EncodingException
+
+
+
All Implemented Interfaces:
Serializable
+
+
+
+
public class EncodingException
extends HttpClientException
+ + +

+

+
Author:
+
Ioannis Canellos
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + +
+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
+ +

+EncodingException

+
+public EncodingException(String message,
+                         Throwable t)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/httpclient/HttpClientException.html b/documentation/com/openshift/internal/client/httpclient/HttpClientException.html new file mode 100644 index 00000000..94d59d5c --- /dev/null +++ b/documentation/com/openshift/internal/client/httpclient/HttpClientException.html @@ -0,0 +1,277 @@ + + + + + + + +HttpClientException (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client.httpclient +
+Class HttpClientException

+
+java.lang.Object
+  extended by java.lang.Throwable
+      extended by java.lang.Exception
+          extended by java.lang.RuntimeException
+              extended by com.openshift.internal.client.httpclient.HttpClientException
+
+
+
All Implemented Interfaces:
Serializable
+
+
+
Direct Known Subclasses:
BadRequestException, EncodingException, InternalServerErrorException, NotFoundException, UnauthorizedException
+
+
+
+
public class HttpClientException
extends RuntimeException
+ + +

+

+
Author:
+
André Dietisheim
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + + + + + + + +
+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
+ +

+HttpClientException

+
+public HttpClientException(String message,
+                           Throwable cause)
+
+
+
+ +

+HttpClientException

+
+public HttpClientException(String message)
+
+
+
+ +

+HttpClientException

+
+public HttpClientException(Throwable cause)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/httpclient/InternalServerErrorException.html b/documentation/com/openshift/internal/client/httpclient/InternalServerErrorException.html new file mode 100644 index 00000000..d850bace --- /dev/null +++ b/documentation/com/openshift/internal/client/httpclient/InternalServerErrorException.html @@ -0,0 +1,261 @@ + + + + + + + +InternalServerErrorException (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client.httpclient +
+Class InternalServerErrorException

+
+java.lang.Object
+  extended by java.lang.Throwable
+      extended by java.lang.Exception
+          extended by java.lang.RuntimeException
+              extended by com.openshift.internal.client.httpclient.HttpClientException
+                  extended by com.openshift.internal.client.httpclient.InternalServerErrorException
+
+
+
All Implemented Interfaces:
Serializable
+
+
+
+
public class InternalServerErrorException
extends HttpClientException
+ + +

+

+
Author:
+
André Dietisheim
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + + + + +
+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
+ +

+InternalServerErrorException

+
+public InternalServerErrorException(String message,
+                                    Throwable cause)
+
+
+
+ +

+InternalServerErrorException

+
+public InternalServerErrorException(String message)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/httpclient/NotFoundException.html b/documentation/com/openshift/internal/client/httpclient/NotFoundException.html new file mode 100644 index 00000000..ede2e9d0 --- /dev/null +++ b/documentation/com/openshift/internal/client/httpclient/NotFoundException.html @@ -0,0 +1,261 @@ + + + + + + + +NotFoundException (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client.httpclient +
+Class NotFoundException

+
+java.lang.Object
+  extended by java.lang.Throwable
+      extended by java.lang.Exception
+          extended by java.lang.RuntimeException
+              extended by com.openshift.internal.client.httpclient.HttpClientException
+                  extended by com.openshift.internal.client.httpclient.NotFoundException
+
+
+
All Implemented Interfaces:
Serializable
+
+
+
+
public class NotFoundException
extends HttpClientException
+ + +

+

+
Author:
+
André Dietisheim
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + + + + +
+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
+ +

+NotFoundException

+
+public NotFoundException(String message,
+                         Throwable cause)
+
+
+
+ +

+NotFoundException

+
+public NotFoundException(String message)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/httpclient/UnauthorizedException.html b/documentation/com/openshift/internal/client/httpclient/UnauthorizedException.html new file mode 100644 index 00000000..5b98af5b --- /dev/null +++ b/documentation/com/openshift/internal/client/httpclient/UnauthorizedException.html @@ -0,0 +1,261 @@ + + + + + + + +UnauthorizedException (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client.httpclient +
+Class UnauthorizedException

+
+java.lang.Object
+  extended by java.lang.Throwable
+      extended by java.lang.Exception
+          extended by java.lang.RuntimeException
+              extended by com.openshift.internal.client.httpclient.HttpClientException
+                  extended by com.openshift.internal.client.httpclient.UnauthorizedException
+
+
+
All Implemented Interfaces:
Serializable
+
+
+
+
public class UnauthorizedException
extends HttpClientException
+ + +

+

+
Author:
+
André Dietisheim
+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + + + + +
+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
+ +

+UnauthorizedException

+
+public UnauthorizedException(String message,
+                             Throwable cause)
+
+
+
+ +

+UnauthorizedException

+
+public UnauthorizedException(Throwable cause)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/httpclient/UrlConnectionHttpClient.html b/documentation/com/openshift/internal/client/httpclient/UrlConnectionHttpClient.html new file mode 100644 index 00000000..4e8100c3 --- /dev/null +++ b/documentation/com/openshift/internal/client/httpclient/UrlConnectionHttpClient.html @@ -0,0 +1,883 @@ + + + + + + + +UrlConnectionHttpClient (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client.httpclient +
+Class UrlConnectionHttpClient

+
+java.lang.Object
+  extended by com.openshift.internal.client.httpclient.UrlConnectionHttpClient
+
+
+
All Implemented Interfaces:
IHttpClient
+
+
+
+
public class UrlConnectionHttpClient
extends Object
implements IHttpClient
+ + +

+

+
Author:
+
Andre Dietisheim, Nicolas Spano
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+protected  StringacceptedMediaType + +
+           
+protected  StringacceptedVersion + +
+           
+protected  StringauthIV + +
+           
+protected  StringauthKey + +
+           
+protected  Stringpassword + +
+           
+protected  booleansslChecks + +
+           
+protected  StringuserAgent + +
+           
+protected  Stringusername + +
+           
+ + + + + + + +
Fields inherited from interface com.openshift.client.IHttpClient
AMPERSAND, AUTHORIZATION_BASIC, COLON, COMMA, DEFAULT_CONNECT_TIMEOUT, DEFAULT_READ_TIMEOUT, EQUALS, HTTP, MEDIATYPE_APPLICATION_FORMURLENCODED, MEDIATYPE_APPLICATION_JSON, MEDIATYPE_APPLICATION_XML, NO_TIMEOUT, PROPERTY_ACCEPT, PROPERTY_AUTHIV, PROPERTY_AUTHKEY, PROPERTY_AUTHORIZATION, PROPERTY_CONTENT_TYPE, PROPERTY_USER_AGENT, QUESTION_MARK, SEMICOLON, SLASH, SPACE, STATUS_BAD_REQUEST, STATUS_INTERNAL_SERVER_ERROR, STATUS_NOT_FOUND, STATUS_OK, STATUS_UNAUTHORIZED, SYSPROP_DEFAULT_CONNECT_TIMEOUT, SYSPROP_DEFAULT_READ_TIMEOUT, SYSPROP_OPENSHIFT_CONNECT_TIMEOUT, SYSPROP_OPENSHIFT_READ_TIMEOUT, VERSION
+  + + + + + + + + + + + + + +
+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  HttpURLConnectioncreateConnection(URL url, + String username, + String password, + String authKey, + String authIV, + String userAgent, + String acceptedVersion, + String acceptedMediaType, + int timeout) + +
+           
+protected  StringcreateErrorMessage(IOException ioe, + HttpURLConnection connection) + +
+           
+ Stringdelete(URL url, + IMediaType mediaType, + int timeout, + Parameter... parameters) + +
+           
+ Stringdelete(URL url, + int timeout) + +
+           
+ Stringget(URL url, + int timeout) + +
+           
+ Stringhead(URL url, + int timeout) + +
+           
+ Stringpatch(URL url, + IMediaType mediaType, + int timeout, + Parameter... parameters) + +
+           
+ Stringpost(URL url, + IMediaType mediaType, + int timeout, + Parameter... parameters) + +
+           
+ Stringput(URL url, + IMediaType mediaType, + int timeout, + Parameter... parameters) + +
+           
+protected  Stringrequest(HttpMethod httpMethod, + URL url, + IMediaType requestMediaType, + int timeout, + Parameter... parameters) + +
+           
+protected  Stringrequest(HttpMethod httpMethod, + URL url, + IMediaType requestMediaType, + int timeout, + ParameterValueMap parameters) + +
+           
+ voidsetAcceptedMediaType(String acceptedMediaType) + +
+           
+ voidsetAcceptVersion(String version) + +
+           
+ voidsetUserAgent(String userAgent) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+userAgent

+
+protected String userAgent
+
+
+
+
+
+ +

+sslChecks

+
+protected boolean sslChecks
+
+
+
+
+
+ +

+username

+
+protected String username
+
+
+
+
+
+ +

+password

+
+protected String password
+
+
+
+
+
+ +

+authKey

+
+protected String authKey
+
+
+
+
+
+ +

+authIV

+
+protected String authIV
+
+
+
+
+
+ +

+acceptedMediaType

+
+protected String acceptedMediaType
+
+
+
+
+
+ +

+acceptedVersion

+
+protected String acceptedVersion
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+UrlConnectionHttpClient

+
+public UrlConnectionHttpClient(String username,
+                               String password,
+                               String userAgent,
+                               boolean sslChecks,
+                               String acceptedMediaType,
+                               String version)
+
+
+
+ +

+UrlConnectionHttpClient

+
+public UrlConnectionHttpClient(String username,
+                               String password,
+                               String userAgent,
+                               boolean sslChecks,
+                               String acceptedMediaType,
+                               String version,
+                               String authKey,
+                               String authIV)
+
+
+ + + + + + + + +
+Method Detail
+ +

+get

+
+public String get(URL url,
+                  int timeout)
+           throws HttpClientException,
+                  SocketTimeoutException
+
+
+
Specified by:
get in interface IHttpClient
+
+
+ +
Throws: +
HttpClientException +
SocketTimeoutException
+
+
+
+ +

+head

+
+public String head(URL url,
+                   int timeout)
+            throws HttpClientException,
+                   SocketTimeoutException
+
+
+
Specified by:
head in interface IHttpClient
+
+
+ +
Throws: +
HttpClientException +
SocketTimeoutException
+
+
+
+ +

+put

+
+public String put(URL url,
+                  IMediaType mediaType,
+                  int timeout,
+                  Parameter... parameters)
+           throws HttpClientException,
+                  SocketTimeoutException,
+                  EncodingException
+
+
+
Specified by:
put in interface IHttpClient
+
+
+ +
Throws: +
HttpClientException +
SocketTimeoutException +
EncodingException
+
+
+
+ +

+post

+
+public String post(URL url,
+                   IMediaType mediaType,
+                   int timeout,
+                   Parameter... parameters)
+            throws HttpClientException,
+                   SocketTimeoutException,
+                   EncodingException
+
+
+
Specified by:
post in interface IHttpClient
+
+
+ +
Throws: +
HttpClientException +
SocketTimeoutException +
EncodingException
+
+
+
+ +

+patch

+
+public String patch(URL url,
+                    IMediaType mediaType,
+                    int timeout,
+                    Parameter... parameters)
+             throws HttpClientException,
+                    SocketTimeoutException,
+                    EncodingException
+
+
+
Specified by:
patch in interface IHttpClient
+
+
+ +
Throws: +
HttpClientException +
SocketTimeoutException +
EncodingException
+
+
+
+ +

+delete

+
+public String delete(URL url,
+                     IMediaType mediaType,
+                     int timeout,
+                     Parameter... parameters)
+              throws HttpClientException,
+                     SocketTimeoutException,
+                     EncodingException
+
+
+
Specified by:
delete in interface IHttpClient
+
+
+ +
Throws: +
HttpClientException +
SocketTimeoutException +
EncodingException
+
+
+
+ +

+delete

+
+public String delete(URL url,
+                     int timeout)
+              throws HttpClientException,
+                     SocketTimeoutException,
+                     EncodingException
+
+
+
Specified by:
delete in interface IHttpClient
+
+
+ +
Throws: +
HttpClientException +
SocketTimeoutException +
EncodingException
+
+
+
+ +

+request

+
+protected String request(HttpMethod httpMethod,
+                         URL url,
+                         IMediaType requestMediaType,
+                         int timeout,
+                         Parameter... parameters)
+                  throws SocketTimeoutException,
+                         HttpClientException
+
+
+
+
+
+ +
Throws: +
SocketTimeoutException +
HttpClientException
+
+
+
+ +

+request

+
+protected String request(HttpMethod httpMethod,
+                         URL url,
+                         IMediaType requestMediaType,
+                         int timeout,
+                         ParameterValueMap parameters)
+                  throws SocketTimeoutException,
+                         HttpClientException
+
+
+
+
+
+ +
Throws: +
SocketTimeoutException +
HttpClientException
+
+
+
+ +

+createErrorMessage

+
+protected String createErrorMessage(IOException ioe,
+                                    HttpURLConnection connection)
+                             throws IOException
+
+
+
+
+
+ +
Throws: +
IOException
+
+
+
+ +

+createConnection

+
+protected HttpURLConnection createConnection(URL url,
+                                             String username,
+                                             String password,
+                                             String authKey,
+                                             String authIV,
+                                             String userAgent,
+                                             String acceptedVersion,
+                                             String acceptedMediaType,
+                                             int timeout)
+                                      throws IOException
+
+
+
+
+
+ +
Throws: +
IOException
+
+
+
+ +

+setUserAgent

+
+public void setUserAgent(String userAgent)
+
+
+
Specified by:
setUserAgent in interface IHttpClient
+
+
+
+
+
+
+ +

+setAcceptVersion

+
+public void setAcceptVersion(String version)
+
+
+
Specified by:
setAcceptVersion in interface IHttpClient
+
+
+
+
+
+
+ +

+setAcceptedMediaType

+
+public void setAcceptedMediaType(String acceptedMediaType)
+
+
+
Specified by:
setAcceptedMediaType in interface IHttpClient
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/httpclient/UrlConnectionHttpClientBuilder.html b/documentation/com/openshift/internal/client/httpclient/UrlConnectionHttpClientBuilder.html new file mode 100644 index 00000000..b96670f8 --- /dev/null +++ b/documentation/com/openshift/internal/client/httpclient/UrlConnectionHttpClientBuilder.html @@ -0,0 +1,379 @@ + + + + + + + +UrlConnectionHttpClientBuilder (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client.httpclient +
+Class UrlConnectionHttpClientBuilder

+
+java.lang.Object
+  extended by com.openshift.internal.client.httpclient.UrlConnectionHttpClientBuilder
+
+
+
+
public class UrlConnectionHttpClientBuilder
extends Object
+ + +

+

+
Author:
+
André Dietisheim
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
UrlConnectionHttpClientBuilder() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ IHttpClientclient() + +
+           
+ UrlConnectionHttpClientBuildersetAcceptMediaType(String mediaType) + +
+           
+ UrlConnectionHttpClientBuildersetCredentials(String username, + String password) + +
+           
+ UrlConnectionHttpClientBuildersetCredentials(String username, + String password, + String authKey, + String authIV) + +
+           
+ UrlConnectionHttpClientBuildersetSSLChecks(boolean check) + +
+           
+ UrlConnectionHttpClientBuildersetUserAgent(String userAgent) + +
+           
+ UrlConnectionHttpClientBuildersetVersion(String version) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+UrlConnectionHttpClientBuilder

+
+public UrlConnectionHttpClientBuilder()
+
+
+ + + + + + + + +
+Method Detail
+ +

+setUserAgent

+
+public UrlConnectionHttpClientBuilder setUserAgent(String userAgent)
+
+
+
+
+
+
+ +

+setSSLChecks

+
+public UrlConnectionHttpClientBuilder setSSLChecks(boolean check)
+
+
+
+
+
+
+ +

+setCredentials

+
+public UrlConnectionHttpClientBuilder setCredentials(String username,
+                                                     String password)
+
+
+
+
+
+
+ +

+setCredentials

+
+public UrlConnectionHttpClientBuilder setCredentials(String username,
+                                                     String password,
+                                                     String authKey,
+                                                     String authIV)
+
+
+
+
+
+
+ +

+setAcceptMediaType

+
+public UrlConnectionHttpClientBuilder setAcceptMediaType(String mediaType)
+
+
+
+
+
+
+ +

+setVersion

+
+public UrlConnectionHttpClientBuilder setVersion(String version)
+
+
+
+
+
+
+ +

+client

+
+public IHttpClient client()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/httpclient/class-use/BadRequestException.html b/documentation/com/openshift/internal/client/httpclient/class-use/BadRequestException.html new file mode 100644 index 00000000..ddc1c290 --- /dev/null +++ b/documentation/com/openshift/internal/client/httpclient/class-use/BadRequestException.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.openshift.internal.client.httpclient.BadRequestException (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.httpclient.BadRequestException

+
+No usage of com.openshift.internal.client.httpclient.BadRequestException +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/httpclient/class-use/EncodingException.html b/documentation/com/openshift/internal/client/httpclient/class-use/EncodingException.html new file mode 100644 index 00000000..877f53fe --- /dev/null +++ b/documentation/com/openshift/internal/client/httpclient/class-use/EncodingException.html @@ -0,0 +1,348 @@ + + + + + + + +Uses of Class com.openshift.internal.client.httpclient.EncodingException (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.httpclient.EncodingException

+
+ + + + + + + + + + + + + + + + + +
+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
+ StringIHttpClient.delete(URL url, + IMediaType mediaType, + int timeout, + Parameter... parameters) + +
+           
+ StringIHttpClient.delete(URL url, + int timeout) + +
+           
+ StringIHttpClient.patch(URL url, + IMediaType mediaType, + int timeout, + Parameter... parameters) + +
+           
+ StringIHttpClient.post(URL url, + IMediaType mediaType, + int timeout, + Parameter... parameters) + +
+           
+ StringIHttpClient.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
+ StringUrlConnectionHttpClient.delete(URL url, + IMediaType mediaType, + int timeout, + Parameter... parameters) + +
+           
+ StringUrlConnectionHttpClient.delete(URL url, + int timeout) + +
+           
+ StringUrlConnectionHttpClient.patch(URL url, + IMediaType mediaType, + int timeout, + Parameter... parameters) + +
+           
+ StringUrlConnectionHttpClient.post(URL url, + IMediaType mediaType, + int timeout, + Parameter... parameters) + +
+           
+ StringUrlConnectionHttpClient.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
+ voidJsonMediaType.writeTo(ParameterValueMap parameterMap, + OutputStream out) + +
+           
+ voidIMediaType.writeTo(ParameterValueMap parameterMap, + OutputStream out) + +
+           
+ voidFormUrlEncodedMediaType.writeTo(ParameterValueMap parameterMap, + OutputStream out) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/httpclient/class-use/HttpClientException.html b/documentation/com/openshift/internal/client/httpclient/class-use/HttpClientException.html new file mode 100644 index 00000000..e62ea10a --- /dev/null +++ b/documentation/com/openshift/internal/client/httpclient/class-use/HttpClientException.html @@ -0,0 +1,432 @@ + + + + + + + +Uses of Class com.openshift.internal.client.httpclient.HttpClientException (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.httpclient.HttpClientException

+
+ + + + + + + + + + + + + +
+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
+ StringIHttpClient.delete(URL url, + IMediaType mediaType, + int timeout, + Parameter... parameters) + +
+           
+ StringIHttpClient.delete(URL url, + int timeout) + +
+           
+ StringIHttpClient.get(URL url, + int timeout) + +
+           
+ StringIHttpClient.head(URL url, + int timeout) + +
+           
+ StringIHttpClient.patch(URL url, + IMediaType mediaType, + int timeout, + Parameter... parameters) + +
+           
+ StringIHttpClient.post(URL url, + IMediaType mediaType, + int timeout, + Parameter... parameters) + +
+           
+ StringIHttpClient.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
+ classBadRequestException + +
+           
+ classEncodingException + +
+           
+ classInternalServerErrorException + +
+           
+ classNotFoundException + +
+           
+ classUnauthorizedException + +
+           
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in com.openshift.internal.client.httpclient that throw HttpClientException
+ StringUrlConnectionHttpClient.delete(URL url, + IMediaType mediaType, + int timeout, + Parameter... parameters) + +
+           
+ StringUrlConnectionHttpClient.delete(URL url, + int timeout) + +
+           
+ StringUrlConnectionHttpClient.get(URL url, + int timeout) + +
+           
+ StringUrlConnectionHttpClient.head(URL url, + int timeout) + +
+           
+ StringUrlConnectionHttpClient.patch(URL url, + IMediaType mediaType, + int timeout, + Parameter... parameters) + +
+           
+ StringUrlConnectionHttpClient.post(URL url, + IMediaType mediaType, + int timeout, + Parameter... parameters) + +
+           
+ StringUrlConnectionHttpClient.put(URL url, + IMediaType mediaType, + int timeout, + Parameter... parameters) + +
+           
+protected  StringUrlConnectionHttpClient.request(HttpMethod httpMethod, + URL url, + IMediaType requestMediaType, + int timeout, + Parameter... parameters) + +
+           
+protected  StringUrlConnectionHttpClient.request(HttpMethod httpMethod, + URL url, + IMediaType requestMediaType, + int timeout, + ParameterValueMap parameters) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/httpclient/class-use/InternalServerErrorException.html b/documentation/com/openshift/internal/client/httpclient/class-use/InternalServerErrorException.html new file mode 100644 index 00000000..e9dba25e --- /dev/null +++ b/documentation/com/openshift/internal/client/httpclient/class-use/InternalServerErrorException.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.openshift.internal.client.httpclient.InternalServerErrorException (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.httpclient.InternalServerErrorException

+
+No usage of com.openshift.internal.client.httpclient.InternalServerErrorException +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/httpclient/class-use/NotFoundException.html b/documentation/com/openshift/internal/client/httpclient/class-use/NotFoundException.html new file mode 100644 index 00000000..febc938d --- /dev/null +++ b/documentation/com/openshift/internal/client/httpclient/class-use/NotFoundException.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.openshift.internal.client.httpclient.NotFoundException (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.httpclient.NotFoundException

+
+No usage of com.openshift.internal.client.httpclient.NotFoundException +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/httpclient/class-use/UnauthorizedException.html b/documentation/com/openshift/internal/client/httpclient/class-use/UnauthorizedException.html new file mode 100644 index 00000000..d079d4c7 --- /dev/null +++ b/documentation/com/openshift/internal/client/httpclient/class-use/UnauthorizedException.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.openshift.internal.client.httpclient.UnauthorizedException (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.httpclient.UnauthorizedException

+
+No usage of com.openshift.internal.client.httpclient.UnauthorizedException +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/httpclient/class-use/UrlConnectionHttpClient.html b/documentation/com/openshift/internal/client/httpclient/class-use/UrlConnectionHttpClient.html new file mode 100644 index 00000000..ea390a57 --- /dev/null +++ b/documentation/com/openshift/internal/client/httpclient/class-use/UrlConnectionHttpClient.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.openshift.internal.client.httpclient.UrlConnectionHttpClient (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.httpclient.UrlConnectionHttpClient

+
+No usage of com.openshift.internal.client.httpclient.UrlConnectionHttpClient +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/httpclient/class-use/UrlConnectionHttpClientBuilder.html b/documentation/com/openshift/internal/client/httpclient/class-use/UrlConnectionHttpClientBuilder.html new file mode 100644 index 00000000..a121c26e --- /dev/null +++ b/documentation/com/openshift/internal/client/httpclient/class-use/UrlConnectionHttpClientBuilder.html @@ -0,0 +1,225 @@ + + + + + + + +Uses of Class com.openshift.internal.client.httpclient.UrlConnectionHttpClientBuilder (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.httpclient.UrlConnectionHttpClientBuilder

+
+ + + + + + + + + +
+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
+ UrlConnectionHttpClientBuilderUrlConnectionHttpClientBuilder.setAcceptMediaType(String mediaType) + +
+           
+ UrlConnectionHttpClientBuilderUrlConnectionHttpClientBuilder.setCredentials(String username, + String password) + +
+           
+ UrlConnectionHttpClientBuilderUrlConnectionHttpClientBuilder.setCredentials(String username, + String password, + String authKey, + String authIV) + +
+           
+ UrlConnectionHttpClientBuilderUrlConnectionHttpClientBuilder.setSSLChecks(boolean check) + +
+           
+ UrlConnectionHttpClientBuilderUrlConnectionHttpClientBuilder.setUserAgent(String userAgent) + +
+           
+ UrlConnectionHttpClientBuilderUrlConnectionHttpClientBuilder.setVersion(String version) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/httpclient/package-frame.html b/documentation/com/openshift/internal/client/httpclient/package-frame.html new file mode 100644 index 00000000..6dbdcdd5 --- /dev/null +++ b/documentation/com/openshift/internal/client/httpclient/package-frame.html @@ -0,0 +1,56 @@ + + + + + + + +com.openshift.internal.client.httpclient (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + +com.openshift.internal.client.httpclient + + + + +
+Classes  + +
+UrlConnectionHttpClient +
+UrlConnectionHttpClientBuilder
+ + + + + + +
+Exceptions  + +
+BadRequestException +
+EncodingException +
+HttpClientException +
+InternalServerErrorException +
+NotFoundException +
+UnauthorizedException
+ + + + diff --git a/documentation/com/openshift/internal/client/httpclient/package-summary.html b/documentation/com/openshift/internal/client/httpclient/package-summary.html new file mode 100644 index 00000000..63402853 --- /dev/null +++ b/documentation/com/openshift/internal/client/httpclient/package-summary.html @@ -0,0 +1,196 @@ + + + + + + + +com.openshift.internal.client.httpclient (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+

+Package com.openshift.internal.client.httpclient +

+ + + + + + + + + + + + + +
+Class Summary
UrlConnectionHttpClient 
UrlConnectionHttpClientBuilder 
+  + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Exception Summary
BadRequestException 
EncodingException 
HttpClientException 
InternalServerErrorException 
NotFoundException 
UnauthorizedException 
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/httpclient/package-tree.html b/documentation/com/openshift/internal/client/httpclient/package-tree.html new file mode 100644 index 00000000..9f85566a --- /dev/null +++ b/documentation/com/openshift/internal/client/httpclient/package-tree.html @@ -0,0 +1,164 @@ + + + + + + + +com.openshift.internal.client.httpclient Class Hierarchy (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Hierarchy For Package com.openshift.internal.client.httpclient +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/httpclient/package-use.html b/documentation/com/openshift/internal/client/httpclient/package-use.html new file mode 100644 index 00000000..e55b6947 --- /dev/null +++ b/documentation/com/openshift/internal/client/httpclient/package-use.html @@ -0,0 +1,227 @@ + + + + + + + +Uses of Package com.openshift.internal.client.httpclient (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Package
com.openshift.internal.client.httpclient

+
+ + + + + + + + + + + + + + + + + +
+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 +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/httpclient/request/FormUrlEncodedMediaType.html b/documentation/com/openshift/internal/client/httpclient/request/FormUrlEncodedMediaType.html new file mode 100644 index 00000000..b4fbc1de --- /dev/null +++ b/documentation/com/openshift/internal/client/httpclient/request/FormUrlEncodedMediaType.html @@ -0,0 +1,307 @@ + + + + + + + +FormUrlEncodedMediaType (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client.httpclient.request +
+Class FormUrlEncodedMediaType

+
+java.lang.Object
+  extended by com.openshift.internal.client.httpclient.request.FormUrlEncodedMediaType
+
+
+
All Implemented Interfaces:
IMediaType
+
+
+
+
public class FormUrlEncodedMediaType
extends Object
implements IMediaType
+ + +

+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: +

    +
  • Parameter (key-/value-pair, keys are always strings, values may be + StringValue, ParameterValueArray, ParameterValueMap))
  • +
  • StringValue (string value: paramname="value")/li> +
  • ParameterValueArray (array of values: paramname[]="value"¶mname[]="value")
  • +
  • ParameterValueMap (map of values: paramname[key]="value"¶mname[key]="value)"
  • +
+

+ +

+

+
Author:
+
Andre Dietisheim
+
See Also:
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
+ StringgetType() + +
+           
+ voidwriteTo(ParameterValueMap parameterMap, + OutputStream out) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+FormUrlEncodedMediaType

+
+public FormUrlEncodedMediaType()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getType

+
+public String getType()
+
+
+
Specified by:
getType in interface IMediaType
+
+
+
+
+
+
+ +

+writeTo

+
+public void writeTo(ParameterValueMap parameterMap,
+                    OutputStream out)
+             throws EncodingException
+
+
+
Specified by:
writeTo in interface IMediaType
+
+
+ +
Throws: +
EncodingException
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/httpclient/request/IMediaType.html b/documentation/com/openshift/internal/client/httpclient/request/IMediaType.html new file mode 100644 index 00000000..17fe6c76 --- /dev/null +++ b/documentation/com/openshift/internal/client/httpclient/request/IMediaType.html @@ -0,0 +1,244 @@ + + + + + + + +IMediaType (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client.httpclient.request +
+Interface IMediaType

+
+
All Known Implementing Classes:
FormUrlEncodedMediaType, JsonMediaType
+
+
+
+
public interface IMediaType
+ + +

+A media type that encodes and writes request parameters before they get sent by the client. +

+ +

+

+
Author:
+
Andre Dietisheim
+
See Also:
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
+ StringgetType() + +
+           
+ voidwriteTo(ParameterValueMap parameterMap, + OutputStream out) + +
+           
+  +

+ + + + + + + + +
+Method Detail
+ +

+getType

+
+String getType()
+
+
+
+
+
+
+ +

+writeTo

+
+void writeTo(ParameterValueMap parameterMap,
+             OutputStream out)
+             throws EncodingException
+
+
+ +
Throws: +
EncodingException
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/httpclient/request/JsonMediaType.html b/documentation/com/openshift/internal/client/httpclient/request/JsonMediaType.html new file mode 100644 index 00000000..aac08da4 --- /dev/null +++ b/documentation/com/openshift/internal/client/httpclient/request/JsonMediaType.html @@ -0,0 +1,304 @@ + + + + + + + +JsonMediaType (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client.httpclient.request +
+Class JsonMediaType

+
+java.lang.Object
+  extended by com.openshift.internal.client.httpclient.request.JsonMediaType
+
+
+
All Implemented Interfaces:
IMediaType
+
+
+
+
public class JsonMediaType
extends Object
implements IMediaType
+ + +

+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: +

    +
  • Parameter (key-/value-pair, keys are always strings, values may be + StringValue, ParameterValueArray, ParameterValueMap))
  • +
  • StringValue (string value, in json: string)/li> +
  • ParameterValueArray (array of values, in json: array
  • +
  • ParameterValueMap (map of values, in json: object
  • +
+

+ +

+

+
Author:
+
Andre Dietisheim
+
See Also:
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
+ StringgetType() + +
+           
+ voidwriteTo(ParameterValueMap parameterMap, + OutputStream out) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+JsonMediaType

+
+public JsonMediaType()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getType

+
+public String getType()
+
+
+
Specified by:
getType in interface IMediaType
+
+
+
+
+
+
+ +

+writeTo

+
+public void writeTo(ParameterValueMap parameterMap,
+                    OutputStream out)
+             throws EncodingException
+
+
+
Specified by:
writeTo in interface IMediaType
+
+
+ +
Throws: +
EncodingException
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/httpclient/request/Parameter.html b/documentation/com/openshift/internal/client/httpclient/request/Parameter.html new file mode 100644 index 00000000..355a23d0 --- /dev/null +++ b/documentation/com/openshift/internal/client/httpclient/request/Parameter.html @@ -0,0 +1,359 @@ + + + + + + + +Parameter (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client.httpclient.request +
+Class Parameter

+
+java.lang.Object
+  extended by com.openshift.internal.client.httpclient.request.ParameterValue<ParameterValue<?>>
+      extended by com.openshift.internal.client.httpclient.request.Parameter
+
+
+
Direct Known Subclasses:
StringParameter
+
+
+
+
public class Parameter
extends ParameterValue<ParameterValue<?>>
+ + +

+A parameter wrapper to pass param key/values to the service when executing a + remote operation from a link. +

+ +

+

+
Author:
+
Andre Dietisheim
+
+
+ +

+ + + + + + + + + + + + + + +
+Constructor Summary
Parameter(String name, + ParameterValue<?> value) + +
+           
Parameter(String name, + String value) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleanequals(Object obj) + +
+           
+ StringgetName() + +
+           
+ inthashCode() + +
+           
+ StringtoString() + +
+           
+ + + + + + + +
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
+ +

+Parameter

+
+public Parameter(String name,
+                 String value)
+
+
+
+ +

+Parameter

+
+public Parameter(String name,
+                 ParameterValue<?> value)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getName

+
+public String getName()
+
+
+
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class ParameterValue<ParameterValue<?>>
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object obj)
+
+
+
Overrides:
equals in class ParameterValue<ParameterValue<?>>
+
+
+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class ParameterValue<ParameterValue<?>>
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/httpclient/request/ParameterValue.html b/documentation/com/openshift/internal/client/httpclient/request/ParameterValue.html new file mode 100644 index 00000000..6eea7909 --- /dev/null +++ b/documentation/com/openshift/internal/client/httpclient/request/ParameterValue.html @@ -0,0 +1,326 @@ + + + + + + + +ParameterValue (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client.httpclient.request +
+Class ParameterValue<V>

+
+java.lang.Object
+  extended by com.openshift.internal.client.httpclient.request.ParameterValue<V>
+
+
+
Direct Known Subclasses:
Parameter, ParameterValueArray, ParameterValueMap, StringValue
+
+
+
+
public abstract class ParameterValue<V>
extends Object
+ + +

+

+
Author:
+
Andre Dietisheim
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
ParameterValue(V value) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleanequals(Object obj) + +
+           
+ VgetValue() + +
+           
+ inthashCode() + +
+           
+ StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ParameterValue

+
+public ParameterValue(V value)
+
+
+ + + + + + + + +
+Method Detail
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class Object
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object obj)
+
+
+
Overrides:
equals in class Object
+
+
+
+
+
+
+ +

+getValue

+
+public V getValue()
+
+
+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/httpclient/request/ParameterValueArray.html b/documentation/com/openshift/internal/client/httpclient/request/ParameterValueArray.html new file mode 100644 index 00000000..13038b2c --- /dev/null +++ b/documentation/com/openshift/internal/client/httpclient/request/ParameterValueArray.html @@ -0,0 +1,343 @@ + + + + + + + +ParameterValueArray (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client.httpclient.request +
+Class ParameterValueArray

+
+java.lang.Object
+  extended by com.openshift.internal.client.httpclient.request.ParameterValue<List<ParameterValue<?>>>
+      extended by com.openshift.internal.client.httpclient.request.ParameterValueArray
+
+
+
+
public class ParameterValueArray
extends ParameterValue<List<ParameterValue<?>>>
+ + +

+

+
Author:
+
Andre Dietisheim
+
+
+ +

+ + + + + + + + + + + + + + +
+Constructor Summary
ParameterValueArray() + +
+           
ParameterValueArray(List<ParameterValue<?>> values) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ ParameterValueArrayadd(ParameterValue<?> value) + +
+           
+ ParameterValueArrayadd(String name, + String value) + +
+           
+ ParameterValueArrayaddAll(List<? extends ParameterValue<?>> values) + +
+           
+ StringtoString() + +
+           
+ + + + + + + +
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
+ +

+ParameterValueArray

+
+public ParameterValueArray()
+
+
+
+ +

+ParameterValueArray

+
+public ParameterValueArray(List<ParameterValue<?>> values)
+
+
+ + + + + + + + +
+Method Detail
+ +

+add

+
+public ParameterValueArray add(String name,
+                               String value)
+
+
+
+
+
+
+ +

+add

+
+public ParameterValueArray add(ParameterValue<?> value)
+
+
+
+
+
+
+ +

+addAll

+
+public ParameterValueArray addAll(List<? extends ParameterValue<?>> values)
+
+
+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class ParameterValue<List<ParameterValue<?>>>
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/httpclient/request/ParameterValueMap.html b/documentation/com/openshift/internal/client/httpclient/request/ParameterValueMap.html new file mode 100644 index 00000000..2b998381 --- /dev/null +++ b/documentation/com/openshift/internal/client/httpclient/request/ParameterValueMap.html @@ -0,0 +1,417 @@ + + + + + + + +ParameterValueMap (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client.httpclient.request +
+Class ParameterValueMap

+
+java.lang.Object
+  extended by com.openshift.internal.client.httpclient.request.ParameterValue<Map<String,Parameter>>
+      extended by com.openshift.internal.client.httpclient.request.ParameterValueMap
+
+
+
+
public class ParameterValueMap
extends ParameterValue<Map<String,Parameter>>
+ + +

+

+
Author:
+
Andre Dietisheim
+
+
+ +

+ + + + + + + + + + + + + + + + + +
+Constructor Summary
ParameterValueMap() + +
+           
ParameterValueMap(List<Parameter> parameters) + +
+           
ParameterValueMap(Parameter... parameters) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ ParameterValueMapadd(Parameter parameter) + +
+           
+ ParameterValueMapadd(String name, + String value) + +
+           
+ ParameterValueMapaddAll(List<? extends Parameter> parameters) + +
+           
+ booleanequals(Object obj) + +
+           
+ ParametergetParamater(String name) + +
+           
+ booleanisEmpty() + +
+           
+ StringtoString() + +
+           
+ + + + + + + +
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
+ +

+ParameterValueMap

+
+public ParameterValueMap(List<Parameter> parameters)
+
+
+
+ +

+ParameterValueMap

+
+public ParameterValueMap(Parameter... parameters)
+
+
+
+ +

+ParameterValueMap

+
+public ParameterValueMap()
+
+
+ + + + + + + + +
+Method Detail
+ +

+addAll

+
+public ParameterValueMap addAll(List<? extends Parameter> parameters)
+
+
+
+
+
+
+ +

+add

+
+public ParameterValueMap add(String name,
+                             String value)
+
+
+
+
+
+
+ +

+add

+
+public ParameterValueMap add(Parameter parameter)
+
+
+
+
+
+
+ +

+getParamater

+
+public Parameter getParamater(String name)
+
+
+
+
+
+
+ +

+isEmpty

+
+public boolean isEmpty()
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object obj)
+
+
+
Overrides:
equals in class ParameterValue<Map<String,Parameter>>
+
+
+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class ParameterValue<Map<String,Parameter>>
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/httpclient/request/StringParameter.html b/documentation/com/openshift/internal/client/httpclient/request/StringParameter.html new file mode 100644 index 00000000..c75ee4a1 --- /dev/null +++ b/documentation/com/openshift/internal/client/httpclient/request/StringParameter.html @@ -0,0 +1,282 @@ + + + + + + + +StringParameter (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client.httpclient.request +
+Class StringParameter

+
+java.lang.Object
+  extended by com.openshift.internal.client.httpclient.request.ParameterValue<ParameterValue<?>>
+      extended by com.openshift.internal.client.httpclient.request.Parameter
+          extended by com.openshift.internal.client.httpclient.request.StringParameter
+
+
+
+
public class StringParameter
extends Parameter
+ + +

+

+
Author:
+
Andre Dietisheim
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
StringParameter(String name, + String value) + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ StringtoString() + +
+           
+ + + + + + + +
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
+ +

+StringParameter

+
+public StringParameter(String name,
+                       String value)
+
+
+ + + + + + + + +
+Method Detail
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Parameter
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/httpclient/request/StringValue.html b/documentation/com/openshift/internal/client/httpclient/request/StringValue.html new file mode 100644 index 00000000..ce65ddbc --- /dev/null +++ b/documentation/com/openshift/internal/client/httpclient/request/StringValue.html @@ -0,0 +1,270 @@ + + + + + + + +StringValue (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client.httpclient.request +
+Class StringValue

+
+java.lang.Object
+  extended by com.openshift.internal.client.httpclient.request.ParameterValue<String>
+      extended by com.openshift.internal.client.httpclient.request.StringValue
+
+
+
+
public class StringValue
extends ParameterValue<String>
+ + +

+

+
Author:
+
Andre Dietisheim
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
StringValue(String value) + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ StringtoString() + +
+           
+ + + + + + + +
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
+ +

+StringValue

+
+public StringValue(String value)
+
+
+ + + + + + + + +
+Method Detail
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class ParameterValue<String>
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/httpclient/request/class-use/FormUrlEncodedMediaType.html b/documentation/com/openshift/internal/client/httpclient/request/class-use/FormUrlEncodedMediaType.html new file mode 100644 index 00000000..feb74813 --- /dev/null +++ b/documentation/com/openshift/internal/client/httpclient/request/class-use/FormUrlEncodedMediaType.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.openshift.internal.client.httpclient.request.FormUrlEncodedMediaType (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.httpclient.request.FormUrlEncodedMediaType

+
+No usage of com.openshift.internal.client.httpclient.request.FormUrlEncodedMediaType +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/httpclient/request/class-use/IMediaType.html b/documentation/com/openshift/internal/client/httpclient/request/class-use/IMediaType.html new file mode 100644 index 00000000..4fc95262 --- /dev/null +++ b/documentation/com/openshift/internal/client/httpclient/request/class-use/IMediaType.html @@ -0,0 +1,492 @@ + + + + + + + +Uses of Interface com.openshift.internal.client.httpclient.request.IMediaType (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Interface
com.openshift.internal.client.httpclient.request.IMediaType

+
+ + + + + + + + + + + + + + + + + + + + + +
+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
+ StringIHttpClient.delete(URL url, + IMediaType mediaType, + int timeout, + Parameter... parameters) + +
+           
+ StringIHttpClient.patch(URL url, + IMediaType mediaType, + int timeout, + Parameter... parameters) + +
+           
+ StringIHttpClient.post(URL url, + IMediaType mediaType, + int timeout, + Parameter... parameters) + +
+           
+ StringIHttpClient.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 + + + + +
+<DTO> DTO
+
AbstractOpenShiftResource.ServiceRequest.execute(int timeout, + IMediaType mediaType, + Parameter... parameters) + +
+           
+protected + + + + +
+<DTO> DTO
+
AbstractOpenShiftResource.ServiceRequest.execute(int timeout, + List<Parameter> urlParameter, + IMediaType mediaType, + Parameter... parameters) + +
+           
+ RestResponseRestService.request(Link link, + int timeout, + IMediaType requestMediaType, + Parameter... parameters) + +
+           
+ RestResponseIRestService.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.
+ RestResponseRestService.request(Link link, + int timeout, + List<Parameter> urlParameters, + IMediaType requestMediaType, + Parameter... parameters) + +
+           
+ RestResponseIRestService.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
+ StringUrlConnectionHttpClient.delete(URL url, + IMediaType mediaType, + int timeout, + Parameter... parameters) + +
+           
+ StringUrlConnectionHttpClient.patch(URL url, + IMediaType mediaType, + int timeout, + Parameter... parameters) + +
+           
+ StringUrlConnectionHttpClient.post(URL url, + IMediaType mediaType, + int timeout, + Parameter... parameters) + +
+           
+ StringUrlConnectionHttpClient.put(URL url, + IMediaType mediaType, + int timeout, + Parameter... parameters) + +
+           
+protected  StringUrlConnectionHttpClient.request(HttpMethod httpMethod, + URL url, + IMediaType requestMediaType, + int timeout, + Parameter... parameters) + +
+           
+protected  StringUrlConnectionHttpClient.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
+ classFormUrlEncodedMediaType + +
+          A class that encodes request parameters to formurl-encoded format so that they may get sent to + the server.
+ classJsonMediaType + +
+          A class that encodes request parameters to json so that they may get sent to + the server.
+  +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/httpclient/request/class-use/JsonMediaType.html b/documentation/com/openshift/internal/client/httpclient/request/class-use/JsonMediaType.html new file mode 100644 index 00000000..b3e60bd3 --- /dev/null +++ b/documentation/com/openshift/internal/client/httpclient/request/class-use/JsonMediaType.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.openshift.internal.client.httpclient.request.JsonMediaType (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.httpclient.request.JsonMediaType

+
+No usage of com.openshift.internal.client.httpclient.request.JsonMediaType +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/httpclient/request/class-use/Parameter.html b/documentation/com/openshift/internal/client/httpclient/request/class-use/Parameter.html new file mode 100644 index 00000000..3b8e9ade --- /dev/null +++ b/documentation/com/openshift/internal/client/httpclient/request/class-use/Parameter.html @@ -0,0 +1,868 @@ + + + + + + + +Uses of Class com.openshift.internal.client.httpclient.request.Parameter (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.httpclient.request.Parameter

+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+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
+ StringIHttpClient.delete(URL url, + IMediaType mediaType, + int timeout, + Parameter... parameters) + +
+           
+ StringIHttpClient.patch(URL url, + IMediaType mediaType, + int timeout, + Parameter... parameters) + +
+           
+ StringIHttpClient.post(URL url, + IMediaType mediaType, + int timeout, + Parameter... parameters) + +
+           
+ StringIHttpClient.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.ParametersAbstractOpenShiftResource.Parameters.add(Parameter parameter) + +
+           
+protected + + + + +
+<DTO> DTO
+
AbstractOpenShiftResource.ServiceRequest.execute(int timeout, + IMediaType mediaType, + Parameter... parameters) + +
+           
+protected + + + + +
+<DTO> DTO
+
AbstractOpenShiftResource.ServiceRequest.execute(int timeout, + List<Parameter> urlParameter, + IMediaType mediaType, + Parameter... parameters) + +
+           
+protected + + + + +
+<DTO> DTO
+
AbstractOpenShiftResource.ServiceRequest.execute(int timeout, + List<Parameter> urlParameter, + Parameter... parameters) + +
+           
+protected + + + + +
+<DTO> DTO
+
AbstractOpenShiftResource.ServiceRequest.execute(int timeout, + Parameter... parameters) + +
+           
+protected + + + + +
+<DTO> DTO
+
AbstractOpenShiftResource.ServiceRequest.execute(List<Parameter> urlParameter, + Parameter... parameters) + +
+           
+protected + + + + +
+<DTO> DTO
+
AbstractOpenShiftResource.ServiceRequest.execute(Parameter... parameters) + +
+           
+ RestResponseRestService.request(Link link, + int timeout, + IMediaType requestMediaType, + Parameter... parameters) + +
+           
+ RestResponseIRestService.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.
+ RestResponseRestService.request(Link link, + int timeout, + List<Parameter> urlParameters, + IMediaType requestMediaType, + Parameter... parameters) + +
+           
+ RestResponseIRestService.request(Link link, + int timeout, + List<Parameter> urlParameters, + IMediaType mediaType, + Parameter... parameters) + +
+           
+ RestResponseRestService.request(Link link, + int timeout, + List<Parameter> urlParameters, + Parameter... parameters) + +
+           
+ RestResponseIRestService.request(Link link, + int timeout, + List<Parameter> urlParameters, + Parameter... parameters) + +
+           
+ RestResponseRestService.request(Link link, + int timeout, + Parameter... parameters) + +
+           
+ RestResponseIRestService.request(Link link, + int timeout, + Parameter... parameters) + +
+           
+ RestResponseRestService.request(Link link, + List<Parameter> urlParameters, + Parameter... parameters) + +
+           
+ RestResponseIRestService.request(Link link, + List<Parameter> urlParameters, + Parameter... parameters) + +
+           
+ RestResponseRestService.request(Link link, + Parameter... parameters) + +
+           
+ RestResponseIRestService.request(Link link, + Parameter... parameters) + +
+           
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Method parameters in com.openshift.internal.client with type arguments of type Parameter
+protected + + + + +
+<DTO> DTO
+
AbstractOpenShiftResource.ServiceRequest.execute(int timeout, + List<Parameter> urlParameter, + IMediaType mediaType, + Parameter... parameters) + +
+           
+protected + + + + +
+<DTO> DTO
+
AbstractOpenShiftResource.ServiceRequest.execute(int timeout, + List<Parameter> urlParameter, + Parameter... parameters) + +
+           
+protected + + + + +
+<DTO> DTO
+
AbstractOpenShiftResource.ServiceRequest.execute(List<Parameter> urlParameter, + Parameter... parameters) + +
+           
+ RestResponseRestService.request(Link link, + int timeout, + List<Parameter> urlParameters, + IMediaType requestMediaType, + Parameter... parameters) + +
+           
+ RestResponseIRestService.request(Link link, + int timeout, + List<Parameter> urlParameters, + IMediaType mediaType, + Parameter... parameters) + +
+           
+ RestResponseRestService.request(Link link, + int timeout, + List<Parameter> urlParameters, + Parameter... parameters) + +
+           
+ RestResponseIRestService.request(Link link, + int timeout, + List<Parameter> urlParameters, + Parameter... parameters) + +
+           
+ RestResponseRestService.request(Link link, + List<Parameter> urlParameters, + Parameter... parameters) + +
+           
+ RestResponseIRestService.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
+ StringUrlConnectionHttpClient.delete(URL url, + IMediaType mediaType, + int timeout, + Parameter... parameters) + +
+           
+ StringUrlConnectionHttpClient.patch(URL url, + IMediaType mediaType, + int timeout, + Parameter... parameters) + +
+           
+ StringUrlConnectionHttpClient.post(URL url, + IMediaType mediaType, + int timeout, + Parameter... parameters) + +
+           
+ StringUrlConnectionHttpClient.put(URL url, + IMediaType mediaType, + int timeout, + Parameter... parameters) + +
+           
+protected  StringUrlConnectionHttpClient.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
+ classStringParameter + +
+           
+  +

+ + + + + + + + + +
Methods in com.openshift.internal.client.httpclient.request that return Parameter
+ ParameterParameterValueMap.getParamater(String name) + +
+           
+  +

+ + + + + + + + + +
Methods in com.openshift.internal.client.httpclient.request with parameters of type Parameter
+ ParameterValueMapParameterValueMap.add(Parameter parameter) + +
+           
+  +

+ + + + + + + + + +
Method parameters in com.openshift.internal.client.httpclient.request with type arguments of type Parameter
+ ParameterValueMapParameterValueMap.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
+ StringLink.getHref(String server, + String servicePath, + Parameter... urlParameters) + +
+           
+ voidLink.validateRequestParameters(Parameter[] parameters) + +
+           
+  +

+ + + + + + + + + +
Method parameters in com.openshift.internal.client.response with type arguments of type Parameter
+ StringLink.getHref(String server, + String servicePath, + List<Parameter> urlParameters) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/httpclient/request/class-use/ParameterValue.html b/documentation/com/openshift/internal/client/httpclient/request/class-use/ParameterValue.html new file mode 100644 index 00000000..80dad600 --- /dev/null +++ b/documentation/com/openshift/internal/client/httpclient/request/class-use/ParameterValue.html @@ -0,0 +1,275 @@ + + + + + + + +Uses of Class com.openshift.internal.client.httpclient.request.ParameterValue (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.httpclient.request.ParameterValue

+
+ + + + + + + + + +
+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
+ classParameter + +
+          A parameter wrapper to pass param key/values to the service when executing a + remote operation from a link.
+ classParameterValueArray + +
+           
+ classParameterValueMap + +
+           
+ classStringParameter + +
+           
+ classStringValue + +
+           
+  +

+ + + + + + + + + +
Methods in com.openshift.internal.client.httpclient.request with parameters of type ParameterValue
+ ParameterValueArrayParameterValueArray.add(ParameterValue<?> value) + +
+           
+  +

+ + + + + + + + + +
Method parameters in com.openshift.internal.client.httpclient.request with type arguments of type ParameterValue
+ ParameterValueArrayParameterValueArray.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 +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/httpclient/request/class-use/ParameterValueArray.html b/documentation/com/openshift/internal/client/httpclient/request/class-use/ParameterValueArray.html new file mode 100644 index 00000000..089c4e69 --- /dev/null +++ b/documentation/com/openshift/internal/client/httpclient/request/class-use/ParameterValueArray.html @@ -0,0 +1,198 @@ + + + + + + + +Uses of Class com.openshift.internal.client.httpclient.request.ParameterValueArray (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.httpclient.request.ParameterValueArray

+
+ + + + + + + + + +
+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
+ ParameterValueArrayParameterValueArray.add(ParameterValue<?> value) + +
+           
+ ParameterValueArrayParameterValueArray.add(String name, + String value) + +
+           
+ ParameterValueArrayParameterValueArray.addAll(List<? extends ParameterValue<?>> values) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/httpclient/request/class-use/ParameterValueMap.html b/documentation/com/openshift/internal/client/httpclient/request/class-use/ParameterValueMap.html new file mode 100644 index 00000000..e80664f3 --- /dev/null +++ b/documentation/com/openshift/internal/client/httpclient/request/class-use/ParameterValueMap.html @@ -0,0 +1,266 @@ + + + + + + + +Uses of Class com.openshift.internal.client.httpclient.request.ParameterValueMap (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.httpclient.request.ParameterValueMap

+
+ + + + + + + + + + + + + +
+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  StringUrlConnectionHttpClient.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
+ ParameterValueMapParameterValueMap.add(Parameter parameter) + +
+           
+ ParameterValueMapParameterValueMap.add(String name, + String value) + +
+           
+ ParameterValueMapParameterValueMap.addAll(List<? extends Parameter> parameters) + +
+           
+  +

+ + + + + + + + + + + + + + + + + +
Methods in com.openshift.internal.client.httpclient.request with parameters of type ParameterValueMap
+ voidJsonMediaType.writeTo(ParameterValueMap parameterMap, + OutputStream out) + +
+           
+ voidIMediaType.writeTo(ParameterValueMap parameterMap, + OutputStream out) + +
+           
+ voidFormUrlEncodedMediaType.writeTo(ParameterValueMap parameterMap, + OutputStream out) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/httpclient/request/class-use/StringParameter.html b/documentation/com/openshift/internal/client/httpclient/request/class-use/StringParameter.html new file mode 100644 index 00000000..c77164d0 --- /dev/null +++ b/documentation/com/openshift/internal/client/httpclient/request/class-use/StringParameter.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.openshift.internal.client.httpclient.request.StringParameter (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.httpclient.request.StringParameter

+
+No usage of com.openshift.internal.client.httpclient.request.StringParameter +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/httpclient/request/class-use/StringValue.html b/documentation/com/openshift/internal/client/httpclient/request/class-use/StringValue.html new file mode 100644 index 00000000..a7743b36 --- /dev/null +++ b/documentation/com/openshift/internal/client/httpclient/request/class-use/StringValue.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.openshift.internal.client.httpclient.request.StringValue (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.httpclient.request.StringValue

+
+No usage of com.openshift.internal.client.httpclient.request.StringValue +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/httpclient/request/package-frame.html b/documentation/com/openshift/internal/client/httpclient/request/package-frame.html new file mode 100644 index 00000000..76d6be44 --- /dev/null +++ b/documentation/com/openshift/internal/client/httpclient/request/package-frame.html @@ -0,0 +1,58 @@ + + + + + + + +com.openshift.internal.client.httpclient.request (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + +com.openshift.internal.client.httpclient.request + + + + +
+Interfaces  + +
+IMediaType
+ + + + + + +
+Classes  + +
+FormUrlEncodedMediaType +
+JsonMediaType +
+Parameter +
+ParameterValue +
+ParameterValueArray +
+ParameterValueMap +
+StringParameter +
+StringValue
+ + + + diff --git a/documentation/com/openshift/internal/client/httpclient/request/package-summary.html b/documentation/com/openshift/internal/client/httpclient/request/package-summary.html new file mode 100644 index 00000000..190ee8aa --- /dev/null +++ b/documentation/com/openshift/internal/client/httpclient/request/package-summary.html @@ -0,0 +1,203 @@ + + + + + + + +com.openshift.internal.client.httpclient.request (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+

+Package com.openshift.internal.client.httpclient.request +

+ + + + + + + + + +
+Interface Summary
IMediaTypeA media type that encodes and writes request parameters before they get sent by the client.
+  + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
FormUrlEncodedMediaTypeA class that encodes request parameters to formurl-encoded format so that they may get sent to + the server.
JsonMediaTypeA class that encodes request parameters to json so that they may get sent to + the server.
ParameterA 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 +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/httpclient/request/package-tree.html b/documentation/com/openshift/internal/client/httpclient/request/package-tree.html new file mode 100644 index 00000000..a6576022 --- /dev/null +++ b/documentation/com/openshift/internal/client/httpclient/request/package-tree.html @@ -0,0 +1,165 @@ + + + + + + + +com.openshift.internal.client.httpclient.request Class Hierarchy (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Hierarchy For Package com.openshift.internal.client.httpclient.request +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+
    +
  • com.openshift.internal.client.httpclient.request.IMediaType
+
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/httpclient/request/package-use.html b/documentation/com/openshift/internal/client/httpclient/request/package-use.html new file mode 100644 index 00000000..66b6d65a --- /dev/null +++ b/documentation/com/openshift/internal/client/httpclient/request/package-use.html @@ -0,0 +1,300 @@ + + + + + + + +Uses of Package com.openshift.internal.client.httpclient.request (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Package
com.openshift.internal.client.httpclient.request

+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+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 +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/package-frame.html b/documentation/com/openshift/internal/client/package-frame.html new file mode 100644 index 00000000..3f80f08b --- /dev/null +++ b/documentation/com/openshift/internal/client/package-frame.html @@ -0,0 +1,89 @@ + + + + + + + +com.openshift.internal.client (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + +com.openshift.internal.client + + + + +
+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
+ + + + diff --git a/documentation/com/openshift/internal/client/package-summary.html b/documentation/com/openshift/internal/client/package-summary.html new file mode 100644 index 00000000..b1bac7a9 --- /dev/null +++ b/documentation/com/openshift/internal/client/package-summary.html @@ -0,0 +1,255 @@ + + + + + + + +com.openshift.internal.client (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+

+Package com.openshift.internal.client +

+ + + + + + + + + +
+Interface Summary
IRestServiceA rest service that executes request against the OpenShift server
+  + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
AbstractOpenShiftConnectionFactoryConnection Factory, used to establish a connection and retrieve a user.
AbstractOpenShiftResourceThe Class AbstractOpenShiftResource.
AbstractOpenShiftResource.Parameters 
APIResource 
ApplicationResourceThe 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 
EmbeddedCartridgeResourceA cartridge that is embedded into an application.
EnvironmentVariableResource 
Field 
GearA 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 +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/package-tree.html b/documentation/com/openshift/internal/client/package-tree.html new file mode 100644 index 00000000..b80a40d5 --- /dev/null +++ b/documentation/com/openshift/internal/client/package-tree.html @@ -0,0 +1,185 @@ + + + + + + + +com.openshift.internal.client Class Hierarchy (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Hierarchy For Package com.openshift.internal.client +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+ +

+Enum Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/package-use.html b/documentation/com/openshift/internal/client/package-use.html new file mode 100644 index 00000000..9f93dcfa --- /dev/null +++ b/documentation/com/openshift/internal/client/package-use.html @@ -0,0 +1,270 @@ + + + + + + + +Uses of Package com.openshift.internal.client (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Package
com.openshift.internal.client

+
+ + + + + + + + + + + + + + + + + +
+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 +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/response/ApplicationResourceDTO.html b/documentation/com/openshift/internal/client/response/ApplicationResourceDTO.html new file mode 100644 index 00000000..5a30d3b3 --- /dev/null +++ b/documentation/com/openshift/internal/client/response/ApplicationResourceDTO.html @@ -0,0 +1,510 @@ + + + + + + + +ApplicationResourceDTO (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client.response +
+Class ApplicationResourceDTO

+
+java.lang.Object
+  extended by com.openshift.internal.client.response.BaseResourceDTO
+      extended by com.openshift.internal.client.response.ApplicationResourceDTO
+
+
+
+
public class ApplicationResourceDTO
extends BaseResourceDTO
+ + +

+The Class ApplicationDTO. +

+ +

+

+
Author:
+
Xavier Coulon
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ List<String>getAliases() + +
+           
+ ApplicationScalegetApplicationScale() + +
+           
+ StringgetApplicationUrl() + +
+           
+ Map<String,CartridgeResourceDTO>getCartridges() + +
+           
+ StringgetCreationTime() + +
+          Gets the creation time.
+ StringgetDomainId() + +
+          Gets the domain id.
+ StringgetFramework() + +
+          Gets the framework.
+ IGearProfilegetGearProfile() + +
+           
+ StringgetGitUrl() + +
+           
+ StringgetInitialGitUrl() + +
+           
+ StringgetName() + +
+          Gets the name.
+ StringgetSshUrl() + +
+           
+ StringgetUuid() + +
+          Gets the uuid.
+ StringtoString() + +
+           
+ + + + + + + +
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
+ +

+getFramework

+
+public final String getFramework()
+
+
Gets the framework. +

+

+ +
Returns:
the framework
+
+
+
+ +

+getDomainId

+
+public final String getDomainId()
+
+
Gets the domain id. +

+

+ +
Returns:
the domainId
+
+
+
+ +

+getCreationTime

+
+public final String getCreationTime()
+
+
Gets the creation time. +

+

+ +
Returns:
the creationTime
+
+
+
+ +

+getName

+
+public final String getName()
+
+
Gets the name. +

+

+ +
Returns:
the name
+
+
+
+ +

+getApplicationScale

+
+public final ApplicationScale getApplicationScale()
+
+
+ +
Returns:
the scalable
+
+
+
+ +

+getGearProfile

+
+public final IGearProfile getGearProfile()
+
+
+ +
Returns:
the gearProfile
+
+
+
+ +

+getUuid

+
+public final String getUuid()
+
+
Gets the uuid. +

+

+ +
Returns:
the uuid
+
+
+
+ +

+getApplicationUrl

+
+public final String getApplicationUrl()
+
+
+ +
Returns:
the url at which this application may be reached
+
+
+
+ +

+getSshUrl

+
+public String getSshUrl()
+
+
+ +
Returns:
the url to use to connect with ssh
+
+
+
+ +

+getGitUrl

+
+public final String getGitUrl()
+
+
+ +
Returns:
the url at which this applications git repo may be reached at
+
+
+
+ +

+getInitialGitUrl

+
+public final String getInitialGitUrl()
+
+
+ +
Returns:
the initial git repo url for the initial code of this application
+
+
+
+ +

+getAliases

+
+public List<String> getAliases()
+
+
+ +
Returns:
the aliases
+
+
+
+ +

+getCartridges

+
+public Map<String,CartridgeResourceDTO> getCartridges()
+
+
+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/response/BaseResourceDTO.html b/documentation/com/openshift/internal/client/response/BaseResourceDTO.html new file mode 100644 index 00000000..1c6beed5 --- /dev/null +++ b/documentation/com/openshift/internal/client/response/BaseResourceDTO.html @@ -0,0 +1,335 @@ + + + + + + + +BaseResourceDTO (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client.response +
+Class BaseResourceDTO

+
+java.lang.Object
+  extended by com.openshift.internal.client.response.BaseResourceDTO
+
+
+
Type Parameters:
T - the generic type
+
+
Direct Known Subclasses:
ApplicationResourceDTO, CartridgeResourceDTO, DomainResourceDTO, EnvironmentVariableResourceDTO, GearGroupResourceDTO, GearResourceDTO, KeyResourceDTO, UserResourceDTO
+
+
+
+
public abstract class BaseResourceDTO
extends Object
+ + +

+The Class BaseResourceDTO. +

+ +

+


+ +

+ + + + + + + + + + + + + + + + +
+Constructor Summary
+protected BaseResourceDTO() + +
+           
+protected BaseResourceDTO(Map<String,Link> links, + Messages messages) + +
+          Instantiates a new base resource dto.
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ LinkgetLink(String name) + +
+          Gets the link.
+ Map<String,Link>getLinks() + +
+          Gets the links.
+ MessagesgetMessages() + +
+          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
+ +

+BaseResourceDTO

+
+protected BaseResourceDTO()
+
+
+
+ +

+BaseResourceDTO

+
+protected BaseResourceDTO(Map<String,Link> links,
+                          Messages messages)
+
+
Instantiates a new base resource dto. +

+

+
Parameters:
links - the links
+
+ + + + + + + + +
+Method Detail
+ +

+getLinks

+
+public final Map<String,Link> getLinks()
+
+
Gets the links. +

+

+ +
Returns:
all the links
+
+
+
+ +

+getLink

+
+public final Link getLink(String name)
+
+
Gets the link. +

+

+
Parameters:
name - the name of the link to look for. +
Returns:
the named link
+
+
+
+ +

+getMessages

+
+public Messages getMessages()
+
+
Returns the messages that were reported when this resource was created. + May be null if retrieved in a session in which we did not + create this resource. +

+

+ +
Returns:
the messages that were reported when this resource was created
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/response/CartridgeResourceDTO.html b/documentation/com/openshift/internal/client/response/CartridgeResourceDTO.html new file mode 100644 index 00000000..d7be432c --- /dev/null +++ b/documentation/com/openshift/internal/client/response/CartridgeResourceDTO.html @@ -0,0 +1,420 @@ + + + + + + + +CartridgeResourceDTO (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client.response +
+Class CartridgeResourceDTO

+
+java.lang.Object
+  extended by com.openshift.internal.client.response.BaseResourceDTO
+      extended by com.openshift.internal.client.response.CartridgeResourceDTO
+
+
+
+
public class CartridgeResourceDTO
extends BaseResourceDTO
+ + +

+

+
Author:
+
Xavier Coulon, Andre Dietisheim
+
+
+ +

+ + + + + + + + + + + + + + + + +
+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
+ StringgetDescription() + +
+           
+ StringgetDisplayName() + +
+           
+ StringgetName() + +
+           
+ CartridgeResourcePropertiesgetProperties() + +
+           
+ CartridgeTypegetType() + +
+           
+ URLgetUrl() + +
+           
+ StringtoString() + +
+           
+ + + + + + + +
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
+ +

+CartridgeResourceDTO

+
+protected CartridgeResourceDTO(String name,
+                               CartridgeType type,
+                               CartridgeResourceProperties properties)
+
+
+
+ +

+CartridgeResourceDTO

+
+protected CartridgeResourceDTO(String name,
+                               String displayName,
+                               String description,
+                               String type,
+                               URL url,
+                               CartridgeResourceProperties properties,
+                               Map<String,Link> links,
+                               Messages messages)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getName

+
+public String getName()
+
+
+
+
+
+
+ +

+getDisplayName

+
+public String getDisplayName()
+
+
+
+
+
+
+ +

+getDescription

+
+public String getDescription()
+
+
+
+
+
+
+ +

+getType

+
+public CartridgeType getType()
+
+
+
+
+
+
+ +

+getUrl

+
+public URL getUrl()
+
+
+
+
+
+
+ +

+getProperties

+
+public CartridgeResourceProperties getProperties()
+
+
+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/response/CartridgeResourceProperties.html b/documentation/com/openshift/internal/client/response/CartridgeResourceProperties.html new file mode 100644 index 00000000..9ab084a9 --- /dev/null +++ b/documentation/com/openshift/internal/client/response/CartridgeResourceProperties.html @@ -0,0 +1,469 @@ + + + + + + + +CartridgeResourceProperties (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client.response +
+Class CartridgeResourceProperties

+
+java.lang.Object
+  extended by com.openshift.internal.client.response.CartridgeResourceProperties
+
+
+
+
public class CartridgeResourceProperties
extends Object
+ + +

+Properties that hold informations available in cartridges +

+ +

+

+
Author:
+
Andre Dietisheim
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+static StringCONNECTION_URL + +
+           
+static StringDATABASE_NAME + +
+           
+static StringJOB_URL + +
+           
+static StringPASSWORD + +
+           
+static StringUSERNAME + +
+           
+  + + + + + + + + + + +
+Constructor Summary
CartridgeResourceProperties() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidadd(String name, + CartridgeResourceProperty property) + +
+           
+ List<CartridgeResourceProperty>getAll() + +
+           
+ CartridgeResourcePropertygetProperty(String name) + +
+           
+ StringgetPropertyValue(String name) + +
+           
+ intsize() + +
+           
+ StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+CONNECTION_URL

+
+public static final String CONNECTION_URL
+
+
+
See Also:
Constant Field Values
+
+
+ +

+JOB_URL

+
+public static final String JOB_URL
+
+
+
See Also:
Constant Field Values
+
+
+ +

+USERNAME

+
+public static final String USERNAME
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PASSWORD

+
+public static final String PASSWORD
+
+
+
See Also:
Constant Field Values
+
+
+ +

+DATABASE_NAME

+
+public static final String DATABASE_NAME
+
+
+
See Also:
Constant Field Values
+
+ + + + + + + + +
+Constructor Detail
+ +

+CartridgeResourceProperties

+
+public CartridgeResourceProperties()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getPropertyValue

+
+public String getPropertyValue(String name)
+
+
+
+
+
+
+ +

+add

+
+public void add(String name,
+                CartridgeResourceProperty property)
+
+
+
+
+
+
+ +

+getProperty

+
+public CartridgeResourceProperty getProperty(String name)
+
+
+
+
+
+
+ +

+getAll

+
+public List<CartridgeResourceProperty> getAll()
+
+
+
+
+
+
+ +

+size

+
+public int size()
+
+
+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/response/CartridgeResourceProperty.html b/documentation/com/openshift/internal/client/response/CartridgeResourceProperty.html new file mode 100644 index 00000000..a16d7ab8 --- /dev/null +++ b/documentation/com/openshift/internal/client/response/CartridgeResourceProperty.html @@ -0,0 +1,391 @@ + + + + + + + +CartridgeResourceProperty (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client.response +
+Class CartridgeResourceProperty

+
+java.lang.Object
+  extended by com.openshift.internal.client.response.CartridgeResourceProperty
+
+
+
+
public class CartridgeResourceProperty
extends Object
+ + +

+

+
Author:
+
Andre Dietisheim
+
+
+ +

+ + + + + + + + + + + + + + + + +
+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
+ StringgetDescription() + +
+           
+ StringgetName() + +
+           
+ StringgetType() + +
+           
+ StringgetValue() + +
+           
+ StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+CartridgeResourceProperty

+
+protected CartridgeResourceProperty(String name,
+                                    String value)
+
+
Constructor called when embedded cartridges are listed within an + application. +

+ ex. +

+ "metrics-0.1":{
+          "connection_url":"https://eap6-foobarz.rhcloud.com/metrics/",
+          "info":"Connection URL: https://eap6-foobarz.rhcloud.com/metrics/"
+ }
+ 
+ 
+

+

+
+ +

+CartridgeResourceProperty

+
+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. +

+ ex. + +

+ "properties":[
+  {
+          "name":"connection_url",
+          "type":"cart_data",
+          "description":"Application metrics URL",
+          "value":"https://eap6-foobarz.rhcloud.com/metrics/"
+ }
+ 
+

+

+ + + + + + + + +
+Method Detail
+ +

+getName

+
+public String getName()
+
+
+
+
+
+
+ +

+getType

+
+public String getType()
+
+
+
+
+
+
+ +

+getDescription

+
+public String getDescription()
+
+
+
+
+
+
+ +

+getValue

+
+public String getValue()
+
+
+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/response/DomainResourceDTO.html b/documentation/com/openshift/internal/client/response/DomainResourceDTO.html new file mode 100644 index 00000000..e234c5bb --- /dev/null +++ b/documentation/com/openshift/internal/client/response/DomainResourceDTO.html @@ -0,0 +1,254 @@ + + + + + + + +DomainResourceDTO (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client.response +
+Class DomainResourceDTO

+
+java.lang.Object
+  extended by com.openshift.internal.client.response.BaseResourceDTO
+      extended by com.openshift.internal.client.response.DomainResourceDTO
+
+
+
+
public class DomainResourceDTO
extends BaseResourceDTO
+ + +

+

+
Author:
+
Xavier Coulon
+
+
+ +

+ + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetId() + +
+           
+ StringgetSuffix() + +
+           
+ + + + + + + +
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
+ +

+getId

+
+public final String getId()
+
+
+ +
Returns:
the id
+
+
+
+ +

+getSuffix

+
+public String getSuffix()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/response/EnumDataType.html b/documentation/com/openshift/internal/client/response/EnumDataType.html new file mode 100644 index 00000000..2a0411ba --- /dev/null +++ b/documentation/com/openshift/internal/client/response/EnumDataType.html @@ -0,0 +1,535 @@ + + + + + + + +EnumDataType (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client.response +
+Enum EnumDataType

+
+java.lang.Object
+  extended by java.lang.Enum<EnumDataType>
+      extended by com.openshift.internal.client.response.EnumDataType
+
+
+
All Implemented Interfaces:
Serializable, Comparable<EnumDataType>
+
+
+
+
public enum EnumDataType
extends 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 EnumDataTypevalueOf(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
+ +

+links

+
+public static final EnumDataType links
+
+
Links / the root node that allows for navigation amongst resources. +

+

+
+
+
+ +

+user

+
+public static final EnumDataType user
+
+
+
+
+
+ +

+keys

+
+public static final EnumDataType keys
+
+
the user's keys. +

+

+
+
+
+ +

+key

+
+public static final EnumDataType key
+
+
one user's key. +

+

+
+
+
+ +

+domains

+
+public static final EnumDataType domains
+
+
+
+
+
+ +

+domain

+
+public static final EnumDataType domain
+
+
+
+
+
+ +

+applications

+
+public static final EnumDataType applications
+
+
+
+
+
+ +

+application

+
+public static final EnumDataType application
+
+
+
+
+
+ +

+embedded

+
+public static final EnumDataType embedded
+
+
The embedded cartridge type. +

+

+
+
+
+ +

+gear_groups

+
+public static final EnumDataType gear_groups
+
+
+
+
+
+ +

+cartridges

+
+public static final EnumDataType cartridges
+
+
The standalone cartridges type. +

+

+
+
+
+ +

+cartridge

+
+public static final EnumDataType cartridge
+
+
The standalone cartridge type. +

+

+
+
+
+ +

+environment_variables

+
+public static final EnumDataType environment_variables
+
+
The environment-variables type +

+

+
+
+
+ +

+environment_variable

+
+public static final EnumDataType environment_variable
+
+
The environmetn-variable type +

+

+
+
+ + + + + + + + +
+Method Detail
+ +

+values

+
+public static EnumDataType[] values()
+
+
Returns an array containing the constants of this enum type, in +the order they are declared. This method may be used to iterate +over the constants as follows: +
+for (EnumDataType c : EnumDataType.values())
+    System.out.println(c);
+
+

+

+ +
Returns:
an array containing the constants of this enum type, in +the order they are declared
+
+
+
+ +

+valueOf

+
+public static EnumDataType valueOf(String name)
+
+
Returns the enum constant of this type with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this type. (Extraneous whitespace characters are +not permitted.) +

+

+
Parameters:
name - the name of the enum constant to be returned. +
Returns:
the enum constant with the specified name +
Throws: +
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 +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/response/EnvironmentVariableResourceDTO.html b/documentation/com/openshift/internal/client/response/EnvironmentVariableResourceDTO.html new file mode 100644 index 00000000..f0fb8021 --- /dev/null +++ b/documentation/com/openshift/internal/client/response/EnvironmentVariableResourceDTO.html @@ -0,0 +1,306 @@ + + + + + + + +EnvironmentVariableResourceDTO (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client.response +
+Class EnvironmentVariableResourceDTO

+
+java.lang.Object
+  extended by com.openshift.internal.client.response.BaseResourceDTO
+      extended by com.openshift.internal.client.response.EnvironmentVariableResourceDTO
+
+
+
+
public class EnvironmentVariableResourceDTO
extends BaseResourceDTO
+ + +

+The DTO for an environment variable +

+ +

+

+
Author:
+
Syed Iqbal
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
EnvironmentVariableResourceDTO(String name, + String value, + Map<String,Link> links, + Messages messages) + +
+          Instantiates a new environment variable resource dto.
+  + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetName() + +
+          Returns the name of this environment variable
+ StringgetValue() + +
+          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
+ +

+EnvironmentVariableResourceDTO

+
+public EnvironmentVariableResourceDTO(String name,
+                                      String value,
+                                      Map<String,Link> links,
+                                      Messages messages)
+
+
Instantiates a new environment variable resource dto. +

+

+
Parameters:
name - the name
value - the value
+
+ + + + + + + + +
+Method Detail
+ +

+getName

+
+public final String getName()
+
+
Returns the name of this environment variable +

+

+ +
Returns:
the name
+
+
+
+ +

+getValue

+
+public final String getValue()
+
+
Returns the value of this gear group. +

+

+ +
Returns:
the value
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/response/GearGroupResourceDTO.html b/documentation/com/openshift/internal/client/response/GearGroupResourceDTO.html new file mode 100644 index 00000000..c9198110 --- /dev/null +++ b/documentation/com/openshift/internal/client/response/GearGroupResourceDTO.html @@ -0,0 +1,329 @@ + + + + + + + +GearGroupResourceDTO (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client.response +
+Class GearGroupResourceDTO

+
+java.lang.Object
+  extended by com.openshift.internal.client.response.BaseResourceDTO
+      extended by com.openshift.internal.client.response.GearGroupResourceDTO
+
+
+
+
public class GearGroupResourceDTO
extends BaseResourceDTO
+ + +

+The DTO for a gear groups +

+ +

+

+
Author:
+
Andre Dietisheim
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ CartridgeResourceDTOgetCartridge(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.
+ StringgetName() + +
+          Returns the name of this gear group
+ StringgetUuid() + +
+          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
+ +

+getName

+
+public final String getName()
+
+
Returns the name of this gear group +

+

+ +
Returns:
the name
+
+
+
+ +

+getUuid

+
+public final String getUuid()
+
+
Returns the uuid of this gear group. +

+

+ +
Returns:
the uuid
+
+
+
+ +

+getGears

+
+public final Collection<GearResourceDTO> getGears()
+
+
Returns the gears within this gear group. +

+

+ +
Returns:
the gears
+
+
+
+ +

+getCartridges

+
+public Map<String,CartridgeResourceDTO> getCartridges()
+
+
Returns the cartridges within this gear group. +

+

+ +
Returns:
the cartridges
+
+
+
+ +

+getCartridge

+
+public CartridgeResourceDTO getCartridge(String name)
+
+
Returns the cartridge identified by the given name. +

+

+ +
Returns:
the cartridge or null if none exists in this group
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/response/GearResourceDTO.html b/documentation/com/openshift/internal/client/response/GearResourceDTO.html new file mode 100644 index 00000000..dfad7491 --- /dev/null +++ b/documentation/com/openshift/internal/client/response/GearResourceDTO.html @@ -0,0 +1,299 @@ + + + + + + + +GearResourceDTO (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client.response +
+Class GearResourceDTO

+
+java.lang.Object
+  extended by com.openshift.internal.client.response.BaseResourceDTO
+      extended by com.openshift.internal.client.response.GearResourceDTO
+
+
+
+
public class GearResourceDTO
extends BaseResourceDTO
+ + +

+The Class ApplicationDTO. +

+ +

+

+
Author:
+
Xavier Coulon
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetSshUrl() + +
+           
+ StringgetState() + +
+           
+ StringgetUuid() + +
+           
+ StringtoString() + +
+           
+ + + + + + + +
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
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+
+ +

+getUuid

+
+public String getUuid()
+
+
+
+
+
+
+ +

+getState

+
+public String getState()
+
+
+
+
+
+
+ +

+getSshUrl

+
+public String getSshUrl()
+
+
+ +
Returns:
the sshUrl
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/response/IRestResponseFactory.html b/documentation/com/openshift/internal/client/response/IRestResponseFactory.html new file mode 100644 index 00000000..a2b50ee3 --- /dev/null +++ b/documentation/com/openshift/internal/client/response/IRestResponseFactory.html @@ -0,0 +1,216 @@ + + + + + + + +IRestResponseFactory (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client.response +
+Interface IRestResponseFactory

+
+
All Known Implementing Classes:
OpenShiftJsonDTOFactory
+
+
+
+
public interface IRestResponseFactory
+ + +

+


+ +

+ + + + + + + + + + + + +
+Method Summary
+ RestResponseget(String restResponse) + +
+          Returns a RestResponse instance for a given rest response string.
+  +

+ + + + + + + + +
+Method Detail
+ +

+get

+
+RestResponse get(String restResponse)
+                 throws OpenShiftException
+
+
Returns a RestResponse instance for a given rest response string. +

+

+
Parameters:
rest - response string +
Returns:
RestResponse instance +
Throws: +
OpenShiftException
See Also:
RestResponse
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/response/KeyResourceDTO.html b/documentation/com/openshift/internal/client/response/KeyResourceDTO.html new file mode 100644 index 00000000..c650916f --- /dev/null +++ b/documentation/com/openshift/internal/client/response/KeyResourceDTO.html @@ -0,0 +1,303 @@ + + + + + + + +KeyResourceDTO (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client.response +
+Class KeyResourceDTO

+
+java.lang.Object
+  extended by com.openshift.internal.client.response.BaseResourceDTO
+      extended by com.openshift.internal.client.response.KeyResourceDTO
+
+
+
+
public class KeyResourceDTO
extends BaseResourceDTO
+ + +

+The Class KeyResourceDTO. +

+ +

+


+ +

+ + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ StringgetContent() + +
+          Returns the public key content.
+ StringgetName() + +
+          Returns the name.
+ StringgetType() + +
+          Returns the type.
+ StringtoString() + +
+           
+ + + + + + + +
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
+ +

+getName

+
+public final String getName()
+
+
Returns the name. +

+

+ +
Returns:
the name
+
+
+
+ +

+getType

+
+public final String getType()
+
+
Returns the type. +

+

+ +
Returns:
the type
+
+
+
+ +

+getContent

+
+public final String getContent()
+
+
Returns the public key content. +

+

+ +
Returns:
the public key content
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/response/Link.html b/documentation/com/openshift/internal/client/response/Link.html new file mode 100644 index 00000000..9f7286f6 --- /dev/null +++ b/documentation/com/openshift/internal/client/response/Link.html @@ -0,0 +1,537 @@ + + + + + + + +Link (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client.response +
+Class Link

+
+java.lang.Object
+  extended by com.openshift.internal.client.response.Link
+
+
+
+
public class Link
extends Object
+ + +

+The Class Link. +

+ +

+

+
Author:
+
Xavier Coulon
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + +
+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
+ StringgetHref() + +
+          Gets the url/href this link points to.
+ StringgetHref(String server, + String servicePath, + List<Parameter> urlParameters) + +
+           
+ StringgetHref(String server, + String servicePath, + Parameter... urlParameters) + +
+           
+ HttpMethodgetHttpMethod() + +
+          Gets the http method this link operates on.
+ List<LinkParameter>getOptionalParams() + +
+          Gets the optional params.
+ StringgetRel() + +
+          Gets the related resource (destination) this link points to.
+ List<LinkParameter>getRequiredParams() + +
+          Gets the required params.
+ booleanhasParameter(String name) + +
+           
+ StringtoString() + +
+           
+ voidvalidateRequestParameters(Parameter[] parameters) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Link

+
+public Link(String href,
+            HttpMethod httpMethod)
+
+
+
+ +

+Link

+
+public Link(String rel,
+            String href,
+            HttpMethod httpMethod)
+
+
+
+ +

+Link

+
+protected Link(String rel,
+               String href,
+               String httpMethod,
+               List<LinkParameter> requiredParams,
+               List<LinkParameter> optionalParams)
+
+
+
+ +

+Link

+
+protected Link(String rel,
+               String href,
+               HttpMethod httpMethod,
+               List<LinkParameter> requiredParams,
+               List<LinkParameter> optionalParams)
+
+
Instantiates a new Link object. +

+

+
Parameters:
rel - the related resource this link points to
href - the href the url/href this link points to
httpMethod - the http method that this link operates on
requiredParams - the required params
optionalParams - the optional params
+
+ + + + + + + + +
+Method Detail
+ +

+getRel

+
+public final String getRel()
+
+
Gets the related resource (destination) this link points to. +

+

+ +
Returns:
the rel
+
+
+
+ +

+getHref

+
+public final String getHref()
+
+
Gets the url/href this link points to. +

+

+ +
Returns:
the href
+
+
+
+ +

+getHref

+
+public final String getHref(String server,
+                            String servicePath,
+                            Parameter... urlParameters)
+
+
+
+
+
+
+ +

+getHref

+
+public final String getHref(String server,
+                            String servicePath,
+                            List<Parameter> urlParameters)
+
+
+
+
+
+
+ +

+getHttpMethod

+
+public final HttpMethod getHttpMethod()
+
+
Gets the http method this link operates on. +

+

+ +
Returns:
the httpMethod
+
+
+
+ +

+getRequiredParams

+
+public final List<LinkParameter> getRequiredParams()
+
+
Gets the required params. +

+

+ +
Returns:
the requiredParams
+
+
+
+ +

+getOptionalParams

+
+public final List<LinkParameter> getOptionalParams()
+
+
Gets the optional params. +

+

+ +
Returns:
the optionalParams
+
+
+
+ +

+hasParameter

+
+public boolean hasParameter(String name)
+
+
+
+
+
+
+ +

+validateRequestParameters

+
+public void validateRequestParameters(Parameter[] parameters)
+                               throws OpenShiftRequestException
+
+
+ +
Throws: +
OpenShiftRequestException
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/response/LinkParameter.html b/documentation/com/openshift/internal/client/response/LinkParameter.html new file mode 100644 index 00000000..1dab9804 --- /dev/null +++ b/documentation/com/openshift/internal/client/response/LinkParameter.html @@ -0,0 +1,489 @@ + + + + + + + +LinkParameter (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client.response +
+Class LinkParameter

+
+java.lang.Object
+  extended by com.openshift.internal.client.response.LinkParameter
+
+
+
+
public class LinkParameter
extends Object
+ + +

+

+
Author:
+
Xavier Coulon, Andre Dietisheim
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+protected  StringdefaultValue + +
+           
+protected  Stringdescription + +
+           
+protected  Stringname + +
+           
+protected  LinkParameterTypetype + +
+           
+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
+ StringgetDefaultValue() + +
+           
+ StringgetDescription() + +
+           
+ StringgetName() + +
+           
+ LinkParameterTypegetType() + +
+           
+ List<String>getValidOptions() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+name

+
+protected final String name
+
+
+
+
+
+ +

+type

+
+protected final LinkParameterType type
+
+
+
+
+
+ +

+description

+
+protected final String description
+
+
+
+
+
+ +

+defaultValue

+
+protected final String defaultValue
+
+
+
+
+
+ +

+validOptions

+
+protected final List<String> validOptions
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+LinkParameter

+
+protected LinkParameter(String name,
+                        String type,
+                        String defaultValue,
+                        String description,
+                        List<String> validOptions)
+                 throws OpenShiftRequestException
+
+
+ +
Throws: +
OpenShiftRequestException
+
+
+ +

+LinkParameter

+
+protected LinkParameter(String name,
+                        LinkParameterType type,
+                        String defaultValue,
+                        String description,
+                        List<String> validOptions)
+                 throws OpenShiftRequestException
+
+
+ +
Throws: +
OpenShiftRequestException
+
+ + + + + + + + +
+Method Detail
+ +

+getName

+
+public final String getName()
+
+
+ +
Returns:
the name
+
+
+
+ +

+getType

+
+public final LinkParameterType getType()
+
+
+ +
Returns:
the type
+
+
+
+ +

+getDescription

+
+public final String getDescription()
+
+
+ +
Returns:
the description
+
+
+
+ +

+getDefaultValue

+
+public String getDefaultValue()
+
+
+ +
Returns:
the defaultValue, or null. Only applicable to optional parameters.
+
+
+
+ +

+getValidOptions

+
+public List<String> getValidOptions()
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/response/LinkParameterType.html b/documentation/com/openshift/internal/client/response/LinkParameterType.html new file mode 100644 index 00000000..dca721e6 --- /dev/null +++ b/documentation/com/openshift/internal/client/response/LinkParameterType.html @@ -0,0 +1,372 @@ + + + + + + + +LinkParameterType (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client.response +
+Class LinkParameterType

+
+java.lang.Object
+  extended by com.openshift.internal.client.response.LinkParameterType
+
+
+
+
public class LinkParameterType
extends Object
+ + +

+

+
Author:
+
Andre Dietisheim
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+static LinkParameterTypeARRAY + +
+           
+static LinkParameterTypeBOOLEAN + +
+           
+static LinkParameterTypeINTEGER + +
+           
+static LinkParameterTypeSTRING + +
+           
+  + + + + + + + + + + +
+Constructor Summary
LinkParameterType(String type) + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+ booleanequals(Object obj) + +
+           
+ inthashCode() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+STRING

+
+public static final LinkParameterType STRING
+
+
+
+
+
+ +

+BOOLEAN

+
+public static final LinkParameterType BOOLEAN
+
+
+
+
+
+ +

+INTEGER

+
+public static final LinkParameterType INTEGER
+
+
+
+
+
+ +

+ARRAY

+
+public static final LinkParameterType ARRAY
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+LinkParameterType

+
+public LinkParameterType(String type)
+
+
+ + + + + + + + +
+Method Detail
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class Object
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object obj)
+
+
+
Overrides:
equals in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/response/OpenShiftJsonDTOFactory.html b/documentation/com/openshift/internal/client/response/OpenShiftJsonDTOFactory.html new file mode 100644 index 00000000..47a359ed --- /dev/null +++ b/documentation/com/openshift/internal/client/response/OpenShiftJsonDTOFactory.html @@ -0,0 +1,274 @@ + + + + + + + +OpenShiftJsonDTOFactory (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client.response +
+Class OpenShiftJsonDTOFactory

+
+java.lang.Object
+  extended by com.openshift.internal.client.response.OpenShiftJsonDTOFactory
+
+
+
All Implemented Interfaces:
IRestResponseFactory
+
+
+
+
public class OpenShiftJsonDTOFactory
extends Object
implements IRestResponseFactory
+ + +

+A factory for creating DTO objects. +

+ +

+

+
Author:
+
Xavier Coulon, Andre Dietisheim
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
OpenShiftJsonDTOFactory() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+ RestResponseget(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
+ +

+OpenShiftJsonDTOFactory

+
+public OpenShiftJsonDTOFactory()
+
+
+ + + + + + + + +
+Method Detail
+ +

+get

+
+public RestResponse get(String json)
+                 throws OpenShiftException
+
+
Description copied from interface: IRestResponseFactory
+
Returns a RestResponse instance for a given rest response string. +

+

+
Specified by:
get in interface IRestResponseFactory
+
+
+ +
Returns:
RestResponse instance +
Throws: +
OpenShiftException
See Also:
RestResponse
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/response/RestResponse.html b/documentation/com/openshift/internal/client/response/RestResponse.html new file mode 100644 index 00000000..9aaf259e --- /dev/null +++ b/documentation/com/openshift/internal/client/response/RestResponse.html @@ -0,0 +1,346 @@ + + + + + + + +RestResponse (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client.response +
+Class RestResponse

+
+java.lang.Object
+  extended by com.openshift.internal.client.response.RestResponse
+
+
+
+
public class RestResponse
extends Object
+ + +

+The Class Response. +

+ +

+


+ +

+ + + + + + + + + + + + +
+Constructor Summary
+protected RestResponse(String status, + Messages messages, + Object data, + EnumDataType dataType) + +
+          Instantiates a new response.
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ + + + + +
+<T> T
+
getData() + +
+          Gets the data.
+ EnumDataTypegetDataType() + +
+          Gets the data type.
+ MessagesgetMessages() + +
+          Gets the messages.
+ StringgetStatus() + +
+          Gets the status.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+RestResponse

+
+protected RestResponse(String status,
+                       Messages messages,
+                       Object data,
+                       EnumDataType dataType)
+
+
Instantiates a new response. +

+

+
Parameters:
status - the status
messages - the messages
data - the data
dataType - the data type
+
+ + + + + + + + +
+Method Detail
+ +

+getStatus

+
+public final String getStatus()
+
+
Gets the status. +

+

+ +
Returns:
the status
+
+
+
+ +

+getMessages

+
+public final Messages getMessages()
+
+
Gets the messages. +

+

+ +
Returns:
the messages
+
+
+
+ +

+getDataType

+
+public final EnumDataType getDataType()
+
+
Gets the data type. +

+

+ +
Returns:
the dataType
+
+
+
+ +

+getData

+
+public final <T> T getData()
+
+
Gets the data. +

+

+
Type Parameters:
T - the generic type +
Returns:
the data, casted as the caller requires. To avoid ClassCastExceptions, caller may refer to the + getDataType() method to discover the actual type of the data.
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/response/UserResourceDTO.html b/documentation/com/openshift/internal/client/response/UserResourceDTO.html new file mode 100644 index 00000000..f43d82c4 --- /dev/null +++ b/documentation/com/openshift/internal/client/response/UserResourceDTO.html @@ -0,0 +1,271 @@ + + + + + + + +UserResourceDTO (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client.response +
+Class UserResourceDTO

+
+java.lang.Object
+  extended by com.openshift.internal.client.response.BaseResourceDTO
+      extended by com.openshift.internal.client.response.UserResourceDTO
+
+
+
+
public class UserResourceDTO
extends BaseResourceDTO
+ + +

+


+ +

+ + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ intgetConsumedGears() + +
+           
+ intgetMaxGears() + +
+           
+ StringgetRhLogin() + +
+           
+ + + + + + + +
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
+ +

+getRhLogin

+
+public String getRhLogin()
+
+
+ +
Returns:
the rhLogin
+
+
+
+ +

+getMaxGears

+
+public int getMaxGears()
+
+
+ +
Returns:
the maxGears
+
+
+
+ +

+getConsumedGears

+
+public int getConsumedGears()
+
+
+ +
Returns:
the consumedGears
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/response/class-use/ApplicationResourceDTO.html b/documentation/com/openshift/internal/client/response/class-use/ApplicationResourceDTO.html new file mode 100644 index 00000000..17046092 --- /dev/null +++ b/documentation/com/openshift/internal/client/response/class-use/ApplicationResourceDTO.html @@ -0,0 +1,196 @@ + + + + + + + +Uses of Class com.openshift.internal.client.response.ApplicationResourceDTO (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.response.ApplicationResourceDTO

+
+ + + + + + + + + +
+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  voidApplicationResource.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 +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/response/class-use/BaseResourceDTO.html b/documentation/com/openshift/internal/client/response/class-use/BaseResourceDTO.html new file mode 100644 index 00000000..aadde340 --- /dev/null +++ b/documentation/com/openshift/internal/client/response/class-use/BaseResourceDTO.html @@ -0,0 +1,237 @@ + + + + + + + +Uses of Class com.openshift.internal.client.response.BaseResourceDTO (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.response.BaseResourceDTO

+
+ + + + + + + + + +
+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
+ classApplicationResourceDTO + +
+          The Class ApplicationDTO.
+ classCartridgeResourceDTO + +
+           
+ classDomainResourceDTO + +
+           
+ classEnvironmentVariableResourceDTO + +
+          The DTO for an environment variable
+ classGearGroupResourceDTO + +
+          The DTO for a gear groups
+ classGearResourceDTO + +
+          The Class ApplicationDTO.
+ classKeyResourceDTO + +
+          The Class KeyResourceDTO.
+ classUserResourceDTO + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/response/class-use/CartridgeResourceDTO.html b/documentation/com/openshift/internal/client/response/class-use/CartridgeResourceDTO.html new file mode 100644 index 00000000..25136d82 --- /dev/null +++ b/documentation/com/openshift/internal/client/response/class-use/CartridgeResourceDTO.html @@ -0,0 +1,287 @@ + + + + + + + +Uses of Class com.openshift.internal.client.response.CartridgeResourceDTO (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.response.CartridgeResourceDTO

+
+ + + + + + + + + + + + + +
+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  voidEmbeddedCartridgeResource.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
+ CartridgeResourceDTOGearGroupResourceDTO.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 +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/response/class-use/CartridgeResourceProperties.html b/documentation/com/openshift/internal/client/response/class-use/CartridgeResourceProperties.html new file mode 100644 index 00000000..05e07199 --- /dev/null +++ b/documentation/com/openshift/internal/client/response/class-use/CartridgeResourceProperties.html @@ -0,0 +1,268 @@ + + + + + + + +Uses of Class com.openshift.internal.client.response.CartridgeResourceProperties (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.response.CartridgeResourceProperties

+
+ + + + + + + + + + + + + + + + + +
+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
+ CartridgeResourcePropertiesIEmbeddedCartridge.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
+ CartridgeResourcePropertiesEmbeddedCartridgeResource.getProperties() + +
+           
+  +

+ + + + + +
+Uses of CartridgeResourceProperties in com.openshift.internal.client.response
+  +

+ + + + + + + + + +
Methods in com.openshift.internal.client.response that return CartridgeResourceProperties
+ CartridgeResourcePropertiesCartridgeResourceDTO.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 +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/response/class-use/CartridgeResourceProperty.html b/documentation/com/openshift/internal/client/response/class-use/CartridgeResourceProperty.html new file mode 100644 index 00000000..ebc80b07 --- /dev/null +++ b/documentation/com/openshift/internal/client/response/class-use/CartridgeResourceProperty.html @@ -0,0 +1,251 @@ + + + + + + + +Uses of Class com.openshift.internal.client.response.CartridgeResourceProperty (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.response.CartridgeResourceProperty

+
+ + + + + + + + + + + + + +
+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
+ CartridgeResourcePropertyUrlPropertyQuery.getMatchingProperty(IEmbeddedCartridge embeddedCartridge) + +
+           
+abstract  CartridgeResourcePropertyCartridgePropertyQuery.getMatchingProperty(IEmbeddedCartridge embeddedCartridge) + +
+           
+  +

+ + + + + +
+Uses of CartridgeResourceProperty in com.openshift.internal.client.response
+  +

+ + + + + + + + + +
Methods in com.openshift.internal.client.response that return CartridgeResourceProperty
+ CartridgeResourcePropertyCartridgeResourceProperties.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
+ voidCartridgeResourceProperties.add(String name, + CartridgeResourceProperty property) + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/response/class-use/DomainResourceDTO.html b/documentation/com/openshift/internal/client/response/class-use/DomainResourceDTO.html new file mode 100644 index 00000000..86877111 --- /dev/null +++ b/documentation/com/openshift/internal/client/response/class-use/DomainResourceDTO.html @@ -0,0 +1,180 @@ + + + + + + + +Uses of Class com.openshift.internal.client.response.DomainResourceDTO (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.response.DomainResourceDTO

+
+ + + + + + + + + +
+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 +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/response/class-use/EnumDataType.html b/documentation/com/openshift/internal/client/response/class-use/EnumDataType.html new file mode 100644 index 00000000..8c7d6525 --- /dev/null +++ b/documentation/com/openshift/internal/client/response/class-use/EnumDataType.html @@ -0,0 +1,215 @@ + + + + + + + +Uses of Class com.openshift.internal.client.response.EnumDataType (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.response.EnumDataType

+
+ + + + + + + + + +
+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
+ EnumDataTypeRestResponse.getDataType() + +
+          Gets the data type.
+static EnumDataTypeEnumDataType.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 +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/response/class-use/EnvironmentVariableResourceDTO.html b/documentation/com/openshift/internal/client/response/class-use/EnvironmentVariableResourceDTO.html new file mode 100644 index 00000000..12889e35 --- /dev/null +++ b/documentation/com/openshift/internal/client/response/class-use/EnvironmentVariableResourceDTO.html @@ -0,0 +1,180 @@ + + + + + + + +Uses of Class com.openshift.internal.client.response.EnvironmentVariableResourceDTO (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.response.EnvironmentVariableResourceDTO

+
+ + + + + + + + + +
+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 +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/response/class-use/GearGroupResourceDTO.html b/documentation/com/openshift/internal/client/response/class-use/GearGroupResourceDTO.html new file mode 100644 index 00000000..dcea4255 --- /dev/null +++ b/documentation/com/openshift/internal/client/response/class-use/GearGroupResourceDTO.html @@ -0,0 +1,181 @@ + + + + + + + +Uses of Class com.openshift.internal.client.response.GearGroupResourceDTO (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.response.GearGroupResourceDTO

+
+ + + + + + + + + +
+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 +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/response/class-use/GearResourceDTO.html b/documentation/com/openshift/internal/client/response/class-use/GearResourceDTO.html new file mode 100644 index 00000000..3780ee78 --- /dev/null +++ b/documentation/com/openshift/internal/client/response/class-use/GearResourceDTO.html @@ -0,0 +1,213 @@ + + + + + + + +Uses of Class com.openshift.internal.client.response.GearResourceDTO (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.response.GearResourceDTO

+
+ + + + + + + + + + + + + +
+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 +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/response/class-use/IRestResponseFactory.html b/documentation/com/openshift/internal/client/response/class-use/IRestResponseFactory.html new file mode 100644 index 00000000..b29654b4 --- /dev/null +++ b/documentation/com/openshift/internal/client/response/class-use/IRestResponseFactory.html @@ -0,0 +1,238 @@ + + + + + + + +Uses of Interface com.openshift.internal.client.response.IRestResponseFactory (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Interface
com.openshift.internal.client.response.IRestResponseFactory

+
+ + + + + + + + + + + + + +
+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
+ classOpenShiftJsonDTOFactory + +
+          A factory for creating DTO objects.
+  +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/response/class-use/KeyResourceDTO.html b/documentation/com/openshift/internal/client/response/class-use/KeyResourceDTO.html new file mode 100644 index 00000000..e5fb6e34 --- /dev/null +++ b/documentation/com/openshift/internal/client/response/class-use/KeyResourceDTO.html @@ -0,0 +1,196 @@ + + + + + + + +Uses of Class com.openshift.internal.client.response.KeyResourceDTO (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.response.KeyResourceDTO

+
+ + + + + + + + + +
+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  voidSSHKeyResource.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 +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/response/class-use/Link.html b/documentation/com/openshift/internal/client/response/class-use/Link.html new file mode 100644 index 00000000..a393ee97 --- /dev/null +++ b/documentation/com/openshift/internal/client/response/class-use/Link.html @@ -0,0 +1,478 @@ + + + + + + + +Uses of Class com.openshift.internal.client.response.Link (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.response.Link

+
+ + + + + + + + + + + + + +
+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  LinkAbstractOpenShiftResource.getLink(String linkName) + +
+          Gets the link for the given name.
+  +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Methods in com.openshift.internal.client with parameters of type Link
+ RestResponseRestService.request(Link link, + int timeout, + IMediaType requestMediaType, + Parameter... parameters) + +
+           
+ RestResponseIRestService.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.
+ RestResponseRestService.request(Link link, + int timeout, + List<Parameter> urlParameters, + IMediaType requestMediaType, + Parameter... parameters) + +
+           
+ RestResponseIRestService.request(Link link, + int timeout, + List<Parameter> urlParameters, + IMediaType mediaType, + Parameter... parameters) + +
+           
+ RestResponseRestService.request(Link link, + int timeout, + List<Parameter> urlParameters, + Parameter... parameters) + +
+           
+ RestResponseIRestService.request(Link link, + int timeout, + List<Parameter> urlParameters, + Parameter... parameters) + +
+           
+ RestResponseRestService.request(Link link, + int timeout, + Parameter... parameters) + +
+           
+ RestResponseIRestService.request(Link link, + int timeout, + Parameter... parameters) + +
+           
+ RestResponseRestService.request(Link link, + List<Parameter> urlParameters, + Parameter... parameters) + +
+           
+ RestResponseIRestService.request(Link link, + List<Parameter> urlParameters, + Parameter... parameters) + +
+           
+ RestResponseRestService.request(Link link, + Parameter... parameters) + +
+           
+ RestResponseIRestService.request(Link link, + Parameter... parameters) + +
+           
+  +

+ + + + + + + + + +
Method parameters in com.openshift.internal.client with type arguments of type Link
+protected  voidAbstractOpenShiftResource.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
+ LinkBaseResourceDTO.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 +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/response/class-use/LinkParameter.html b/documentation/com/openshift/internal/client/response/class-use/LinkParameter.html new file mode 100644 index 00000000..2d677c59 --- /dev/null +++ b/documentation/com/openshift/internal/client/response/class-use/LinkParameter.html @@ -0,0 +1,237 @@ + + + + + + + +Uses of Class com.openshift.internal.client.response.LinkParameter (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.response.LinkParameter

+
+ + + + + + + + + +
+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 +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/response/class-use/LinkParameterType.html b/documentation/com/openshift/internal/client/response/class-use/LinkParameterType.html new file mode 100644 index 00000000..1ffdb6c0 --- /dev/null +++ b/documentation/com/openshift/internal/client/response/class-use/LinkParameterType.html @@ -0,0 +1,247 @@ + + + + + + + +Uses of Class com.openshift.internal.client.response.LinkParameterType (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.response.LinkParameterType

+
+ + + + + + + + + +
+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 LinkParameterTypeLinkParameterType.ARRAY + +
+           
+static LinkParameterTypeLinkParameterType.BOOLEAN + +
+           
+static LinkParameterTypeLinkParameterType.INTEGER + +
+           
+static LinkParameterTypeLinkParameterType.STRING + +
+           
+protected  LinkParameterTypeLinkParameter.type + +
+           
+  +

+ + + + + + + + + +
Methods in com.openshift.internal.client.response that return LinkParameterType
+ LinkParameterTypeLinkParameter.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 +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/response/class-use/OpenShiftJsonDTOFactory.html b/documentation/com/openshift/internal/client/response/class-use/OpenShiftJsonDTOFactory.html new file mode 100644 index 00000000..da05b9ed --- /dev/null +++ b/documentation/com/openshift/internal/client/response/class-use/OpenShiftJsonDTOFactory.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.openshift.internal.client.response.OpenShiftJsonDTOFactory (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.response.OpenShiftJsonDTOFactory

+
+No usage of com.openshift.internal.client.response.OpenShiftJsonDTOFactory +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/response/class-use/RestResponse.html b/documentation/com/openshift/internal/client/response/class-use/RestResponse.html new file mode 100644 index 00000000..5c54ff82 --- /dev/null +++ b/documentation/com/openshift/internal/client/response/class-use/RestResponse.html @@ -0,0 +1,423 @@ + + + + + + + +Uses of Class com.openshift.internal.client.response.RestResponse (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.response.RestResponse

+
+ + + + + + + + + + + + + + + + + +
+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
+ RestResponseOpenShiftEndpointException.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
+ RestResponseRestService.request(Link link, + int timeout, + IMediaType requestMediaType, + Parameter... parameters) + +
+           
+ RestResponseIRestService.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.
+ RestResponseRestService.request(Link link, + int timeout, + List<Parameter> urlParameters, + IMediaType requestMediaType, + Parameter... parameters) + +
+           
+ RestResponseIRestService.request(Link link, + int timeout, + List<Parameter> urlParameters, + IMediaType mediaType, + Parameter... parameters) + +
+           
+ RestResponseRestService.request(Link link, + int timeout, + List<Parameter> urlParameters, + Parameter... parameters) + +
+           
+ RestResponseIRestService.request(Link link, + int timeout, + List<Parameter> urlParameters, + Parameter... parameters) + +
+           
+ RestResponseRestService.request(Link link, + int timeout, + Parameter... parameters) + +
+           
+ RestResponseIRestService.request(Link link, + int timeout, + Parameter... parameters) + +
+           
+ RestResponseRestService.request(Link link, + List<Parameter> urlParameters, + Parameter... parameters) + +
+           
+ RestResponseIRestService.request(Link link, + List<Parameter> urlParameters, + Parameter... parameters) + +
+           
+ RestResponseRestService.request(Link link, + Parameter... parameters) + +
+           
+ RestResponseIRestService.request(Link link, + Parameter... parameters) + +
+           
+  +

+ + + + + + + + + +
Methods in com.openshift.internal.client with parameters of type RestResponse
+protected + + + + +
+<DTO> DTO
+
AbstractOpenShiftResource.ServiceRequest.getData(RestResponse response) + +
+           
+  +

+ + + + + +
+Uses of RestResponse in com.openshift.internal.client.response
+  +

+ + + + + + + + + + + + + +
Methods in com.openshift.internal.client.response that return RestResponse
+ RestResponseOpenShiftJsonDTOFactory.get(String json) + +
+           
+ RestResponseIRestResponseFactory.get(String restResponse) + +
+          Returns a RestResponse instance for a given rest response string.
+  +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/response/class-use/UserResourceDTO.html b/documentation/com/openshift/internal/client/response/class-use/UserResourceDTO.html new file mode 100644 index 00000000..25339e48 --- /dev/null +++ b/documentation/com/openshift/internal/client/response/class-use/UserResourceDTO.html @@ -0,0 +1,181 @@ + + + + + + + +Uses of Class com.openshift.internal.client.response.UserResourceDTO (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.response.UserResourceDTO

+
+ + + + + + + + + +
+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 +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/response/package-frame.html b/documentation/com/openshift/internal/client/response/package-frame.html new file mode 100644 index 00000000..f84c9b83 --- /dev/null +++ b/documentation/com/openshift/internal/client/response/package-frame.html @@ -0,0 +1,85 @@ + + + + + + + +com.openshift.internal.client.response (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + +com.openshift.internal.client.response + + + + +
+Interfaces  + +
+IRestResponseFactory
+ + + + + + +
+Classes  + +
+ApplicationResourceDTO +
+BaseResourceDTO +
+CartridgeResourceDTO +
+CartridgeResourceProperties +
+CartridgeResourceProperty +
+DomainResourceDTO +
+EnvironmentVariableResourceDTO +
+GearGroupResourceDTO +
+GearResourceDTO +
+KeyResourceDTO +
+Link +
+LinkParameter +
+LinkParameterType +
+OpenShiftJsonDTOFactory +
+RestResponse +
+UserResourceDTO
+ + + + + + +
+Enums  + +
+EnumDataType
+ + + + diff --git a/documentation/com/openshift/internal/client/response/package-summary.html b/documentation/com/openshift/internal/client/response/package-summary.html new file mode 100644 index 00000000..d71ea172 --- /dev/null +++ b/documentation/com/openshift/internal/client/response/package-summary.html @@ -0,0 +1,246 @@ + + + + + + + +com.openshift.internal.client.response (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+

+Package com.openshift.internal.client.response +

+ + + + + + + + + +
+Interface Summary
IRestResponseFactory 
+  + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
ApplicationResourceDTOThe Class ApplicationDTO.
BaseResourceDTOThe Class BaseResourceDTO.
CartridgeResourceDTO 
CartridgeResourcePropertiesProperties that hold informations available in cartridges
CartridgeResourceProperty 
DomainResourceDTO 
EnvironmentVariableResourceDTOThe DTO for an environment variable
GearGroupResourceDTOThe DTO for a gear groups
GearResourceDTOThe Class ApplicationDTO.
KeyResourceDTOThe Class KeyResourceDTO.
LinkThe Class Link.
LinkParameter 
LinkParameterType 
OpenShiftJsonDTOFactoryA factory for creating DTO objects.
RestResponseThe Class Response.
UserResourceDTO 
+  + +

+ + + + + + + + + +
+Enum Summary
EnumDataTypeThe Enum EnumDataType.
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/response/package-tree.html b/documentation/com/openshift/internal/client/response/package-tree.html new file mode 100644 index 00000000..52aedb47 --- /dev/null +++ b/documentation/com/openshift/internal/client/response/package-tree.html @@ -0,0 +1,172 @@ + + + + + + + +com.openshift.internal.client.response Class Hierarchy (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Hierarchy For Package com.openshift.internal.client.response +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+ +

+Enum Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/response/package-use.html b/documentation/com/openshift/internal/client/response/package-use.html new file mode 100644 index 00000000..91f07942 --- /dev/null +++ b/documentation/com/openshift/internal/client/response/package-use.html @@ -0,0 +1,373 @@ + + + + + + + +Uses of Package com.openshift.internal.client.response (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Package
com.openshift.internal.client.response

+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+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 +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/ssh/AbstractSSHKey.html b/documentation/com/openshift/internal/client/ssh/AbstractSSHKey.html new file mode 100644 index 00000000..b2f96034 --- /dev/null +++ b/documentation/com/openshift/internal/client/ssh/AbstractSSHKey.html @@ -0,0 +1,394 @@ + + + + + + + +AbstractSSHKey (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client.ssh +
+Class AbstractSSHKey

+
+java.lang.Object
+  extended by com.openshift.internal.client.ssh.AbstractSSHKey
+
+
+
All Implemented Interfaces:
ISSHPublicKey
+
+
+
Direct Known Subclasses:
SSHKeyPair, SSHPublicKey
+
+
+
+
public abstract class AbstractSSHKey
extends Object
implements ISSHPublicKey
+ + +

+

+
Author:
+
Andre Dietisheim
+
+
+ +

+ + + + + + + + + + + + +
+Constructor Summary
+protected AbstractSSHKey(SSHKeyType sshKeyType) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ booleanequals(Object obj) + +
+           
+ SSHKeyTypegetKeyType() + +
+          Returns the type of the key (ssh-rsa or ssh-dss)
+ inthashCode() + +
+           
+protected  voidsetKeyType(SSHKeyType keyType) + +
+           
+protected  voidsetKeyType(String keyTypeId) + +
+           
+ StringtoString() + +
+           
+ + + + + + + +
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
+ +

+AbstractSSHKey

+
+protected AbstractSSHKey(SSHKeyType sshKeyType)
+
+
+ + + + + + + + +
+Method Detail
+ +

+getKeyType

+
+public SSHKeyType getKeyType()
+
+
Description copied from interface: ISSHPublicKey
+
Returns the type of the key (ssh-rsa or ssh-dss) +

+

+
Specified by:
getKeyType in interface ISSHPublicKey
+
+
+ +
Returns:
the type of key, either ssh-rsa or ssh-dss
+
+
+
+ +

+setKeyType

+
+protected void setKeyType(String keyTypeId)
+                   throws OpenShiftUnknonwSSHKeyTypeException
+
+
+
+
+
+ +
Throws: +
OpenShiftUnknonwSSHKeyTypeException
+
+
+
+ +

+setKeyType

+
+protected void setKeyType(SSHKeyType keyType)
+
+
+
+
+
+
+
+
+
+ +

+hashCode

+
+public int hashCode()
+
+
+
Overrides:
hashCode in class Object
+
+
+
+
+
+
+ +

+equals

+
+public boolean equals(Object obj)
+
+
+
Overrides:
equals in class Object
+
+
+
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/ssh/ApplicationPortForwarding.html b/documentation/com/openshift/internal/client/ssh/ApplicationPortForwarding.html new file mode 100644 index 00000000..4acae886 --- /dev/null +++ b/documentation/com/openshift/internal/client/ssh/ApplicationPortForwarding.html @@ -0,0 +1,532 @@ + + + + + + + +ApplicationPortForwarding (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client.ssh +
+Class ApplicationPortForwarding

+
+java.lang.Object
+  extended by com.openshift.internal.client.ssh.ApplicationPortForwarding
+
+
+
All Implemented Interfaces:
IApplicationPortForwarding
+
+
+
+
public class ApplicationPortForwarding
extends Object
implements IApplicationPortForwarding
+ + +

+

+
Author:
+
Xavier Coulon
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
ApplicationPortForwarding(IApplication application, + String name, + String remoteAddress, + int remotePort) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  IApplicationgetApplication() + +
+           
+ StringgetLocalAddress() + +
+           
+ intgetLocalPort() + +
+           
+ StringgetName() + +
+           
+ StringgetRemoteAddress() + +
+           
+ intgetRemotePort() + +
+           
+ booleanisStarted(com.jcraft.jsch.Session session) + +
+           
+ voidsetLocalAddress(String localAddress) + +
+           
+ voidsetLocalPort(int localPort) + +
+           
+ voidstart(com.jcraft.jsch.Session session) + +
+          Start the binding, ie, open a SSH tunnel between local address:port and remote address:port.
+ voidstop(com.jcraft.jsch.Session session) + +
+          Stop the SSH tunnel.
+ StringtoString() + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+ApplicationPortForwarding

+
+public ApplicationPortForwarding(IApplication application,
+                                 String name,
+                                 String remoteAddress,
+                                 int remotePort)
+
+
+ + + + + + + + +
+Method Detail
+ +

+start

+
+public void start(com.jcraft.jsch.Session session)
+           throws OpenShiftSSHOperationException
+
+
Description copied from interface: IApplicationPortForwarding
+
Start the binding, ie, open a SSH tunnel between local address:port and remote address:port. +

+

+
Specified by:
start in interface IApplicationPortForwarding
+
+
+ +
Throws: +
OpenShiftSSHOperationException
+
+
+
+ +

+stop

+
+public void stop(com.jcraft.jsch.Session session)
+          throws OpenShiftSSHOperationException
+
+
Description copied from interface: IApplicationPortForwarding
+
Stop the SSH tunnel. +

+

+
Specified by:
stop in interface IApplicationPortForwarding
+
+
+ +
Throws: +
OpenShiftSSHOperationException
+
+
+
+ +

+isStarted

+
+public boolean isStarted(com.jcraft.jsch.Session session)
+                  throws OpenShiftSSHOperationException
+
+
+
Specified by:
isStarted in interface IApplicationPortForwarding
+
+
+ +
Returns:
true if the SSH tunnel is open, false otherwise. +
Throws: +
OpenShiftSSHOperationException
+
+
+
+ +

+getApplication

+
+protected final IApplication getApplication()
+
+
+
+
+
+
+
+
+
+ +

+getName

+
+public final String getName()
+
+
+
Specified by:
getName in interface IApplicationPortForwarding
+
+
+ +
Returns:
the name
+
+
+
+ +

+getLocalAddress

+
+public final String getLocalAddress()
+
+
+
Specified by:
getLocalAddress in interface IApplicationPortForwarding
+
+
+ +
Returns:
the localAddress
+
+
+
+ +

+setLocalAddress

+
+public final void setLocalAddress(String localAddress)
+
+
+
Specified by:
setLocalAddress in interface IApplicationPortForwarding
+
+
+
Parameters:
localAddress - the localAddress to set
+
+
+
+ +

+getLocalPort

+
+public final int getLocalPort()
+
+
+
Specified by:
getLocalPort in interface IApplicationPortForwarding
+
+
+ +
Returns:
the localPort
+
+
+
+ +

+setLocalPort

+
+public final void setLocalPort(int localPort)
+
+
+
Specified by:
setLocalPort in interface IApplicationPortForwarding
+
+
+
Parameters:
localPort - the localPort to set
+
+
+
+ +

+getRemoteAddress

+
+public final String getRemoteAddress()
+
+
+
Specified by:
getRemoteAddress in interface IApplicationPortForwarding
+
+
+ +
Returns:
the remoteIp
+
+
+
+ +

+getRemotePort

+
+public final int getRemotePort()
+
+
+
Specified by:
getRemotePort in interface IApplicationPortForwarding
+
+
+ +
Returns:
the remotePort
+
+
+
+ +

+toString

+
+public String toString()
+
+
+
Overrides:
toString in class Object
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/ssh/class-use/AbstractSSHKey.html b/documentation/com/openshift/internal/client/ssh/class-use/AbstractSSHKey.html new file mode 100644 index 00000000..4a5e13c5 --- /dev/null +++ b/documentation/com/openshift/internal/client/ssh/class-use/AbstractSSHKey.html @@ -0,0 +1,189 @@ + + + + + + + +Uses of Class com.openshift.internal.client.ssh.AbstractSSHKey (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.ssh.AbstractSSHKey

+
+ + + + + + + + + +
+Packages that use AbstractSSHKey
com.openshift.client  
+  +

+ + + + + +
+Uses of AbstractSSHKey in com.openshift.client
+  +

+ + + + + + + + + + + + + +
Subclasses of AbstractSSHKey in com.openshift.client
+ classSSHKeyPair + +
+           
+ classSSHPublicKey + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/ssh/class-use/ApplicationPortForwarding.html b/documentation/com/openshift/internal/client/ssh/class-use/ApplicationPortForwarding.html new file mode 100644 index 00000000..4cdd5661 --- /dev/null +++ b/documentation/com/openshift/internal/client/ssh/class-use/ApplicationPortForwarding.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.openshift.internal.client.ssh.ApplicationPortForwarding (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.ssh.ApplicationPortForwarding

+
+No usage of com.openshift.internal.client.ssh.ApplicationPortForwarding +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/ssh/package-frame.html b/documentation/com/openshift/internal/client/ssh/package-frame.html new file mode 100644 index 00000000..e41a31ed --- /dev/null +++ b/documentation/com/openshift/internal/client/ssh/package-frame.html @@ -0,0 +1,35 @@ + + + + + + + +com.openshift.internal.client.ssh (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + +com.openshift.internal.client.ssh + + + + +
+Classes  + +
+AbstractSSHKey +
+ApplicationPortForwarding
+ + + + diff --git a/documentation/com/openshift/internal/client/ssh/package-summary.html b/documentation/com/openshift/internal/client/ssh/package-summary.html new file mode 100644 index 00000000..9f04463a --- /dev/null +++ b/documentation/com/openshift/internal/client/ssh/package-summary.html @@ -0,0 +1,162 @@ + + + + + + + +com.openshift.internal.client.ssh (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+

+Package com.openshift.internal.client.ssh +

+ + + + + + + + + + + + + +
+Class Summary
AbstractSSHKey 
ApplicationPortForwarding 
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/ssh/package-tree.html b/documentation/com/openshift/internal/client/ssh/package-tree.html new file mode 100644 index 00000000..5052f497 --- /dev/null +++ b/documentation/com/openshift/internal/client/ssh/package-tree.html @@ -0,0 +1,156 @@ + + + + + + + +com.openshift.internal.client.ssh Class Hierarchy (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Hierarchy For Package com.openshift.internal.client.ssh +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/ssh/package-use.html b/documentation/com/openshift/internal/client/ssh/package-use.html new file mode 100644 index 00000000..274df049 --- /dev/null +++ b/documentation/com/openshift/internal/client/ssh/package-use.html @@ -0,0 +1,171 @@ + + + + + + + +Uses of Package com.openshift.internal.client.ssh (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Package
com.openshift.internal.client.ssh

+
+ + + + + + + + + +
+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 +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/utils/Assert.AssertionFailedException.html b/documentation/com/openshift/internal/client/utils/Assert.AssertionFailedException.html new file mode 100644 index 00000000..eda87707 --- /dev/null +++ b/documentation/com/openshift/internal/client/utils/Assert.AssertionFailedException.html @@ -0,0 +1,245 @@ + + + + + + + +Assert.AssertionFailedException (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client.utils +
+Class Assert.AssertionFailedException

+
+java.lang.Object
+  extended by java.lang.Throwable
+      extended by java.lang.Exception
+          extended by java.lang.RuntimeException
+              extended by com.openshift.internal.client.utils.Assert.AssertionFailedException
+
+
+
All Implemented Interfaces:
Serializable
+
+
+
Enclosing class:
Assert
+
+
+
+
public static final class Assert.AssertionFailedException
extends RuntimeException
+ + +

+

+
See Also:
Serialized Form
+
+ +

+ + + + + + + + + + + +
+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
+ +

+Assert.AssertionFailedException

+
+public Assert.AssertionFailedException()
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/utils/Assert.html b/documentation/com/openshift/internal/client/utils/Assert.html new file mode 100644 index 00000000..389fedba --- /dev/null +++ b/documentation/com/openshift/internal/client/utils/Assert.html @@ -0,0 +1,319 @@ + + + + + + + +Assert (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client.utils +
+Class Assert

+
+java.lang.Object
+  extended by com.openshift.internal.client.utils.Assert
+
+
+
+
public class Assert
extends Object
+ + +

+

+
Author:
+
André Dietisheim
+
+
+ +

+ + + + + + + + + + + +
+Nested Class Summary
+static classAssert.AssertionFailedException + +
+           
+  + + + + + + + + + + +
+Constructor Summary
Assert() + +
+           
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static voidisTrue(boolean assertion) + +
+           
+static voidnotEmpty(String value) + +
+           
+static + + + + +
+<V> V
+
notNull(V value) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Assert

+
+public Assert()
+
+
+ + + + + + + + +
+Method Detail
+ +

+notNull

+
+public static <V> V notNull(V value)
+
+
+
+
+
+
+ +

+notEmpty

+
+public static void notEmpty(String value)
+
+
+
+
+
+
+ +

+isTrue

+
+public static void isTrue(boolean assertion)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/utils/CollectionUtils.html b/documentation/com/openshift/internal/client/utils/CollectionUtils.html new file mode 100644 index 00000000..be652f91 --- /dev/null +++ b/documentation/com/openshift/internal/client/utils/CollectionUtils.html @@ -0,0 +1,264 @@ + + + + + + + +CollectionUtils (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client.utils +
+Class CollectionUtils

+
+java.lang.Object
+  extended by com.openshift.internal.client.utils.CollectionUtils
+
+
+
+
public class CollectionUtils
extends Object
+ + +

+

+
Author:
+
Andre Dietisheim
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
CollectionUtils() + +
+           
+  + + + + + + + + + + + +
+Method Summary
+static + + + + +
+<T> List<T>
+
toUnmodifiableCopy(Collection<T> collection) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+CollectionUtils

+
+public CollectionUtils()
+
+
+ + + + + + + + +
+Method Detail
+ +

+toUnmodifiableCopy

+
+public static <T> List<T> toUnmodifiableCopy(Collection<T> collection)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/utils/IOpenShiftJsonConstants.html b/documentation/com/openshift/internal/client/utils/IOpenShiftJsonConstants.html new file mode 100644 index 00000000..aeccd7a7 --- /dev/null +++ b/documentation/com/openshift/internal/client/utils/IOpenShiftJsonConstants.html @@ -0,0 +1,1759 @@ + + + + + + + +IOpenShiftJsonConstants (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client.utils +
+Class IOpenShiftJsonConstants

+
+java.lang.Object
+  extended by com.openshift.internal.client.utils.IOpenShiftJsonConstants
+
+
+
+
public class IOpenShiftJsonConstants
extends Object
+ + +

+

+
Author:
+
André Dietisheim
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+static StringPROPERTY_ACTION + +
+           
+static StringPROPERTY_ALIAS + +
+           
+static StringPROPERTY_ALIASES + +
+           
+static StringPROPERTY_ALTER + +
+           
+static StringPROPERTY_APP_INFO + +
+           
+static StringPROPERTY_APP_NAME + +
+           
+static StringPROPERTY_APP_URL + +
+           
+static StringPROPERTY_CARTRIDGE + +
+           
+static StringPROPERTY_CARTRIDGES + +
+           
+static StringPROPERTY_CONSUMED_GEARS + +
+           
+static StringPROPERTY_CONTENT + +
+           
+static StringPROPERTY_CREATION_TIME + +
+           
+static StringPROPERTY_DATA + +
+           
+static StringPROPERTY_DEBUG + +
+           
+static StringPROPERTY_DEFAULT_VALUE + +
+           
+static StringPROPERTY_DELETE + +
+           
+static StringPROPERTY_DESCRIPTION + +
+           
+static StringPROPERTY_DISPLAY_NAME + +
+           
+static StringPROPERTY_DOMAIN + +
+           
+static StringPROPERTY_DOMAIN_ID + +
+           
+static StringPROPERTY_DOMAINS + +
+           
+static StringPROPERTY_EMBEDDED + +
+           
+static StringPROPERTY_ENVIRONMENT_VARIABLES + +
+           
+static StringPROPERTY_EVENT + +
+           
+static StringPROPERTY_EXIT_CODE + +
+           
+static StringPROPERTY_FIELD + +
+           
+static StringPROPERTY_FORCE + +
+           
+static StringPROPERTY_FRAMEWORK + +
+           
+static StringPROPERTY_GEAR_PROFILE + +
+           
+static StringPROPERTY_GEAR_STATE + +
+           
+static StringPROPERTY_GEARS + +
+           
+static StringPROPERTY_GIT_URL + +
+           
+static StringPROPERTY_HEALTH_CHECK_PATH + +
+           
+static StringPROPERTY_HREF + +
+           
+static StringPROPERTY_ID + +
+           
+static StringPROPERTY_INFO + +
+           
+static StringPROPERTY_INITIAL_GIT_URL + +
+           
+static StringPROPERTY_INTERNAL_PORT + +
+           
+static StringPROPERTY_KEY + +
+           
+static StringPROPERTY_KEY_TYPE + +
+           
+static StringPROPERTY_KEYS + +
+           
+static StringPROPERTY_LINKS + +
+           
+static StringPROPERTY_LOGIN + +
+           
+static StringPROPERTY_MAX_GEARS + +
+           
+static StringPROPERTY_MESSAGES + +
+           
+static StringPROPERTY_METHOD + +
+           
+static StringPROPERTY_NAME + +
+           
+static StringPROPERTY_OPTIONAL_PARAMS + +
+           
+static StringPROPERTY_PROPERTIES + +
+           
+static StringPROPERTY_PROPERTY + +
+           
+static StringPROPERTY_PROXY_HOST + +
+           
+static StringPROPERTY_PROXY_PORT + +
+           
+static StringPROPERTY_REL + +
+           
+static StringPROPERTY_REQUIRED_PARAMS + +
+           
+static StringPROPERTY_RESULT + +
+           
+static StringPROPERTY_RHC_DOMAIN + +
+           
+static StringPROPERTY_RHLOGIN + +
+           
+static StringPROPERTY_SCALABLE + +
+           
+static StringPROPERTY_SCALE + +
+           
+static StringPROPERTY_SEVERITY + +
+           
+static StringPROPERTY_SSH + +
+           
+static StringPROPERTY_SSH_KEY + +
+           
+static StringPROPERTY_SSH_TYPE + +
+           
+static StringPROPERTY_SSH_URL + +
+           
+static StringPROPERTY_STATUS + +
+           
+static StringPROPERTY_SUFFIX + +
+           
+static StringPROPERTY_TEXT + +
+           
+static StringPROPERTY_TYPE + +
+           
+static StringPROPERTY_URL + +
+           
+static StringPROPERTY_USER_INFO + +
+           
+static StringPROPERTY_UUID + +
+           
+static StringPROPERTY_VALID_OPTIONS + +
+           
+static StringPROPERTY_VALUE + +
+           
+static StringVALUE_ADD_ALIAS + +
+           
+static StringVALUE_FORCESTOP + +
+           
+static StringVALUE_REMOVE_ALIAS + +
+           
+static StringVALUE_RESTART + +
+           
+static StringVALUE_SCALE_DOWN + +
+           
+static StringVALUE_SCALE_UP + +
+           
+static StringVALUE_START + +
+           
+static StringVALUE_STATUS + +
+           
+static StringVALUE_STATUS_CREATED + +
+           
+static StringVALUE_STATUS_OK + +
+           
+static StringVALUE_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
+ +

+PROPERTY_ACTION

+
+public static final String PROPERTY_ACTION
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_ALIAS

+
+public static final String PROPERTY_ALIAS
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_ALIASES

+
+public static final String PROPERTY_ALIASES
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_ALTER

+
+public static final String PROPERTY_ALTER
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_APP_INFO

+
+public static final String PROPERTY_APP_INFO
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_APP_NAME

+
+public static final String PROPERTY_APP_NAME
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_APP_URL

+
+public static final String PROPERTY_APP_URL
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_CREATION_TIME

+
+public static final String PROPERTY_CREATION_TIME
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_CARTRIDGE

+
+public static final String PROPERTY_CARTRIDGE
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_CARTRIDGES

+
+public static final String PROPERTY_CARTRIDGES
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_CONSUMED_GEARS

+
+public static final String PROPERTY_CONSUMED_GEARS
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_CONTENT

+
+public static final String PROPERTY_CONTENT
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_DATA

+
+public static final String PROPERTY_DATA
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_DEBUG

+
+public static final String PROPERTY_DEBUG
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_DEFAULT_VALUE

+
+public static final String PROPERTY_DEFAULT_VALUE
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_DELETE

+
+public static final String PROPERTY_DELETE
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_DESCRIPTION

+
+public static final String PROPERTY_DESCRIPTION
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_DISPLAY_NAME

+
+public static final String PROPERTY_DISPLAY_NAME
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_DOMAIN

+
+public static final String PROPERTY_DOMAIN
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_DOMAINS

+
+public static final String PROPERTY_DOMAINS
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_DOMAIN_ID

+
+public static final String PROPERTY_DOMAIN_ID
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_EMBEDDED

+
+public static final String PROPERTY_EMBEDDED
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_EVENT

+
+public static final String PROPERTY_EVENT
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_EXIT_CODE

+
+public static final String PROPERTY_EXIT_CODE
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_FIELD

+
+public static final String PROPERTY_FIELD
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_FORCE

+
+public static final String PROPERTY_FORCE
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_FRAMEWORK

+
+public static final String PROPERTY_FRAMEWORK
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_GEARS

+
+public static final String PROPERTY_GEARS
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_GEAR_PROFILE

+
+public static final String PROPERTY_GEAR_PROFILE
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_GEAR_STATE

+
+public static final String PROPERTY_GEAR_STATE
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_GIT_URL

+
+public static final String PROPERTY_GIT_URL
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_HEALTH_CHECK_PATH

+
+public static final String PROPERTY_HEALTH_CHECK_PATH
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_HREF

+
+public static final String PROPERTY_HREF
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_ID

+
+public static final String PROPERTY_ID
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_INFO

+
+public static final String PROPERTY_INFO
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_INITIAL_GIT_URL

+
+public static final String PROPERTY_INITIAL_GIT_URL
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_INTERNAL_PORT

+
+public static final String PROPERTY_INTERNAL_PORT
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_KEY_TYPE

+
+public static final String PROPERTY_KEY_TYPE
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_KEYS

+
+public static final String PROPERTY_KEYS
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_KEY

+
+public static final String PROPERTY_KEY
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_LOGIN

+
+public static final String PROPERTY_LOGIN
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_LINKS

+
+public static final String PROPERTY_LINKS
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_MESSAGES

+
+public static final String PROPERTY_MESSAGES
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_METHOD

+
+public static final String PROPERTY_METHOD
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_MAX_GEARS

+
+public static final String PROPERTY_MAX_GEARS
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_NAME

+
+public static final String PROPERTY_NAME
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_OPTIONAL_PARAMS

+
+public static final String PROPERTY_OPTIONAL_PARAMS
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_PROPERTIES

+
+public static final String PROPERTY_PROPERTIES
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_PROPERTY

+
+public static final String PROPERTY_PROPERTY
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_PROXY_PORT

+
+public static final String PROPERTY_PROXY_PORT
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_PROXY_HOST

+
+public static final String PROPERTY_PROXY_HOST
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_REL

+
+public static final String PROPERTY_REL
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_REQUIRED_PARAMS

+
+public static final String PROPERTY_REQUIRED_PARAMS
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_RESULT

+
+public static final String PROPERTY_RESULT
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_RHLOGIN

+
+public static final String PROPERTY_RHLOGIN
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_RHC_DOMAIN

+
+public static final String PROPERTY_RHC_DOMAIN
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_SCALABLE

+
+public static final String PROPERTY_SCALABLE
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_SCALE

+
+public static final String PROPERTY_SCALE
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_SEVERITY

+
+public static final String PROPERTY_SEVERITY
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_SSH

+
+public static final String PROPERTY_SSH
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_SSH_KEY

+
+public static final String PROPERTY_SSH_KEY
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_SSH_TYPE

+
+public static final String PROPERTY_SSH_TYPE
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_SSH_URL

+
+public static final String PROPERTY_SSH_URL
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_STATUS

+
+public static final String PROPERTY_STATUS
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_SUFFIX

+
+public static final String PROPERTY_SUFFIX
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_TEXT

+
+public static final String PROPERTY_TEXT
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_TYPE

+
+public static final String PROPERTY_TYPE
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_URL

+
+public static final String PROPERTY_URL
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_USER_INFO

+
+public static final String PROPERTY_USER_INFO
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_UUID

+
+public static final String PROPERTY_UUID
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_VALID_OPTIONS

+
+public static final String PROPERTY_VALID_OPTIONS
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_VALUE

+
+public static final String PROPERTY_VALUE
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PROPERTY_ENVIRONMENT_VARIABLES

+
+public static final String PROPERTY_ENVIRONMENT_VARIABLES
+
+
+
See Also:
Constant Field Values
+
+
+ +

+VALUE_STATUS_OK

+
+public static final String VALUE_STATUS_OK
+
+
+
See Also:
Constant Field Values
+
+
+ +

+VALUE_STATUS_CREATED

+
+public static final String VALUE_STATUS_CREATED
+
+
+
See Also:
Constant Field Values
+
+
+ +

+VALUE_ADD_ALIAS

+
+public static final String VALUE_ADD_ALIAS
+
+
+
See Also:
Constant Field Values
+
+
+ +

+VALUE_FORCESTOP

+
+public static final String VALUE_FORCESTOP
+
+
+
See Also:
Constant Field Values
+
+
+ +

+VALUE_RESTART

+
+public static final String VALUE_RESTART
+
+
+
See Also:
Constant Field Values
+
+
+ +

+VALUE_SCALE_DOWN

+
+public static final String VALUE_SCALE_DOWN
+
+
+
See Also:
Constant Field Values
+
+
+ +

+VALUE_SCALE_UP

+
+public static final String VALUE_SCALE_UP
+
+
+
See Also:
Constant Field Values
+
+
+ +

+VALUE_START

+
+public static final String VALUE_START
+
+
+
See Also:
Constant Field Values
+
+
+ +

+VALUE_STOP

+
+public static final String VALUE_STOP
+
+
+
See Also:
Constant Field Values
+
+
+ +

+VALUE_STATUS

+
+public static final String VALUE_STATUS
+
+
+
See Also:
Constant Field Values
+
+
+ +

+VALUE_REMOVE_ALIAS

+
+public static final String VALUE_REMOVE_ALIAS
+
+
+
See Also:
Constant Field Values
+
+ + + + + + + + +
+Constructor Detail
+ +

+IOpenShiftJsonConstants

+
+public IOpenShiftJsonConstants()
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/utils/IOpenShiftParameterConstants.html b/documentation/com/openshift/internal/client/utils/IOpenShiftParameterConstants.html new file mode 100644 index 00000000..9c6157bc --- /dev/null +++ b/documentation/com/openshift/internal/client/utils/IOpenShiftParameterConstants.html @@ -0,0 +1,283 @@ + + + + + + + +IOpenShiftParameterConstants (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client.utils +
+Class IOpenShiftParameterConstants

+
+java.lang.Object
+  extended by com.openshift.internal.client.utils.IOpenShiftParameterConstants
+
+
+
+
public class IOpenShiftParameterConstants
extends Object
+ + +

+

+
Author:
+
André Dietisheim
+
+
+ +

+ + + + + + + + + + + + + + + +
+Field Summary
+static StringPARAMETER_CARTRIDGES + +
+           
+static StringPARAMETER_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
+ +

+PARAMETER_INCLUDE

+
+public static final String PARAMETER_INCLUDE
+
+
+
See Also:
Constant Field Values
+
+
+ +

+PARAMETER_CARTRIDGES

+
+public static final String PARAMETER_CARTRIDGES
+
+
+
See Also:
Constant Field Values
+
+ + + + + + + + +
+Constructor Detail
+ +

+IOpenShiftParameterConstants

+
+public IOpenShiftParameterConstants()
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/utils/StreamUtils.html b/documentation/com/openshift/internal/client/utils/StreamUtils.html new file mode 100644 index 00000000..7739bd68 --- /dev/null +++ b/documentation/com/openshift/internal/client/utils/StreamUtils.html @@ -0,0 +1,502 @@ + + + + + + + +StreamUtils (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client.utils +
+Class StreamUtils

+
+java.lang.Object
+  extended by com.openshift.internal.client.utils.StreamUtils
+
+
+
+
public class StreamUtils
extends Object
+ + +

+

+
Author:
+
Andre Dietisheim
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
StreamUtils() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static voidclose(InputStream inputStream) + +
+           
+static voidclose(OutputStream outputStream) + +
+           
+static voidclose(Reader reader) + +
+           
+static voidclose(Writer writer) + +
+           
+static voidquietlyClose(InputStream inputStream) + +
+           
+static voidquietlyClose(OutputStream outputStream) + +
+           
+static voidquietlyClose(Reader reader) + +
+           
+static voidquietlyClose(Writer writer) + +
+           
+static StringreadToString(InputStream inputStream) + +
+           
+static StringreadToString(Reader reader) + +
+           
+static voidwriteTo(byte[] data, + OutputStream outputStream) + +
+          Writes the given string to the given output stream.
+static InputStreamwriteTo(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
+ +

+StreamUtils

+
+public StreamUtils()
+
+
+ + + + + + + + +
+Method Detail
+ +

+writeTo

+
+public static InputStream writeTo(InputStream inputStream,
+                                  OutputStream outputStream)
+                           throws IOException
+
+
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. +

+

+
Parameters:
outputStream - the output stream to write to
inputStream - the input stream to read from +
Returns:
a new, unread input stream +
Throws: +
IOException
+
+
+
+ +

+readToString

+
+public static String readToString(InputStream inputStream)
+                           throws IOException
+
+
+ +
Throws: +
IOException
+
+
+
+ +

+readToString

+
+public static String readToString(Reader reader)
+                           throws IOException
+
+
+ +
Throws: +
IOException
+
+
+
+ +

+writeTo

+
+public static void writeTo(byte[] data,
+                           OutputStream outputStream)
+                    throws IOException
+
+
Writes the given string to the given output stream. The stream is closed + after writing all data. +

+

+
Parameters:
data - the data to write
outputStream - the stream to write to +
Throws: +
IOException
+
+
+
+ +

+close

+
+public static void close(InputStream inputStream)
+                  throws IOException
+
+
+ +
Throws: +
IOException
+
+
+
+ +

+quietlyClose

+
+public static void quietlyClose(InputStream inputStream)
+
+
+
+
+
+
+ +

+close

+
+public static void close(OutputStream outputStream)
+                  throws IOException
+
+
+ +
Throws: +
IOException
+
+
+
+ +

+quietlyClose

+
+public static void quietlyClose(OutputStream outputStream)
+
+
+
+
+
+
+ +

+close

+
+public static void close(Reader reader)
+                  throws IOException
+
+
+ +
Throws: +
IOException
+
+
+
+ +

+quietlyClose

+
+public static void quietlyClose(Reader reader)
+
+
+
+
+
+
+ +

+close

+
+public static void close(Writer writer)
+                  throws IOException
+
+
+ +
Throws: +
IOException
+
+
+
+ +

+quietlyClose

+
+public static void quietlyClose(Writer writer)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/utils/StringUtils.html b/documentation/com/openshift/internal/client/utils/StringUtils.html new file mode 100644 index 00000000..2e1f50c4 --- /dev/null +++ b/documentation/com/openshift/internal/client/utils/StringUtils.html @@ -0,0 +1,335 @@ + + + + + + + +StringUtils (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client.utils +
+Class StringUtils

+
+java.lang.Object
+  extended by com.openshift.internal.client.utils.StringUtils
+
+
+
+
public class StringUtils
extends Object
+ + +

+

+
Author:
+
André Dietisheim
+
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
StringUtils() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static booleanisEmpty(String string) + +
+           
+static StringnullToEmptyString(String string) + +
+           
+static StringprependIfNonEmpty(String prefix, + String string) + +
+           
+static StringtoLowerCase(Enum<?> aEnum) + +
+           
+static StringtoLowerCase(String message) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+StringUtils

+
+public StringUtils()
+
+
+ + + + + + + + +
+Method Detail
+ +

+toLowerCase

+
+public static String toLowerCase(String message)
+
+
+
+
+
+
+ +

+toLowerCase

+
+public static String toLowerCase(Enum<?> aEnum)
+
+
+
+
+
+
+ +

+isEmpty

+
+public static boolean isEmpty(String string)
+
+
+
+
+
+
+ +

+prependIfNonEmpty

+
+public static String prependIfNonEmpty(String prefix,
+                                       String string)
+
+
+
+
+
+
+ +

+nullToEmptyString

+
+public static String nullToEmptyString(String string)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/utils/UrlUtils.html b/documentation/com/openshift/internal/client/utils/UrlUtils.html new file mode 100644 index 00000000..01f05ed9 --- /dev/null +++ b/documentation/com/openshift/internal/client/utils/UrlUtils.html @@ -0,0 +1,337 @@ + + + + + + + +UrlUtils (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+ +

+ +com.openshift.internal.client.utils +
+Class UrlUtils

+
+java.lang.Object
+  extended by com.openshift.internal.client.utils.UrlUtils
+
+
+
+
public class UrlUtils
extends Object
+ + +

+

+
Author:
+
Andre Dietisheim
+
+
+ +

+ + + + + + + + + + + + + + + +
+Field Summary
+static StringSCHEME_HTTPS + +
+           
+static charUSERNAME_SEPARATOR + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static StringappendPath(String parent, + String child) + +
+           
+static StringensureStartsWithHttps(String url) + +
+           
+static booleanisUrl(String string) + +
+           
+static StringtoString(URL url) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+SCHEME_HTTPS

+
+public static final String SCHEME_HTTPS
+
+
+
See Also:
Constant Field Values
+
+
+ +

+USERNAME_SEPARATOR

+
+public static final char USERNAME_SEPARATOR
+
+
+
See Also:
Constant Field Values
+
+ + + + + + + + +
+Method Detail
+ +

+ensureStartsWithHttps

+
+public static String ensureStartsWithHttps(String url)
+
+
+
+
+
+
+ +

+isUrl

+
+public static boolean isUrl(String string)
+
+
+
+
+
+
+ +

+appendPath

+
+public static String appendPath(String parent,
+                                String child)
+
+
+
+
+
+
+ +

+toString

+
+public static String toString(URL url)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/utils/class-use/Assert.AssertionFailedException.html b/documentation/com/openshift/internal/client/utils/class-use/Assert.AssertionFailedException.html new file mode 100644 index 00000000..a9f09e7d --- /dev/null +++ b/documentation/com/openshift/internal/client/utils/class-use/Assert.AssertionFailedException.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.openshift.internal.client.utils.Assert.AssertionFailedException (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.utils.Assert.AssertionFailedException

+
+No usage of com.openshift.internal.client.utils.Assert.AssertionFailedException +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/utils/class-use/Assert.html b/documentation/com/openshift/internal/client/utils/class-use/Assert.html new file mode 100644 index 00000000..5bf74612 --- /dev/null +++ b/documentation/com/openshift/internal/client/utils/class-use/Assert.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.openshift.internal.client.utils.Assert (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.utils.Assert

+
+No usage of com.openshift.internal.client.utils.Assert +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/utils/class-use/CollectionUtils.html b/documentation/com/openshift/internal/client/utils/class-use/CollectionUtils.html new file mode 100644 index 00000000..bee9415f --- /dev/null +++ b/documentation/com/openshift/internal/client/utils/class-use/CollectionUtils.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.openshift.internal.client.utils.CollectionUtils (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.utils.CollectionUtils

+
+No usage of com.openshift.internal.client.utils.CollectionUtils +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/utils/class-use/IOpenShiftJsonConstants.html b/documentation/com/openshift/internal/client/utils/class-use/IOpenShiftJsonConstants.html new file mode 100644 index 00000000..598cc257 --- /dev/null +++ b/documentation/com/openshift/internal/client/utils/class-use/IOpenShiftJsonConstants.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.openshift.internal.client.utils.IOpenShiftJsonConstants (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.utils.IOpenShiftJsonConstants

+
+No usage of com.openshift.internal.client.utils.IOpenShiftJsonConstants +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/utils/class-use/IOpenShiftParameterConstants.html b/documentation/com/openshift/internal/client/utils/class-use/IOpenShiftParameterConstants.html new file mode 100644 index 00000000..7bb4a23f --- /dev/null +++ b/documentation/com/openshift/internal/client/utils/class-use/IOpenShiftParameterConstants.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.openshift.internal.client.utils.IOpenShiftParameterConstants (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.utils.IOpenShiftParameterConstants

+
+No usage of com.openshift.internal.client.utils.IOpenShiftParameterConstants +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/utils/class-use/StreamUtils.html b/documentation/com/openshift/internal/client/utils/class-use/StreamUtils.html new file mode 100644 index 00000000..185fadff --- /dev/null +++ b/documentation/com/openshift/internal/client/utils/class-use/StreamUtils.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.openshift.internal.client.utils.StreamUtils (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.utils.StreamUtils

+
+No usage of com.openshift.internal.client.utils.StreamUtils +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/utils/class-use/StringUtils.html b/documentation/com/openshift/internal/client/utils/class-use/StringUtils.html new file mode 100644 index 00000000..388c7d5c --- /dev/null +++ b/documentation/com/openshift/internal/client/utils/class-use/StringUtils.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.openshift.internal.client.utils.StringUtils (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.utils.StringUtils

+
+No usage of com.openshift.internal.client.utils.StringUtils +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/utils/class-use/UrlUtils.html b/documentation/com/openshift/internal/client/utils/class-use/UrlUtils.html new file mode 100644 index 00000000..1aec9566 --- /dev/null +++ b/documentation/com/openshift/internal/client/utils/class-use/UrlUtils.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Class com.openshift.internal.client.utils.UrlUtils (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Class
com.openshift.internal.client.utils.UrlUtils

+
+No usage of com.openshift.internal.client.utils.UrlUtils +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/utils/package-frame.html b/documentation/com/openshift/internal/client/utils/package-frame.html new file mode 100644 index 00000000..34eb20b7 --- /dev/null +++ b/documentation/com/openshift/internal/client/utils/package-frame.html @@ -0,0 +1,56 @@ + + + + + + + +com.openshift.internal.client.utils (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + +com.openshift.internal.client.utils + + + + +
+Classes  + +
+Assert +
+CollectionUtils +
+IOpenShiftJsonConstants +
+IOpenShiftParameterConstants +
+StreamUtils +
+StringUtils +
+UrlUtils
+ + + + + + +
+Exceptions  + +
+Assert.AssertionFailedException
+ + + + diff --git a/documentation/com/openshift/internal/client/utils/package-summary.html b/documentation/com/openshift/internal/client/utils/package-summary.html new file mode 100644 index 00000000..c6ebb677 --- /dev/null +++ b/documentation/com/openshift/internal/client/utils/package-summary.html @@ -0,0 +1,196 @@ + + + + + + + +com.openshift.internal.client.utils (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+

+Package com.openshift.internal.client.utils +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
Assert 
CollectionUtils 
IOpenShiftJsonConstants 
IOpenShiftParameterConstants 
StreamUtils 
StringUtils 
UrlUtils 
+  + +

+ + + + + + + + + +
+Exception Summary
Assert.AssertionFailedException 
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/utils/package-tree.html b/documentation/com/openshift/internal/client/utils/package-tree.html new file mode 100644 index 00000000..c4225052 --- /dev/null +++ b/documentation/com/openshift/internal/client/utils/package-tree.html @@ -0,0 +1,161 @@ + + + + + + + +com.openshift.internal.client.utils Class Hierarchy (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Hierarchy For Package com.openshift.internal.client.utils +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/com/openshift/internal/client/utils/package-use.html b/documentation/com/openshift/internal/client/utils/package-use.html new file mode 100644 index 00000000..c8d925c0 --- /dev/null +++ b/documentation/com/openshift/internal/client/utils/package-use.html @@ -0,0 +1,145 @@ + + + + + + + +Uses of Package com.openshift.internal.client.utils (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Uses of Package
com.openshift.internal.client.utils

+
+No usage of com.openshift.internal.client.utils +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/constant-values.html b/documentation/constant-values.html new file mode 100644 index 00000000..993289c3 --- /dev/null +++ b/documentation/constant-values.html @@ -0,0 +1,1237 @@ + + + + + + + +Constant Field Values (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Constant Field Values

+
+
+Contents + + + + + + +
+com.openshift.*
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
com.openshift.client.IHttpClient
+public static final charAMPERSAND38
+public static final StringAUTHORIZATION_BASIC"Basic"
+public static final charCOLON58
+public static final charCOMMA44
+public static final intDEFAULT_CONNECT_TIMEOUT10000
+public static final intDEFAULT_READ_TIMEOUT120000
+public static final charEQUALS61
+public static final StringHTTP"http"
+public static final StringMEDIATYPE_APPLICATION_FORMURLENCODED"application/x-www-form-urlencoded"
+public static final StringMEDIATYPE_APPLICATION_JSON"application/json"
+public static final StringMEDIATYPE_APPLICATION_XML"application/xml"
+public static final intNO_TIMEOUT0
+public static final StringPROPERTY_ACCEPT"Accept"
+public static final StringPROPERTY_AUTHIV"broker_auth_iv"
+public static final StringPROPERTY_AUTHKEY"broker_auth_key"
+public static final StringPROPERTY_AUTHORIZATION"Authorization"
+public static final StringPROPERTY_CONTENT_TYPE"Content-Type"
+public static final StringPROPERTY_USER_AGENT"User-Agent"
+public static final charQUESTION_MARK63
+public static final charSEMICOLON59
+public static final charSLASH47
+public static final charSPACE32
+public static final intSTATUS_BAD_REQUEST400
+public static final intSTATUS_INTERNAL_SERVER_ERROR500
+public static final intSTATUS_NOT_FOUND404
+public static final intSTATUS_OK200
+public static final intSTATUS_UNAUTHORIZED401
+public static final StringSYSPROP_DEFAULT_CONNECT_TIMEOUT"sun.net.client.defaultConnectTimeout"
+public static final StringSYSPROP_DEFAULT_READ_TIMEOUT"sun.net.client.defaultReadTimeout"
+public static final StringSYSPROP_OPENSHIFT_CONNECT_TIMEOUT"com.openshift.httpclient.connect.timeout"
+public static final StringSYSPROP_OPENSHIFT_READ_TIMEOUT"com.openshift.httpclient.read.timeout"
+public static final StringVERSION"version"
+ +

+ +

+ + + + + + + + + + + + +
com.openshift.client.IUser
+public static final StringID"com.openshift.client"
+ +

+ +

+ + + + + + + + + + + + +
com.openshift.client.cartridge.ICartridge
+public static final charNAME_VERSION_DELIMITER45
+ +

+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
com.openshift.client.cartridge.IEmbeddableCartridge
+public static final StringNAME_10GEN_MMS_AGENT"10gen-mms-agent"
+public static final StringNAME_CRON"cron"
+public static final StringNAME_HAPROXY"haproxy"
+public static final StringNAME_JENKINS_CLIENT"jenkins-client"
+public static final StringNAME_METRICS"metrics"
+public static final StringNAME_MONGODB"mongodb"
+public static final StringNAME_MYSQL"mysql"
+public static final StringNAME_PHPMYADMIN"phpmyadmin"
+public static final StringNAME_POSTGRESQL"postgresql"
+public static final StringNAME_ROCKMONGO"rockmongo"
+public static final StringNAME_SWITCHYARD"switchyard"
+ +

+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
com.openshift.client.cartridge.IStandaloneCartridge
+public static final StringNAME_JBOSSAS"jbossas"
+public static final StringNAME_JBOSSEAP"jbosseap"
+public static final StringNAME_JBOSSEWS"jbossews"
+public static final StringNAME_JENKINS"jenkins"
+public static final StringNAME_PERL"perl"
+public static final StringNAME_PHP"php"
+public static final StringNAME_PYTHON"python"
+public static final StringNAME_RUBY"ruby"
+public static final StringNAME_ZEND"zend"
+ +

+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
com.openshift.client.configuration.AbstractOpenshiftConfiguration
+protected static final StringKEY_CLIENT_ID"client_id"
+protected static final StringKEY_LIBRA_DOMAIN"libra_domain"
+protected static final StringKEY_LIBRA_SERVER"libra_server"
+protected static final StringKEY_PASSWORD"rhpassword"
+protected static final StringKEY_RHLOGIN"default_rhlogin"
+ +

+ +

+ + + + + + + + + + + + + + + + + +
com.openshift.client.configuration.DefaultConfiguration
+public static final StringLIBRA_DOMAIN"rhcloud.com"
+public static final StringLIBRA_SERVER"openshift.redhat.com"
+ +

+ +

+ + + + + + + + + + + + + + + + + +
com.openshift.internal.client.IRestService
+public static final StringSERVICE_PATH"/broker/rest/"
+public static final StringSERVICE_VERSION"1.2"
+ +

+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
com.openshift.internal.client.response.CartridgeResourceProperties
+public static final StringCONNECTION_URL"connection_url"
+public static final StringDATABASE_NAME"database_name"
+public static final StringJOB_URL"job_url"
+public static final StringPASSWORD"password"
+public static final StringUSERNAME"username"
+ +

+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
com.openshift.internal.client.utils.IOpenShiftJsonConstants
+public static final StringPROPERTY_ACTION"action"
+public static final StringPROPERTY_ALIAS"alias"
+public static final StringPROPERTY_ALIASES"aliases"
+public static final StringPROPERTY_ALTER"alter"
+public static final StringPROPERTY_APP_INFO"app_info"
+public static final StringPROPERTY_APP_NAME"app_name"
+public static final StringPROPERTY_APP_URL"app_url"
+public static final StringPROPERTY_CARTRIDGE"cartridge"
+public static final StringPROPERTY_CARTRIDGES"cartridges"
+public static final StringPROPERTY_CONSUMED_GEARS"consumed_gears"
+public static final StringPROPERTY_CONTENT"content"
+public static final StringPROPERTY_CREATION_TIME"creation_time"
+public static final StringPROPERTY_DATA"data"
+public static final StringPROPERTY_DEBUG"debug"
+public static final StringPROPERTY_DEFAULT_VALUE"default_value"
+public static final StringPROPERTY_DELETE"delete"
+public static final StringPROPERTY_DESCRIPTION"description"
+public static final StringPROPERTY_DISPLAY_NAME"display_name"
+public static final StringPROPERTY_DOMAIN"domain"
+public static final StringPROPERTY_DOMAIN_ID"domain_id"
+public static final StringPROPERTY_DOMAINS"domains"
+public static final StringPROPERTY_EMBEDDED"embedded"
+public static final StringPROPERTY_ENVIRONMENT_VARIABLES"environment_variables"
+public static final StringPROPERTY_EVENT"event"
+public static final StringPROPERTY_EXIT_CODE"exit_code"
+public static final StringPROPERTY_FIELD"field"
+public static final StringPROPERTY_FORCE"force"
+public static final StringPROPERTY_FRAMEWORK"framework"
+public static final StringPROPERTY_GEAR_PROFILE"gear_profile"
+public static final StringPROPERTY_GEAR_STATE"state"
+public static final StringPROPERTY_GEARS"gears"
+public static final StringPROPERTY_GIT_URL"git_url"
+public static final StringPROPERTY_HEALTH_CHECK_PATH"health_check_path"
+public static final StringPROPERTY_HREF"href"
+public static final StringPROPERTY_ID"id"
+public static final StringPROPERTY_INFO"info"
+public static final StringPROPERTY_INITIAL_GIT_URL"initial_git_url"
+public static final StringPROPERTY_INTERNAL_PORT"internal_port"
+public static final StringPROPERTY_KEY"key"
+public static final StringPROPERTY_KEY_TYPE"key_type"
+public static final StringPROPERTY_KEYS"keys"
+public static final StringPROPERTY_LINKS"links"
+public static final StringPROPERTY_LOGIN"login"
+public static final StringPROPERTY_MAX_GEARS"max_gears"
+public static final StringPROPERTY_MESSAGES"messages"
+public static final StringPROPERTY_METHOD"method"
+public static final StringPROPERTY_NAME"name"
+public static final StringPROPERTY_OPTIONAL_PARAMS"optional_params"
+public static final StringPROPERTY_PROPERTIES"properties"
+public static final StringPROPERTY_PROPERTY"property"
+public static final StringPROPERTY_PROXY_HOST"proxy_host"
+public static final StringPROPERTY_PROXY_PORT"proxy_port"
+public static final StringPROPERTY_REL"rel"
+public static final StringPROPERTY_REQUIRED_PARAMS"required_params"
+public static final StringPROPERTY_RESULT"result"
+public static final StringPROPERTY_RHC_DOMAIN"rhc_domain"
+public static final StringPROPERTY_RHLOGIN"rhlogin"
+public static final StringPROPERTY_SCALABLE"scalable"
+public static final StringPROPERTY_SCALE"scale"
+public static final StringPROPERTY_SEVERITY"severity"
+public static final StringPROPERTY_SSH"ssh"
+public static final StringPROPERTY_SSH_KEY"ssh_key"
+public static final StringPROPERTY_SSH_TYPE"ssh_type"
+public static final StringPROPERTY_SSH_URL"ssh_url"
+public static final StringPROPERTY_STATUS"status"
+public static final StringPROPERTY_SUFFIX"suffix"
+public static final StringPROPERTY_TEXT"text"
+public static final StringPROPERTY_TYPE"type"
+public static final StringPROPERTY_URL"url"
+public static final StringPROPERTY_USER_INFO"user_info"
+public static final StringPROPERTY_UUID"uuid"
+public static final StringPROPERTY_VALID_OPTIONS"valid_options"
+public static final StringPROPERTY_VALUE"value"
+public static final StringVALUE_ADD_ALIAS"add-alias"
+public static final StringVALUE_FORCESTOP"force-stop"
+public static final StringVALUE_REMOVE_ALIAS"remove-alias"
+public static final StringVALUE_RESTART"restart"
+public static final StringVALUE_SCALE_DOWN"scale-down"
+public static final StringVALUE_SCALE_UP"scale-up"
+public static final StringVALUE_START"start"
+public static final StringVALUE_STATUS"status"
+public static final StringVALUE_STATUS_CREATED"created"
+public static final StringVALUE_STATUS_OK"ok"
+public static final StringVALUE_STOP"stop"
+ +

+ +

+ + + + + + + + + + + + + + + + + +
com.openshift.internal.client.utils.IOpenShiftParameterConstants
+public static final StringPARAMETER_CARTRIDGES"cartridges"
+public static final StringPARAMETER_INCLUDE"include"
+ +

+ +

+ + + + + + + + + + + + + + + + + +
com.openshift.internal.client.utils.UrlUtils
+public static final StringSCHEME_HTTPS"https://"
+public static final charUSERNAME_SEPARATOR64
+ +

+ +

+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/deprecated-list.html b/documentation/deprecated-list.html new file mode 100644 index 00000000..086f3cdb --- /dev/null +++ b/documentation/deprecated-list.html @@ -0,0 +1,147 @@ + + + + + + + +Deprecated List (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Deprecated API

+
+
+Contents
    +
+ +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/help-doc.html b/documentation/help-doc.html new file mode 100644 index 00000000..9f09995e --- /dev/null +++ b/documentation/help-doc.html @@ -0,0 +1,224 @@ + + + + + + + +API Help (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+How This API Document Is Organized

+
+This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.

+Overview

+
+ +

+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.

+

+Package

+
+ +

+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
+
+

+Class/Interface

+
+ +

+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:

    +
  • 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 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.
+ +

+Annotation Type

+
+ +

+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
+
+ +

+Enum

+
+ +

+Each enum has its own separate page with the following sections:

    +
  • Enum declaration
  • Enum description
  • Enum Constant Summary
  • Enum Constant Detail
+
+

+Use

+
+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.
+

+Tree (Class Hierarchy)

+
+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 from java.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.
+
+

+Deprecated API

+
+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.
+

+Index

+
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+

+Prev/Next

+These links take you to the next or previous class, interface, package, or related page.

+Frames/No Frames

+These links show and hide the HTML frames. All pages are available with or without frames. +

+

+Serialized Form

+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description. +

+

+Constant Field Values

+The Constant Field Values page lists the static final fields and their values. +

+ + +This help file applies to API documentation generated using the standard doclet. + +
+


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/index-all.html b/documentation/index-all.html new file mode 100644 index 00000000..4bd56e51 --- /dev/null +++ b/documentation/index-all.html @@ -0,0 +1,3402 @@ + + + + + + + +Index (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +A B C D E F G H I J K L M N O P Q R S T U V W Z
+

+A

+
+
AbstractCartridgeQuery - Class in com.openshift.internal.client.cartridge
A base class for a constraint that shall match available embeddable + cartridges (on the platform).
AbstractCartridgeQuery() - +Constructor for class com.openshift.internal.client.cartridge.AbstractCartridgeQuery +
  +
AbstractOpenshiftConfiguration - Class in com.openshift.client.configuration
 
AbstractOpenshiftConfiguration() - +Constructor for class com.openshift.client.configuration.AbstractOpenshiftConfiguration +
  +
AbstractOpenshiftConfiguration(IOpenShiftConfiguration) - +Constructor for class com.openshift.client.configuration.AbstractOpenshiftConfiguration +
  +
AbstractOpenshiftConfiguration(File, IOpenShiftConfiguration) - +Constructor for class com.openshift.client.configuration.AbstractOpenshiftConfiguration +
  +
AbstractOpenShiftConnectionFactory - Class in com.openshift.internal.client
Connection Factory, used to establish a connection and retrieve a user.
AbstractOpenShiftConnectionFactory() - +Constructor for class com.openshift.internal.client.AbstractOpenShiftConnectionFactory +
  +
AbstractOpenShiftResource - Class in com.openshift.internal.client
The Class AbstractOpenShiftResource.
AbstractOpenShiftResource(IRestService) - +Constructor for class com.openshift.internal.client.AbstractOpenShiftResource +
Instantiates a new abstract open shift resource. +
AbstractOpenShiftResource(IRestService, Map<String, Link>, Messages) - +Constructor for class com.openshift.internal.client.AbstractOpenShiftResource +
Instantiates a new abstract open shift resource. +
AbstractOpenShiftResource.Parameters - Class in com.openshift.internal.client
 
AbstractOpenShiftResource.Parameters() - +Constructor for class com.openshift.internal.client.AbstractOpenShiftResource.Parameters +
  +
AbstractOpenShiftResource.ServiceRequest - Class in com.openshift.internal.client
 
AbstractOpenShiftResource.ServiceRequest(String) - +Constructor for class com.openshift.internal.client.AbstractOpenShiftResource.ServiceRequest +
  +
AbstractSSHKey - Class in com.openshift.internal.client.ssh
 
AbstractSSHKey(SSHKeyType) - +Constructor for class com.openshift.internal.client.ssh.AbstractSSHKey +
  +
acceptedMediaType - +Variable in class com.openshift.internal.client.httpclient.UrlConnectionHttpClient +
  +
acceptedVersion - +Variable in class com.openshift.internal.client.httpclient.UrlConnectionHttpClient +
  +
add(String, String) - +Method in class com.openshift.internal.client.AbstractOpenShiftResource.Parameters +
  +
add(Parameter) - +Method in class com.openshift.internal.client.AbstractOpenShiftResource.Parameters +
  +
add(String, String) - +Method in class com.openshift.internal.client.httpclient.request.ParameterValueArray +
  +
add(ParameterValue<?>) - +Method in class com.openshift.internal.client.httpclient.request.ParameterValueArray +
  +
add(String, String) - +Method in class com.openshift.internal.client.httpclient.request.ParameterValueMap +
  +
add(Parameter) - +Method in class com.openshift.internal.client.httpclient.request.ParameterValueMap +
  +
add(String, CartridgeResourceProperty) - +Method in class com.openshift.internal.client.response.CartridgeResourceProperties +
  +
addAlias(String) - +Method in interface com.openshift.client.IApplication +
Add application alias +
addAlias(String) - +Method in class com.openshift.internal.client.ApplicationResource +
  +
addAll(List<? extends ParameterValue<?>>) - +Method in class com.openshift.internal.client.httpclient.request.ParameterValueArray +
  +
addAll(List<? extends Parameter>) - +Method in class com.openshift.internal.client.httpclient.request.ParameterValueMap +
  +
addCartridge(IEmbeddableCartridge) - +Method in class com.openshift.internal.client.AbstractOpenShiftResource.Parameters +
  +
addCartridges(IStandaloneCartridge, IEmbeddableCartridge[]) - +Method in class com.openshift.internal.client.AbstractOpenShiftResource.Parameters +
  +
addEmbeddableCartridge(IEmbeddableCartridge) - +Method in interface com.openshift.client.IApplication +
Adds the given embeddable cartridge to this application. +
addEmbeddableCartridge(IEmbeddableCartridge) - +Method in class com.openshift.internal.client.ApplicationResource +
Adds the given embedded cartridge to this application. +
addEmbeddableCartridges(Collection<IEmbeddableCartridge>) - +Method in interface com.openshift.client.IApplication +
Adds all given embedded cartridges from this app, given their names. +
addEmbeddableCartridges(Collection<IEmbeddableCartridge>) - +Method in class com.openshift.internal.client.ApplicationResource +
  +
addEnvironmentVariable(String, String) - +Method in interface com.openshift.client.IApplication +
Adds an environment variable to this application. +
addEnvironmentVariable(String, String) - +Method in class com.openshift.internal.client.ApplicationResource +
  +
addEnvironmentVariables(Map<String, String>) - +Method in interface com.openshift.client.IApplication +
Adds a map of environment variables to the application +
addEnvironmentVariables(Map<String, String>) - +Method in class com.openshift.internal.client.AbstractOpenShiftResource.Parameters +
  +
addEnvironmentVariables(Map<String, String>) - +Method in class com.openshift.internal.client.ApplicationResource +
  +
allStandaloneCartridges(IApplication) - +Method in class com.openshift.client.cartridge.selector.LatestVersionQuery +
  +
AMPERSAND - +Static variable in interface com.openshift.client.IHttpClient +
  +
APIResource - Class in com.openshift.internal.client
 
APIResource(String, String, IRestService, Map<String, Link>) - +Constructor for class com.openshift.internal.client.APIResource +
  +
appendPath(String, String) - +Static method in class com.openshift.internal.client.utils.UrlUtils +
  +
APPINFO - +Static variable in interface com.openshift.client.IField +
  +
ApplicationBuilder - Class in com.openshift.client
 
ApplicationBuilder(IDomain) - +Constructor for class com.openshift.client.ApplicationBuilder +
  +
ApplicationBuilder.CartridgeHolder - Class in com.openshift.client
 
ApplicationBuilder.CartridgeHolder() - +Constructor for class com.openshift.client.ApplicationBuilder.CartridgeHolder +
  +
ApplicationBuilder.NamedCartridgeHolder - Class in com.openshift.client
 
ApplicationBuilder.NamedCartridgeHolder() - +Constructor for class com.openshift.client.ApplicationBuilder.NamedCartridgeHolder +
  +
ApplicationPortForwarding - Class in com.openshift.internal.client.ssh
 
ApplicationPortForwarding(IApplication, String, String, int) - +Constructor for class com.openshift.internal.client.ssh.ApplicationPortForwarding +
  +
ApplicationResource - Class in com.openshift.internal.client
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(ApplicationResourceDTO, DomainResource) - +Constructor for class com.openshift.internal.client.ApplicationResource +
  +
ApplicationResource(String, String, String, Messages, String, String, String, String, IGearProfile, ApplicationScale, List<String>, Map<String, CartridgeResourceDTO>, Map<String, Link>, DomainResource) - +Constructor for class com.openshift.internal.client.ApplicationResource +
Instantiates a new application. +
ApplicationResource.SshStreams - Enum in com.openshift.internal.client
 
ApplicationResourceDTO - Class in com.openshift.internal.client.response
The Class ApplicationDTO.
ApplicationScale - Enum in com.openshift.client
Enum to indicate the support for scalability when creating a new application
ARRAY - +Static variable in class com.openshift.internal.client.response.LinkParameterType +
  +
Assert - Class in com.openshift.internal.client.utils
 
Assert() - +Constructor for class com.openshift.internal.client.utils.Assert +
  +
Assert.AssertionFailedException - Exception in com.openshift.internal.client.utils
 
Assert.AssertionFailedException() - +Constructor for exception com.openshift.internal.client.utils.Assert.AssertionFailedException +
  +
authIV - +Variable in class com.openshift.internal.client.httpclient.UrlConnectionHttpClient +
  +
authKey - +Variable in class com.openshift.internal.client.httpclient.UrlConnectionHttpClient +
  +
AUTHORIZATION_BASIC - +Static variable in interface com.openshift.client.IHttpClient +
  +
+
+

+B

+
+
BadRequestException - Exception in com.openshift.internal.client.httpclient
 
BadRequestException(String, Throwable) - +Constructor for exception com.openshift.internal.client.httpclient.BadRequestException +
  +
BadRequestException(Throwable) - +Constructor for exception com.openshift.internal.client.httpclient.BadRequestException +
  +
Base64Coder - Class in com.openshift.client.utils
A utility class that offers methods to encode and decode strings from and to + base64
BaseCartridge - Class in com.openshift.internal.client.cartridge
A (base) cartridge for an OpenShift application.
BaseCartridge(String) - +Constructor for class com.openshift.internal.client.cartridge.BaseCartridge +
  +
BaseCartridge(URL) - +Constructor for class com.openshift.internal.client.cartridge.BaseCartridge +
  +
BaseCartridge(String, URL) - +Constructor for class com.openshift.internal.client.cartridge.BaseCartridge +
  +
BaseCartridge(String, String, String) - +Constructor for class com.openshift.internal.client.cartridge.BaseCartridge +
  +
BaseCartridge(String, URL, String, String) - +Constructor for class com.openshift.internal.client.cartridge.BaseCartridge +
  +
BaseResourceDTO - Class in com.openshift.internal.client.response
The Class BaseResourceDTO.
BaseResourceDTO() - +Constructor for class com.openshift.internal.client.response.BaseResourceDTO +
  +
BaseResourceDTO(Map<String, Link>, Messages) - +Constructor for class com.openshift.internal.client.response.BaseResourceDTO +
Instantiates a new base resource dto. +
BOOLEAN - +Static variable in class com.openshift.internal.client.response.LinkParameterType +
  +
build() - +Method in class com.openshift.client.ApplicationBuilder.NamedCartridgeHolder +
  +
+
+

+C

+
+
canCreateApplicationWithEnvironmentVariables() - +Method in interface com.openshift.client.IDomain +
Returns true if this domain can create application with environment variables. +
canCreateApplicationWithEnvironmentVariables() - +Method in class com.openshift.internal.client.DomainResource +
  +
canGetEnvironmentVariables() - +Method in interface com.openshift.client.IApplication +
Used to determine if environment variables exist and are available to be retrieved +
canGetEnvironmentVariables() - +Method in class com.openshift.internal.client.ApplicationResource +
  +
canResolv(String) - +Static method in class com.openshift.client.utils.HostUtils +
  +
canResolv(String) - +Method in class com.openshift.internal.client.ApplicationResource +
  +
canUpdateEnvironmentVariables() - +Method in interface com.openshift.client.IApplication +
Used to determine if the current instance is able to update environment variables. +
canUpdateEnvironmentVariables() - +Method in class com.openshift.internal.client.ApplicationResource +
  +
CartridgePropertyQuery - Class in com.openshift.client.cartridge.selector
 
CartridgePropertyQuery() - +Constructor for class com.openshift.client.cartridge.selector.CartridgePropertyQuery +
  +
CartridgeResourceDTO - Class in com.openshift.internal.client.response
 
CartridgeResourceDTO(String, CartridgeType, CartridgeResourceProperties) - +Constructor for class com.openshift.internal.client.response.CartridgeResourceDTO +
  +
CartridgeResourceDTO(String, String, String, String, URL, CartridgeResourceProperties, Map<String, Link>, Messages) - +Constructor for class com.openshift.internal.client.response.CartridgeResourceDTO +
  +
CartridgeResourceProperties - Class in com.openshift.internal.client.response
Properties that hold informations available in cartridges
CartridgeResourceProperties() - +Constructor for class com.openshift.internal.client.response.CartridgeResourceProperties +
  +
CartridgeResourceProperty - Class in com.openshift.internal.client.response
 
CartridgeResourceProperty(String, String) - +Constructor for class com.openshift.internal.client.response.CartridgeResourceProperty +
Constructor called when embedded cartridges are listed within an + application. +
CartridgeResourceProperty(String, String, String, String) - +Constructor for class com.openshift.internal.client.response.CartridgeResourceProperty +
Constructor called when embedded cartridges are listed on their own (when + /cartridges resource is queried. +
CartridgeType - Enum in com.openshift.internal.client
 
client() - +Method in class com.openshift.internal.client.httpclient.UrlConnectionHttpClientBuilder +
  +
close(InputStream) - +Static method in class com.openshift.internal.client.utils.StreamUtils +
  +
close(OutputStream) - +Static method in class com.openshift.internal.client.utils.StreamUtils +
  +
close(Reader) - +Static method in class com.openshift.internal.client.utils.StreamUtils +
  +
close(Writer) - +Static method in class com.openshift.internal.client.utils.StreamUtils +
  +
CollectionUtils - Class in com.openshift.internal.client.utils
 
CollectionUtils() - +Constructor for class com.openshift.internal.client.utils.CollectionUtils +
  +
COLON - +Static variable in interface com.openshift.client.IHttpClient +
  +
com.openshift.client - package com.openshift.client
 
com.openshift.client.cartridge - package com.openshift.client.cartridge
 
com.openshift.client.cartridge.selector - package com.openshift.client.cartridge.selector
 
com.openshift.client.configuration - package com.openshift.client.configuration
 
com.openshift.client.utils - package com.openshift.client.utils
 
com.openshift.internal.client - package com.openshift.internal.client
 
com.openshift.internal.client.cartridge - package com.openshift.internal.client.cartridge
 
com.openshift.internal.client.httpclient - package com.openshift.internal.client.httpclient
 
com.openshift.internal.client.httpclient.request - package com.openshift.internal.client.httpclient.request
 
com.openshift.internal.client.response - package com.openshift.internal.client.response
 
com.openshift.internal.client.ssh - package com.openshift.internal.client.ssh
 
com.openshift.internal.client.utils - package com.openshift.internal.client.utils
 
COMMA - +Static variable in interface com.openshift.client.IHttpClient +
  +
compareTo(LatestVersionQuery.VersionedName) - +Method in class com.openshift.client.cartridge.selector.LatestVersionQuery.VersionedName +
  +
CONNECTION_URL - +Static variable in class com.openshift.internal.client.response.CartridgeResourceProperties +
  +
create(String, String, String) - +Static method in class com.openshift.client.SSHKeyPair +
  +
create(SSHKeyType, String, String, String) - +Static method in class com.openshift.client.SSHKeyPair +
Creates private and public ssh-rsa keys and stores them to the given + paths. +
createApplication(String, IStandaloneCartridge) - +Method in interface com.openshift.client.IDomain +
  +
createApplication(String, IStandaloneCartridge, String) - +Method in interface com.openshift.client.IDomain +
  +
createApplication(String, IStandaloneCartridge, ApplicationScale) - +Method in interface com.openshift.client.IDomain +
  +
createApplication(String, IStandaloneCartridge, IGearProfile) - +Method in interface com.openshift.client.IDomain +
  +
createApplication(String, IStandaloneCartridge, ApplicationScale, IGearProfile) - +Method in interface com.openshift.client.IDomain +
  +
createApplication(String, IStandaloneCartridge, ApplicationScale, IGearProfile, String) - +Method in interface com.openshift.client.IDomain +
Creates a new application with the given name and the given + cartridge/framework. +
createApplication(String, IStandaloneCartridge, ApplicationScale, IGearProfile, String, int, IEmbeddableCartridge...) - +Method in interface com.openshift.client.IDomain +
Creates a new application with the given name and the given + cartridge/framework. +
createApplication(String, IStandaloneCartridge, ApplicationScale, IGearProfile, String, int, Map<String, String>, IEmbeddableCartridge...) - +Method in interface com.openshift.client.IDomain +
Creates a new application with the given name and the given + cartridge/framework. +
createApplication(String, IStandaloneCartridge) - +Method in class com.openshift.internal.client.DomainResource +
  +
createApplication(String, IStandaloneCartridge, ApplicationScale) - +Method in class com.openshift.internal.client.DomainResource +
  +
createApplication(String, IStandaloneCartridge, String) - +Method in class com.openshift.internal.client.DomainResource +
  +
createApplication(String, IStandaloneCartridge, ApplicationScale, String) - +Method in class com.openshift.internal.client.DomainResource +
  +
createApplication(String, IStandaloneCartridge, IGearProfile) - +Method in class com.openshift.internal.client.DomainResource +
  +
createApplication(String, IStandaloneCartridge, IGearProfile, String) - +Method in class com.openshift.internal.client.DomainResource +
  +
createApplication(String, IStandaloneCartridge, ApplicationScale, IGearProfile) - +Method in class com.openshift.internal.client.DomainResource +
  +
createApplication(String, IStandaloneCartridge, ApplicationScale, IGearProfile, String) - +Method in class com.openshift.internal.client.DomainResource +
  +
createApplication(String, IStandaloneCartridge, ApplicationScale, IGearProfile, String, int, IEmbeddableCartridge...) - +Method in class com.openshift.internal.client.DomainResource +
  +
createApplication(String, IStandaloneCartridge, ApplicationScale, IGearProfile, String, int, Map<String, String>, IEmbeddableCartridge...) - +Method in class com.openshift.internal.client.DomainResource +
  +
createConnection(URL, String, String, String, String, String, String, String, int) - +Method in class com.openshift.internal.client.httpclient.UrlConnectionHttpClient +
  +
createDomain(String) - +Method in interface com.openshift.client.IUser +
  +
createDomain(String) - +Method in class com.openshift.internal.client.APIResource +
  +
createDomain(String) - +Method in class com.openshift.internal.client.UserResource +
  +
createErrorMessage(IOException, HttpURLConnection) - +Method in class com.openshift.internal.client.httpclient.UrlConnectionHttpClient +
  +
cron() - +Static method in class com.openshift.client.cartridge.selector.LatestVersionOf +
  +
+
+

+D

+
+
DATABASE_NAME - +Static variable in class com.openshift.internal.client.response.CartridgeResourceProperties +
  +
DEBUG - +Static variable in interface com.openshift.client.ISeverity +
  +
decode(byte[]) - +Static method in class com.openshift.client.utils.Base64Coder +
  +
decode(String) - +Static method in class com.openshift.client.utils.Base64Coder +
Decodes the given base64 encoded string. +
DEFAULT - +Static variable in interface com.openshift.client.IField +
  +
DEFAULT_CONNECT_TIMEOUT - +Static variable in interface com.openshift.client.IHttpClient +
  +
DEFAULT_READ_TIMEOUT - +Static variable in interface com.openshift.client.IHttpClient +
  +
DefaultConfiguration - Class in com.openshift.client.configuration
 
DefaultConfiguration() - +Constructor for class com.openshift.client.configuration.DefaultConfiguration +
  +
defaultValue - +Variable in class com.openshift.internal.client.response.LinkParameter +
  +
delete(URL, IMediaType, int, Parameter...) - +Method in interface com.openshift.client.IHttpClient +
  +
delete(URL, int) - +Method in interface com.openshift.client.IHttpClient +
  +
delete(URL, IMediaType, int, Parameter...) - +Method in class com.openshift.internal.client.httpclient.UrlConnectionHttpClient +
  +
delete(URL, int) - +Method in class com.openshift.internal.client.httpclient.UrlConnectionHttpClient +
  +
deleteKey(String) - +Method in interface com.openshift.client.IUser +
  +
deleteKey(String) - +Method in class com.openshift.internal.client.UserResource +
  +
description - +Variable in class com.openshift.internal.client.response.LinkParameter +
  +
destroy() - +Method in interface com.openshift.client.cartridge.IEmbeddedCartridge +
Destroys this cartridge (and removes it from the list of existing cartridges) +
destroy() - +Method in interface com.openshift.client.IApplication +
Destroys this application (and removes it from the list of available + applications) +
destroy() - +Method in interface com.openshift.client.IDomain +
Destroys the current domain. +
destroy(boolean) - +Method in interface com.openshift.client.IDomain +
Destroys the current domain, using the 'force' parameter to also destroy the domain applications. +
destroy() - +Method in interface com.openshift.client.IEnvironmentVariable +
Destroys this environment variable +
destroy() - +Method in interface com.openshift.client.IOpenShiftSSHKey +
  +
destroy() - +Method in class com.openshift.internal.client.ApplicationResource +
  +
destroy() - +Method in class com.openshift.internal.client.DomainResource +
  +
destroy(boolean) - +Method in class com.openshift.internal.client.DomainResource +
  +
destroy() - +Method in class com.openshift.internal.client.EmbeddedCartridgeResource +
  +
destroy() - +Method in class com.openshift.internal.client.EnvironmentVariableResource +
  +
destroy() - +Method in class com.openshift.internal.client.SSHKeyResource +
  +
disconnect() - +Method in class com.openshift.internal.client.APIResource +
  +
DomainResource - Class in com.openshift.internal.client
 
DomainResource(String, String, Map<String, Link>, Messages, APIResource) - +Constructor for class com.openshift.internal.client.DomainResource +
  +
DomainResource(DomainResourceDTO, APIResource) - +Constructor for class com.openshift.internal.client.DomainResource +
  +
DomainResourceDTO - Class in com.openshift.internal.client.response
 
+
+

+E

+
+
EmbeddableCartridge - Class in com.openshift.client.cartridge
An cartridge that may be embedded (added) into an application.
EmbeddableCartridge(String) - +Constructor for class com.openshift.client.cartridge.EmbeddableCartridge +
  +
EmbeddableCartridge(URL) - +Constructor for class com.openshift.client.cartridge.EmbeddableCartridge +
  +
EmbeddableCartridge(String, URL) - +Constructor for class com.openshift.client.cartridge.EmbeddableCartridge +
  +
EmbeddableCartridge(String, String, String) - +Constructor for class com.openshift.client.cartridge.EmbeddableCartridge +
Constructor used when available cartridges are loaded from OpenShift +
EmbeddedCartridgeResource - Class in com.openshift.internal.client
A cartridge that is embedded into an application.
EmbeddedCartridgeResource(CartridgeResourceDTO, ApplicationResource) - +Constructor for class com.openshift.internal.client.EmbeddedCartridgeResource +
  +
encode(byte[]) - +Static method in class com.openshift.client.utils.Base64Coder +
Encodes the given byte array to a base64 encoded String +
encode(String) - +Static method in class com.openshift.client.utils.Base64Coder +
Encodes the given string to a base64 encoded string. +
EncodingException - Exception in com.openshift.internal.client.httpclient
 
EncodingException(String, Throwable) - +Constructor for exception com.openshift.internal.client.httpclient.EncodingException +
  +
ensureIsSingleQuoted(String) - +Method in class com.openshift.client.configuration.AbstractOpenshiftConfiguration +
  +
ensureStartsWithHttps(String) - +Static method in class com.openshift.internal.client.utils.UrlUtils +
  +
EnumDataType - Enum in com.openshift.internal.client.response
The Enum EnumDataType.
EnvironmentVariableResource - Class in com.openshift.internal.client
 
EnvironmentVariableResource(EnvironmentVariableResourceDTO, ApplicationResource) - +Constructor for class com.openshift.internal.client.EnvironmentVariableResource +
  +
EnvironmentVariableResource(String, String, Messages, Map<String, Link>, ApplicationResource) - +Constructor for class com.openshift.internal.client.EnvironmentVariableResource +
  +
EnvironmentVariableResourceDTO - Class in com.openshift.internal.client.response
The DTO for an environment variable
EnvironmentVariableResourceDTO(String, String, Map<String, Link>, Messages) - +Constructor for class com.openshift.internal.client.response.EnvironmentVariableResourceDTO +
Instantiates a new environment variable resource dto. +
equals(Object) - +Method in class com.openshift.client.cartridge.EmbeddableCartridge +
  +
equals(Object) - +Method in class com.openshift.client.cartridge.selector.LatestVersionQuery +
  +
EQUALS - +Static variable in interface com.openshift.client.IHttpClient +
  +
equals(Object) - +Method in class com.openshift.internal.client.ApplicationResource +
  +
equals(Object) - +Method in class com.openshift.internal.client.cartridge.BaseCartridge +
  +
equals(Object) - +Method in class com.openshift.internal.client.DomainResource +
  +
equals(Object) - +Method in class com.openshift.internal.client.EmbeddedCartridgeResource +
TODO: implement fully correct #equals and #hashcode. +
equals(Object) - +Method in class com.openshift.internal.client.Field +
  +
equals(Object) - +Method in class com.openshift.internal.client.GearProfile +
  +
equals(Object) - +Method in class com.openshift.internal.client.httpclient.request.Parameter +
  +
equals(Object) - +Method in class com.openshift.internal.client.httpclient.request.ParameterValue +
  +
equals(Object) - +Method in class com.openshift.internal.client.httpclient.request.ParameterValueMap +
  +
equals(Object) - +Method in class com.openshift.internal.client.response.LinkParameterType +
  +
equals(Object) - +Method in class com.openshift.internal.client.Severity +
  +
equals(Object) - +Method in class com.openshift.internal.client.ssh.AbstractSSHKey +
  +
ERROR - +Static variable in interface com.openshift.client.ISeverity +
  +
execute(Parameter...) - +Method in class com.openshift.internal.client.AbstractOpenShiftResource.ServiceRequest +
  +
execute(int, Parameter...) - +Method in class com.openshift.internal.client.AbstractOpenShiftResource.ServiceRequest +
  +
execute(int, IMediaType, Parameter...) - +Method in class com.openshift.internal.client.AbstractOpenShiftResource.ServiceRequest +
  +
execute(List<Parameter>, Parameter...) - +Method in class com.openshift.internal.client.AbstractOpenShiftResource.ServiceRequest +
  +
execute(int, List<Parameter>, Parameter...) - +Method in class com.openshift.internal.client.AbstractOpenShiftResource.ServiceRequest +
  +
execute(int, List<Parameter>, IMediaType, Parameter...) - +Method in class com.openshift.internal.client.AbstractOpenShiftResource.ServiceRequest +
  +
EXLARGE - +Static variable in interface com.openshift.client.IGearProfile +
  +
+
+

+F

+
+
Field - Class in com.openshift.internal.client
 
Field(String) - +Constructor for class com.openshift.internal.client.Field +
  +
FormUrlEncodedMediaType - Class in com.openshift.internal.client.httpclient.request
A class that encodes request parameters to formurl-encoded format so that they may get sent to + the server.
FormUrlEncodedMediaType() - +Constructor for class com.openshift.internal.client.httpclient.request.FormUrlEncodedMediaType +
  +
+
+

+G

+
+
Gear - Class in com.openshift.internal.client
A gear that a cartridge is running on.
Gear(String, GearState, String) - +Constructor for class com.openshift.internal.client.Gear +
  +
GearGroupResource - Class in com.openshift.internal.client
 
GearGroupResource(String, String, Collection<GearResourceDTO>, Map<String, CartridgeResourceDTO>, ApplicationResource, IRestService) - +Constructor for class com.openshift.internal.client.GearGroupResource +
Constructor. +
GearGroupResource(GearGroupResourceDTO, ApplicationResource, IRestService) - +Constructor for class com.openshift.internal.client.GearGroupResource +
Constructor. +
GearGroupResourceDTO - Class in com.openshift.internal.client.response
The DTO for a gear groups
gearProfile(IGearProfile) - +Method in class com.openshift.internal.client.AbstractOpenShiftResource.Parameters +
  +
GearProfile - Class in com.openshift.internal.client
 
GearProfile(String) - +Constructor for class com.openshift.internal.client.GearProfile +
  +
GearResourceDTO - Class in com.openshift.internal.client.response
The Class ApplicationDTO.
GearState - Enum in com.openshift.client
 
get(IApplication) - +Method in class com.openshift.client.cartridge.selector.LatestEmbeddableCartridge +
  +
get(IUser) - +Method in class com.openshift.client.cartridge.selector.LatestEmbeddableCartridge +
  +
get(IApplication) - +Method in class com.openshift.client.cartridge.selector.LatestStandaloneCartridge +
  +
get(IUser) - +Method in class com.openshift.client.cartridge.selector.LatestStandaloneCartridge +
  +
get(Collection<C>) - +Method in class com.openshift.client.cartridge.selector.LatestVersionQuery +
  +
get(URL, int) - +Method in interface com.openshift.client.IHttpClient +
  +
get(Collection<C>) - +Method in class com.openshift.internal.client.cartridge.AbstractCartridgeQuery +
  +
get(URL, int) - +Method in class com.openshift.internal.client.httpclient.UrlConnectionHttpClient +
  +
get(String) - +Method in interface com.openshift.internal.client.response.IRestResponseFactory +
Returns a RestResponse instance for a given rest response string. +
get(String) - +Method in class com.openshift.internal.client.response.OpenShiftJsonDTOFactory +
  +
getAliases() - +Method in interface com.openshift.client.IApplication +
Retrieve all application aliases +
getAliases() - +Method in class com.openshift.internal.client.ApplicationResource +
  +
getAliases() - +Method in class com.openshift.internal.client.response.ApplicationResourceDTO +
  +
getAll(Collection<C>) - +Method in class com.openshift.client.cartridge.selector.LatestVersionQuery +
  +
getAll() - +Method in class com.openshift.client.Messages +
  +
getAll(Collection<C>) - +Method in class com.openshift.internal.client.cartridge.AbstractCartridgeQuery +
  +
getAll() - +Method in class com.openshift.internal.client.response.CartridgeResourceProperties +
  +
getApplication() - +Method in interface com.openshift.client.cartridge.IEmbeddedCartridge +
Returns the application this cartridge is embedded into. +
getApplication() - +Method in interface com.openshift.client.IEnvironmentVariable +
Returns the application for this environment variable +
getApplication() - +Method in class com.openshift.internal.client.EmbeddedCartridgeResource +
  +
getApplication() - +Method in class com.openshift.internal.client.EnvironmentVariableResource +
  +
getApplication() - +Method in class com.openshift.internal.client.ssh.ApplicationPortForwarding +
  +
getApplicationByName(String) - +Method in interface com.openshift.client.IDomain +
Returns the application identified by the given name. +
getApplicationByName(String) - +Method in class com.openshift.internal.client.DomainResource +
  +
getApplications() - +Method in interface com.openshift.client.IDomain +
  +
getApplications() - +Method in class com.openshift.internal.client.DomainResource +
  +
getApplicationsByCartridge(IStandaloneCartridge) - +Method in interface com.openshift.client.IDomain +
  +
getApplicationsByCartridge(IStandaloneCartridge) - +Method in class com.openshift.internal.client.DomainResource +
  +
getApplicationScale() - +Method in interface com.openshift.client.IApplication +
Returns true if scaling is enabled on this application (only set at + creation time). +
getApplicationScale() - +Method in class com.openshift.internal.client.ApplicationResource +
  +
getApplicationScale() - +Method in class com.openshift.internal.client.response.ApplicationResourceDTO +
  +
getApplicationUrl() - +Method in interface com.openshift.client.IApplication +
Returns the url at which this application may be reached at. +
getApplicationUrl() - +Method in class com.openshift.internal.client.ApplicationResource +
  +
getApplicationUrl() - +Method in class com.openshift.internal.client.response.ApplicationResourceDTO +
  +
getAvailableCartridgeNames() - +Method in interface com.openshift.client.IDomain +
Returns the list of cartridges that can be used to create a new application. +
getAvailableCartridgeNames() - +Method in class com.openshift.internal.client.DomainResource +
  +
getAvailableGearProfiles() - +Method in interface com.openshift.client.IDomain +
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). +
getAvailableGearProfiles() - +Method in class com.openshift.internal.client.DomainResource +
  +
getBy(IField, ISeverity) - +Method in class com.openshift.client.Messages +
Returns the messages of the given field type and severity. +
getBy(IField) - +Method in class com.openshift.client.Messages +
Returns all the message of the given field type. +
getByJSchKeyType(KeyPair) - +Static method in enum com.openshift.client.SSHKeyType +
  +
getByJSchKeyType(int) - +Static method in enum com.openshift.client.SSHKeyType +
  +
getByTypeId(String) - +Static method in enum com.openshift.client.SSHKeyType +
  +
getCartridge() - +Method in interface com.openshift.client.IApplication +
Returns the cartridge (application type) that this app is running on. +
getCartridge() - +Method in class com.openshift.internal.client.ApplicationResource +
  +
getCartridge(String) - +Method in class com.openshift.internal.client.ApplicationResource +
Returns the main (standalone) cartrige or one of the embedded cartridges + whose name matches the given param. +
getCartridge(String) - +Method in class com.openshift.internal.client.response.GearGroupResourceDTO +
Returns the cartridge identified by the given name. +
getCartridges() - +Method in interface com.openshift.client.IGearGroup +
Returns the cartridges in this gear group resource +
getCartridges() - +Method in class com.openshift.internal.client.GearGroupResource +
  +
getCartridges() - +Method in class com.openshift.internal.client.response.ApplicationResourceDTO +
  +
getCartridges() - +Method in class com.openshift.internal.client.response.GearGroupResourceDTO +
Returns the cartridges within this gear group. +
getClientId() - +Method in class com.openshift.client.configuration.AbstractOpenshiftConfiguration +
  +
getClientId() - +Method in class com.openshift.internal.client.RestServiceProperties +
  +
getConnection() - +Method in interface com.openshift.client.IUser +
  +
getConnection(String, String) - +Method in class com.openshift.client.OpenShiftConnectionFactory +
Establish a connection with the clientId along with user's password. +
getConnection(String, String, String) - +Method in class com.openshift.client.OpenShiftConnectionFactory +
Establish a connection with the clientId along with user's login and + password. +
getConnection(String, String, String, String) - +Method in class com.openshift.client.OpenShiftConnectionFactory +
Establish a connection with the clientId along with user's login and + password. +
getConnection(String, String, String, String, String, String) - +Method in class com.openshift.client.OpenShiftConnectionFactory +
Establish a connection with the clientId along with user's login and + password. +
getConnection(String, String, String, String, IHttpClient) - +Method in class com.openshift.client.OpenShiftConnectionFactory +
  +
getConnection(IRestService, String, String) - +Method in class com.openshift.internal.client.AbstractOpenShiftConnectionFactory +
  +
getConnection() - +Method in class com.openshift.internal.client.ApplicationResource +
  +
getConnection(IApplication) - +Method in class com.openshift.internal.client.cartridge.AbstractCartridgeQuery +
  +
getConnection(IDomain) - +Method in class com.openshift.internal.client.cartridge.AbstractCartridgeQuery +
  +
getConnection() - +Method in class com.openshift.internal.client.UserResource +
  +
getConsumedGears() - +Method in interface com.openshift.client.IUser +
  +
getConsumedGears() - +Method in class com.openshift.internal.client.response.UserResourceDTO +
  +
getConsumedGears() - +Method in class com.openshift.internal.client.UserResource +
  +
getContent() - +Method in class com.openshift.internal.client.response.KeyResourceDTO +
Returns the public key content. +
getCreationLog() - +Method in interface com.openshift.client.IOpenShiftResource +
Returns the log that was created when the resource was created. +
getCreationLog() - +Method in class com.openshift.internal.client.AbstractOpenShiftResource +
  +
getCreationTime() - +Method in interface com.openshift.client.IApplication +
Returns the timestamp at which this app was created. +
getCreationTime() - +Method in class com.openshift.internal.client.ApplicationResource +
  +
getCreationTime() - +Method in class com.openshift.internal.client.response.ApplicationResourceDTO +
Gets the creation time. +
getData(RestResponse) - +Method in class com.openshift.internal.client.AbstractOpenShiftResource.ServiceRequest +
  +
getData() - +Method in class com.openshift.internal.client.response.RestResponse +
Gets the data. +
getDataType() - +Method in class com.openshift.internal.client.response.RestResponse +
Gets the data type. +
getDate(String) - +Static method in class com.openshift.client.utils.RFC822DateUtils +
Returns a date instance for a given timestamp string that complies to the + RFC 822 standard +
getDefaultDomain() - +Method in interface com.openshift.client.IUser +
  +
getDefaultDomain() - +Method in class com.openshift.internal.client.APIResource +
  +
getDefaultDomain() - +Method in class com.openshift.internal.client.UserResource +
  +
getDefaultValue() - +Method in class com.openshift.internal.client.response.LinkParameter +
  +
getDescription() - +Method in interface com.openshift.client.cartridge.ICartridge +
Returns a description for this cartridge +
getDescription() - +Method in class com.openshift.internal.client.cartridge.BaseCartridge +
  +
getDescription() - +Method in class com.openshift.internal.client.EmbeddedCartridgeResource +
  +
getDescription() - +Method in class com.openshift.internal.client.response.CartridgeResourceDTO +
  +
getDescription() - +Method in class com.openshift.internal.client.response.CartridgeResourceProperty +
  +
getDescription() - +Method in class com.openshift.internal.client.response.LinkParameter +
  +
getDescriptor() - +Method in class com.openshift.internal.client.ApplicationResource +
  +
getDisplayName() - +Method in interface com.openshift.client.cartridge.ICartridge +
Returns a (human readable, nice) display name for this cartridge +
getDisplayName() - +Method in class com.openshift.internal.client.cartridge.BaseCartridge +
  +
getDisplayName() - +Method in class com.openshift.internal.client.EmbeddedCartridgeResource +
  +
getDisplayName() - +Method in class com.openshift.internal.client.response.CartridgeResourceDTO +
  +
getDomain() - +Method in interface com.openshift.client.IApplication +
Get the domain of the application. +
getDomain(String) - +Method in interface com.openshift.client.IUser +
  +
getDomain(String) - +Method in class com.openshift.internal.client.APIResource +
  +
getDomain() - +Method in class com.openshift.internal.client.ApplicationResource +
  +
getDomain(String) - +Method in class com.openshift.internal.client.UserResource +
  +
getDomainId() - +Method in class com.openshift.internal.client.response.ApplicationResourceDTO +
Gets the domain id. +
getDomains() - +Method in interface com.openshift.client.IOpenShiftConnection +
Returns the domains associated with the current OpenShift connection. +
getDomains() - +Method in interface com.openshift.client.IUser +
  +
getDomains() - +Method in class com.openshift.internal.client.APIResource +
  +
getDomains() - +Method in class com.openshift.internal.client.UserResource +
  +
getEmbeddableCartridges() - +Method in interface com.openshift.client.IOpenShiftConnection +
Returns the available embeddable cartridges associated with the current + OpenShift connection. +
getEmbeddableCartridges() - +Method in class com.openshift.internal.client.APIResource +
  +
getEmbeddedCartridge(String) - +Method in interface com.openshift.client.IApplication +
Returns the embedded cartridge given its name. +
getEmbeddedCartridge(IEmbeddableCartridge) - +Method in interface com.openshift.client.IApplication +
Returns the embedded cartridge in this application. +
getEmbeddedCartridge(IEmbeddableCartridge) - +Method in class com.openshift.internal.client.ApplicationResource +
  +
getEmbeddedCartridge(String) - +Method in class com.openshift.internal.client.ApplicationResource +
  +
getEmbeddedCartridges() - +Method in interface com.openshift.client.IApplication +
Returns all embedded cartridges. +
getEmbeddedCartridges() - +Method in class com.openshift.internal.client.ApplicationResource +
  +
getEnvironmentProperties() - +Method in interface com.openshift.client.IApplication +
Retrieves the list of environment properties. +
getEnvironmentProperties() - +Method in class com.openshift.internal.client.ApplicationResource +
  +
getEnvironmentVariable(String) - +Method in interface com.openshift.client.IApplication +
Return the environment variable for the specified name +
getEnvironmentVariable(String) - +Method in class com.openshift.internal.client.ApplicationResource +
  +
getEnvironmentVariables() - +Method in interface com.openshift.client.IApplication +
Retrieves the map of environment variables +
getEnvironmentVariables() - +Method in class com.openshift.internal.client.ApplicationResource +
  +
getExecutorService() - +Method in interface com.openshift.client.IOpenShiftConnection +
Returns the executor service instance that's available in this + connection. +
getExecutorService() - +Method in class com.openshift.internal.client.APIResource +
  +
getExitCode() - +Method in class com.openshift.client.Message +
  +
getField() - +Method in class com.openshift.client.Message +
  +
getFile() - +Method in class com.openshift.client.configuration.AbstractOpenshiftConfiguration +
  +
getFirstBy(IField, ISeverity) - +Method in class com.openshift.client.Messages +
Returns the first message of the given field type and severity. +
getFirstBy(IField) - +Method in class com.openshift.client.Messages +
Returns the first message of the given field type. +
getForwardablePorts() - +Method in interface com.openshift.client.IApplication +
Returns the list of forwardable ports on OpenShift for this application. +
getForwardablePorts() - +Method in class com.openshift.internal.client.ApplicationResource +
  +
getFramework() - +Method in class com.openshift.internal.client.response.ApplicationResourceDTO +
Gets the framework. +
getGearGroups() - +Method in interface com.openshift.client.IApplication +
Returns the gear groups for this application. +
getGearGroups() - +Method in class com.openshift.internal.client.ApplicationResource +
  +
getGearProfile() - +Method in interface com.openshift.client.IApplication +
Returns true if scaling is enabled on this application (only set at + creation time). +
getGearProfile() - +Method in class com.openshift.internal.client.ApplicationResource +
  +
getGearProfile() - +Method in class com.openshift.internal.client.response.ApplicationResourceDTO +
  +
getGears() - +Method in interface com.openshift.client.IGearGroup +
Returns the gears in this gear group resource +
getGears() - +Method in class com.openshift.internal.client.GearGroupResource +
  +
getGears() - +Method in class com.openshift.internal.client.response.GearGroupResourceDTO +
Returns the gears within this gear group. +
getGitUrl() - +Method in interface com.openshift.client.IApplication +
Returns the uri at which the git repository of this application may be + reached at. +
getGitUrl() - +Method in class com.openshift.internal.client.ApplicationResource +
  +
getGitUrl() - +Method in class com.openshift.internal.client.response.ApplicationResourceDTO +
  +
getHref() - +Method in class com.openshift.internal.client.response.Link +
Gets the url/href this link points to. +
getHref(String, String, Parameter...) - +Method in class com.openshift.internal.client.response.Link +
  +
getHref(String, String, List<Parameter>) - +Method in class com.openshift.internal.client.response.Link +
  +
getHttpMethod() - +Method in class com.openshift.internal.client.response.Link +
Gets the http method this link operates on. +
getId() - +Method in interface com.openshift.client.IDomain +
  +
getId() - +Method in interface com.openshift.client.IGear +
Returns the id of this gear. +
getId() - +Method in class com.openshift.internal.client.DomainResource +
  +
getId() - +Method in class com.openshift.internal.client.Gear +
  +
getId() - +Method in class com.openshift.internal.client.response.DomainResourceDTO +
  +
getInitialGitUrl() - +Method in interface com.openshift.client.IApplication +
Returns the git url that the application will get its initial code and configuration from. +
getInitialGitUrl() - +Method in class com.openshift.internal.client.ApplicationResource +
  +
getInitialGitUrl() - +Method in class com.openshift.internal.client.response.ApplicationResourceDTO +
  +
getInputStream(Channel) - +Method in enum com.openshift.internal.client.ApplicationResource.SshStreams +
  +
getKeyType() - +Method in interface com.openshift.client.ISSHPublicKey +
Returns the type of the key (ssh-rsa or ssh-dss) +
getKeyType() - +Method in class com.openshift.internal.client.ssh.AbstractSSHKey +
  +
getKeyType() - +Method in class com.openshift.internal.client.SSHKeyResource +
  +
getLatest(Collection<C>) - +Method in class com.openshift.client.cartridge.selector.LatestVersionQuery +
  +
getLibraDomain() - +Method in class com.openshift.client.configuration.AbstractOpenshiftConfiguration +
  +
getLibraDomain() - +Method in interface com.openshift.client.configuration.IOpenShiftConfiguration +
  +
getLibraServer() - +Method in class com.openshift.client.configuration.AbstractOpenshiftConfiguration +
  +
getLibraServer() - +Method in interface com.openshift.client.configuration.IOpenShiftConfiguration +
  +
getLines(Channel) - +Method in enum com.openshift.internal.client.ApplicationResource.SshStreams +
  +
getLink(String) - +Method in class com.openshift.internal.client.AbstractOpenShiftResource +
Gets the link for the given name. +
getLink(String) - +Method in class com.openshift.internal.client.response.BaseResourceDTO +
Gets the link. +
getLinks() - +Method in class com.openshift.internal.client.response.BaseResourceDTO +
Gets the links. +
getLocalAddress() - +Method in interface com.openshift.client.IApplicationPortForwarding +
  +
getLocalAddress() - +Method in class com.openshift.internal.client.ssh.ApplicationPortForwarding +
  +
getLocalPort() - +Method in interface com.openshift.client.IApplicationPortForwarding +
  +
getLocalPort() - +Method in class com.openshift.internal.client.ssh.ApplicationPortForwarding +
  +
getLogin() - +Method in class com.openshift.internal.client.APIResource +
  +
getMajor() - +Method in class com.openshift.client.cartridge.selector.LatestVersionQuery.VersionedName +
  +
getMatchingProperty(IEmbeddedCartridge) - +Method in class com.openshift.client.cartridge.selector.CartridgePropertyQuery +
  +
getMatchingProperty(IEmbeddedCartridge) - +Method in class com.openshift.client.cartridge.selector.UrlPropertyQuery +
  +
getMaxGears() - +Method in interface com.openshift.client.IUser +
  +
getMaxGears() - +Method in class com.openshift.internal.client.response.UserResourceDTO +
  +
getMaxGears() - +Method in class com.openshift.internal.client.UserResource +
  +
getMessages() - +Method in interface com.openshift.client.IOpenShiftResource +
Returns all the (creation log) messages. +
getMessages() - +Method in class com.openshift.internal.client.AbstractOpenShiftResource +
  +
getMessages() - +Method in class com.openshift.internal.client.response.BaseResourceDTO +
Returns the messages that were reported when this resource was created. +
getMessages() - +Method in class com.openshift.internal.client.response.RestResponse +
Gets the messages. +
getMinor() - +Method in class com.openshift.client.cartridge.selector.LatestVersionQuery.VersionedName +
  +
getName() - +Method in interface com.openshift.client.cartridge.ICartridge +
Returns the name of this cartridge +
getName() - +Method in class com.openshift.client.cartridge.selector.LatestVersionQuery.VersionedName +
  +
getName() - +Method in interface com.openshift.client.IApplication +
Returns the name of this application. +
getName() - +Method in interface com.openshift.client.IApplicationPortForwarding +
  +
getName() - +Method in interface com.openshift.client.IEnvironmentVariable +
  +
getName() - +Method in interface com.openshift.client.IGearGroup +
Returns the name of this gear groups +
getName() - +Method in interface com.openshift.client.IGearProfile +
  +
getName() - +Method in interface com.openshift.client.IOpenShiftSSHKey +
Returns the name that is used to store this key on OpenShift. +
getName() - +Method in class com.openshift.internal.client.ApplicationResource +
  +
getName() - +Method in class com.openshift.internal.client.cartridge.BaseCartridge +
  +
getName() - +Method in class com.openshift.internal.client.EmbeddedCartridgeResource +
  +
getName() - +Method in class com.openshift.internal.client.EnvironmentVariableResource +
  +
getName() - +Method in class com.openshift.internal.client.GearGroupResource +
  +
getName() - +Method in class com.openshift.internal.client.GearProfile +
  +
getName() - +Method in class com.openshift.internal.client.httpclient.request.Parameter +
  +
getName() - +Method in class com.openshift.internal.client.response.ApplicationResourceDTO +
Gets the name. +
getName() - +Method in class com.openshift.internal.client.response.CartridgeResourceDTO +
  +
getName() - +Method in class com.openshift.internal.client.response.CartridgeResourceProperty +
  +
getName() - +Method in class com.openshift.internal.client.response.EnvironmentVariableResourceDTO +
Returns the name of this environment variable +
getName() - +Method in class com.openshift.internal.client.response.GearGroupResourceDTO +
Returns the name of this gear group +
getName() - +Method in class com.openshift.internal.client.response.KeyResourceDTO +
Returns the name. +
getName() - +Method in class com.openshift.internal.client.response.LinkParameter +
  +
getName() - +Method in class com.openshift.internal.client.ssh.ApplicationPortForwarding +
  +
getName() - +Method in class com.openshift.internal.client.SSHKeyResource +
  +
getNameConstraint() - +Method in class com.openshift.client.cartridge.selector.LatestVersionQuery +
  +
getOptionalParams() - +Method in class com.openshift.internal.client.response.Link +
Gets the optional params. +
getOrLoadApplications() - +Method in class com.openshift.internal.client.DomainResource +
  +
getOrLoadEnvironmentVariables() - +Method in class com.openshift.internal.client.ApplicationResource +
  +
getParamater(String) - +Method in class com.openshift.internal.client.httpclient.request.ParameterValueMap +
  +
getPassword() - +Method in class com.openshift.client.configuration.AbstractOpenshiftConfiguration +
  +
getPassword() - +Method in interface com.openshift.client.IUser +
  +
getPassword() - +Method in class com.openshift.internal.client.APIResource +
  +
getPassword() - +Method in class com.openshift.internal.client.UserResource +
  +
getPlatformUrl() - +Method in interface com.openshift.internal.client.IRestService +
Returns the OpenShift server. +
getPlatformUrl() - +Method in class com.openshift.internal.client.RestService +
  +
getPrivateKeyPath() - +Method in class com.openshift.client.SSHKeyPair +
  +
getProperties() - +Method in interface com.openshift.client.cartridge.IEmbeddedCartridge +
Returns the properties for this embedded cartridge +
getProperties(File, Properties) - +Method in class com.openshift.client.configuration.AbstractOpenshiftConfiguration +
  +
getProperties() - +Method in class com.openshift.client.configuration.AbstractOpenshiftConfiguration +
  +
getProperties(File, Properties) - +Method in class com.openshift.client.configuration.DefaultConfiguration +
  +
getProperties() - +Method in interface com.openshift.client.configuration.IOpenShiftConfiguration +
  +
getProperties(File, Properties) - +Method in class com.openshift.client.configuration.SystemProperties +
  +
getProperties() - +Method in class com.openshift.internal.client.EmbeddedCartridgeResource +
  +
getProperties() - +Method in class com.openshift.internal.client.response.CartridgeResourceDTO +
  +
getProperties() - +Method in class com.openshift.internal.client.RestServiceProperties +
  +
getProperty(C) - +Method in class com.openshift.client.cartridge.selector.StringPropertyQuery +
  +
getProperty(String) - +Method in class com.openshift.internal.client.response.CartridgeResourceProperties +
  +
getPropertyValue(String) - +Method in class com.openshift.internal.client.response.CartridgeResourceProperties +
  +
getProxyHost() - +Method in class com.openshift.client.configuration.AbstractOpenshiftConfiguration +
  +
getProxyPort() - +Method in class com.openshift.client.configuration.AbstractOpenshiftConfiguration +
  +
getProxySet() - +Method in class com.openshift.client.configuration.AbstractOpenshiftConfiguration +
  +
getPublicKey() - +Method in interface com.openshift.client.ISSHPublicKey +
Returns the content of the public key (key content without ssh-rsa + identifier nor comment) of the ssh key +
getPublicKey() - +Method in class com.openshift.client.SSHKeyPair +
  +
getPublicKey() - +Method in class com.openshift.client.SSHPublicKey +
  +
getPublicKey() - +Method in class com.openshift.internal.client.SSHKeyResource +
  +
getPublicKeyPath() - +Method in class com.openshift.client.SSHKeyPair +
  +
getRel() - +Method in class com.openshift.internal.client.response.Link +
Gets the related resource (destination) this link points to. +
getRemoteAddress() - +Method in interface com.openshift.client.IApplicationPortForwarding +
  +
getRemoteAddress() - +Method in class com.openshift.internal.client.ssh.ApplicationPortForwarding +
  +
getRemotePort() - +Method in interface com.openshift.client.IApplicationPortForwarding +
  +
getRemotePort() - +Method in class com.openshift.internal.client.ssh.ApplicationPortForwarding +
  +
getRequiredParams() - +Method in class com.openshift.internal.client.response.Link +
Gets the required params. +
getRestResponse() - +Method in exception com.openshift.client.OpenShiftEndpointException +
  +
getRestResponseMessage(IField) - +Method in exception com.openshift.client.OpenShiftEndpointException +
Returns the message for the given field. +
getRestResponseMessages() - +Method in exception com.openshift.client.OpenShiftEndpointException +
  +
getRhlogin() - +Method in class com.openshift.client.configuration.AbstractOpenshiftConfiguration +
  +
getRhlogin() - +Method in interface com.openshift.client.configuration.IOpenShiftConfiguration +
  +
getRhlogin() - +Method in interface com.openshift.client.IUser +
  +
getRhLogin() - +Method in class com.openshift.internal.client.response.UserResourceDTO +
  +
getRhlogin() - +Method in class com.openshift.internal.client.UserResource +
  +
getServer() - +Method in interface com.openshift.client.IOpenShiftConnection +
Returns the server this connection is bound to. +
getServer() - +Method in interface com.openshift.client.IUser +
  +
getServer() - +Method in class com.openshift.internal.client.APIResource +
  +
getServer() - +Method in class com.openshift.internal.client.UserResource +
  +
getServiceUrl() - +Method in interface com.openshift.internal.client.IRestService +
Returns the url for the OpenShift service, the endpoint which this rest + service class is talking to. +
getServiceUrl() - +Method in class com.openshift.internal.client.RestService +
  +
getSeverity() - +Method in class com.openshift.client.Message +
  +
getSSHKeyByName(String) - +Method in interface com.openshift.client.IUser +
  +
getSSHKeyByName(String) - +Method in class com.openshift.internal.client.UserResource +
  +
getSSHKeyByPublicKey(String) - +Method in interface com.openshift.client.IUser +
  +
getSSHKeyByPublicKey(String) - +Method in class com.openshift.internal.client.UserResource +
  +
getSSHKeys() - +Method in interface com.openshift.client.IUser +
  +
getSSHKeys() - +Method in class com.openshift.internal.client.UserResource +
  +
getSSHSession() - +Method in interface com.openshift.client.IApplication +
Returns the SSH session that this application uses to connect to + OpenShift. +
getSSHSession() - +Method in class com.openshift.internal.client.ApplicationResource +
  +
getSshUrl() - +Method in interface com.openshift.client.IApplication +
Returns the url to use to connect with ssh. +
getSshUrl() - +Method in interface com.openshift.client.IGear +
The URL to use when connecting with SSH in the following form: + ssh://<username>@<host> +
getSshUrl() - +Method in class com.openshift.internal.client.ApplicationResource +
  +
getSshUrl() - +Method in class com.openshift.internal.client.Gear +
  +
getSshUrl() - +Method in class com.openshift.internal.client.response.ApplicationResourceDTO +
  +
getSshUrl() - +Method in class com.openshift.internal.client.response.GearResourceDTO +
  +
getStandaloneCartridges() - +Method in interface com.openshift.client.IOpenShiftConnection +
Returns the available standalone cartridges associated with the current + OpenShift connection. +
getStandaloneCartridges() - +Method in class com.openshift.internal.client.APIResource +
  +
getState() - +Method in interface com.openshift.client.IGear +
Returns the state of this gear +
getState() - +Method in class com.openshift.internal.client.Gear +
  +
getState() - +Method in class com.openshift.internal.client.response.GearResourceDTO +
  +
getStatus() - +Method in class com.openshift.internal.client.response.RestResponse +
Gets the status. +
getString(Date) - +Static method in class com.openshift.client.utils.RFC822DateUtils +
  +
getSuffix() - +Method in interface com.openshift.client.IDomain +
The domain suffix is the host part eg: 'rhcloud.com') +
getSuffix() - +Method in class com.openshift.internal.client.DomainResource +
  +
getSuffix() - +Method in class com.openshift.internal.client.response.DomainResourceDTO +
  +
getText() - +Method in class com.openshift.client.Message +
  +
getType() - +Method in class com.openshift.internal.client.EmbeddedCartridgeResource +
  +
getType() - +Method in class com.openshift.internal.client.httpclient.request.FormUrlEncodedMediaType +
  +
getType() - +Method in interface com.openshift.internal.client.httpclient.request.IMediaType +
  +
getType() - +Method in class com.openshift.internal.client.httpclient.request.JsonMediaType +
  +
getType() - +Method in class com.openshift.internal.client.response.CartridgeResourceDTO +
  +
getType() - +Method in class com.openshift.internal.client.response.CartridgeResourceProperty +
  +
getType() - +Method in class com.openshift.internal.client.response.KeyResourceDTO +
Returns the type. +
getType() - +Method in class com.openshift.internal.client.response.LinkParameter +
  +
getTypeId() - +Method in enum com.openshift.client.SSHKeyType +
  +
getUrl() - +Method in interface com.openshift.client.cartridge.ICartridge +
Returns the url at which the code for this cartridge may get downloaded. +
getUrl() - +Method in interface com.openshift.client.cartridge.IEmbeddedCartridge +
The url at which this cartridge may be reached +
getUrl() - +Method in exception com.openshift.client.OpenShiftEndpointException +
  +
getUrl() - +Method in class com.openshift.internal.client.cartridge.BaseCartridge +
  +
getUrl() - +Method in class com.openshift.internal.client.EmbeddedCartridgeResource +
  +
getUrl() - +Method in class com.openshift.internal.client.response.CartridgeResourceDTO +
  +
getUser() - +Method in interface com.openshift.client.IDomain +
Returns the currently connected user that manages this domain. +
getUser() - +Method in interface com.openshift.client.IOpenShiftConnection +
Returns the user associated with the current OpenShift connection. +
getUser() - +Method in class com.openshift.internal.client.APIResource +
  +
getUser() - +Method in class com.openshift.internal.client.DomainResource +
  +
getUseragent(String) - +Method in class com.openshift.internal.client.RestServiceProperties +
  +
getUseragentPattern() - +Method in class com.openshift.internal.client.RestServiceProperties +
  +
getUUID() - +Method in interface com.openshift.client.IApplication +
Returns the uuid of this application. +
getUUID() - +Method in interface com.openshift.client.IGearGroup +
Returns the uuid of this gear groups. +
getUUID() - +Method in class com.openshift.internal.client.ApplicationResource +
  +
getUUID() - +Method in class com.openshift.internal.client.GearGroupResource +
  +
getUuid() - +Method in class com.openshift.internal.client.response.ApplicationResourceDTO +
Gets the uuid. +
getUuid() - +Method in class com.openshift.internal.client.response.GearGroupResourceDTO +
Returns the uuid of this gear group. +
getUuid() - +Method in class com.openshift.internal.client.response.GearResourceDTO +
  +
getValidOptions() - +Method in class com.openshift.internal.client.response.LinkParameter +
  +
getValue() - +Method in enum com.openshift.client.ApplicationScale +
  +
getValue() - +Method in interface com.openshift.client.IEnvironmentVariable +
  +
getValue() - +Method in interface com.openshift.client.IField +
  +
getValue() - +Method in interface com.openshift.client.ISeverity +
  +
getValue() - +Method in class com.openshift.internal.client.EnvironmentVariableResource +
  +
getValue() - +Method in class com.openshift.internal.client.Field +
  +
getValue() - +Method in class com.openshift.internal.client.httpclient.request.ParameterValue +
  +
getValue() - +Method in class com.openshift.internal.client.response.CartridgeResourceProperty +
  +
getValue() - +Method in class com.openshift.internal.client.response.EnvironmentVariableResourceDTO +
Returns the value of this gear group. +
getValue() - +Method in class com.openshift.internal.client.Severity +
  +
getVersion() - +Method in class com.openshift.internal.client.RestServiceProperties +
  +
+
+

+H

+
+
haProxy() - +Static method in class com.openshift.client.cartridge.selector.LatestVersionOf +
  +
hasAlias(String) - +Method in interface com.openshift.client.IApplication +
  +
hasAlias(String) - +Method in class com.openshift.internal.client.ApplicationResource +
  +
hasApplicationByCartridge(IStandaloneCartridge) - +Method in interface com.openshift.client.IDomain +
  +
hasApplicationByCartridge(IStandaloneCartridge) - +Method in class com.openshift.internal.client.DomainResource +
  +
hasApplicationByName(String) - +Method in interface com.openshift.client.IDomain +
Returns true if the application identified by the given name exists in the domain. +
hasApplicationByName(String) - +Method in class com.openshift.internal.client.DomainResource +
  +
hasCreationLog() - +Method in interface com.openshift.client.IOpenShiftResource +
Returns + 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
 
+
+

+I

+
+
IApplication - Interface in com.openshift.client
 
IApplicationPortForwarding - Interface in com.openshift.client
 
ICartridge - Interface in com.openshift.client.cartridge
 
ID - +Static variable in interface com.openshift.client.IUser +
  +
IDomain - Interface in com.openshift.client
 
IEmbeddableCartridge - Interface in com.openshift.client.cartridge
 
IEmbeddedCartridge - Interface in com.openshift.client.cartridge
Interface to designate a cartridge that has been added and configured
IEnvironmentVariable - Interface in com.openshift.client
 
IField - Interface in com.openshift.client
 
IGear - Interface in com.openshift.client
 
IGearGroup - Interface in com.openshift.client
 
IGearProfile - Interface in com.openshift.client
 
IHttpClient - Interface in com.openshift.client
 
IMediaType - Interface in com.openshift.internal.client.httpclient.request
A media type that encodes and writes request parameters before they get sent by the client.
include(String) - +Method in class com.openshift.internal.client.AbstractOpenShiftResource.Parameters +
  +
INFO - +Static variable in interface com.openshift.client.ISeverity +
  +
initProperties(File) - +Method in class com.openshift.client.configuration.AbstractOpenshiftConfiguration +
  +
initProperties(Properties) - +Method in class com.openshift.client.configuration.AbstractOpenshiftConfiguration +
  +
initProperties(File, Properties) - +Method in class com.openshift.client.configuration.AbstractOpenshiftConfiguration +
  +
INTEGER - +Static variable in class com.openshift.internal.client.response.LinkParameterType +
  +
InternalServerErrorException - Exception in com.openshift.internal.client.httpclient
 
InternalServerErrorException(String, Throwable) - +Constructor for exception com.openshift.internal.client.httpclient.InternalServerErrorException +
  +
InternalServerErrorException(String) - +Constructor for exception com.openshift.internal.client.httpclient.InternalServerErrorException +
  +
InvalidCredentialsOpenShiftException - Exception in com.openshift.client
 
InvalidCredentialsOpenShiftException(String, HttpClientException, RestResponse) - +Constructor for exception com.openshift.client.InvalidCredentialsOpenShiftException +
  +
InvalidNameOpenShiftException - Exception in com.openshift.client
 
InvalidNameOpenShiftException(String, Object...) - +Constructor for exception com.openshift.client.InvalidNameOpenShiftException +
  +
IOpenShiftConfiguration - Interface in com.openshift.client.configuration
 
IOpenShiftConnection - Interface in com.openshift.client
 
IOpenShiftJsonConstants - Class in com.openshift.internal.client.utils
 
IOpenShiftJsonConstants() - +Constructor for class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
IOpenShiftParameterConstants - Class in com.openshift.internal.client.utils
 
IOpenShiftParameterConstants() - +Constructor for class com.openshift.internal.client.utils.IOpenShiftParameterConstants +
  +
IOpenShiftResource - Interface in com.openshift.client
 
IOpenShiftSSHKey - Interface in com.openshift.client
 
IRestResponseFactory - Interface in com.openshift.internal.client.response
 
IRestService - Interface in com.openshift.internal.client
A rest service that executes request against the OpenShift server
isDownloadable() - +Method in interface com.openshift.client.cartridge.ICartridge +
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). +
isDownloadable() - +Method in class com.openshift.internal.client.cartridge.BaseCartridge +
  +
isDownloadable() - +Method in class com.openshift.internal.client.EmbeddedCartridgeResource +
  +
isEmpty() - +Method in class com.openshift.internal.client.httpclient.request.ParameterValueMap +
  +
isEmpty(String) - +Static method in class com.openshift.internal.client.utils.StringUtils +
  +
ISeverity - Interface in com.openshift.client
 
isPortFowardingStarted() - +Method in interface com.openshift.client.IApplication +
Returns true if the port-forwarding has been started, false otherwise. +
isPortFowardingStarted() - +Method in class com.openshift.internal.client.ApplicationResource +
  +
ISSHPublicKey - Interface in com.openshift.client
 
isStarted(Session) - +Method in interface com.openshift.client.IApplicationPortForwarding +
  +
isStarted(Session) - +Method in class com.openshift.internal.client.ssh.ApplicationPortForwarding +
  +
IStandaloneCartridge - Interface in com.openshift.client.cartridge
 
isTrue(boolean) - +Static method in class com.openshift.internal.client.utils.Assert +
  +
isUrl(String) - +Static method in class com.openshift.internal.client.utils.UrlUtils +
  +
IUser - Interface in com.openshift.client
 
+
+

+J

+
+
jbossAs() - +Static method in class com.openshift.client.cartridge.selector.LatestVersionOf +
  +
jbossEap() - +Static method in class com.openshift.client.cartridge.selector.LatestVersionOf +
  +
jbossEws() - +Static method in class com.openshift.client.cartridge.selector.LatestVersionOf +
  +
jenkins() - +Static method in class com.openshift.client.cartridge.selector.LatestVersionOf +
  +
jenkinsClient() - +Static method in class com.openshift.client.cartridge.selector.LatestVersionOf +
  +
JOB_URL - +Static variable in class com.openshift.internal.client.response.CartridgeResourceProperties +
  +
JsonMediaType - Class in com.openshift.internal.client.httpclient.request
A class that encodes request parameters to json so that they may get sent to + the server.
JsonMediaType() - +Constructor for class com.openshift.internal.client.httpclient.request.JsonMediaType +
  +
JUMBO - +Static variable in interface com.openshift.client.IGearProfile +
  +
+
+

+K

+
+
KEY_CLIENT_ID - +Static variable in class com.openshift.client.configuration.AbstractOpenshiftConfiguration +
  +
KEY_LIBRA_DOMAIN - +Static variable in class com.openshift.client.configuration.AbstractOpenshiftConfiguration +
  +
KEY_LIBRA_SERVER - +Static variable in class com.openshift.client.configuration.AbstractOpenshiftConfiguration +
  +
KEY_PASSWORD - +Static variable in class com.openshift.client.configuration.AbstractOpenshiftConfiguration +
  +
KEY_RHLOGIN - +Static variable in class com.openshift.client.configuration.AbstractOpenshiftConfiguration +
  +
KeyResourceDTO - Class in com.openshift.internal.client.response
The Class KeyResourceDTO.
+
+

+L

+
+
LARGE - +Static variable in interface com.openshift.client.IGearProfile +
  +
LatestEmbeddableCartridge - Class in com.openshift.client.cartridge.selector
A selector that shall select the latest version of an embedded cartidge that's given by name.
LatestEmbeddableCartridge(String) - +Constructor for class com.openshift.client.cartridge.selector.LatestEmbeddableCartridge +
  +
LatestStandaloneCartridge - Class in com.openshift.client.cartridge.selector
A selector that shall select the latest version of a standalone cartidge that's given by name.
LatestStandaloneCartridge(String) - +Constructor for class com.openshift.client.cartridge.selector.LatestStandaloneCartridge +
  +
LatestVersionOf - Class in com.openshift.client.cartridge.selector
 
LatestVersionOf() - +Constructor for class com.openshift.client.cartridge.selector.LatestVersionOf +
  +
LatestVersionQuery - Class in com.openshift.client.cartridge.selector
A constraint that shall match available embeddable and standalone cartridges by name.
LatestVersionQuery(String) - +Constructor for class com.openshift.client.cartridge.selector.LatestVersionQuery +
  +
LatestVersionQuery.VersionedName - Class in com.openshift.client.cartridge.selector
 
LatestVersionQuery.VersionedName(String) - +Constructor for class com.openshift.client.cartridge.selector.LatestVersionQuery.VersionedName +
  +
LIBRA_DOMAIN - +Static variable in class com.openshift.client.configuration.DefaultConfiguration +
  +
LIBRA_SERVER - +Static variable in class com.openshift.client.configuration.DefaultConfiguration +
  +
Link - Class in com.openshift.internal.client.response
The Class Link.
Link(String, HttpMethod) - +Constructor for class com.openshift.internal.client.response.Link +
  +
Link(String, String, HttpMethod) - +Constructor for class com.openshift.internal.client.response.Link +
  +
Link(String, String, String, List<LinkParameter>, List<LinkParameter>) - +Constructor for class com.openshift.internal.client.response.Link +
  +
Link(String, String, HttpMethod, List<LinkParameter>, List<LinkParameter>) - +Constructor for class com.openshift.internal.client.response.Link +
Instantiates a new Link object. +
linkName - +Variable in class com.openshift.internal.client.AbstractOpenShiftResource.ServiceRequest +
  +
LinkParameter - Class in com.openshift.internal.client.response
 
LinkParameter(String, String, String, String, List<String>) - +Constructor for class com.openshift.internal.client.response.LinkParameter +
  +
LinkParameter(String, LinkParameterType, String, String, List<String>) - +Constructor for class com.openshift.internal.client.response.LinkParameter +
  +
LinkParameterType - Class in com.openshift.internal.client.response
 
LinkParameterType(String) - +Constructor for class com.openshift.internal.client.response.LinkParameterType +
  +
load(String, String) - +Static method in class com.openshift.client.SSHKeyPair +
Loads existing private and public ssh key from the given paths. +
+
+

+M

+
+
matches(C) - +Method in class com.openshift.client.cartridge.selector.LatestVersionQuery +
  +
matches(C) - +Method in class com.openshift.client.cartridge.selector.StringPropertyQuery +
  +
matches(C) - +Method in class com.openshift.internal.client.cartridge.AbstractCartridgeQuery +
  +
MEDIATYPE_APPLICATION_FORMURLENCODED - +Static variable in interface com.openshift.client.IHttpClient +
  +
MEDIATYPE_APPLICATION_JSON - +Static variable in interface com.openshift.client.IHttpClient +
  +
MEDIATYPE_APPLICATION_XML - +Static variable in interface com.openshift.client.IHttpClient +
  +
MEDIUM - +Static variable in interface com.openshift.client.IGearProfile +
  +
Message - Class in com.openshift.client
 
Message(String, String, String, int) - +Constructor for class com.openshift.client.Message +
  +
Messages - Class in com.openshift.client
 
Messages(Map<IField, List<Message>>) - +Constructor for class com.openshift.client.Messages +
Instantiates a new abstract open shift resource. +
metrics() - +Static method in class com.openshift.client.cartridge.selector.LatestVersionOf +
  +
MICRO - +Static variable in interface com.openshift.client.IGearProfile +
  +
mmsAgent() - +Static method in class com.openshift.client.cartridge.selector.LatestVersionOf +
  +
mongoDB() - +Static method in class com.openshift.client.cartridge.selector.LatestVersionOf +
  +
mySQL() - +Static method in class com.openshift.client.cartridge.selector.LatestVersionOf +
  +
+
+

+N

+
+
name - +Variable in class com.openshift.internal.client.response.LinkParameter +
  +
NAME_10GEN_MMS_AGENT - +Static variable in interface com.openshift.client.cartridge.IEmbeddableCartridge +
  +
NAME_CRON - +Static variable in interface com.openshift.client.cartridge.IEmbeddableCartridge +
  +
NAME_HAPROXY - +Static variable in interface com.openshift.client.cartridge.IEmbeddableCartridge +
  +
NAME_JBOSSAS - +Static variable in interface com.openshift.client.cartridge.IStandaloneCartridge +
  +
NAME_JBOSSEAP - +Static variable in interface com.openshift.client.cartridge.IStandaloneCartridge +
  +
NAME_JBOSSEWS - +Static variable in interface com.openshift.client.cartridge.IStandaloneCartridge +
  +
NAME_JENKINS - +Static variable in interface com.openshift.client.cartridge.IStandaloneCartridge +
  +
NAME_JENKINS_CLIENT - +Static variable in interface com.openshift.client.cartridge.IEmbeddableCartridge +
  +
NAME_METRICS - +Static variable in interface com.openshift.client.cartridge.IEmbeddableCartridge +
  +
NAME_MONGODB - +Static variable in interface com.openshift.client.cartridge.IEmbeddableCartridge +
  +
NAME_MYSQL - +Static variable in interface com.openshift.client.cartridge.IEmbeddableCartridge +
  +
NAME_PERL - +Static variable in interface com.openshift.client.cartridge.IStandaloneCartridge +
  +
NAME_PHP - +Static variable in interface com.openshift.client.cartridge.IStandaloneCartridge +
  +
NAME_PHPMYADMIN - +Static variable in interface com.openshift.client.cartridge.IEmbeddableCartridge +
  +
NAME_POSTGRESQL - +Static variable in interface com.openshift.client.cartridge.IEmbeddableCartridge +
  +
NAME_PYTHON - +Static variable in interface com.openshift.client.cartridge.IStandaloneCartridge +
  +
NAME_ROCKMONGO - +Static variable in interface com.openshift.client.cartridge.IEmbeddableCartridge +
  +
NAME_RUBY - +Static variable in interface com.openshift.client.cartridge.IStandaloneCartridge +
  +
NAME_SWITCHYARD - +Static variable in interface com.openshift.client.cartridge.IEmbeddableCartridge +
  +
NAME_VERSION_DELIMITER - +Static variable in interface com.openshift.client.cartridge.ICartridge +
  +
NAME_ZEND - +Static variable in interface com.openshift.client.cartridge.IStandaloneCartridge +
  +
NO_TIMEOUT - +Static variable in interface com.openshift.client.IHttpClient +
  +
notEmpty(String) - +Static method in class com.openshift.internal.client.utils.Assert +
  +
NotFoundException - Exception in com.openshift.internal.client.httpclient
 
NotFoundException(String, Throwable) - +Constructor for exception com.openshift.internal.client.httpclient.NotFoundException +
  +
NotFoundException(String) - +Constructor for exception com.openshift.internal.client.httpclient.NotFoundException +
  +
NotFoundOpenShiftException - Exception in com.openshift.client
 
NotFoundOpenShiftException(String, HttpClientException, RestResponse) - +Constructor for exception com.openshift.client.NotFoundOpenShiftException +
  +
notNull(V) - +Static method in class com.openshift.internal.client.utils.Assert +
  +
nullToEmptyString(String) - +Static method in class com.openshift.internal.client.utils.StringUtils +
  +
+
+

+O

+
+
OpenShiftApplicationNotAvailableException - Exception in com.openshift.client
 
OpenShiftApplicationNotAvailableException(String) - +Constructor for exception com.openshift.client.OpenShiftApplicationNotAvailableException +
  +
OpenShiftConfiguration - Class in com.openshift.client.configuration
 
OpenShiftConfiguration() - +Constructor for class com.openshift.client.configuration.OpenShiftConfiguration +
  +
OpenShiftConnectionFactory - Class in com.openshift.client
Connection Factory, used to establish a connection and retrieve a user.
OpenShiftConnectionFactory() - +Constructor for class com.openshift.client.OpenShiftConnectionFactory +
  +
OpenShiftEndpointException - Exception in com.openshift.client
 
OpenShiftEndpointException(String, Throwable, RestResponse, String, Object...) - +Constructor for exception com.openshift.client.OpenShiftEndpointException +
  +
OpenShiftException - Exception in com.openshift.client
 
OpenShiftException(Throwable, String, Object...) - +Constructor for exception com.openshift.client.OpenShiftException +
  +
OpenShiftException(String, Object...) - +Constructor for exception com.openshift.client.OpenShiftException +
  +
OpenShiftJsonDTOFactory - Class in com.openshift.internal.client.response
A factory for creating DTO objects.
OpenShiftJsonDTOFactory() - +Constructor for class com.openshift.internal.client.response.OpenShiftJsonDTOFactory +
  +
OpenShiftRequestException - Exception in com.openshift.client
 
OpenShiftRequestException(String, Object...) - +Constructor for exception com.openshift.client.OpenShiftRequestException +
  +
OpenShiftResourceUtils - Class in com.openshift.client.utils
 
OpenShiftResourceUtils() - +Constructor for class com.openshift.client.utils.OpenShiftResourceUtils +
  +
OpenShiftSSHKeyException - Exception in com.openshift.client
 
OpenShiftSSHKeyException(String, Object...) - +Constructor for exception com.openshift.client.OpenShiftSSHKeyException +
  +
OpenShiftSSHOperationException - Exception in com.openshift.client
OpenShift Exception that encapsulates an underlying exception that occurred during an SSH operation.
OpenShiftSSHOperationException(Throwable, String, Object...) - +Constructor for exception com.openshift.client.OpenShiftSSHOperationException +
  +
OpenShiftSSHOperationException(String, Object...) - +Constructor for exception com.openshift.client.OpenShiftSSHOperationException +
  +
OpenShiftTimeoutException - Exception in com.openshift.client
 
OpenShiftTimeoutException(String, Throwable, String, Object...) - +Constructor for exception com.openshift.client.OpenShiftTimeoutException +
  +
OpenShiftUnknonwSSHKeyTypeException - Exception in com.openshift.client
 
OpenShiftUnknonwSSHKeyTypeException(String, Object...) - +Constructor for exception com.openshift.client.OpenShiftUnknonwSSHKeyTypeException +
  +
+
+

+P

+
+
Parameter - Class in com.openshift.internal.client.httpclient.request
A parameter wrapper to pass param key/values to the service when executing a + remote operation from a link.
Parameter(String, String) - +Constructor for class com.openshift.internal.client.httpclient.request.Parameter +
  +
Parameter(String, ParameterValue<?>) - +Constructor for class com.openshift.internal.client.httpclient.request.Parameter +
  +
PARAMETER_CARTRIDGES - +Static variable in class com.openshift.internal.client.utils.IOpenShiftParameterConstants +
  +
PARAMETER_INCLUDE - +Static variable in class com.openshift.internal.client.utils.IOpenShiftParameterConstants +
  +
ParameterValue<V> - Class in com.openshift.internal.client.httpclient.request
 
ParameterValue(V) - +Constructor for class com.openshift.internal.client.httpclient.request.ParameterValue +
  +
ParameterValueArray - Class in com.openshift.internal.client.httpclient.request
 
ParameterValueArray() - +Constructor for class com.openshift.internal.client.httpclient.request.ParameterValueArray +
  +
ParameterValueArray(List<ParameterValue<?>>) - +Constructor for class com.openshift.internal.client.httpclient.request.ParameterValueArray +
  +
ParameterValueMap - Class in com.openshift.internal.client.httpclient.request
 
ParameterValueMap(List<Parameter>) - +Constructor for class com.openshift.internal.client.httpclient.request.ParameterValueMap +
  +
ParameterValueMap(Parameter...) - +Constructor for class com.openshift.internal.client.httpclient.request.ParameterValueMap +
  +
ParameterValueMap() - +Constructor for class com.openshift.internal.client.httpclient.request.ParameterValueMap +
  +
password - +Variable in class com.openshift.internal.client.httpclient.UrlConnectionHttpClient +
  +
PASSWORD - +Static variable in class com.openshift.internal.client.response.CartridgeResourceProperties +
  +
patch(URL, IMediaType, int, Parameter...) - +Method in interface com.openshift.client.IHttpClient +
  +
patch(URL, IMediaType, int, Parameter...) - +Method in class com.openshift.internal.client.httpclient.UrlConnectionHttpClient +
  +
perl() - +Static method in class com.openshift.client.cartridge.selector.LatestVersionOf +
  +
php() - +Static method in class com.openshift.client.cartridge.selector.LatestVersionOf +
  +
phpMyAdmin() - +Static method in class com.openshift.client.cartridge.selector.LatestVersionOf +
  +
post(URL, IMediaType, int, Parameter...) - +Method in interface com.openshift.client.IHttpClient +
  +
post(URL, IMediaType, int, Parameter...) - +Method in class com.openshift.internal.client.httpclient.UrlConnectionHttpClient +
  +
postgreSQL() - +Static method in class com.openshift.client.cartridge.selector.LatestVersionOf +
  +
prependIfNonEmpty(String, String) - +Static method in class com.openshift.internal.client.utils.StringUtils +
  +
PROPERTY_ACCEPT - +Static variable in interface com.openshift.client.IHttpClient +
  +
PROPERTY_ACTION - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_ALIAS - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_ALIASES - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_ALTER - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_APP_INFO - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_APP_NAME - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_APP_URL - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_AUTHIV - +Static variable in interface com.openshift.client.IHttpClient +
  +
PROPERTY_AUTHKEY - +Static variable in interface com.openshift.client.IHttpClient +
  +
PROPERTY_AUTHORIZATION - +Static variable in interface com.openshift.client.IHttpClient +
  +
PROPERTY_CARTRIDGE - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_CARTRIDGES - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_CONSUMED_GEARS - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_CONTENT - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_CONTENT_TYPE - +Static variable in interface com.openshift.client.IHttpClient +
  +
PROPERTY_CREATION_TIME - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_DATA - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_DEBUG - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_DEFAULT_VALUE - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_DELETE - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_DESCRIPTION - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_DISPLAY_NAME - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_DOMAIN - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_DOMAIN_ID - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_DOMAINS - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_EMBEDDED - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_ENVIRONMENT_VARIABLES - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_EVENT - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_EXIT_CODE - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_FIELD - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_FORCE - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_FRAMEWORK - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_GEAR_PROFILE - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_GEAR_STATE - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_GEARS - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_GIT_URL - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_HEALTH_CHECK_PATH - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_HREF - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_ID - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_INFO - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_INITIAL_GIT_URL - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_INTERNAL_PORT - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_KEY - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_KEY_TYPE - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_KEYS - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_LINKS - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_LOGIN - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_MAX_GEARS - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_MESSAGES - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_METHOD - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_NAME - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_OPTIONAL_PARAMS - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_PROPERTIES - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_PROPERTY - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_PROXY_HOST - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_PROXY_PORT - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_REL - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_REQUIRED_PARAMS - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_RESULT - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_RHC_DOMAIN - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_RHLOGIN - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_SCALABLE - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_SCALE - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_SEVERITY - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_SSH - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_SSH_KEY - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_SSH_TYPE - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_SSH_URL - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_STATUS - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_SUFFIX - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_TEXT - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_TYPE - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_URL - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_USER_AGENT - +Static variable in interface com.openshift.client.IHttpClient +
  +
PROPERTY_USER_INFO - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_UUID - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_VALID_OPTIONS - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
PROPERTY_VALUE - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
put(URL, IMediaType, int, Parameter...) - +Method in interface com.openshift.client.IHttpClient +
  +
put(URL, IMediaType, int, Parameter...) - +Method in class com.openshift.internal.client.httpclient.UrlConnectionHttpClient +
  +
putSSHKey(String, ISSHPublicKey) - +Method in interface com.openshift.client.IUser +
  +
putSSHKey(String, ISSHPublicKey) - +Method in class com.openshift.internal.client.UserResource +
Adds the given ssh key with the given name. +
python() - +Static method in class com.openshift.client.cartridge.selector.LatestVersionOf +
  +
+
+

+Q

+
+
QUESTION_MARK - +Static variable in interface com.openshift.client.IHttpClient +
  +
quietlyClose(InputStream) - +Static method in class com.openshift.internal.client.utils.StreamUtils +
  +
quietlyClose(OutputStream) - +Static method in class com.openshift.internal.client.utils.StreamUtils +
  +
quietlyClose(Reader) - +Static method in class com.openshift.internal.client.utils.StreamUtils +
  +
quietlyClose(Writer) - +Static method in class com.openshift.internal.client.utils.StreamUtils +
  +
+
+

+R

+
+
readToString(InputStream) - +Static method in class com.openshift.internal.client.utils.StreamUtils +
  +
readToString(Reader) - +Static method in class com.openshift.internal.client.utils.StreamUtils +
  +
refresh() - +Method in interface com.openshift.client.IApplication +
Refresh the application but reloading its content from OpenShift. +
refresh() - +Method in interface com.openshift.client.IOpenShiftResource +
Refresh the resource and its list of children resources that were + previously loaded +
refresh() - +Method in class com.openshift.internal.client.APIResource +
  +
refresh() - +Method in class com.openshift.internal.client.ApplicationResource +
  +
refresh() - +Method in class com.openshift.internal.client.DomainResource +
  +
refresh() - +Method in class com.openshift.internal.client.EmbeddedCartridgeResource +
Refreshes the content of this embedded cartridge. +
refresh() - +Method in class com.openshift.internal.client.EnvironmentVariableResource +
  +
refresh() - +Method in class com.openshift.internal.client.GearGroupResource +
  +
refresh() - +Method in class com.openshift.internal.client.SSHKeyResource +
  +
refresh() - +Method in class com.openshift.internal.client.UserResource +
  +
refreshEmbeddedCartridges() - +Method in class com.openshift.internal.client.ApplicationResource +
Queries the backend to list the embedded cartridges and adds the new ones + & update the ones that are already present +
refreshForwardablePorts() - +Method in interface com.openshift.client.IApplication +
Refreshes the list of port-forwarding. +
refreshForwardablePorts() - +Method in class com.openshift.internal.client.ApplicationResource +
  +
removeAlias(String) - +Method in interface com.openshift.client.IApplication +
Remove application alias +
removeAlias(String) - +Method in class com.openshift.internal.client.ApplicationResource +
  +
removeApplication(IApplication) - +Method in class com.openshift.internal.client.DomainResource +
  +
removeDomain(IDomain) - +Method in class com.openshift.internal.client.APIResource +
Called after a domain has been destroyed +
removeEmbeddedCartridge(IEmbeddableCartridge) - +Method in interface com.openshift.client.IApplication +
Removes the given embedded cartridge that is equal to the given + embeddable cartridge. +
removeEmbeddedCartridge(IEmbeddedCartridge) - +Method in class com.openshift.internal.client.ApplicationResource +
"callback" from the embeddedCartridge once it has been destroyed. +
removeEmbeddedCartridge(IEmbeddableCartridge) - +Method in class com.openshift.internal.client.ApplicationResource +
  +
removeEmbeddedCartridges(Collection<IEmbeddableCartridge>) - +Method in interface com.openshift.client.IApplication +
Removes the given embedded cartridges in this application that are equal to the + given IEmbeddableCartridge. +
removeEmbeddedCartridges(Collection<IEmbeddableCartridge>) - +Method in class com.openshift.internal.client.ApplicationResource +
  +
removeEnvironmentVariable(String) - +Method in interface com.openshift.client.IApplication +
Removes the environment variables with the given name from this application. +
removeEnvironmentVariable(IEnvironmentVariable) - +Method in interface com.openshift.client.IApplication +
Removes the environment variables with the given name from this application. +
removeEnvironmentVariable(String) - +Method in class com.openshift.internal.client.ApplicationResource +
  +
removeEnvironmentVariable(IEnvironmentVariable) - +Method in class com.openshift.internal.client.ApplicationResource +
  +
removeQuotes(String) - +Method in class com.openshift.client.configuration.AbstractOpenshiftConfiguration +
  +
removeSSHKey(SSHKeyResource) - +Method in class com.openshift.internal.client.UserResource +
  +
rename(String) - +Method in interface com.openshift.client.IDomain +
Rename the current domain with the given id.... +
rename(String) - +Method in class com.openshift.internal.client.DomainResource +
  +
request(HttpMethod, URL, IMediaType, int, Parameter...) - +Method in class com.openshift.internal.client.httpclient.UrlConnectionHttpClient +
  +
request(HttpMethod, URL, IMediaType, int, ParameterValueMap) - +Method in class com.openshift.internal.client.httpclient.UrlConnectionHttpClient +
  +
request(Link, Parameter...) - +Method in interface com.openshift.internal.client.IRestService +
  +
request(Link, int, Parameter...) - +Method in interface com.openshift.internal.client.IRestService +
  +
request(Link, int, IMediaType, Parameter...) - +Method in interface com.openshift.internal.client.IRestService +
Requests the given link sending the given parameters while encoding the + parameters with the given media type and respecting the given timeout. +
request(Link, List<Parameter>, Parameter...) - +Method in interface com.openshift.internal.client.IRestService +
  +
request(Link, int, List<Parameter>, Parameter...) - +Method in interface com.openshift.internal.client.IRestService +
  +
request(Link, int, List<Parameter>, IMediaType, Parameter...) - +Method in interface com.openshift.internal.client.IRestService +
  +
request(Link, Parameter...) - +Method in class com.openshift.internal.client.RestService +
  +
request(Link, int, Parameter...) - +Method in class com.openshift.internal.client.RestService +
  +
request(Link, List<Parameter>, Parameter...) - +Method in class com.openshift.internal.client.RestService +
  +
request(Link, int, IMediaType, Parameter...) - +Method in class com.openshift.internal.client.RestService +
  +
request(Link, int, List<Parameter>, Parameter...) - +Method in class com.openshift.internal.client.RestService +
  +
request(Link, int, List<Parameter>, IMediaType, Parameter...) - +Method in class com.openshift.internal.client.RestService +
  +
restart() - +Method in interface com.openshift.client.IApplication +
Restarts this application. +
restart() - +Method in class com.openshift.internal.client.ApplicationResource +
  +
RestResponse - Class in com.openshift.internal.client.response
The Class Response.
RestResponse(String, Messages, Object, EnumDataType) - +Constructor for class com.openshift.internal.client.response.RestResponse +
Instantiates a new response. +
RestService - Class in com.openshift.internal.client
 
RestService(String, String, IMediaType, String, IRestResponseFactory, IHttpClient) - +Constructor for class com.openshift.internal.client.RestService +
  +
RestService(String, String, IMediaType, String, IRestResponseFactory, IHttpClient, RestServiceProperties) - +Constructor for class com.openshift.internal.client.RestService +
  +
RestService(String, String, String, IMediaType, String, IRestResponseFactory, IHttpClient, RestServiceProperties) - +Constructor for class com.openshift.internal.client.RestService +
  +
RestServiceProperties - Class in com.openshift.internal.client
 
RestServiceProperties() - +Constructor for class com.openshift.internal.client.RestServiceProperties +
  +
RESULT - +Static variable in interface com.openshift.client.IField +
  +
RESULT - +Static variable in interface com.openshift.client.ISeverity +
  +
RFC822DateUtils - Class in com.openshift.client.utils
 
RFC822DateUtils() - +Constructor for class com.openshift.client.utils.RFC822DateUtils +
  +
rockMongo() - +Static method in class com.openshift.client.cartridge.selector.LatestVersionOf +
  +
ruby() - +Static method in class com.openshift.client.cartridge.selector.LatestVersionOf +
  +
+
+

+S

+
+
safeGetDate(String) - +Static method in class com.openshift.client.utils.RFC822DateUtils +
Returns a date instance for a given timestamp string that complies to the + RFC 822 standard. +
safeValueOf(String) - +Static method in enum com.openshift.client.ApplicationScale +
  +
safeValueOf(String) - +Static method in enum com.openshift.client.GearState +
  +
safeValueOf(String) - +Static method in enum com.openshift.internal.client.CartridgeType +
  +
save() - +Method in class com.openshift.client.configuration.AbstractOpenshiftConfiguration +
  +
scale(ApplicationScale) - +Method in class com.openshift.internal.client.AbstractOpenShiftResource.Parameters +
  +
scaleDown() - +Method in interface com.openshift.client.IApplication +
Scale down application +
scaleDown() - +Method in class com.openshift.internal.client.ApplicationResource +
  +
scaleUp() - +Method in interface com.openshift.client.IApplication +
Scale up application +
scaleUp() - +Method in class com.openshift.internal.client.ApplicationResource +
  +
SCHEME_HTTPS - +Static variable in class com.openshift.internal.client.utils.UrlUtils +
  +
SEMICOLON - +Static variable in interface com.openshift.client.IHttpClient +
  +
SERVICE_PATH - +Static variable in interface com.openshift.internal.client.IRestService +
  +
SERVICE_VERSION - +Static variable in interface com.openshift.internal.client.IRestService +
  +
setAcceptedMediaType(String) - +Method in interface com.openshift.client.IHttpClient +
  +
setAcceptedMediaType(String) - +Method in class com.openshift.internal.client.httpclient.UrlConnectionHttpClient +
  +
setAcceptMediaType(String) - +Method in class com.openshift.internal.client.httpclient.UrlConnectionHttpClientBuilder +
  +
setAcceptVersion(String) - +Method in interface com.openshift.client.IHttpClient +
  +
setAcceptVersion(String) - +Method in class com.openshift.internal.client.httpclient.UrlConnectionHttpClient +
  +
setApplicationScale(ApplicationScale) - +Method in class com.openshift.client.ApplicationBuilder.NamedCartridgeHolder +
  +
setCartridge(IStandaloneCartridge) - +Method in class com.openshift.client.ApplicationBuilder +
  +
setCredentials(String, String) - +Method in class com.openshift.internal.client.httpclient.UrlConnectionHttpClientBuilder +
  +
setCredentials(String, String, String, String) - +Method in class com.openshift.internal.client.httpclient.UrlConnectionHttpClientBuilder +
  +
setEnableSSLCertChecks(boolean) - +Method in class com.openshift.client.configuration.AbstractOpenshiftConfiguration +
  +
setEnableSSLCertChecks(boolean) - +Method in interface com.openshift.client.IOpenShiftConnection +
Sets flag for enabling SSL certificate checks (i.e. +
setEnableSSLCertChecks(boolean) - +Method in class com.openshift.internal.client.APIResource +
  +
setGearProfile(IGearProfile) - +Method in class com.openshift.client.ApplicationBuilder.NamedCartridgeHolder +
  +
setInitialGitUrl(String) - +Method in class com.openshift.client.ApplicationBuilder.NamedCartridgeHolder +
  +
setKeyType(SSHKeyType, String) - +Method in interface com.openshift.client.IOpenShiftSSHKey +
Sets the new type and public key of this ssh key to the OpenShift PaaS +
setKeyType(String) - +Method in class com.openshift.internal.client.ssh.AbstractSSHKey +
  +
setKeyType(SSHKeyType) - +Method in class com.openshift.internal.client.ssh.AbstractSSHKey +
  +
setKeyType(SSHKeyType, String) - +Method in class com.openshift.internal.client.SSHKeyResource +
  +
setLibraDomain(String) - +Method in class com.openshift.client.configuration.AbstractOpenshiftConfiguration +
  +
setLibraDomain(String) - +Method in interface com.openshift.client.configuration.IOpenShiftConfiguration +
  +
setLibraServer(String) - +Method in class com.openshift.client.configuration.AbstractOpenshiftConfiguration +
  +
setLibraServer(String) - +Method in interface com.openshift.client.configuration.IOpenShiftConfiguration +
  +
setLinks(Map<String, Link>) - +Method in class com.openshift.internal.client.AbstractOpenShiftResource +
  +
setLocalAddress(String) - +Method in interface com.openshift.client.IApplicationPortForwarding +
  +
setLocalAddress(String) - +Method in class com.openshift.internal.client.ssh.ApplicationPortForwarding +
  +
setLocalPort(int) - +Method in interface com.openshift.client.IApplicationPortForwarding +
  +
setLocalPort(int) - +Method in class com.openshift.internal.client.ssh.ApplicationPortForwarding +
  +
setName(String) - +Method in class com.openshift.client.ApplicationBuilder.CartridgeHolder +
  +
setProxyHost(String) - +Method in interface com.openshift.client.IOpenShiftConnection +
Sets the HTTP proxy hostname +
setProxyHost(String) - +Method in class com.openshift.internal.client.APIResource +
  +
setProxyPort(String) - +Method in interface com.openshift.client.IOpenShiftConnection +
Sets the HTTP proxy port +
setProxyPort(String) - +Method in class com.openshift.internal.client.APIResource +
  +
setProxySet(boolean) - +Method in interface com.openshift.client.IOpenShiftConnection +
Sets flag for using an HTTP proxy +
setProxySet(boolean) - +Method in class com.openshift.internal.client.APIResource +
  +
setPublicKey(String) - +Method in interface com.openshift.client.IOpenShiftSSHKey +
Sets the public key portion of this ssh key to the OpenShift PaaS. +
setPublicKey(String) - +Method in class com.openshift.internal.client.SSHKeyResource +
  +
setRhlogin(String) - +Method in class com.openshift.client.configuration.AbstractOpenshiftConfiguration +
  +
setRhlogin(String) - +Method in interface com.openshift.client.configuration.IOpenShiftConfiguration +
  +
setSSHSession(Session) - +Method in interface com.openshift.client.IApplication +
Sets the SSH session that this application will use to connect to + OpenShift to perform some operations. +
setSSHSession(Session) - +Method in class com.openshift.internal.client.ApplicationResource +
  +
setSSLChecks(boolean) - +Method in class com.openshift.internal.client.httpclient.UrlConnectionHttpClientBuilder +
  +
setUserAgent(String) - +Method in interface com.openshift.client.IHttpClient +
  +
setUserAgent(String) - +Method in class com.openshift.internal.client.httpclient.UrlConnectionHttpClient +
  +
setUserAgent(String) - +Method in class com.openshift.internal.client.httpclient.UrlConnectionHttpClientBuilder +
  +
setVersion(String) - +Method in class com.openshift.internal.client.httpclient.UrlConnectionHttpClientBuilder +
  +
Severity - Class in com.openshift.internal.client
 
Severity(String) - +Constructor for class com.openshift.internal.client.Severity +
  +
size() - +Method in class com.openshift.client.Messages +
  +
size() - +Method in class com.openshift.internal.client.response.CartridgeResourceProperties +
  +
SLASH - +Static variable in interface com.openshift.client.IHttpClient +
  +
SMALL - +Static variable in interface com.openshift.client.IGearProfile +
  +
SPACE - +Static variable in interface com.openshift.client.IHttpClient +
  +
sshExecCmd(String, ApplicationResource.SshStreams) - +Method in class com.openshift.internal.client.ApplicationResource +
  +
SSHKeyPair - Class in com.openshift.client
 
SSHKeyResource - Class in com.openshift.internal.client
 
SSHKeyResource(KeyResourceDTO, UserResource) - +Constructor for class com.openshift.internal.client.SSHKeyResource +
  +
SSHKeyType - Enum in com.openshift.client
 
SSHPublicKey - Class in com.openshift.client
 
SSHPublicKey(String) - +Constructor for class com.openshift.client.SSHPublicKey +
  +
SSHPublicKey(File) - +Constructor for class com.openshift.client.SSHPublicKey +
  +
sslChecks - +Variable in class com.openshift.internal.client.httpclient.UrlConnectionHttpClient +
  +
StandaloneCartridge - Class in com.openshift.client.cartridge
A cartridge that is available on the openshift server.
StandaloneCartridge(String) - +Constructor for class com.openshift.client.cartridge.StandaloneCartridge +
  +
StandaloneCartridge(URL) - +Constructor for class com.openshift.client.cartridge.StandaloneCartridge +
  +
StandaloneCartridge(String, URL) - +Constructor for class com.openshift.client.cartridge.StandaloneCartridge +
  +
StandaloneCartridge(String, String, String) - +Constructor for class com.openshift.client.cartridge.StandaloneCartridge +
  +
StandaloneCartridge(String, URL, String, String) - +Constructor for class com.openshift.client.cartridge.StandaloneCartridge +
  +
start() - +Method in interface com.openshift.client.IApplication +
Starts this application. +
start(Session) - +Method in interface com.openshift.client.IApplicationPortForwarding +
Start the binding, ie, open a SSH tunnel between local address:port and remote address:port. +
start() - +Method in class com.openshift.internal.client.ApplicationResource +
  +
start(Session) - +Method in class com.openshift.internal.client.ssh.ApplicationPortForwarding +
  +
startPortForwarding() - +Method in interface com.openshift.client.IApplication +
  +
startPortForwarding() - +Method in class com.openshift.internal.client.ApplicationResource +
  +
STATUS_BAD_REQUEST - +Static variable in interface com.openshift.client.IHttpClient +
  +
STATUS_INTERNAL_SERVER_ERROR - +Static variable in interface com.openshift.client.IHttpClient +
  +
STATUS_NOT_FOUND - +Static variable in interface com.openshift.client.IHttpClient +
  +
STATUS_OK - +Static variable in interface com.openshift.client.IHttpClient +
  +
STATUS_UNAUTHORIZED - +Static variable in interface com.openshift.client.IHttpClient +
  +
stop() - +Method in interface com.openshift.client.IApplication +
Stops this application. +
stop(boolean) - +Method in interface com.openshift.client.IApplication +
Stops this application +
stop(Session) - +Method in interface com.openshift.client.IApplicationPortForwarding +
Stop the SSH tunnel. +
stop() - +Method in class com.openshift.internal.client.ApplicationResource +
  +
stop(boolean) - +Method in class com.openshift.internal.client.ApplicationResource +
  +
stop(Session) - +Method in class com.openshift.internal.client.ssh.ApplicationPortForwarding +
  +
stopPortForwarding() - +Method in interface com.openshift.client.IApplication +
Stop the port-forwarding for all ports. +
stopPortForwarding() - +Method in class com.openshift.internal.client.ApplicationResource +
  +
StreamUtils - Class in com.openshift.internal.client.utils
 
StreamUtils() - +Constructor for class com.openshift.internal.client.utils.StreamUtils +
  +
STRING - +Static variable in class com.openshift.internal.client.response.LinkParameterType +
  +
StringParameter - Class in com.openshift.internal.client.httpclient.request
 
StringParameter(String, String) - +Constructor for class com.openshift.internal.client.httpclient.request.StringParameter +
  +
StringPropertyQuery - Class in com.openshift.client.cartridge.selector
A constraint that shall match available cartridges by url.
StringPropertyQuery(String) - +Constructor for class com.openshift.client.cartridge.selector.StringPropertyQuery +
  +
StringPropertyQuery(Pattern) - +Constructor for class com.openshift.client.cartridge.selector.StringPropertyQuery +
  +
StringUtils - Class in com.openshift.internal.client.utils
 
StringUtils() - +Constructor for class com.openshift.internal.client.utils.StringUtils +
  +
StringValue - Class in com.openshift.internal.client.httpclient.request
 
StringValue(String) - +Constructor for class com.openshift.internal.client.httpclient.request.StringValue +
  +
switchyard() - +Static method in class com.openshift.client.cartridge.selector.LatestVersionOf +
  +
SYSPROP_DEFAULT_CONNECT_TIMEOUT - +Static variable in interface com.openshift.client.IHttpClient +
  +
SYSPROP_DEFAULT_READ_TIMEOUT - +Static variable in interface com.openshift.client.IHttpClient +
  +
SYSPROP_OPENSHIFT_CONNECT_TIMEOUT - +Static variable in interface com.openshift.client.IHttpClient +
  +
SYSPROP_OPENSHIFT_READ_TIMEOUT - +Static variable in interface com.openshift.client.IHttpClient +
  +
SystemConfiguration - Class in com.openshift.client.configuration
The system wide OpenShift configuration that is at /etc/express.conf
SystemConfiguration(IOpenShiftConfiguration) - +Constructor for class com.openshift.client.configuration.SystemConfiguration +
  +
SystemProperties - Class in com.openshift.client.configuration
 
SystemProperties(IOpenShiftConfiguration) - +Constructor for class com.openshift.client.configuration.SystemProperties +
  +
+
+

+T

+
+
toArray() - +Method in class com.openshift.internal.client.AbstractOpenShiftResource.Parameters +
  +
toJSchKeyType() - +Method in enum com.openshift.client.SSHKeyType +
Returns the JSch key pair constant for a given SSHKeyType. +
toList() - +Method in class com.openshift.internal.client.AbstractOpenShiftResource.Parameters +
  +
toLowerCase(String) - +Static method in class com.openshift.internal.client.utils.StringUtils +
  +
toLowerCase(Enum<?>) - +Static method in class com.openshift.internal.client.utils.StringUtils +
  +
toNames(ICartridge...) - +Static method in class com.openshift.client.utils.OpenShiftResourceUtils +
  +
toString() - +Method in class com.openshift.client.Message +
  +
toString() - +Method in class com.openshift.client.Messages +
  +
toString() - +Method in class com.openshift.internal.client.ApplicationResource +
  +
toString() - +Method in class com.openshift.internal.client.cartridge.BaseCartridge +
  +
toString() - +Method in class com.openshift.internal.client.DomainResource +
  +
toString() - +Method in class com.openshift.internal.client.EmbeddedCartridgeResource +
  +
toString() - +Method in class com.openshift.internal.client.EnvironmentVariableResource +
  +
toString() - +Method in class com.openshift.internal.client.Gear +
  +
toString() - +Method in class com.openshift.internal.client.GearProfile +
  +
toString() - +Method in class com.openshift.internal.client.httpclient.request.Parameter +
  +
toString() - +Method in class com.openshift.internal.client.httpclient.request.ParameterValue +
  +
toString() - +Method in class com.openshift.internal.client.httpclient.request.ParameterValueArray +
  +
toString() - +Method in class com.openshift.internal.client.httpclient.request.ParameterValueMap +
  +
toString() - +Method in class com.openshift.internal.client.httpclient.request.StringParameter +
  +
toString() - +Method in class com.openshift.internal.client.httpclient.request.StringValue +
  +
toString() - +Method in class com.openshift.internal.client.response.ApplicationResourceDTO +
  +
toString() - +Method in class com.openshift.internal.client.response.CartridgeResourceDTO +
  +
toString() - +Method in class com.openshift.internal.client.response.CartridgeResourceProperties +
  +
toString() - +Method in class com.openshift.internal.client.response.CartridgeResourceProperty +
  +
toString() - +Method in class com.openshift.internal.client.response.GearResourceDTO +
  +
toString() - +Method in class com.openshift.internal.client.response.KeyResourceDTO +
  +
toString() - +Method in class com.openshift.internal.client.response.Link +
  +
toString() - +Method in class com.openshift.internal.client.ssh.AbstractSSHKey +
  +
toString() - +Method in class com.openshift.internal.client.ssh.ApplicationPortForwarding +
  +
toString() - +Method in class com.openshift.internal.client.SSHKeyResource +
  +
toString() - +Method in class com.openshift.internal.client.UserResource +
  +
toString(URL) - +Static method in class com.openshift.internal.client.utils.UrlUtils +
  +
toUnmodifiableCopy(Collection<T>) - +Static method in class com.openshift.internal.client.utils.CollectionUtils +
  +
type - +Variable in class com.openshift.internal.client.response.LinkParameter +
  +
+
+

+U

+
+
UnauthorizedException - Exception in com.openshift.internal.client.httpclient
 
UnauthorizedException(String, Throwable) - +Constructor for exception com.openshift.internal.client.httpclient.UnauthorizedException +
  +
UnauthorizedException(Throwable) - +Constructor for exception com.openshift.internal.client.httpclient.UnauthorizedException +
  +
update(String) - +Method in interface com.openshift.client.IEnvironmentVariable +
Updates this environment variable to the given value. +
update(ApplicationResourceDTO) - +Method in class com.openshift.internal.client.ApplicationResource +
  +
update(CartridgeResourceDTO) - +Method in class com.openshift.internal.client.EmbeddedCartridgeResource +
  +
update(String) - +Method in class com.openshift.internal.client.EnvironmentVariableResource +
  +
update(KeyResourceDTO) - +Method in class com.openshift.internal.client.SSHKeyResource +
  +
updateEnvironmentVariables() - +Method in class com.openshift.internal.client.ApplicationResource +
  +
UrlConnectionHttpClient - Class in com.openshift.internal.client.httpclient
 
UrlConnectionHttpClient(String, String, String, boolean, String, String) - +Constructor for class com.openshift.internal.client.httpclient.UrlConnectionHttpClient +
  +
UrlConnectionHttpClient(String, String, String, boolean, String, String, String, String) - +Constructor for class com.openshift.internal.client.httpclient.UrlConnectionHttpClient +
  +
UrlConnectionHttpClientBuilder - Class in com.openshift.internal.client.httpclient
 
UrlConnectionHttpClientBuilder() - +Constructor for class com.openshift.internal.client.httpclient.UrlConnectionHttpClientBuilder +
  +
UrlPropertyQuery - Class in com.openshift.client.cartridge.selector
 
UrlPropertyQuery() - +Constructor for class com.openshift.client.cartridge.selector.UrlPropertyQuery +
  +
UrlUtils - Class in com.openshift.internal.client.utils
 
userAgent - +Variable in class com.openshift.internal.client.httpclient.UrlConnectionHttpClient +
  +
UserConfiguration - Class in com.openshift.client.configuration
 
UserConfiguration(SystemConfiguration) - +Constructor for class com.openshift.client.configuration.UserConfiguration +
  +
username - +Variable in class com.openshift.internal.client.httpclient.UrlConnectionHttpClient +
  +
USERNAME - +Static variable in class com.openshift.internal.client.response.CartridgeResourceProperties +
  +
USERNAME_SEPARATOR - +Static variable in class com.openshift.internal.client.utils.UrlUtils +
  +
UserResource - Class in com.openshift.internal.client
 
UserResource(APIResource, UserResourceDTO, String) - +Constructor for class com.openshift.internal.client.UserResource +
  +
UserResourceDTO - Class in com.openshift.internal.client.response
 
+
+

+V

+
+
validateRequestParameters(Parameter[]) - +Method in class com.openshift.internal.client.response.Link +
  +
validOptions - +Variable in class com.openshift.internal.client.response.LinkParameter +
  +
VALUE_ADD_ALIAS - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
VALUE_FORCESTOP - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
VALUE_REMOVE_ALIAS - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
VALUE_RESTART - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
VALUE_SCALE_DOWN - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
VALUE_SCALE_UP - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
VALUE_START - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
VALUE_STATUS - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
VALUE_STATUS_CREATED - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
VALUE_STATUS_OK - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
VALUE_STOP - +Static variable in class com.openshift.internal.client.utils.IOpenShiftJsonConstants +
  +
valueOf(String) - +Static method in enum com.openshift.client.ApplicationScale +
Returns the enum constant of this type with the specified name. +
valueOf(String) - +Static method in enum com.openshift.client.GearState +
Returns the enum constant of this type with the specified name. +
valueOf(String) - +Static method in enum com.openshift.client.HttpMethod +
Returns the enum constant of this type with the specified name. +
valueOf(String) - +Static method in enum com.openshift.client.SSHKeyType +
Returns the enum constant of this type with the specified name. +
valueOf(String) - +Static method in enum com.openshift.internal.client.ApplicationResource.SshStreams +
Returns the enum constant of this type with the specified name. +
valueOf(String) - +Static method in enum com.openshift.internal.client.CartridgeType +
Returns the enum constant of this type with the specified name. +
valueOf(String) - +Static method in enum com.openshift.internal.client.response.EnumDataType +
Returns the enum constant of this type with the specified name. +
values() - +Static method in enum com.openshift.client.ApplicationScale +
Returns an array containing the constants of this enum type, in +the order they are declared. +
values() - +Static method in enum com.openshift.client.GearState +
Returns an array containing the constants of this enum type, in +the order they are declared. +
values() - +Static method in enum com.openshift.client.HttpMethod +
Returns an array containing the constants of this enum type, in +the order they are declared. +
values() - +Static method in enum com.openshift.client.SSHKeyType +
Returns an array containing the constants of this enum type, in +the order they are declared. +
values() - +Static method in enum com.openshift.internal.client.ApplicationResource.SshStreams +
Returns an array containing the constants of this enum type, in +the order they are declared. +
values() - +Static method in enum com.openshift.internal.client.CartridgeType +
Returns an array containing the constants of this enum type, in +the order they are declared. +
values() - +Static method in enum com.openshift.internal.client.response.EnumDataType +
Returns an array containing the constants of this enum type, in +the order they are declared. +
VERSION - +Static variable in interface com.openshift.client.IHttpClient +
  +
+
+

+W

+
+
waitForAccessible(long) - +Method in interface com.openshift.client.IApplication +
Waits for this application to become accessible on its public url. +
waitForAccessible(long) - +Method in class com.openshift.internal.client.ApplicationResource +
  +
waitForAccessibleAsync(long) - +Method in interface com.openshift.client.IApplication +
Returns a Future that the caller can use to wait for the application to + become accessible on its public url. +
waitForAccessibleAsync(long) - +Method in class com.openshift.internal.client.ApplicationResource +
  +
writeTo(ParameterValueMap, OutputStream) - +Method in class com.openshift.internal.client.httpclient.request.FormUrlEncodedMediaType +
  +
writeTo(ParameterValueMap, OutputStream) - +Method in interface com.openshift.internal.client.httpclient.request.IMediaType +
  +
writeTo(ParameterValueMap, OutputStream) - +Method in class com.openshift.internal.client.httpclient.request.JsonMediaType +
  +
writeTo(InputStream, OutputStream) - +Static method in class com.openshift.internal.client.utils.StreamUtils +
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. +
writeTo(byte[], OutputStream) - +Static method in class com.openshift.internal.client.utils.StreamUtils +
Writes the given string to the given output stream. +
+
+

+Z

+
+
zend() - +Static method in class com.openshift.client.cartridge.selector.LatestVersionOf +
  +
+
+A B C D E F G H I J K L M N O P Q R S T U V W Z + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/index.html b/documentation/index.html new file mode 100644 index 00000000..ea094f92 --- /dev/null +++ b/documentation/index.html @@ -0,0 +1,74 @@ + + + + + + + +OpenShift Java Client 2.5.0.Final API + + + + + + + + + + + +<H2> +Frame Alert</H2> + +<P> +This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. +<BR> +Link to<A HREF="overview-summary.html">Non-frame version.</A> + + + diff --git a/documentation/overview-frame.html b/documentation/overview-frame.html new file mode 100644 index 00000000..39a826e9 --- /dev/null +++ b/documentation/overview-frame.html @@ -0,0 +1,65 @@ + + + + + + + +Overview List (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final
+ + + + + +
All Classes +

+ +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 +
+

+ +

+  + + 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 @@ + + + + + + + +Overview (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +


+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+OpenShift Java Client 2.5.0.Final API +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+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 +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/overview-tree.html b/documentation/overview-tree.html new file mode 100644 index 00000000..84df60db --- /dev/null +++ b/documentation/overview-tree.html @@ -0,0 +1,239 @@ + + + + + + + +Class Hierarchy (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Hierarchy For All Packages

+
+
+
Package Hierarchies:
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
+
+

+Class Hierarchy +

+ +

+Interface Hierarchy +

+ +

+Enum Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/package-list b/documentation/package-list new file mode 100644 index 00000000..b061304d --- /dev/null +++ b/documentation/package-list @@ -0,0 +1,12 @@ +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 diff --git a/documentation/resources/inherit.gif b/documentation/resources/inherit.gif new file mode 100644 index 0000000000000000000000000000000000000000..c814867a13deb0ca7ea2156c6ca1d5a03372af7e GIT binary patch literal 57 zcmZ?wbhEHbIIT!9-C*e{wE9>Kx3D)-;0v)C; KYxQGgum%9JOA&7X literal 0 HcmV?d00001 diff --git a/documentation/serialized-form.html b/documentation/serialized-form.html new file mode 100644 index 00000000..d976cad9 --- /dev/null +++ b/documentation/serialized-form.html @@ -0,0 +1,446 @@ + + + + + + + +Serialized Form (OpenShift Java Client 2.5.0.Final API) + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+OpenShift Java Client 2.5.0.Final +
+ + + +
+
+

+Serialized Form

+
+
+ + + + + +
+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
+ +

+url

+
+String url
+
+
+
+
+
+

+response

+
+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 +
+ + + +
+Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved. + + diff --git a/documentation/stylesheet.css b/documentation/stylesheet.css new file mode 100644 index 00000000..6ea9e516 --- /dev/null +++ b/documentation/stylesheet.css @@ -0,0 +1,29 @@ +/* Javadoc style sheet */ + +/* Define colors, fonts and other style attributes here to override the defaults */ + +/* Page background color */ +body { background-color: #FFFFFF; color:#000000 } + +/* Headings */ +h1 { font-size: 145% } + +/* Table colors */ +.TableHeadingColor { background: #CCCCFF; color:#000000 } /* Dark mauve */ +.TableSubHeadingColor { background: #EEEEFF; color:#000000 } /* Light mauve */ +.TableRowColor { background: #FFFFFF; color:#000000 } /* White */ + +/* Font used in left-hand frame lists */ +.FrameTitleFont { font-size: 100%; font-family: Helvetica, Arial, sans-serif; color:#000000 } +.FrameHeadingFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif; color:#000000 } +.FrameItemFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif; color:#000000 } + +/* Navigation bar fonts and colors */ +.NavBarCell1 { background-color:#EEEEFF; color:#000000} /* Light mauve */ +.NavBarCell1Rev { background-color:#00008B; color:#FFFFFF} /* Dark Blue */ +.NavBarFont1 { font-family: Arial, Helvetica, sans-serif; color:#000000;color:#000000;} +.NavBarFont1Rev { font-family: Arial, Helvetica, sans-serif; color:#FFFFFF;color:#FFFFFF;} + +.NavBarCell2 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF; color:#000000} +.NavBarCell3 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF; color:#000000} + diff --git a/fonts/bootstrap/glyphicons-halflings-regular.eot b/fonts/bootstrap/glyphicons-halflings-regular.eot new file mode 100644 index 0000000000000000000000000000000000000000..4a4ca865d67e86f961bc6e2ef00bffa4e34bb9ed GIT binary patch literal 20335 zcma%iRa9Lu*X_aGIXLtH2X}XOcXxM};>BGK?k>gMi@Uo+afec%&=$Y_zI(@iAMVRd zMzYtMnVHGh`(bBgBrYld0G2WU0R1n+0{)ZW{#ye8Pyh%N;2)-_`hS4`dHjR_o8s?3 z%Kr!aAA=Sk15gC$0aO9906BmJKn0)-&;Wq`d1e4dfc3v(2XF@106hNnKnJJ;tp3?v z|4=i4`#;17p#2YV|JP~t*4IuDO^FK=e+xx$$?LVd`z~aAr@Bit+ z4B+|46aYB=Q+D{L`5%t;Kdt|aZw_GpXL0?v@B%pgd3^uI=KcSkIq3hHHvk~6A@l#d zDHwovCxFWvz!d;sGQ^&}h@CLq(3!MVaFhSyL!rg*&d8F%X_&hML`QYBTiRZ}i=N8C zfX|m2SCm$2B^?XKJ=3POS}r1sVM9Nj*l5q`5#S% zQ}FD^zy1Pj*xUGOm4;*C;l80oktO?~%SdX8H^8@@idBFWyOINSr_!xo{REWRlXgw| z3-(h5XcHaEdPKzyy2-P+Rljn4lR?IelEOtWLiC?_9FW&x@kpuRtfsn*-QLS4EoN{{q0u8pt_^hD_!V);D{hen z-XpV~5QeQTYTIl1+B^5r72`!7FRQQ$Jh74=Gm*OkaIoNUC7!wk7rRZVuVK6urnp@}QDpB~9*S zkVWg8LyXz8-%53>GXb$%*H0(bqkUIN`Oz8g=bse?bAumC8`5XqA+(_y{fV^j(1$BZ za*@mJ(&?Dl2k;8tW}O6OaavJE|17u#1t>M^0!@SDJc2)cLZL`m7!-)74CQUXoksM* z9m|Sjh}@dm-Tnc8<77&TfjT6H{3)kXMM774`D!eA0|(RuQz@iQO(4-7lX|aK*M`Y=f%R{_&<*A? zB(AZUl6JXgz^9c9q7ZW~Lpncpv1I^6O4mGX@3P^Q)?jBgx(f#RD_4y0q5aC_beGG> zn%RbEy_vdx`sL?|Jvlgyxal-}XM^FDQYp|Euiu=%8o(=wic+XSimJ4(Adn3`QH6^D zQ}H@oBN{|Zg^2u|@8c~h7Kv&HCx??xy^J$3{B0{XnlrThDaoQqjXjXHi#b!KIjA7( z$hT;Ah_VP&j)(Z6&(xn;KF3rHsF^A#il?$)q4Pp#sly?|%OmoRG|MiNW3+)?3Wd9= zgbUjzTLX+!G&oYj9P;jnHmT91qKPzxkj@>rsqi|=M5$PfrRCY%E7${xLDZFtYcC%k zorpLj$T65dN+HV@=yRlKSS8W~SMxFkK1~U-XW2@DXcG`4-V)z|605uD4Q{MP10fD5 zc!T#)n57))zXXfg=dwnZuD_`DCJc3cHE6HuA(>36o_neqgoF0pRK0eEc~{rD8%Pfh z@dtE6ovkazKj3fd{)*&tB0YA^1d^^?2oeNyB7u(P+O4$@lCNc~%mb5iP)dLGM|z;x zEkRYM_^U`g%s5jiH=8Q2h zlS%BdC6DaYEWi0UNhnc*zFT$fV`4_VMNU~nH;q(Ld?!#lIvm)K;W_4C(l3+4TZ=QI zD%siB%cY+Y7vMFM_KAg?sxm(^nJsMIV?v|vAS8l;zotv$#Ml-Y!n7|X5Y5C)=TiGZ zQ+=(9%lk0&L&hDtwRD=Ua6wQeS{g2mvwc>^|4$ot-2Hi`z)|V$N{mNAEZC3gw_8%z zq(L3Bcwr2gin62dXM8cG-D-auD7HayLz zJI2|m=8$F?Ko>v@P4{(W5g=}-b$%tJgfywp`6&A96|Zx{9N;1@_>hto7TQf3EIMm+ zJ`;@@4ycXnHM>|iJ?FXkWGc8YuGviO&L*^ajd+vyLIxAAT{isADQQM5S;YP+jAYp7 z3E1Nm1HDd%SXi``NR*so7XidvRPj#BM7A`S{cU%VISQOhrMLr08;N36AYg9}40Ml# zU)GUxQy(D1%P`@`HDaXn&%m8`hOu~_2a`%P{v7w2;KUNhll)N(y4wD#p#{+($uLOB z!X;K=sci1erRm1=Qcx#ja(r=E8*89RNH8`C7T4|#uVRc=Kaf}0Xw)>8g0(4H!ZrK^ zh-Kf(V#NQcMU79on9bk?`U7eI{Nu-CdboLYH-7lJI|7VCob2872$p->3n)-J>N|b% zIn3vzKet~nvHB=bP6rDRV|&&4LL}S7`iu2ok&r8ecw~yUROul?44VSV3;z7qSQWl+y^cX=$j~OQ;o~0+_)5WDRF0^JbuD_umr4Mn$EPEyB-_eog^1*P#Ui}dCDH6-GndXgi$XV2SNHe#HHQoU z`2f{kT*~Y-Gtyd}I#v=*PbShJzp4hgaK>cr++;2GSGr7^2gA_3H1F;=06B{L4@fTs zD?F!vb_51Hnzb3BJlYiI4qZ5fDt|CaKX-N&2aP_DVX`bH*FN93cV*3fPvociz|dFF zDI@_;;4`*j9yW7pmnXjEwqe@BEQw*5Kcl$=zJxCo$}$5>0aU8*UXir zlo6vuHSn81M=rz-M|tYukSa7I2M$#Q-7`8&2-+UvW25@8gOf1VSR}3RdVFr|-&}4T zky0u`XuQc%0#b=LJWu5hm&cbB$Zk2FeYD~v-Cc92u|%sIUh-65dJR zZ3)g?oGWe-H6(Dl5E)k2)Hal?$9R73FM9`l`qB^<^f4kuce&|T)yCo{^=_a`TY*c$ zRRh_284jJjLoW$Wjv_@n$8LbXuW0pZw;g`-3$XUHD0Me!pbdD8z$3+L^KKYOabFdl zZW8&J8yRWfjLh?e7QJEkgl<&QwDnZ2^WwgBH0{AjxI^@Q)51nlGRVgj8j^jL0%{L5 zg~N&QybX0(ldaaot?}x4%vuVeTbZ96fpg*k(_p?a+IFGn!YUuS;~_Z0CLyGFeQ=ow zhS}^5R4dLfu9Q@MFw7c5_Tg`%mq$XF81YXSFD~rt=E6o|lVBQmHpMG(*<)M(E(4f* zifS(;Yjenr?~y*l>F20zQ%mciliU45f-wznJZdw(tS7t6>004*2#X3Ej3pco3fi`a z?|gM_ckVQxZ*D!nTeU+|gbdPEj(!rKUXu)| zkLqUGanZqn25Ek?PHa9%4W|%Ad_2AJ^C4ZsK(9AW?d?fe_y54j#ceCX7%ZMmS`{x=_0fcCjb0L>U_D>5f4kNy zHQQg5@4aYV)6gpTnv`z06M5a}w7=9Zxp`bcn&i(EOAPWj!?Z(2O?^DESnGfRDGcs1 z?IvJ*{LKonl7#robcFc@OJ<~_Nrt1&v@ePe#wEFKMxfTA!AwJm2~n9HG8Q3?YR-Yz z9Qm3kx|c48;)6Kyoo?<`!|@@xwp~u#ofuQm>ip4bLvO_8W)9{2phqI7{WR9NLgJ5S zHO8hXtJ(CY)mUG&o(gGo!3Qk!=#XUS13O&o{vweBJ4o1y<~#&5^$s69ECV9xM}=+2 z3!NJW8%Q`f_Ja)nexErX5!VB@V=TLVghSEjRt5vdJ8zuRg0R+Y>(Wb*7ED)es#R7< zyyj>az=m}1XQ+E7Z@KG=Cs|{!+EejQ_B-7_Z_Y;kETxVVJOayFzr&scDu#RzsdT7?ZD( zjt$GiPqMQDN##jNA(UuHMgjopqE;pkUTep+3YhG2G!BnK?~X#v(Hh{G+w3pu5aBF+5$)Hq);#9CbG zsE7UhKwvg;w*V(0K7kvgnm5CXt2oMK#y!&dqW6^CO`o-9h;rpe8sX@M7vdNHrSI)y z9KlvS+@+-`CzlS3h}P)VbJn)MN&1rZJDgsR=F2FHZMpd&S1VRKi;7W;=|X`v`iwr; z6={w%x(Bj(^(a<%?7PB*S%}>sft}U!!qdscsQgT@3X5WihmLBxuS7?1$@SvvJ3<<| zt}Y%yqH_W&6!_(na-jr#Zv7W*Cu#c6Hqr$o{eMTHmIWfcuI+rsXc1x$ibc)|lxs`| z^lhQp&^b^BTL(xEI!6k8bxom-D8C}+6_a%`?CYjSuFcEh5J1&Y`Z-6Dj-I`%()n$9 zg*b<&Zs^xdC{p2ab~}fxiuobr7XT7pIefDq+B0S-e*#Ncv}xLJi{{yPWu)?Esyu0; z1qsK_FAEg-C+$p0cp*xgs1s4btkM&3lqqeQRpD2eomd(OP0Q@*e&Xas38amh5^boC zOw$(pnvN$4MdoQ_u*a%EGU#34!L8h;hCq2qu>vma`dr@6OJ$uR*Uy0|v+9(q#{vUE z-6#WJn9K=D1b|=3z9t2tlyis<332BeH7r+zY@~b=^WA5yuvSMiyU=H97SQ7PJ=xDq8^5h@!5s)7NwIC(^9c}UqFKh>XnFPu|+L@P;S z3sSA!`G>+GcF}A^nfl|n_2P=oi#0>A$BphJo^niV$39q>jBn7=yG3jodFC|0-)C$R z@AvsPawzRcdI+N@#+XCUhE-bV6R(fb0#L8<{kZo-bBF0d_eb2=Oq%CRy|M%BGBmTi z*(vF=mDqfB)Ffbr1WObL5rtaXXn7h$vMIMyd!!E!)5Fe{yHa{ZKHpGwQ9J-@cQ$OX z8Bux&6WJ%|zF+jJZ&(g-&u~QV-Y_~q?DJ>#3~9WiBeIU_uh)eb{b{VUn_K9kFfYXL z#W?5L8z;XrA?Kc&ua35Hi_uhWghl9)h*)J}%wG+Xnnp2ZOl*YtK3VQxUMfBM+z>E2 zeI`!tBDijjXYxlLEZu7t_T<~!mR0{o>6W*Ejr z6v8z^G$W!dDq*^y$WbyhI)x}-s>tdk0{-;A z91U?k6Rg*%T*U)Uv_PP_}4jhJ6|~ z)$B}m4(d`YtCBcrVbz?cQGo|NhMK(@OnGsU7OAKgUBJLh?E@OO@sfUG8M``oQbcDgDKEy^t6!AhE@HqgSG<3Q{ND7tH!G1 zQFCZgl=Ykxr~0pdq)`n2y3~Y0cvkO5i!CLTAc68-9cOMi2c29BTcg!W5=XzHR68tT zH%o4w$B?>YF0Aq0w*Q@DIf|UyjajcxO2`!Av{p;s2#z_Xfp*{$2fM>65~br|rCyhX zcrN@r4!w~3imlj-eew7qq8d&vtYnSAT9&|&Y&=~}zF5=-5at@Gr1s6~`eBk{nJh+@ z#(=xEI>c6xXU(ucS*a_!ww@WYvo?~@3dBjqAUH~h9mW5q!R#);8l%8+oJnb+-ydqv)LHQJSgY=p%{@~Fk(V6=o{<5fV>)fPWOyXSo|G?G=*~> z?z><)(Ss@lE|vU-2vhORxCM>@LEx4O{!kmzI5 zFUOuOX^BHASj%#FATqS(FnqPTp^|Sq;eg3wKvIzUJ%FNpoCY`^OPv(^>&j{V#RFzE z@3Y)bA(4m_iaS`J&gG(v^)Jth;W$iESCeCBA1#B(N63V{dggoJ%RQn}c>a@^%gazJ zI$Shg5yVpcpnJOOWY^dBUI=3iC>#a1p2NQs|b zgZHukR9HwV8Sgp{#+jN7ZB3DI6~hIHv@&% z=$?K2gzM;xC?K<9N0|-BMSk4bLI)uB*!ugfY0qP3R%y5O?&{Xfzojfbw?zj^P+_;e zRVm>&GsN)=HBH+0BHxJo&ckuL8w0=_w~q6R{ghxeMmsDh;9@n%VFE`Zx%pQglC=A4 zmJFxIgNwqP)8^b#RwBGP+eI;wi}{^pYMTtQ4h21k5DL#G?TZ4VCjrqHlXx z5GWyy1)M+9Im*H1Nb!*p1miCdMHEs>^!0KnPX60;FztLJwN}7vh;E>|7i^aSKwZPp zbmc@;Z{n(|)caxrl1Z94YDTS$mif`TC>B#m4S#$l?uReS>1@v!TRjv$vg^osFiop z3Ec1yBx|_DM8|$B+gdt2+Wo8>VSiOZMk{KxbsETEqXrMe43bz3J;k2|bk1|VfW}}N ziBRxsE0VSSOf}i%^gY0FFMldwBHt78EjW?Hs`TiH)s0WX#E(VMU>!x(pRNEl0?(%d z(09!|c3J9g+xi&)MKNr%Lz~VacC(%gKWoY@ID6_>a>(E=mVmuqrKtH5d$d}xX&NeD z5RiuBXo9`O{xL>+V-49mRc(3kT+>qNP814Xc&F=6k?M%@t6NOb@@_X`d3htI>|zGN z&z3d$7^TV;cV+eyHCzB+pyNz1atbYX3gZfiSjHB<0Ehv&M)7xxzlJu32@Iosx5?qd z-7Ka#WS9+1pr}6b%d2z-ZT+Fzpf`63fy)jTb-|y39hX-WFKTi7kn^+4(;QJI%l!pK ze2L!7r+ad0PfD2bsar6XgD>XWJxwwoHCORf9r0VEIM_qM zCzw=0@8aB8TV{tjzE5zvR&0MR>so`xq~rHSLBuI)mS!Dh1{CI~)~Nb^?^R@Gb*0A1 z=&MnM%PG*qmrKBjp8ZIYS@DFDNwe5Ww=2e65vs{7e0?Ou*xB{?A9P$i{y zM|4xJ3)%!G%8d{u-AC5&>)0?3EeMgln4Yut1`I~s-Cl*~G*Ri1k>5}JY295;&pq@- z#Lm^4Hp$Vz)X?2y^sW@;*ClyG-%gBU|LBB2+bG$zX%YcrI$cSa$$Sdz2EBDDiX$!I z{_-)%I3e)hC3KOBqNUpTOsPtReVV3GD|?sDzlEY;lsV>UYEWf_58h)t*RN0JkrGu0p9p8L{s_RPwvTR zXR9)eJN*RNMO^RZbZOXGNdieWgVSs&xvqTIv}1x>vCDtEk6_WWAVXu?Nu7sREv!;U zh%KMgdA}u72`Xz6{1nx8ud@3we5$9_>x#f2Ci}@h{1$Fh&}3CiF{d z+}gjEHbU-5+06vi&lbqcVU4dKyM_2lgko*2LU$@58M9ER0>@8%8{Q`H zM^pmfKp*!)YkLi|P(GT%H`-^=EmrEUhQ4I?ux{(gb8Cfs3Y;=$r!4-O%2yn10(6sR zU6xmo^&_$SnfCEbTemLPST3#%z3J!5Y}po{ihZicg?6_ADfUcz?o1} zmJxCzhnNT~o!=vhmRTEXGQ4OT$Zvhr5{5Midj2y-p}oGVqRFwQiNxp#2-*sjF6fsF zV6XhhsSL>wR!QmL`QcBPeEpof>)1LNkZE`AL+G5)@6qC>qR! z8+){akxki?kaFfX6i}pXp_`Xlck94~S-?9*q=QqL2z=I4B@Zvi@4?yJho3QIdNI8l z#4QKGd<)2;6Vy;X#e*x_gP*hHWyFFgqukOJH7ndQUKry!7s+}S>|FP?VT3DlK1qQQ zk=oA%rP%@u3Q)BH2;)Li&oL3#M*r$!{Ih zASM=(#VCobo1BhR#*@dO*~PX)#gN9<0l;rNRKG4|p!^Nocw@Iy>-~ZJ?0T#CqSxD+ zevj?m@H}89TT2L<6HsC#BB(?}DykVK9k*1%F~}N9y4KadeB)RvJq;@3pmQntjRuyp zd+bH2w#~~?gnNl>cBMwx5@vUCsl~4k*^~r4aR!EORAjW02r1eGW<}-vIl3BCwVUEw zh(xbpj>h?!;M4gDxV}8^il-Ur;r34S_`LeD#vXa-JKk@`B;%!=m}ILfo6GCRP-vnwGMvS1TCwL(fwPc-To}O1cyV3K?4x z{_{-2*jZ}zOd{hm(Z%1afi9LPcXUtDSf?C9Eh3I80lt-6uc=&~q`FuW) zKHDvFXfegSj8LcxD#zUuFPYuggI{ZvI5 zj|TJPpX&$cTSpufZ23uYl>m#4Uva-%N<10wTI1Mav~)-=p+fo(j6RRxz{*!Z9U-)C z9>Fg)gf&-?LrVVy@(_wx>%nb~#fWvMjZ~3snIE4PjYc%6*#^HD>*h`@M=No(8gEO?tGG;DGL! zIknN6VVIpLepd7%^9kPQ=@m~$#G`d&22uBd7N`xiP7nd~8%zL8zY7$6HJXuC?e(YU zo|ZhfFlXWkh}8`aNOTEuicNS}80_)bI`FU)e}Gw)H(>SGZcAB2IjJ%f(xjS0D3g$f zpKWvE6C}I95gE5ucsGJw!I(^u@Qq2m!}b62JC2|pO%)yPHM(i^a4hL6s!^uhSYDQ( zs6-SU+3-3w$KoVN{lR=H^hVSP#EnRfCNooS9%oP_bri+sHqLwpN!J;gB#HbCT*wP$kPMWfp>3s$!F>BG0nI}(tOBcS z`;|a~gZLF43#h#S#h9K-xNW62tdPsD6m#K0iM?V&GbYaL+Tv1R7X)gj~#SmUb78qLnlqoP^ zSe`gkIP@zojM0&GO=h@|U1Brj_A5+?CK^Vl?qgjE)=Mo|Man|gckYv`pkbSNoKK!l zI{10#kbR9{p%uRJ4wx<2MtMI>or0N#cP<&(WR_(NRzrNObQ6E4VtUzc?fH?Q`SmTe ze9vOyJ~XZ1o3+9UPw0YlgJEIwL%gBxaQO=tjEqDxu@8q>P<_RrX#GyAh7*w=e!%zM zvmm+X4>-{%3kZ>L>`>A9e(Oe^W8*8imEKjvrX~B9Z?mF4pdgAW0GcqQ8K?PWbOtli z6v1wXRcjUM?UkNSiRv~-lG&n=6 z$-Xti>!AZ`H4B7vrP6?>0{7UrywB2v>KcE_pW4LIO&E1X8z-=JL#R3C|YNnMkc!*60bMHvnH<`ilEG%{J&Fe*%+ zjTZG$y6;1$L>`qR_sp}wV!83lNr^{s08V1fY$}RtDBk_ zY{PKqIRP(E+njlJ>;-Ne9DTE9Yc-7W#!7e7F3YVtOg2yK#&M<)w#4K*c(bn^FnHGi zOO53p1ce|18`isRiPy2)Cp&cXWCMewS7U(<3?fr$6<2fP(VAkoOk?Mn;n6cy6eoEN zcTNR*-IloNR3v5#qTkK~&Q92!hff@mt5?U>fQ)(sn9?kZ zoELH=@&o-m=!`QtVP*4!Zq3MI*C)c*169O@A6{Sw1BrU77bX<7)o+B=OKOT3M_qUu z)G%1v*Dw$3!{WTWe}2o~d*W7}{itvohqK!zI4HNk!NALAmrWckmSUmNsWC3}z589I z?(Ph?T0sx*T5P5eOv%MYbRzUJ)6Kn!@@StdaavA^up>Bu#v(VH%nlM5iNgY!YUrMi ze_F{-tA~K?Z+>D_Z`ea`+x(I5S4rc!$&2G#xZi5!P+od8TU36$-U+2lUz(G)^M=`)XHCub}p+?s<^N%UM4vVLX!W z3!0^;2XT5crok6h1={vUZ6hmQ4N20z`>5mfN}W4i2ah$KgcnPPpEs_(#;Q{)27f<( z*y2iflq`qB-OJXu(8w@R=)->-a6|4bNxNMnft?20HkuCy$6$L09kd)G)W4O=9BM|{ z0njynOnyNaTVrFARb&?Wz)KO0c=aeIrmJGdj2T21U*d{=r&%WGB_fB}!Crdq%$!h6 zTYHZU91PZ_u6~E*gTy3XA#JV7W1QF6sjN;@hLE{nCX07QHTpvH15PaG$-!bfNO#d# zLz-yQ&tSY!D@K{1sPCqy(XopWKKD^Su(X0yAdtrAPbwvb;0KzwfBiTWK|Q z=@~d0^<3M_hSR&Ce?AW}16N8iRRYrnJD8B8G!k~7@GQoI<#32mT-zRtY2CpF2f(XA zMU6CkH@0EN1UN@jBxhBao0Y7;t{jc1e4a+0fB6N7b2yPo(8A@@2haBnasAf%nJCjH zql`!qJ9zbokA$A+Li$D^=r%*k928%W0a#oK{oyi-%i#({q!i0)WJ1(aFJgY*$gn{8I=(Ww04qI1{H zye0i*Mr`~uq|h*1yj(Kb6ltw^K@0am&(EmI`#hR*0ct8#{B~3BSz88+3Bzg4k81*^8%KE#*02QR*UK z2M-^JFu#z+ux)Gj9-Ypn7I{$oQ)oL1`l&|nToNk4Tamb^hRS)nuoZIEjHOtFqfhay zZUTan1jXVWhNrTYA$UlLl2*5w4DdkB`Zffs@;~cY=26uyjz?2T9bVi&2sRpcJQEc} zswq*+P- zDN^CmeDw%s_1+%}Im49+!#OjZ;j(Q*hfk#Bm}vcixtLUk-l>q@`BV7ppOrG2W#Z%& zW()~2c*wbgWlG&}uVkUND;LEy@?#C{}77N~WYzz)?Az@B@SyxF&QfwgRVOOn%0aye75&&}>S zzXc$D2{D5sKzp?kZ^aDn`*nF+3|f|e(o$M#yR)s_4THwu&3vi*JPwOBR)%9|cQ^)g z4XHCFEsKY{w1K@z=AIAvPKl3~tb_^UIhBwmBDl`00~fq=Sz&xh<>PA2hJCH!hGwUW zSgtprf2*L$jmE;I<{4F(Ggnc%YAXfr=SqhudnSKgbgU~un2Z{YIR{ZU&6?3OUcSLAaY@eW`eEgpt7 zlUlHem*R=;T?P@87+ei=K*i)c(`M7rgYp~;1v3UAroT0zo2b1J>$(E72e7wJRJ^j+ zfwa{lP}teWV2Cat(t`GRp|FvPh+q_fqDrDbm_Mgv ze11tcDh~Zxw+#nx2(x{He?+>B8}7!V`sarmVDe6{$$s5`AD)NF!*)Lkxhe86X@8YJ zUKj5XynC5Tkh`933miE2XeIrq#2DMX^k7QLZ zL|1DDSCs` zP~b8wgEc_AKuOkS68=kJJcC!LEhv(jc*PJc+JDJEZntc9XnDeon^R1KS8VypEKVS=!F?4_G(KTNE3yww1& z<<4Fsm#(W&-EE|$ep#8R2{KX@^9n+)nbR_CuKu2`y-?j&_Et#qL+_J4;tN=2WAJ?_ z>GAwa1Ld2`rz_J{-N+hUE`7D?$vACB{U+#Df4rK7HY2#|H7ad3`gquCdhAM5`64&^ zml&N+{;t8*A@sURFNd(28=x_y`ZPiZmZ*JTwE@14fXfD|h6GL5)jmGBn&D0L=Vf@m zCfsvhVa?!2*QXbkyXRHMlvIPVI=myUYfFf`Kvx;HNNg+~nfLnniq{U32A~2`%1Vz|wmTEs2e$)WSRz z)ul1TY;;WAQl)z-Kdg2cN`8In{^lIY0O)kQ^I2SoQWf~F>*MJp!pVm!TB9y-tC8z^ zo;bCQ?{j%6p6`I;Hk8t!SYr(BA&>}DrGxg2UYggV|Zk#`Og7%@FQAPviijGoxn3uBn010T08 zQ!nFZtP~|hjSMd!(1+p*Ez!^!t-}`5!O{-R&*GB$6p41JkhO#U#f{uNj#66xGL$#dz~=tSkpT%4i1 zgjkQKiEant8(H)O7-+8ZSoA)7^JvjbKP-NF5#si838FETR9 z{>F}aEty|AxCF?_9K2a!PCD&{mLIaLn~rY9PkVlT{$&jW-^9L(DZPjb!3!(?6gP

!oRptb@n+ zj;Sj1EzP&rTH|dsUF5T#cGro6G4AR2oYP4A6C$$HZsMhb-}MgVJ|9Df9nr7lJz}vl z148Mpnh9;=>i)2Bv@-|m)b&vQU&MMd0hk@(3OOg^&bfmPD_5YKI;h1GgnmUyKMvNS z*Dl@jFEe{GgQYV82Q5l}U@Y#R&i56es!fO#KF~6>m8^j5_VYi$aL3MIurDD=iV!Y# zw)C$KqzsWw6ml!_bkB58+Pnr)j72yJ19dZ;QpeC@=Ysqc6~m1XlxJ}t=Y?#A9ovZP z4*s&io?KSB=5X_Mq0Qr!nZ-97Pc{p8>NN2hw6L1$?|*wdwE()u@GV+8cRmVu4i|nF z2YCia`{H&dzX+@+F~z3}&2HZ~A$J#(3rizQU8HeGveHLO?>XOiq=P#{F`>io&|}#} z+qQJb#$=b8bg=Ps!{v58DK!Z#EWBz+L4AD9zp%|)i>xTf3e{0+~^1&1o6#K zwr3ZRDa!hJPfU|eB7lm6qeNDi)%|oq=$rtSjhii9m6^WZH{st=9fQ#dhr52sEKcDV z){U(4C-G#*1B4TJGjp`CK?-PIECS&zl`y!FXqtN(X=qEa*gBq3^TFm}Cpj!nLubX7V)$@?A?AU0HyDi|)^#d;oP?m&OB|M4~*^s!BC_{@R=DqVy`) z^iz3jFK^wAHbnd?@;r6FdFZxmHA=CJY>9NY7`vW2a@8_3y<&DFpgBkW@T`=eFK8oO zT(y#eS}lrO`ZBfcPaK>$9u2=+_Mtg1J;2yBN4^5}D8XEx0WdGci3PQk{1UaBgCLjA8J&l$QM)18CRi~T;S54ZH(@Xo~$ZF&Js?~!|%D|ZX{Jj z*pc-L3P~#WkVf!P51DxQ^K}CDD=Y?hNA?;=vpqJIB;E8gGMv4?>|>Zb{znXRL*?)Qk_|}2j?T(SeEif3wmvZ0!0BKWR*&#M-@We+n zd!Y-D_)%BP<+!zHM-WgMA-<|E26O*5#V&wF-H?7K{bi0t!Ja@<#T11p`z7kR9bL^I zxiX|bgk@gG;U~e3#Vwfd>bW+G#e;04x)I0s4A&VgI(Fju_0T|cY>fvK^f~+n#M)-I zKA?@0B{P@33F-*DS_^ETL0XcaOIRdDW5V4B_zY`Nd?M#7>oeG!Z^6Ba-dCk{J;lsy ziiSUhyO+>s{C7)Dns`2Rf*jY`gHkmU5gRa2MLAKjTZu0mAO#oAut#vEzYF_C!?|MG zQb|RYeITrDng~^K9yR@$=Tu)pB6?55gtAr{5~EPTj*pnXeR>Z%m;6GME0_TE(4-rw zME3E8f@iqWlgt=}U9DMBcpA3%b9qbF|E~5M9NWd;*ghbr%TH)&^)5!yC%XZ`v?wJT zr0zUE{g^+XtUw(UkwXI0C z{Oks!jZS1P^C2&m%)dTuRCl66MJ9OSvo;iOkk@*49_fS4UK2sIg}$oN5`T)WV_j~$ z#*y;(_hW2|toQ1WCxQ6-vCr-?6*3i$CB?T(Iy(Uu4B{Jjn3Fs5)HYKiwn<7UMvAhM ztl~cib)k*j3wl0-&k>Du))lCI$!YL3LpY?I>g)lzF_iS&;YrENcF9RH%gj>X+UNtpO7cW z=y9bt%UHUm14b%KvB>fmkT=b_ zigd)xBgK2#{h33=bql4K;;83zkU~UB12jdN28+Nt#W^PWf(SsT=lZwNXYAXwH8p+D z2T-wD1`6V}x`JJU5)g?l{KfbY3U{K*jkF9_;!&pOj7b7b<4O5g2XbEfm_g;#Ldp;i zD-*QR?1x>UX&lEA{7w}jiYCK zu00NA=#@FmB`CEgOPGL>*m* z6L!@dqJzFD(40JE-qoB9C0HFL3|4tOJ91pPVZFhw7eu;Rz0}w$sh&XNz#XOq2TvIr zi{~9k7L7M7L#!M~crc`I6W5)r$aG3}pV7pj%;E`lEP-KW&v?w!L}n}ma35b;S~Q7u zWn6QD1W4v?bv$l;!Bx=gbOuF)QJieN_M$nWNG4939a7d{0~7Bj<(#O7(pw&_f1Hi_ z;$$f3(K$+laQ-ssV9rcZ7sUxH?h(ODxMpu8`~q0R@3V<5ZUR7N0B>X7i^k1P11+>c z0#{3cU70M%f?eOzWe+MNx@4`O6KfNE}>-%Ay*gOP`j%nlT#j2qpj#O3UrUg4^id>oy3kT*kQp^XA&x9M7QbcQ+v;w05OGe_zv}@RU3qi z$Z4ZBchBcVa$fo1DFN}YOT80bTTwDSQdcHnV+giyD-Lt zKm&qZyc%9CTM%PKoN%g{XgsPsNM}kO0}&4>JwWdya=9)5Ash~^0(uV>M^ySibGCwz z5$PN+Ml%p$>JJ^#x6tLs0KGyLupO&M$44kv!@+P4tPv-(Q) znW!s-B&%k8 zp97OXN@#wwog-#6l6D~%M86snd|3)a+4OKr(u$6rle32G24##}>NW&kj7TOs3VXJL zc4+@7K%h<|@DEF@-){fDoU^iaDFf32}t$^lA zpl+iL|J2M+g9i#^{QP|PQi<;e0S?)xbB1g1_`<>Y)*w#P&y}I!c21Uq3LcPcH;4bqI0F zG%ZQswtudr3r3w}tQ`@KXB^ZxMGFdmidyI|W43A#-3$(6N2%hin*4IsSIG5R3xLv0o-OG?OH@C^*jHSMd|)m^=k z8q!UF2K{Nd9S!5tX!S5^0(g18+nY#vy3{(tRE6@P4?zeK<>TM)kmGd_VPnQA7kRXf zk$~)TlH+gOn7m=j2vbKXB-!=9II_qaR7Fbv(Ms=PC#2#w`w#W z=rj4$Sqg431ZfI;P81F=%2aAK&1MMC_yLxuW9PMtShb@O%)R9~IY2N4HjJUXmwXHl z=J7qh5e!n|i23lJ3Aori$qjbqY+@PGGUPbj6mN#$9u42-kWv1HK)Xf*7du4zI&Ap; z+W-ZUfh=WXWVbD>z!yT90&Ktv@`?P+^ljzwm*P~Gn%)O?gB56rc2k8*yqZ4@7nX_L)j_!4bYw280A2s4z^0{)=R3vJz7Qz(N>0jX`Il$M5BbQk_^? zmb=2DwO)gQyg->t3JD)mBx;B)gI6cNIfElwxl5wF%+%+FNg$PFXf~%ubeSK6L2;*k z-ZS~l5;+l-wl6{w7Dyq}{-FV>Nn6E;24mwA6(n)DhTzooXGRi@WQFLUlc&&iO=I^T zivywJNawc^=E=0XFqsVRR01*cO<5HEij|eEmVK8g?IfsAJNmq~EgQff zwRv%UW^p&6vzpem6AVaGtc3Q>G5wiRktPK3ep>JKPbd%NiVnQsT{NC%oJLL-qJ!8- zP-h)BwRyVw&H(-~!h9FwJlK~Tt)s~GW9=N{%H zkHahpK^rHdVncAWv!My;Py*&Okv>@=Pj<^*TyrRLzrxUph})=cnGJ9$3I}j$lr?}= zz=2t)jatn_^K@B=I_NPS=#K1BtCqqQnsGNTQfmt49zY^Or3XLIkcNQ*9`Dm{tm+te zGzr-e8FMH~?kI6@V_qIbW6`2CEQp*Gn9!4LSZEWt8?F-u?T9E8^I{i=*dP+gY2|H` zMGdiKCZIJ#i3pZ4sls`onRd=e0U%n#Ca`${WrC4WU~lwxS=8N0NZz6!0k>0lr7=-Wgf`_F=oh+|pA(=&dOHWYHAe`np>Wv*)f@;~V6i<7s3mijc zZ4@C`gzXJ?yt*=6ewBc>XeQn}>W!UeP|~t^p?bStnK{#S5dlPbxd9>u#Kz1>gvttK zd3?&C7ALU8TXCu$a(pA?no^B&vR|6~ij}sirp*p(@KQZ_I24%eSY5CJm0AN|Z&CLzOTfN7OG#0F=>!FqSk3<=Di4`u1Z0Ib8selOlzIIm3id zjw-_NQX_~=kIB1OdIh4uG&6)a$uAeQ-?@5aMkFz+U%>fER>c2C))6vM$q`s74=$Kg ziBjcvbZ75zzxgoHpoIECg8=M24@g-g`GL-3<#WPqoB05WJPdl z87W0Pv(0o1vBq6^KzM1C(IlMdk&y!2xc`xZBy4 zbk(td%vXIm4b=}{q%u%bFrCz%#{%S}5bPliB~ozxLV*SG38`@jJQSBCAc+;i@e`;N zt0M8yifw!cxT+TeLU39XDrBSe#GhY&)-T|b;$R9NG^AMHI2^Lq9 zN)VG}(M5cuIe|8Czv84=B1p?kNhb&-+kCJ~Cp@^WbcRlQNgg+8V1=ctJWBX)kq0fd zAfF&H0wQim;D^RNLt*)8>Blbt34>^ZniMi^9|qnB%ES;E!kSQ!IK8Y>A1x=m76zre zZ2g#{aC_l);B}ZbGf3Y$5Pf?Ha!#0t3<5F`ED$p<#rl0e5CFtqc!!Oi7M~UH7I8~> zKcNUu8%}Z~Bb?-HK-;xoKCjL8>_&0cLO;{MS&3$vA|)_!KSn*s%ug690fdLcraD7- fD&x8tjE$WbXjs&snU8)|^B;s6yTptcKAzx$Qp3K0 literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..67fa00bf83801d2fa568546b982c80d27f6ef74e GIT binary patch literal 41280 zcmc${2b>$#wLd<0X4JKkMs=IoY9(#guC%-Ix~!LV@5XgawLzwtVoFRi&4B<;Yzzq| z1QHw)z@da0*@PsIyqA!`6G@b6oWOe_b_$P#@)GbXG2Zd-d+unfZAkvV-{LBX3Wc;?Pswd9i3FaAXkSUrx`&zn7GF0_`M^SUUB}0?t9iO6@<@rQX4MYaNTB6W_twTb8q4L*yS58+j!vF z2j3Nh`>lc?ZQXpu)z^G$?&B8=!spQk>+PGb+PGPLztt}YU&eW%aO!9EjS$4lmWxSf0(+a;I;S#pX$!?81r zPxe(ID}q`APM!R3^`f;)g#n@JcY^fY+Km6eDgyYBYd&V!e;1`7xevutA z9r7HC9qK$ZaA-Mx@w`Ku58Zlb*I{&GuRWclsyf4l#;7ri09Ui*6RHTP@wSWT=t=8ZXH=9myY8a)#IAo_0fKca`D z*F~?2UK+h1x;}btbX|01bV+nx^t9+egvQ|i`5yx>jQlJU@$>W=|A&(_6vm%?s-YdZ z;Q!}OV(bZjm;rz1-#tQ;_`j;qrV74A>f+@?>cTDSR3S05S~a&0%~;2e-Lx)tKxMv; z>UNd2#a>sPt?jDVwrIuBoW#0#yDGI^Tpd#fmJh|%fpzVw+(uuGC*n5@{id$Gt`64? z4cEQ9t}YQ*O|3)f+%4<)iFNDnd#1Lkv(9K&&23r(y9;-Z-F4Pkb*g}$v9xK8{LsMY zA#0mgiS=dLRa;x^Cc4QF@cS`UN-jvmR5`U!6_yWe-?)84j5em!#pCPhw)4Fe#va|! zZnVx*=ZWJcj<(n@cz2v_v5abIJ!>cyo0pio;gZ-;tZ<(36Leh_-5IxzZI8{{K6gW6 zdu)4x-!7pFD~8koT#5eCZPkH|w1e-s_?>1Ptd7U)Vh6W_4EWLlv~6{zZD=1ZbGId8 z2P-#E#D*5Ftc$B`-OzS)XhC9oBDQ_O_QVEi33Z3wsXZPV1}}y|p$^c7cTxw?(8S!t zhD+9u?+Ja?*M?4Pzmv$eu#nhpQDe)8rq_KJXZ&sZgaI}%ILH=#(<7WO@OQd+HCi6q zzG5hG9$KFmtiuOO41)3lD~5_fOqg~4V3EZbKGfLxYR$%a-ctNxpiRY5&;@Vp#E_7w zkT-73wkGUcB*ievEJBCIgv|7!MHb)9YG%{FPcKR$HU&+h!zMahw3wx1(~FFb=ajgT z%qfW`HlV-tm%m7{V~3g`k(p2s3i4uku@Dj(1y#tXRXLTFRY#Vo)fv@yP&H*$Z&|fu zwHnqcbawfA;^}-y$tn4eB_4=}ENLa7Skn0dlb+x4dBA$NMe@P+tN3)UA)gG`7`p@g}ksuP_r4esa$Nz(oZ#Y*myhQ zydBZ3YRahfIn`WNYqM$~qdLmPfP*d!c&KGlGHRZ;tf8!hquH$5;L+MytLn+B9c9&> z)%sYg){s}cs-;hDSBj2Uwy&>`sF=@n=M(u{Z@xE|4FyAq?hY~0;1VryOWYj5TSU%f z`^BD|*kB}m6&MwIx%*C_4-Kj)_rGq6J%mIJM#ave| z6W_b;$tSPtXlr}!^3VTT99+%bTYl9u??3I@aP6-itZ}+F;Z~$u6l4`VD`Otmv91d} zER<(S#b#32t`d6j;d0id9}tJcA&h=ofez}MOMLIh@MGecx|6jH@5S#($3Hm!f&3l$ zJD6Q&(h@95us6di-`kyGsRm0GTk_j84vH5XTyyaJs;URwjqa+=zdhYJa8^~?^^8KtwNh&Fei-jtC-6@O7#R52HmK*O{ zb{aZAuyEO0ulKHHb62|T!ydZ}`=7qNxi+xAMLg%B;s5c3YOm_eH`jzt&r4U@9n$wC zpM7|lQe8tUd+7K(@(<((1)oqStP_e*@>*4IMh%tKx(s^5)cTCd4yu8&8t{;8P)(Qv zVE3AU;@u~S9&cl)PcOVYDiH%eQKR|9}_GlobT-NdeEVO-@<}^H#0Y+ z8Q5L)1Y^CPR4l~m!D{tOS)0XjnbmLA4_v#m^vM^Q_j}*d-(&C6IsFf%o!9CIaPl&X zg|#geFV+9@;`eX`hJ?@aA^BN(won6(WNK|j6%Gd{TZs`|W+=eeBozwtMwk^=|gMSwn`IzBM5z3t%CUFVn_xPg)&+-Z}Nm+_k}F^P&%JTTTZ;stRF1+?)Mjd z@9iZ^PjW}`nw`J<%#J^P=9j)n&CF?*>`C{+zjvK zuNOv-VW}N|3CU6jr(;`3FW{u)Z?q=6LBotNQy3JAAabkPmIDEaWZ{fDos*^;yfMJ( zfi(x~V>RAAS`5<>L~AaqQ?lA=oNs!R?p{dTU_il`#v4*K7~%2z>|@S{!3BYEIG}H) z_pxnpX#C#z?d;e^VeztYJHy`@w=?040O^T8t{05-eVK5saD{M-a1YjMP6ciHrCKltrL=JU^%w? z%G&%P`t)e)acuLg*uJ=|U3XVDtKG{fM{{8sGiF08Ye*?QAHB~$=KSRE|D)H310@=Q zQ@pWVr#!_^eBAl$=-)<^As zJhjCaXt;)F)BDM{$J2alXh-S%@f4-CE-W<2@5?O&s9@VPh1%VaGs>!k%%NCOX!q7hU38p|b zovTxd{u+j_eYEZ&L7wLVxj-V2==n%JWNx8UD3m@%8`0O%MTNo`?Y_YEs;F@G1lm<7 z6B|dFie`mXi)&WTk!DpN9@opsy47=}Th&KCR=bk0jD2*^NKaw!Rn)8<*XyrZg3!aP zBWl)*%=02T#&ty@BtHoKp$@D49Dxi+JJ#tozAjnHMJVYQMGK5M)#A~d7;9g-==9M+ zC+sLPnKY*bgA}T+PoUvsAa#550cf*+sDeG+sdP`!3k^+d=n$DPfw7($6FBsXCobH2 zl%02U>xEDJ;>?F$edpDO&Sbv{2MRQk@FosD&zkxl&zG*#jvm#nE9D>W*MI%|7F>mk znUk(EmLpgb1%W{>X`^~fr%;5k(W+UUxg1kH8C5<=T0J^pMJF6Ela21U%bLQaO&%6D zgK<3auK;7Dt%RX3F)~Ql5#33aHxvaxlcG>7)XBT$-NHQKbm2UK)a&JCbx}s`1@%^N z>dh~!^F7)U+zkubO3-P(KsMA2u>BHcpF5E2BUWhiYBd=cmfCW#yk>y{qb^eRN%8a? zI@{~jT2CW}_xYn@Fv={!P(BpIW-dEZ?48L%z4>&$7n?oZ88MY%`Bd7HPGK|A;1YEiG@Keut^O%am$rsLQ0x9U0T7rgScss@?4KCe!Dc zCnPOzoBkzKkurMPR~sJlqu6;PIcA{-F)-Vx|?r? z`d|?X$B)aZ$q&7MOasjecMHWhX;F=^_B*??Sm@K4VoSC+2X&#Y3>A}<3RfGBXENMw zg?V3lkXD^WkCwy`019a$&9s)?Cn=eC2St6RCAO;o}h)=XB2SH>r+jiH(R9}{

PBK;&Wcg|NX{>QR@W3{K zY;bp3^^^Hp4EgCcp#a7O7KV(e2E!07sKTguG(W~^?4lZ66!OsI#=Iw^QS(LZUvY)|-*On%Um?5>WA zl?50LJ%&XEbBcfmH}zOz=!^;alP6P=Rtc7q@Q=l%gyhRfi2{4}=YdE4KV#1hzuEkL zQ`e!oCxJ!)KmnXWYrzo%_u;5NbadmMK<}VRv{vp06NK?w7^1Q$Tj1RM!76dG8csvB z!8uB~T2M}Lf-thpE(M7RjA_gX6%1j2BB6X0eI$mNZ8{a1K44Q>^W@3P_G84KehO22 zJG-|8&J9&`rg~weKrl1JkCIVq&`ucl7;DHYw@0%Zyc$6}?KFTU+2;?{&=A`cEfAzN zU!jp_g3S-`18T6M@<#h3A_2$=zd4rj5XfwaD;BKizzZu%((a@Bm!J{db@_d4*S%kS z85)uJ6H=aVdJ9w~XjG@unH$c0h>vFo<4HQ6M~DkI2t|eFJmy!hTnt8Ojt6To$AMXy z%Ec-Z9jL;jXKDjiV*u!Qj44=K))MH9htwFwi|JpZJZ~{M?9ff()c#tpX0uYaf>A6l zaV{Qgbe)MnbW#laMf4`G#PjHlIUp%<3ly2&o*d>RpmOTnmY2VHufF-SoA1<)E?~R( z=WgS$I7Euy4Rm(-QH_=+`sBw1ta=csoM*|uG8xBOE~wUwTAd@51j zuy`QZW4sK^2*CTH5tN8z;Mj{$CxYdT<=Hw1#U3GNO1s#SIAVG`KswTTkWM*}C5vDY4%wW!qp-T+P zjiH`H`Pj08wXN8~6_I0Gp}9bcbE~-^4mD3Jt=O_gbB3QV zH@0hfXH~q;wCr?tu*vs1?)CViBPBqx&5q{6GO8C#^wH0-chR_FWDrbUXgQ%zxOyH_!jd8*jbwmGetZ z>mI90oWQ{QRn`etwI7z}UM6U%>aS8Ge=hn7*WU)BCt>J`RFVl82?Fd<+Sqyf4cQeRYe?3g$5AO038R??pu*~f{I-;y@--*Usl#4Re< zL0XHkkYPBDUr**?V_4F#Mn-@8g*jJTGHZ?Tt9?CpKKr#hdN1F8-^loVTRu^_1Pm+j5TO#%nF7n|JOqvwP95V~0xY6*TP0JMx!rzqf3C;CtWMZ5^~0 zfB$CDI*O00kSYqexd!cwb5wk$FblTdB4HV028U~%vtf*Q%f;rdIV3Y`GsSf4V#7cw zCfk?Lv4)H$nsHSE3V9aY)Liqi7Y81?fbh=cWVC3e2(E;^A(2-yY~Y<$WZLA)Y7gE$ zT8E=mZQ+p1K(^Syah8q-KrYPTrn>-c$%9<8=VNnP74)pTvUR)I5b;omxX3DD3l3;dW|5Dauo)5oQzd4%ke=n%?~M z83VJpFzJdbi5`Mmay@YZ(+%OsARvLo1SC=ifx8=s3|(X#g#d^XKyO?vL1Z#q?Zb;5 zA-fy+dO>$`EsG3s{LwJd8U9DwWodXXebC_2=_AG&D82jX5Lrq30g|WU3-n9;qCyE< z1?eqPcW{p*(2a2s325o|LSc9|Aw45lHu+UfTu(L|)=yFP*VE`$m9;=Po8=Y}R!}aM z;WRW529hmKs7+7^%Bl}03PuiYIM^lC*n;I+XCVHGG6`wTL(U9~xvx*FgS6)E49qQ% zC;{JnAPtIzXtlv-0G~aTPufS%E41M&N2w&e_2F_XBhp*Ps!L~{dD73yyf)TNi=pdT zNP@zwBc%)LA(R5GyG`y`07Vhif3$W;Z9geJw zgy{`K@NafEbUml^`&HpcBusC(FOTyw{RZ@<`_@2y18KsYLzqEybJdUOVAyuJKY9E# zy8nLMKS(N6XIC9}f=p~dGDqksgTh&9$ghkW;;y0tOrSfn>_uvl!!@Z%D(&MWjXlLx z7&NiNe`EN*;PWEA7v?n9Fnd|GPcWzL5Jg4N0^J9*27q z7YoDQg7}`yo;_9#7Azd&p?6FG5Qp_rgBBy82SCT5LYo66_9A;R95{9;5N0pvbL5-- zkqE^(jjVfQ!-e3bgNHXsw1b5N%MmuCoqMP$v;wgoMTy5;j9QS;YtRL7CxS8nfe{!6 zYy=iEL9Hy%fV~2X0 z#O3|xh#tG%Z}*6UDbZ(VN9;Z^B|7ZGd+js^n6tA>CGoYbTiF@3mVJ2J=j|?+o!-zl z880I~AS@(>cJRd&JQ@M$a&ty)hnfb@Dh49Udl4-cqa2@%X3*EDM@yqOtz|8Tu0$~m zYE7Tknnsu6jma2wNo#M$UbG=W7NHtfw2m$aG@p0Bqoy_kFC!^NMs$OLQFh2!z+Ix7 zM>z-tp#eb?{XvR;XdvZpTC?;Pp)|W?cP_uOrPRD)YKOzQ8=6vKS83O-lDU7Vzki5< zI&>8&P1d?OJ+0UY_@_0)6vj2XSd1>}KL?^m6nZ%CJqw$-0WX955Z4na7eyyYccvyX z2oy84(4K}4Hj~9e7zP9&q!4U^wJrfm(Z$@1`9i)Pc3E?Oqwg$s=L%125BqXMlQ&{E z>$jY(Us+x6Y;n8Ureeo6gTdamKflqw7Liabz7AKF^yV>dXPvVae))f8uY5-TK6nmu zLi#@DYYY})m#|SN#)#+QW#bcJM;M=$vf9P1p(+nJjE@pf*Lay0t2mY|j1H`cWbB{< zX62)l?7%1mF)+<>Y}EIuEedwkE&~6dBlb|JM0baj?lBR1Nh1-F@yQZtvKvTG?J+hI z&{0KOurbPhb=|i^@dk$zgzj$L^7yjSm)G5T(>afPdhw-uA6jS0HA&OzL*Xj7Wgb&M zlRrD(WVJ}n+-Y0puDW+gX~U{BZY$ilWW@%sA>;t&rE~??y=UgvhIy`es<9(OlyR{j0uR*$h-@{gKz7%1**%k? zlOYRapLB|@$Dc5IS1`Kn&y01wBjCvqRq&F2I@d%%3V$1Q2;S z`7-d2?uP^NVzR_O+)wXPjNWMt!S-8xyPDp`A$lL)3)O{|74C5YGP5#~nRMds7vZ5&8wZ(r^v{u0f2-j0|9Z zip8kJTaaIQyx-V2iuPB)t&iCs->brSvZGsL<3W8K8wA7Ug?@;aj&AC2jc$%R`qBL| zdSvwOCdpe&d%pIK&4rQpkrkD3LrejN4lxDjC1MIN zbgOuL!KFODppd1J+?pdF&NUDdw~~%f^u#*JCbB^gHccU`=Qh4}PL3Uz9NF=4`(x0F z!4s2d^>O=SPR@_sBD`gcXa1h;e}L-8c74pSj2ky(lN<+{$Yqronrf}kB1{D$72{Sr zg21pec7W=O5Y$8JI+^Eu1%a_gQk46_CW(W;L$pl@_}KW$rQ}4Z&r>0#QMlBVns7F0E8Zllg+cxU*K5-Sf8k)>cByD zR+)FVvn&69**9`M`(WL{B4+Zf|eCMz5v#4M2e_>(&f1matzv>$xLYm+}2ysk)hGhn7C0 z(gTPkq8vJcwj0s41jbqohgBWoUbHHi+8U;|T7+t@X8;ywxom{_xz^qxr&GjB+{7?{ z?)snKaO2OeU$Eex`ugk*=bwFb>&zD)xMb4<4;6Q*3Y|V%e7a3;!|_hJy@6~o6q^?%_}agJ3LmN6ZCOp;R)DbTxD_!`^<3T^{|m{t6j{>eFWHUZf zm^jAN4w)_Frm6I$XQV5vUy8DTjRhK9CUnLm-m&`L$(?y3a^Z#NM#AhO{Xt9h{8?*e z^%*@{9vd3z(Stqc5R0b}Wx?3b;V$q0wde}vW?eScuf6D37=90||J(*bzj%*0#>V?H z=Jx0K8Tas8B2mIGC}KU1@v@<#`+~6f>6ol&u{eSF72$P?(XxpM!b9KMW(*efuT1XT z8dfLf@77nq#YUqP(nh*8r}Q=I(+>R)bpG_uk`0L$)=UkOZjMm&65nC&!Fq&!W5aTZ zcq>1=B5*_zBuv5hn#YexXy!64NHIZGAxJb)(FDv#0PQS*H3Cr^_^>gcu0V`%0IMLy zE3x$VIT~8}zWy5U&60Q~YkJu@^0NMG{lLqJ@4%HW6O9e~_IA+N2Pzw0K?h<+AR-Lf zqCJHCVQm}rU?7eIF)rlQz#;T}S| zkDDU0&~e-a63FN^N1Ke`+yL%j{4?%Uxe?v!#GC0gl^a%%-joSNhi=Hx(eq+U;+S&`Fa@@1PE$UPzM*eQ7r>_r@;&9^T|8jHMYXl7SkT z#`hU~qhNt%N5t;oAIpoW!<3=I-ZFS}+!*19z=J>_5q4xuktJ1&?ts^Gq?H}xCMWxbjzPlxD9Qk_L>0cH`(Z+GzVq^oEQf(Ocfzf3 zl6xVHWb97-J`?UiV^o0OOO>0rPUEfUG^EgwDnsl%$$mrV$^zP~Z z#$5T9V3GbNe~riJGKAiyza=jJi~b1P@E39Iu=*Fa0bA5J&+%W#E97g)nn~JNo`oy{ z9Aq2xNB$~K53phNMSkhAfCbt0{@yiFB-)gTmsV4PVs3&S0q9$Ks$mZp(2I6rax6k$S}jQBXCO;9WV$4Id%HV>U6FP06B+x-ED9c3}wu1qy@_{Yz3EU8f7CQ}8fUNcbR4E(RO5=;LRnx%r@Mm`?QTUg1HYU^S40y) zeeE|*g(uehGat~j*M|NAxqDi#LF4-sfg4U49oeo#ClF8fN zP@m|U-Bp)8eNO5wta21vH;!M$8qw^uTTBw-i#gC)&9mpp#UG zqN%=_@C`&|TOw(~H@Yy6KBy4;8WJ5DK73y6A*M_dC@d%3r!u7&X=>)ShtiWn`~@5t z5ix`gxR?cATtL`4sN*==n}>fEyEuqbxxn|McYeCmyJeI2M?b20eqHG^cSY7$U$Llk zfA=e;nvDxfi!QJJIefP_-CtWO`ImokPU(WZ@t0nzd*G%8msS7dC!Jp^Exe@q$3F^P zI=^J_>-bpD=vd5GC2r0Lr8h!5AzEl&li^1(Q#|I&Po9548x4-*aRC!KaWu+rT-3v< zLcbQ=dFN##|2d0|#&wPl-~6|cOK>fpbL0C^b3z}+ho@HhK#{0peK6wI#`<75H^)na zu|7atu~W5v(~h-2-l;!+%7*KS9c#-w^(Rhfb6us)V0^GYF}{%;YOFXEuL!#Hie*!VMmqEGUdkz?-?<3F`puEwF^~KXmeY~n!P2F|69iS2 zekIN>VohjEi$2q68Bc%4?+C)ba@`v6Ne_%^YPw4@&%OIU9;W`EtA2G`>GoHjxzNho zMlZz1*`F9MYs`pmQ4DR7sjiIXuIP9nhJQZ1lz8YimfESme%sqSS?V@@Gb+MV4oEgS zf?de21|cEuly`zIXbBA6xB^>O;lI+r(sYsj8ryptOYhWQyG_Lree*W`HL-_&EWJa2 zZ5t%B5mWgfbT-O8UBc8-Z!+zF*_u-cy!@&^T?ofd-v&S6{ieKMbjhfdVCfC!dz0YTeul6S!&fa^ zer>Z#fhirCi#LAZ?zb*#TX@lxpSzRJ*dE2Hs+EI#Q!~%Kbye1HGlgq%SI1&6 zVfr$}6FBAB@_zs;Ng#@C0oP*Zl+`&NZ90ZxAzstxfPJR+LP>*A^CLw+6f_zeVL<4h z%S4b|m+zPJy<$2T3Z~)n74y(=B9cqCm}#3`VY1Dg8y%cFrO6$0`IoIxOwpj-=9VO@ ztELg9A2!VzaHk&oYA}$V=k_jJY06c#T)42qEjnc@V-8QPH#Ie6adppR-x`cexurc| zPxjA<48EIQzPAux(B|{U+##!j$!353j9Hh@dYY}gtZnrpCX}G~)NA)!qZeHE#7gJ1 zy6(EBP>n~ncPv>G>$n^u=lJ)9o8))p98j>Ch+Uf{P=pNMft$_1P^~FPmF$uAO|~A$NM^was_1 ze0XYKq)Yu@wc~<2x-Pyrx!C6yhnnn7YgetGm&wdqziKUZChyzV&p2mFYg6v5X&1TJ zg5;d3H4E2K%KPdCYp>oq>*DJ5jg2%-K??!2P=Q5KM8j#qmxZF6W-3{tgBgkjReNi{ zJ>x(B^EX1E)vmfbT&nZCCe6kE=2EM^i}>z+4!6_Sy3fPkYxsLDe{baPNqR5hER~W; zm|>tHUK%md$oN9qW1s5i6P|ZCt2{NejmeJ69~-dakjp*cU`K~KP|LuJL~9D4&ang$ zIPWF0RtP*3G6JC=xB?kq`G`mZB99V${*39#&*?9JF1h0It1eF4ANs}f$xZigqGm#o zscsi*N(I|94V}IW+t8Yxbz4VOZLKAF#>UT%kz3jM;qrR|8!xU++Bw{-!2p_onm6Fp-Xb3Bu9Kb9%gx6GDo^8fi4y zLY6et=YUcNDC>&4q{)@63k=`vpW+|B`M=nA*mv|N$l)`4_Pm%JYcRz=JXjEaIoyt5 zH)PR3dnS=f@mc|_gDS>xzCgjF6dc`>QIlNGLa}jVi$NYG8LUPWL^4QG5R{{;wSv=w z2n*1{5wgi_5o`vNWY3V#H&5sT;T$Z&D5p4`RCsQ2h9xX!s==I`1f`xP(Kb*SxQ zN2Wpz<|LIBLexGyi#{H7W98)~s4&ZjaYmXOG*K+|4rQOE%FFX8Jh0MWV|R8T6d%|q zp`_q4nEHr*4jKDcAcy`+VHuAM@714T(hWPF)1ML_-*LkubnveLPKRD51ob6S*>2dm zfB62LHyQ_s-)M{|X2T0z)TpikG{i~H>2WC2ME4j&uuN(sT5R}f{bz_*V!J3H%!r>S zZk|Ro088`nPlB7G1+o7L}Y=BVO;jg9^4^pcHV{O%VwE=gCLp_f8W7KchluZ*2l<8b)v6HRR$)r$3K zsb$5@mt46#ms@`2B{#2NYlyP+BJ#20zZ1SGUnIRjT9bq{_B@OHo~>saemDHj?4jQi zT=si$7SVdH@VfkCnQK>Y6hN<>E6x@Nf2Tj9?~%g8-w|j1oI+2QQY`DNA63>7PL4(4JfOX|%*2>y`#BTc)D*1fwSL`O* zZ!IBiv`+scFGU0d9kr?c2sZ%Kd9)F*zKnD`XhCy@Vgrp=O-^kC?LEju;L*Y4d;v}c zHX+#r6{+!{3ez4Ti%0;Y>;ouETBsgvYv-eqLUE}$6ePk~31yXBVk_e-Djy-NtTUh! zVtJ*@;9g35O>X4W-kLJiDd!L}-1~}Xjd-KsmN25OTEba^VZ~7A@SU-Clk`-z*Y~Ir z!0}@<<*Fc`y; z50@i3geSZnq2yKRb|azH_-)K0#Q#!`hzDb3Al8`Z$a;jukBC&Flae7u9v4f1>_Qk8 zWA})I8!63k+?|e9Q*PPF)FPmPu@3OqHjIxAnh(#7<&~XaO2D*54JQMZlabJf34ts| z&ICDp?d6wQ3u}4#W&I#=IPor|g~7l0*$nK_ZTQW4o?S%ts6E3=LTRJnWZYd7Ckce$ z_R*ifPw^ksfA!K!L}DTcU%%XtdX!%Pf31_as22Df4|YL{5-1Mt@#8LV?bVH7cSwsM z*%0N$)S`&^gH+Dr%jE1agQ%)dRo7S zi|v9jWROy9wfOsBx;-@9$iwK-WC`&gMy##_vMLX&hgVgDR|hrM%pR=;ZOihsX{`m0 zMa_w@I#Of6vi)c#5)d_lx?HjrN_Ez+txl8@Ao+L*1WkzEb7!BSv|qtK`AvPCk9?C7zt zm-Kg>4ptvvr|Z9yR&ck(*YPc~hZlnW7l1!nQSGRwl0}4M3q-U=b0kx%v&Ci}Q{9}T zytwX+QF^F3hhDWIf*4|yTq1eoGv(pIrb%lt2Vgk(LZbjEW-A$TrU)6H=7xoJe(xt{ zx^GzNHGBQ%`0>8-2KUS@iodSbYmF2xd1Tp5f1NtjTg#qsPMJH!(RnF5ClG#y&0BJ_ zKjy0q_!^n-mL>YPoERrJ}@HYGXmgax&nlYmbhyp{dNo3 zAK-5MLkdvfPfHKAKlD)hp{0M`zyHr8+ke`}zJo)5+P9CNez@)M(m(Cr|EHyg+mNnI zYc!2HmifJCX8 zEEhm2LMf3Z=Vf8WR`=14{{x)g!Qk0xTV#6j7}4-7bu#hkr#i1wTB38ASx_d?BdDvT|Cv($dQ}e z_jca*Vml8TZl4b6LP>J%==^@CQs<|PAwjEaM3)nNYO|tN_i27$8O6}_(>S`E2Z}+y z{*>i$*Z|2-n(N#@@_4--J>_)@TxP%Z*5f)H(khK7Zm7zc#*d#G@PI^A%v zq#&91Tb%WBGpAjcXqTd>W5Ac1GzGL{Y2vERE)hb|WRL>13z<;nu2Nkh4JQi1-yy@} zc_nF~L^q4e)BmEUx@ z9X1dQS|A+fpfF7{2^sIuSxqijEWL;coF^3XG}oqJPEE_G0bmML&#c%SAiJx1D#(+= z0T1b=RL_ramu7OZc!9ZSE+kzdt_uRB4#}Y-{_k`W>_M?8=@j5EGh|s1h|+Y*4(O#x z6%3gaOPq4ZHt?p4RaK8R1@vc@?pl1kJL%dSJagsq!5X9G*(`Nxoo=%NP5r5Uzu6ak z+``rnX)alH`KHzSFIG8O)#X9Qn)|#}qcmbAg3^9Sgw$V0e0!|c0?{m(l6X+P?1NfvW;@SFFc>kFd6%d41Ub*|j8>e9|YV-*{2u+h0(4w($QcifKyoLxB9QCXMrgQiF=7vW{eSGiiVM!6{ z6T45pTwHy_Z}yzKM}LPL*zi^RnEjO(S&Fs1RPmubg*JJx>P@LwW|)EqxS=*-A|uoW zH7qEULGuHVq1sbH1r=-+66DBICqIV5v(%}oBvt$n3C@Ox4=uWW{GCheK57z>ecmA6 zV532g>94=|3h8wdY1Ch#k%E>OsnACB9a(CX=sSgsStne=WTlzlu2yZR7X&g9OYl~W z&D=?v1aH#WUfn*>e1{UcW zIL39L@k5E=2dYPLk|vT@1qSxyfqaY#{Epa%@+g0K5Y6*>;R~oBZ&=!Z(U)b^&t#bT z5Vv{_5jzAbVq_o2gz}T6i-8?d23#(a4?cnE3s+xv`yF?G4kA~z1J$f*NOev-}lMFTj~RP~}vfT;+LWIQ6D!#^cJg zIgN6r<`iMgxQ~k_e?FMSn?D%nkn%ZB((CywpfHYi_WaFSXKrB5V70Y+Rj|J=Z0(R* z+Re;#(I+Ae3CYz_<(jM5X2d!?S&s}rN*1j(wIQF+VfL7t>dek2m&+&1N!et#R0qu- zYt$RE*_#tHoeo>H*XgiiR=9m$cWZ6G)jh)<=$9nqEOjwSs+H`D!)s}IL!eMxu(76d}Ac2|qP#^&`&Hb*EOh*{F6D#;`_CW1~$a(c~n25MQ-Zb!({aOIWG zMvL94$knTvXqKJl()t8TQxM^&xC4<Z*{)9zOH75B7y#I+k=={;-X_P1_+_N=*?;io+w;OJ1Vh4qkqPjg=tRY)al z4mBoFSE9SD=DBqYCu(Pz41G)|=$BJaX#jvE=05yCJqNX}KAw}nYg!h2xb@aU)*IEj zB%csw{AAPZ<1z|>qsA$mhP+whjk;59!wN<88~6Mmck>5hhTgYMwh3GlKp^s{NrvE! zV^k8)*fR39DlS!Ipd$I%u&V`4pgL2OMn;PhiVq+a7J0A77D~74kCx=cKoqGW5EX#I z-ep22d?&WPkzyb01V2c-29718EjeO;7-w7xG4#60)2r z`z=AIs;LU0n5A`B&|Fw?)hHTeKq;h!8dx0+Q!?Gcq@o5WH$9+$ma;mnnT%tCGNv^n zkCPA$5RU(G!^^rLR&H} z*b8yumBjTpQrJ;xBW0NS{bjY^!~G`n%lq>4XIbI(*TJhqKP-iWPElO}yNj3A z(E1^Lwf5=IfATOLp0l}qa>j@{icp}nMQ|!4lWUZHE$!3$X|u@)!ch~7mO(*+&aP@U zR-tRG%1@AE_lUl3=;e3jM3}MM-F0X9Z5^j2^cyX6*!6y2s4nI9G!Fl!dqMsT zo5|hTn5y=(v$|(&>a7W#yTxib^VqOuj%b=SMe$s)Y|hF}XEe>z1$OYCm-Y?Rd%9X$ z+vr!%%dAzzctXF%GK+m8=m|BZ=@$oQCi({&8w2!v`5sw$=)8?*{_VJ6na+;S+JE-i zPc_E#)%Y>`6CsOxKKR zaZnY^tD5-2PsSIAqbN@SWP!6cjaArB%XlyZ(-xJQV7bCS&q=%drQ7d0@4|a-doi(g z*1VV2E1uS?<_^xAwKnnOjQ)Y(*&9||=^U8VzrJtb)Gb%#=1)Ig@_h28+irX5lO1PV zI&bd3d@>Z8dfVL7=FYqHjE=fBr}YQVxZgR1(`PA2!pKtW9@A&)jwemls zPF4=+jvo!d7&Bh<9-)k=fRAyunE43^6@;KdJpq_Zl~8Cb5r#RqWA>S653;(!!5vn| z#Rv2o|L0t9M>s!tU~q@UdGP^u2lg|Oa3VjrWAN;A2lPJ>Q-8e0y+*%}U?- z-*dg~Q}TmMJ{#Y%^KY$Jx^m&fC9OCzIH><|fZ8kZJZh>PNEKAV6bH{etq?r0su6Yv zM27McAdWCH*!LP$Uw8!#E^0Eo{7W5z6N_dOoIRuv16SbX+(xWo)LDpoE1CJF=@&fw zuD}j#NZ>M5a`F+9gY=0{o7OHg`^1jHrJ4B9wq=FXoE6hsrAMs2 z3kMpeFV8m>A1Zu)byLk=kJ93=x5zUV{Q1eD6---lzMCy$W*3U04&~3fbCzZ4GTGNQ z^Wwqzi>map%i?RBzOnz)Pdb(?Rn|6b5+mWZ>VVk-K*DRCHr(pHV_+U0fq=0r2p347 zLrnE7VTVAN7wiV8C=u>WM2UGHe;|mDKM=&{s?Zc}qCQ@OzA;;@=G70YBXAg7IR0g! zdKyTZN01chB1Fk*IFt5?QwC>|&~+=%Iij(at{m;SylNY0+kz!cYbWDUP_#BIa-<36 zh+d#2mnz7or{WTTiy=`c1T%GIsm!(@mzsRQ7gsSuAfF0rDwoYdw%5-$) zYp1O_r)j8oZTF)3aG`xpy=i z!Wf~#8(bv7Y(T?paY2HMR!0TqfmJwave|uJPXL+= zGUae1Z<#7>01QUQ%zdg=!I}W0my}vO3!_Q_PK5zAY;iw*C zohlD;OcH$sS%AAhasq&EIP`_6wq9=2aqGh&9$sNZCZkDtHF(7`g?{ zCQGZr-NefnGhMX`&@q&#^MjIqcu)iZhNtcW+Jx4_SB*$+FR!odrScx=lnZMk z`rsh!YM+mf4h2Q?CoZ86U}EZn!daO2!G|h7W@5TuDnLpQ{zS#t!_CMq&lG)zATyMnU8-xDl+#rz&r|`(V-H@X?Y4CZ)2I zys9li;xI@-NMHVd6wQH&wGX5>vRFn4jv2+>r~ES)7!fB(IHHyr<-52QTOm4mlEz;D z-`eXyd)>Uf5HJuvcD_#7z0_WN@MGGGif7~6JlbAr6R1ipKEk&Q9vN#YHJj)QNeD(+ z4Bt4#!nTa%?gCRFV+>{h$5x4Z$ruBAh`4yDC=(-2;9D7q531ykQ9|RR@4fpKN;f6X zJd#h1%tgZ89(&t3@%CwS)Hr9@lt49X0 z7DMjr$G6be&fa^J+Cn+8UwL;zBTHe^m3NJd+3_vaokx!n*$ltm2<`si_VNT@ zqrGVQ$G10BN9nwyEt=5Y0_w2x*1q>B5qx}W3+Tv_|J%0y!?cY{)Yg%4p4e7)gg4e8 zJa}a07!!bBml!;WTGflJlh6~AEpQ3AcHa4E@}@Ev7|o=zzC-d&a9+NW4xL08ie&h`Aa~I z5b*~+T_@y##U@O>-h40O`Wm2X z2^RBf))4D>$YiqFY%Zq*Ri|7wYe@ek`+_K1Y&N%DenJ0Wkw>)n^o9O_!|JXQFGlJ- zLt!_k+iCNdf2sd`jgR<|&t*=xYRqL+lLLctHO5Lg*_3L87!SmCKrB*dhcUIGPtk8@t`e8gva8;$9z=*K^)S_Vk-9~LQM9dJt2mhw#fJydT zbxkB1Yb31~`auGO4g$D&&T0er%#YS89Bms-iBDT#HxTMZeL&Pin&K6cJZqpbo0i@% zl2QHemW2i6#v{G*es<)3{Yir*&RcNf=SCRxhNW*mW@Bsa*PZw4k6=!X&&R0~&fqy- z=m%I6!EjiSNPRaoEYX_Ly3#z?1@6e_kzMI>19nEwP)r<{)$<6!N5rmj zVwUAdjt-o*yhPjy`7V{p@S&^rTy@o+$@wm$#o=`?oxWe4|G3Nhvzl@;WOgS z8vc++*v&}dvqE3sPp9(|fE?s20i0L}45L|P6JZxC6zt=2$kh(dv1&xszDS{sR4tQ= z%ew9QyHbp*5)+%CLKX4th#Vccf9s_CGcwvg_U6c@!9Sj#K6-aJe^^?d#Zc{TCI^>3L)$eK#};^5lU8(CAQC6Ma{B-xcb+k*q$x?=V9rbiGSl^#y(I zZt;$BH~*ggQ*qTp`rHSGr)Dd$SfpdxIA&Xom>`4lK;Ga$q`PC%207V-{MJFbbp<0B zB|9oTq@|<}fi|J>4cKsC!)EbY($V`5+|Pb8)&}X{&wF(Pf(^xg`cItEt4`LA5h_e> z2O?uZg^y_pB7gugJH|C->w)uLmFRANW2Em@_&_Wi*l>WojrM)+UGZBV{)vwVJx>tN zAx)TO<>a;|>~A7UmLxRu4QvLNSxduFx|#T-l;op*^#VJu8p*t;in;O~6BB zgF{MEDxDjlWkp*MH4@13G(-xxE*Ik2>7=bUq^RHFz)^5~DdOKfJR9-Mu!IY{rMLVM zE(DK#9i3{NS>gX zAp(nzkWt`eT%!WW?&VENB9|}3s5EY+Vfs7Q-K>9#S~lm#>)3`H_2l94Eqq;n_qtoq zKn*9?--v*XCoAy>!1+xs(2}0pmjFdaYGW9UL3-3As#wyPl@*%!;Bny22k>d785cf@ zbhYOz1S&lFD9o#Q8jc*kK%$I3rWQSt%9-ULU@es>@j)Ovv6^c{V2vNLV|g4$ zXL=wf^|IoHCNp$|&YN{7?;a!$6zOR_q5{Bq<-UsgOM?B`Z!MU8y zj`jliV55DYnh1*_*N9Ul=MGS0333MFpb}N#`*69e8WjX#fgk0u!zl{xN5w!d|3UJB zB4SehI`l!Z0gcMow~?np3)TXg5E1%O4|@+Onhwc)6+xC z7FJ=ELh(_N9+Z^lW==8H^Uv41Iqd*an* zlYTYr$}6HiQMbY6R`@AVrtgcT|ra4gKTFlLn zVAm!Jb~VSyD#GKBNO|K=J3_)qLx)5&Zzfsk+;K{)AZYEqU=+2r&`sR@%Q=BQbUEh*&PMN|?wt!2zE?C3FDLAZeVcSO!AG?bVgX{2D zv5~70fgOXL+=2M}A}T8LBD2t22{Y%ZK3+e;K$(nD_{dB3fMltLYW$C=)MGVP5L1^+ zQoZI;8$KQi;DI)Afd4&7)cYmxFSOGGaQR|#T?}1jZ2>{2hDDF@Kmum^Vt$MiD&uOy zph4Z^^YnwbvSRY@DxG&;sW3eED|dVac8o{x$dAa6peKSCP;ldiOmCF1YZ%8FBWg zx5IUpOIEgQJhpR-(&c~AXI361(s8?l^8u}InM!>nh-LVJDQ@qyj5bK?m=kKR7Q^$& z)Fx$LsyREriAJFbdAO7MB|J|DwV*2bQKZv@k>L_!Ggxmdgy1!}rVzf?A*1Yr>}CN3 zB#Ob*ip?uhsD8pOb3xpExZfWM`+w*U?_m8q_=dT*u=Vwu&wBh5g_&(OTlRoI=VFB%wwdS<0=0LouDekb3&R@zi zs2TOYQ||Y;%Ds42M?6jCY~jloeJP;;J-y?&^o^S!BSxyu<9R?d?EDX|{tD&*cmJqt zCHu*ECb}P9eynULRZD0xP&&Slas7bi(8xpZ#!B4eFmWgVA)tUs5KTZCLi_`91$>8d z9v;F#pOoi7pTo0hJWcd0Dc%Osn4|pJz4I$rjiEP_-Ge}sQLKji@j#9c;;Si?KkX01 z5=|{!wgM-`er+t(L{X}U*dJAE4ZDq8ZAd;&AU_$3Rv=-5s3ol12LV@5w~8-NzUA=j zttzja#2KDyQGsqmNbIvCbcOE3J7sI^HG~+6;xJ=;;NcJ(4GkQ603k*(Zz;9_cc9geb$EMrfZuz#kq7AcODK)>DIO4|cL z{v4!JwB4it20Uqt(WVodsz17$4)3N?f0O0`)f`I$128a4%mWyX@CzlfRH8A-AN5l~ z1R(ZC+fMV;i1?@6tT<}Ud&mt$_yL~VP?<% z+}oGh29Ig;wr!~shk*M*R&86eX4@(%nKgNiCwRW=Xx}P5LEh_VPbzIi_S)zik0YFd z^rw+I-jHhg2rim1$LTSKm=h=Ii@`(S`FjiGJpj=C5i^|dZ`6_rDyl;ri^DVhcO9nF+`LLxhAJT@1m+zLeY z0h>b<2zo@Y$|ypIb#oMcOfCn5)R7)849424EK9m(yLIYAoY6@u{RUf?;(p=x9tP@vctQN~Bnjo_K^ z5r()@gjJp!RHq1!tDzN~l%m3^N%I9VSd2gDpU2-n{;>R_d>U4gm~a)3a03SJ^{7=8 zsRBnLWqE^CkY$FMMTK;YdS&op6Ziwh*JQ+c7Xu-x*RMrLRrSI^(Hw9*Xl`^+;14?8 zC)karE>|h2*$^;m@ZQ5eXCb}=Mw;U9Bdx$F(L>(=X@eDb=EwzlUk z|NO7T!PRUk`iSv=Z~6ae?P`Ofy3X)@*98F)Q4tXo*AGDD!+rOA0f{J5gTzwXM6lK% zB7zDS!4DdnrY5n}8f(?0CK^qnX%nj!t+B*9Hcf2DwvOo}*0lNPbexRikBsd&X{Y04 zpwGGYS;fSD{K)Q}ecyBLInQ~|-RIuD_uO;dv)26Q9KCTQW$A`@o*9#zva0VXlVYx1 zZnw?!`Ddd?2HpDEm(7w+#(&i~I2kxGJkzWXgRU9djznBB+k?mknBfebfE5X{Uv@3& zy3-6CappF{*s;H_HS@W~jYmIYiTTfP*0QN~x8nZ70>KC4LKk!5#g9%|@tYenS%TZL zz8ig4;uf3l+66*~-Fxw$gAr%xqs`0|JU+pso4nyrFy<%EZUct4 znC^TGRmWb9?}|=$w^T(6Of5yBs+L4w$-{M-yOwkwbfqL#wYbg%Ye%J~SG8pKT`VjV zUv^7X#&}QDj75*d*FAKw(>=`XYB6mvq5Q@E8`~ZnR{9TXJnqKvdNVl@^LicGU);Yh z?gPxiF<#{DdmCsd7njlhxcyz+_jcR|Hj*h4dmWHoYl=Y|5HP#ZiMzI$lK43(1$WC* ziK2gIIEc78&gVMPY(rU7-X75G?!hQM8w;MI9Zb_tHyQzX`g@&lN8K?y#v#v2<~8|Q z#>#Zc8jrGeJ#Jv^gKo;1G{kM)$bsczcE#}TCS#cBCAwu(5ISr%-ZcAPft)a4+W?II zy+}9ZV`;k?UpF8vwk?L=jcrDc1#UO3}Nd`0|~!PSF%2473qo#;)hPu!i9lvI(_opgQ314DKUxtd&-+%t6S(Dg$Prxd5u zr)*7mf7qW=t5dsEFAq-{o;!T^h_n&)Bi0Cz(~5n=(&jUe5e5D=o{LH9u=h)~T$&W_>(1W$dD{hsItX=NtEW zc53$4?2pD*j(>jqYvZqY;yu$mm7X@w4$qAVD<_$T2?zOy>yp?$ur$nYSPU)Q*ntEwk+q94JoAXcP-z=yo*i(46@M=+0 z(axfq(~G?s-cy>ZkLX*z1YfVe-oGP|8F(S+4mJhPhSEceLnp&Y;rj5A@F$U)$jN9% zv^M&5^ipv~@si>##g|J8N;*saQaZD=x%B-R6*FEcOD&sQcBbt5J>Gkso#~ocKl5by z#PaU)zt7q{>tD0GXaBRJw4%OZzkT+457(5oj~MVo5a6gm;NSqisd){vPV*c$()gsn z6_>d2*w9*un4=4xl5e8!Lci@H>VwR+H+4692K%VTSsNupJ>Ck*G3p6cx_n4I5&BK) zL#)ZJRO-pl1Jp-Cucdz8N_WL<_^su2?cA_oL(z)WU2B?KmbJHa6fJ9S#i-48%-Qb3 zl|c*E^=!5}ah32gg3t0|#H=4$1GaiFbAPGT200J;*F!h?SD`1+1Me}b@ix~MF@z2~ zw%qE#>Q!rzdpVAVBFt8;#tH;AIE&wlTEA$`hi@GZVoOoF384k}D^O+u@~?mg`_*hqO74pFS){^GVg0`rcs^C`0lOU?u&~|U2Lo-Yv0LF-c-zuuGv-f|u^6tOX-BUMM z=3RvSy&Avr8vOn(w7LVS#{O12$LEn}AzIvk_L_ZSSmx}L`|S8_e)+JEJlIPSJOeNc zEXKYFAjRQh07s(z!pdFtBU2|f;QKusr!FxbXop%U7$*`Z@o;{XAc>MBLj==};nL6a z?GBd_*55FxH4UAr>3BexA!8&{vSch~`hOUa69KQZ4t% ze2lxUkuS*t`LcXP?uWykg;FbZvPixvi{)#wL>@FAdZa;?p-X?cG|37$rfiXwvPxD< ztF%eGtdWOgt#nAItdsS!K{iU4d|e)vP4W$SM7}AH%C}^*Jcj?2CuEC!Te{^tvQ@q- z+vG{vF5g3U)b}w^c$e&!r{rn*f$WiIn=9Fe1POnxdoavaldekLd772JvZTzchIIW51CGZ^)7R(>h3$*<&fc|*?0ujMyb z+zv~>%J1a&asge!7v)X)16Cq zNZSZVyK+doa!9*!NV{@K8)uGJ?Z!ab_>ja=;;7viq!Ukxr^Hj@De-*7^AXQSJRk9V z#Pbo)M?4?#e8lq+&rdu*@%+T|6VFdPKk@v;^ApccJU{UQ#0wBFK)e9)0>ldtFF?Ei z@dCsP5HCo)An}643lc9#ydd#{#0wHHNW38NLc|LZCq$eOaYDoi5hp~P5OG4p2@@ww zyTZf^6E94>F!92~3llF)yfE=1#ETFwLc9p^BE*XjFG9Qs@gl^F5HCu+DDk4iixMwN zyeRRa#EUw3O5Q7ZujIXYopMV4EBUYFzmoq-{ww*ftO8zVPujIdy|4RNV`LE=^ zlK)EnEBUYFzmoq-{ww*ftO8zVPujIdy|4RNV`Hv+t&3R&ulK)EnEBUYFzmoq- z{ww*ftO8zVPujIXw_e$O?d9UO>y#F|MkoQX7D|xTvy^{Az-Ya>pA%_o2{ww*f ztO8zVPujIdy|4RNV`LE=^lK)EnV@(LhUh-eben*C^B33F^`zzF+C&yytvzO0{|1%B6xsj) literal 0 HcmV?d00001 diff --git a/fonts/bootstrap/glyphicons-halflings-regular.woff b/fonts/bootstrap/glyphicons-halflings-regular.woff new file mode 100644 index 0000000000000000000000000000000000000000..8c54182aa5d4d1ab3c9171976b615c1dcb1dc187 GIT binary patch literal 23320 zcmY&6mA1(8T6a0V( z7zzkXUYUXEN9+9I!ap!DFOd#1wlTB=0s{G=z_>rwLFyJd-Ppy62nY!Dzg$rNAC#b> zW_IQ_KN{(eU)_(Nsd6JjiMgTUPb}E#|M~#|A(>mdoBe3JKtOVEKtTU^2nd*oEldqf zfPj=PfBaZ}zy@NZ@n!KN0s$!#{qXEt`TP45!w50c8!{TL10RAG)dniu*zrR^LTrn}O+tRb0xd~0E&>H($0brSGJ*iX z8bUAslphEzmTHiWB72`anLv4VuEY~_ za}WVZu^zT;R-~y&T~BYSiJ>00^O~gpl9q$zHI%Y>Lhsr-MaOrb%y%q|(42pX<4bce z&%S(EIYGx}q8~@4pX*EKdS?h=SI&tEv`GGM8)AScL0;U}brn10v;~p2;1NOn2Um$W z*U=i%VuwBRz@Z11qKr(qgO8vr*&X5{?12dd{6*l`Yp`?k3MDcih%qI+g!qV2n61L{ zS-80y9H-NmrN`sSUC*p$lut-w`?nyb*goYXni_zf3okCBA{zrCwXDq^$DQB5U?DQ* z61o2X9r4;yA!5sN`)f6pe9e8pguH(cK5%0-vMf9zrWWth^A{_9wXmH0nW$}wo9hf@Mt&V*5m2_W0Zac{Bwl*3N0W}7D6V5mO|AbT zMePe7b5d1qntWOB)2(kfH3+1h@`qdCj$7%?Ws`6C=E;z?vBmFy(ZuU>?ZKAjdKnE_$3iyZHlp%_ z77-FteGS2x>7s==RC=EgNc20pi}B5ZYP?<*;Yn$7M)<7;<>9ljc|Q@}q1HAXA>?XX z{-<=FYU*8Yx_bmPn*eq|(6}#S=KV{`|BZ*Xn#BSEOxT0n<2%3UJglMVh`FJxT)N*_o6m(8iH0h%=F{CzZaZ8j3d^x{KT0bRC__^79ko z=tr+cA_{hBgbop+gr}pTjdh4lR9OGJYID{f-h7TdFVsTYrJ)sVL)@`Nes|mRJSCBQ z1vY;D{cTS=MKu(Wy%|e~Iy~QIi?KJEB~oXKHbERbMSWb} zZ$4oLo6Q7!JY7E&nSn99sadal3PMV~{548>MpAHY2H1T`ZcmF;%7p*Gd@)Z2X$V%V z$1bYU`a7{N-&8b(7EKxaD_#{2yNI&{t3rygLIQh8i%wdtQ^A4QWPw@AUkIZjStyRy zt6gfVP}$xz$w}4TO!~910gWc?ujr|I`%rxo*~ZRJj0)|c2kf0tbH}jLi*?h7#a}r#3UcIh%=Rq+9Oy<}9gOY2vy$@K}ixTio-4X=M1@9qI z^=K!qz=h?boc7!Dn&OoiZq*aBh4h7*kXhO z>pcXk->0DSLp`H8gAy`9imj3RrTwYMLn%~ax2R;y6z$S#bv?dXh$n!f{I%|F6CUzH zNglJr&iX(OdhO|M-zijiorLRikL!4b&v<-I;cb2U*9AhJqg6Km0|C@3UPi3VuIeHB zEvJkk^d768V;-U<9n39OEzwHebV z^!;=ohVM{+SKmNmc(fHuOajOg)eZg4gP9Z?_0r_5C&wd<_hxoo_+<48kwZJ{Y3kdj z-euRxbNtS4ORoUDw~*0{d?YbybVf*Z&j3f0Df|p6wtg}#){z60vHIVDYyvXYiqtw5fLstI@;wPh+Bd5ldW?|#AJXDCfR%eUYew_;&(+g6-=ThC?S3>8w7??8cY@rx zXANRWBOACbA6cC_l4+aF!&NSKMmjmK4PZoF7UG%C5 zf)X%cLC&;>^$NdUhi>}OaeOh-03Qt>c;rBMl8FXlh6u#+T;)aNQAM7iYm9MwQAwQ$ zauN?iXC->xfF|9A>Yn3rfOkVpm+8&z?LmtUcZTECdVP6@K8N`=NVn%wvgYT?wv(~@ zRQi1syDn_w+iAw6*B2j_C#*4Oa=3>>HsxLFzfc-lqHiBWPsG=v_Rqfna_4v6=XxDj zbWvX=bCj4jf>-mGLa)^qT)yEMN*AOa6}Y=z5r^W#5+eB*=NMYFLlxp|l;Umkrykmm z>1Pb@=d7ZMXh-p<@vNTD{%C%$y%YYN-VTD)5%>5QvQPlpLYJRSmulc?J zubo~#6g|MIS#tM^y?0~C`jU2#a#T$VEGW;6HZHFWLEd6C6gfhTw6Hw56Q8*V+~VWN z4AL!NdF6?QxaUpsR*ZThZ22BrG(+5-Ud8j`|8n^?HPZ7*MH$Y-GdTEy_<}Ip%UH`% zC_ybkuvZT`(*5-7zTSgt1y-AX_=4Vq{_y1PK|t=n8Jsz8N`x^1R#L(Hf(SZ(R}et= z20=K0`i!{GTB{~I3$HZ!fZ7PE0K3mgrlOj^=HLjmlzB{Q!INjU2`4JhvkVArhWI3g z2BFDRMNusx)0QK>n-{_BPLkO*tH?}~b^*t2 zL|B8@3a#it1GzFLG>-jntCpno1TF0OMs-3&ICPgAm$awK{?_0%(W?W=|3Ym<2B399 z6?sOv=odFeFq-4ZH~dK}*A#W0I_F%hOcy3B(B=(oS9N?rZK6R)u8SFgYl67%j$Vzn zT2com)G;k5ej>5&f(ldAjf;DQ6!5hOSn{C{3@HGgJfyHHbCwb;JWINl)t_@@KmMH+bk8Q`tU&fRBnQ(#)4NSadxDOZI(w zdDV`IZHTev{l3e|YJOjG)!*{Qd3Bbc-oK>W2LbR{;`&r7v=uuYN}Q!j?bR6qQf6%Z zD|U^HaP=Duw&<9^4wcHPM`Vo0d8#?cwduvt)W!CY2}SzBBsBVDmS^qNq)C$4z-w!v zu|}GDNU(nCqGP?m2nGh>so7Y#2jSAF;UD3l zTWTJlAQB4XoWDz=q%Vn+jEY#AwT@9A52;uB*W>Xje?f=`^s2DJ+s}6b zZHctO--vJs(vA6u2D!C~MMV%ZF_OWKERqY*L7bn~pu>emnX~};w>xKsx+HmlModD* zRe7jxvS`Tr6uHz_O`!|yld+VyK0FQd$icoJ&6I5J_C@tYl{!GM>wg8ezB^sMFG{SP z+~tO=8DM|68>>8kL{vLa+9stZVE2&^q(j&WrimlxADG12>h3l$)MnnoG~F+Q9%u&_RYNWV-S zu8Zij1T3udO7yF++y7qK8?@Qy;j&>d29gBr(=CZ4lKGZq^?3#ajS1CkdX7~BF>3+> zYZVG#qpmz`T?l5}q@jYe4}&tAuC*{c-?JynbwY*R0wc+;hotR!1CBsHEV}H{pEV_Q zQbs{v@#pEsI<-g|xh#rQJeXH}di`N|kNqjL$UE~3So5Z0bsl-UTxtBvq=J|gu+RPErd8o zq%Cu)1CPBz7A=EEzAUR|YC=IU9%hvt-M5s$vP}yYbrS8_xEfnDFCI~k&{z?w$lx zkHl$$>l6w9E<=%h&m}p0DcU+fGPM`d($iGo+S3fJhaypcIE2yU{5H<0HCgoFK{GLe zCVD+P9e_etX_H9_t6xc?c?>7@pb;TOf6%r&2oND`VL682Y@H zo9cs|v@$?BZbm;;TeI&1a|hDjryghe`LAHHYtRh=V`G;8&hH=u_R(Y1pv%n=LH^3^ zFkvIs>V~3aP^2c9bjt$HI!&KIsHF;<6GGV<&cs3&h&!7&F_0TJrW*V^F`?h4z4b9P z)shrVOIq;gnBtPE8xy|c?B+5Qhe9v=A{q0$_8i?gn>U-#3cMhdDV#r)gg$jBSHuwk zk}gryawT5)H|i8gP1CW0tGr3sKVvSH=C;mKYmExi&<#lKQbxbVfh72pcQ7oRvXB%= zj1OXzBoz0nqSwe)?dUE|N0dA`Jm0((=&k$p`L1c)=>Mo*a}LJx~+>;2tcjSh+G1pg5Y6PO}pj8+;DLXc4La-kzxi{dPSiJ7 z8JC>pyci_t`xsI3_*zD$W!*$<4tXVP|Lyd;LAI{(?h2Cw%dD@_;lH-jHe9S+i*4E z4mm+=yxP3;fjmRcM+tj5WK$Q-9_(!w&4?Zu{~+v=o|o`vvKeY_m&uw>iUOhrn)3ws&_6vxHpM+hCYx}osCc0Y-Tyq0z_HH?lw9s=QM+-Q{gQx~FocK9j!8!mtbNX&zBR0Xt$l zvErya$XNJ@m2B@ie45(Z(19?S0|j@Eej=zw0gE??YVlwp4LSl7VHUHoo|LraFf00W znbw<}e@IUzes(fu}n<{VdSNo|T`)7axnJ2E3 zGN-K>ywjN_qvqSYS+3(Tift}Ac+Th~V)w~#F13j;D~$iUE^?zyrm7R;K!FVAfwf4+ zgEe5#q65&2_@2P9Xi0@IzKKB$Mr=t77zjDw^ry*`L~i%3hjv^6l}?gMTjnmHPNyRD!RE? zVzeC>gkFuW>V5P|ms&5GT4O@NM-mhCx+a!f0)LQsDAs{!i(cE9Ov8j9Ot~S$SX^Tu zbvv@~cen9fE3YI>r2~|YyQVnWpZ-X~m^M6OE$L`m&MG`G=33X8DprYlBgvrAjN>#) zf7F5}TO}Od#i%Pvr08HxB1L|F7Lms;vt;^z`LYoE^HAlcM$*80N!_Nc@Z0C)>z37! zB*8pC&7s#0b$L(fb6zzb_{hxyz+_iYonkQLn|M^r48oOlXXt>e7{zFo03wLhcxL@> zruxmZD;ZM5U?3RR7ni`br#{#)H87#K@FBbE7!;=-Y}c+8!h3d5JExlz2JatQJ+?rH zEiUGqC0jaoW>(Evnh`H^?>C|E?;wdM>7y!8D4dVkC<+|T0zP?LNZT4#$T22k5m50< zzoALNpZ84Yo=WEiK^k;g##y>nq*73%RqJFJOX%P{Sin)USV69lwgt`-QDJjC{IgNf zBW4`*siNB=F5h|FpHc}mY9&H}jGvvlX!|~~dIc_J`?;(WsSic(jU>39iqS|Q7u!DA zY&kA%G@cdsQv^FWgQ+Nx#A;({7tI>&nigS1N0T`xz+mg6@_{zT%;E%P(``j&bsETN zs(q(bWF8KI1M_eY6S%3}4I-pbgJgDL2EYIzPp(Kd(4_CqWI0N zt8t_kb+H2&h#4kT$#q>Ac%Z2bj@0N+O;y@sWv$8hU9Zv@p#uT7sP~{kG6820-K~jc zzx+zAW+=CEi%kufkYzrAXi1hFg5D^8VfWJSQx~1y>x~0bBV$33&FY`a087m+i@@r# zv~L(PphOgimWm81wL^lXk96(eK$#U=hQ}pu<-Srb@X)RzEK4@vVL9cwNBv&D7`P0@ zqV@&7+T19`yV}oc>o1R%dLPHOtgykfkQ$mBKeZU*==5=O;{`t7RV`&nOFus5HWa@{ zXbhx+TZxRv=(Ko|DZe>7Tjhggvxn2ed0umrYSl8cq1^h1GLxv~Ovi$ld?|yHWQbL0 z!Ivh5s&TPz0K^%VfE05%mJqQKs?A%Hu%Xt@^>Aoa$L6|fp<>G;+%>slePPEnR_yRL zj;yc0lCyoP$Ic|g#bX(o<$00nsg*!S33aGHMx(FL1IZKmm2(3;)8v{BEh zq+0};_3dYnO)g&8rn2p~Esgh&5iy4}Tc`s#l(NQVP*B`-s(Tsgb%=E*x!`vNJk-`k z+fm(7Qcae_0=zlj<0~2F)s}a7tknTT`cdo_)g;9@CX6}Sx(tZ-vBXh9eV`-C^l3uT_&kk_ zy!QGr?i9qmGaJ`03`VTK^)eYd43pD#6!NwJr0B=zjQz5pDVIxqPspfGxc527cKuN} zM+02tzw?((Ojfsh0mh)!EsE8yz$@B*zv5LC{@~DSWie_CKtd_%3$Mw8a()p(IDD|g zE`aGjSXm`BggX|S0Iz8=DQwWq7Y>nH=l2gF6&gHY9=4{U@)*&>a5Lg$i6r`O!H}dD zW;VLr?c@ISTZz-X^w-r)NsJz*7Ik*4Ly0i!Bq{Zd;rF?m8fkO1OM@>WW%j&Gv#v`$ zQmZ$kLeIBScr38Jb@l%c_PQ|;xB~H7qh?jaoofQxl!Mou$divTfpW_5t{jt5n6rPK z!vRqg8v?Nc`M^e6lM(@2!!NA&BnKun1vVjc1z9YJv06oEUF=G;UtEZ%aSas1z8-O2 z9BC#xzszD?1bF!myHOXw5=A=9o9-@Lhm!h0YZ-|@A8@Y(+_Z-DK5aN{$p1>cump2t zD5Y<$oDGvcGH&@I&=`_@&z9%lM_#_W8iyXJa<&`Ydn;~#brX*PwN-j%3hf05d z4E%>Bj9t_c-iGDTJ%p5oMe%gVzvc6bd`PTb9cQF~$q=bA787VjPi04Chi`i>W<+{G zV&FRA7KPur^W&w!IseMOaI{i>RU}bnWQwl$BQA-{N7}-t4=-KVk!vbXQ}zLtKK~Vb zh}Ni+HS~8TjiAhC5SP%}5)++t1N`_`^O*%;^P^`Rj#KY=G1%z*MAySF&MiUH~wJ&BDU^kXcQH6%9!xbzqRA z*C;FT!ttCmLLmGAVU95En90d_(qX5~%fa`pstx}K4cq`D|L4WUM|^?pXIDSM7j{_` z3G3~Fb+5YFcta__mAzP+vqYM1(W%@8)d!*dz-)tf@tMWp!rn*|T0x9DwQmg`{~HF^ z(&{06L_~x$VO)QgY!}xSiz9L|mX(gredtzS?t3cy_RjmTIU(u5dB$Pw+b^CLxKo!Kal-ql57+p#JJ3zg*_!Lh#CTQlhLZaSdUpir$y9?7cH^D{5SFz4E4#R}~cZf9Y7m zo;9Cm&MV)C>%p+!bv-*M+$WJVT;|RqRPchoQ_7BbK-|yWM-<~FecpFY< z*+V%yqBEN@TuW|VvPKxu;wzn6PE#vLx(^m2Npl0_=R`(f{eE#>@hhO=C}MNbxWW_v z>i*?56p5poIt)%$`T(F>Fbvwm_u72fIj{*&-QjYl(EG&}&x2XCp-|gm&6LNw(*^~r z(;e^7)q{$HCsydP(lnZ{CMFoZw`Di*O0teoyeuOUSTp1qVs*`Z9<21;EeAe2nsvN~ zRC6*s$3cgHx807}TdF!K-J0iGN^SO{w>QZ;&Y$k3Kg?6j$YHFGxQg*a{%}-aq4xqy z&jBywOH07(H!X%N)*9k*pouLg-u)|*fP*&bSExgq7b56vts%pZKc$!0Wz)kTr{n^c zH0~1dFP!u<3h8{HY$Lt50id%$jqN@8k8{VALlSz2UVh`a-#R#>zHXSNNR|{7e9pN> z7TX5KSq#wFmVO-1xo)>HN)vR#Rlnv;&}%R75X^KT9xE{?m|>iz_BH-9O;l0+ZPl<= zgateSH#Dy&8cL!Z-sT5hq(D<^FoqY@mUzl=C-x$j>?y7nvAexvXwZ#MsHgqBZp zatbN4V_H3K-L2vU@+EGATIm6Ap`GU7lnAV|6g`8C(61y*zDel%2}VNAy1~`blPHN= zu~bPszDZI*Nw!P&qvtzvpA@&tGdJu;DIn1jLdX; z)t`xZwPI`TdB?s+nt}J71mU}hawwEbPnX$OL8-5nO5zHu%kT?MIW=*XjkB-H;p1>i zcVuPz(G&BP?D09Rzm-PH5sJ;n5|jQEen*(AWy!9%8%FrobT2yz?d&1r2KSS&4>U<6 zI`!cdm9dC1Hqn|R>+xX&B?|~3hd5zh)13!mfVsLczdYF0Z^iL|oZ=M%0c8`h0j{;h z%1hkP*~06j7+rI@eA;#HV5_3yPVSKp^*V2eP_Sfgqg3u-*%?R0LP3RyTYh<}z$74T zm;u}KQ$iP(LarIp;*m~l_iNZU>-f~@+~!>SGMv8xF)qs2Y$b}ymmJp+*51+kk=cjL zmrRQpnwbhoGj^9~t(5N((?x;Acs$~9zAnWpC^CsfbL2PPH_JB*;3Rr>5>gypdKu}@ z_u^!zU-oM)A~Rv>w@^Qe=A>t8Iv^I5(_hL|C*0994Dztje1-tP3-Ei}#z%jPDdt{8 zyj~NQD-NaTJp#iw;$eW^b71W?UD@s5BzgyHwZ@1vXRIB(t^Jc6R_Dv)Hs|F8qoLtu zkC$6KPc3aY4^Z{pf-Y8+AhHwBfE}WYF<334Vo!l}AXb%trV`AC8!T6My>xRvk#pm3 zHHM+JX=1+RLngN;k-3IQ<#A5MJ7DB2=>^LqDb1%kc#Q5A6%d%>IN;UIK4n-`2>D{q z6jHM}#0~z-%3!K9@Y#+aN0N<0nV7!}Yjdma*li{=yZCa;H1McT5{GWCXe?F`+{8IZy5ljQQS zrTFrqEl5LQ6y%wNh;`4Sr5J9RFfaH9Na!?n-MFD%$2Vk4(|tbc=g}P52_RgNSWcn3t)I333gCka0q_DoXC$EE|u?la)3Hi z^Oqsl%8F|h!WfxtA3&}E0KOg)%}(*;8p7JP~oIr7x~qr5ZS zt}-eG#D;|kb-q_a=YwMke!SFlTUXIIIyhgBr@r1$`M=v573zGUZ&Z;ovB#T+9BM0n zr7D53GV;cMPnitw@6~l#XLgD-r1|n4y?bO!UcEc(qc7(MCKr0=6j!>Gfu7UOSM}Wr zrxrvQMB^yRGbu2{3OLrjP=6`>V`nK;{YAu2$`B8FPF$7gZq2ZawtwRV0kK!LeuHJz zBRuR2nG8L&T7&sF(BmF^9-`K%l-a6BxnQhEsSCcMv@ca`7C+N|8~^)`NY6R>9&v-F zrSt9am3)7()aGkIp=6JF|$3I0`=vgS2}W>J>gIe0La)`lZ1P z{l;udc}QmIM(7D`(wZl?Lb}i=W9(rVd}caMm3YX@2^XEe7&6ov>SA_Ul!YAv^tDYe z*R}KK;n3W|(DgTksHFp3@6t-fBvNI)YrjgMY^JK*K9SzP;OKf3rVT zZIRx%tWtOEFkX+LaNh*i3kxphn^$o6AR{?)Vf=48wJF#hmJAL{4=%^PHvR5{s~IP{ zw@K5SuH&}_b#waDN@Dr*1#;8 zj3>L`zy2mj!ymgpko;mUZsF9%+di@q6&^JI&CNM|2-W!Zeqx=@JCWw~Na&^Xr+cBx zD~Z_rhQn8JeQezgl~_%EHY<}DHhMelQ2W>38M}*g^5Ct4+hNyYc-PQrKYdKg5LHHH z5W7c4sF^;~J5~Mpel;s1wg&NA+sZYw=yb=+oocgx@pdsA=k7k;S&^0Ye2PKV+jA=J z%kv8!s;L>%L)sb~z5JD`X-KkMJ5d1~ffCHpybzHPuu8Wkh9i;1AKMAU1s;ZClWgMl z9P`0tCm%NxKJ+&MOk+0dFd)syx<+DEDBOC1G?twC@TmJP@Pf+(*wj=;G#0iQZJ(iJ zhG-xA3G|5*R@}e@#7hh_*PQ0J_Ka#hcc~Q+8mb_($57A2Z^ikOt#!vf@PA|k3?1E5 z^UZ$&A+KqZAMh0`O@?fzgWeM%dCVoQ%|~*CFOh+?GLu=z8cs0Doi&=R*WpzS47aux zHba&$jRt-gFb4(L@D#uGjmM|c$++VCtQCqFUas=KKW6lql}beIi}Ay+xI^LtKc@0l zdkQ#o-z()ZN*r?{x*<KqloOmbT5w&V zwbjn3a$Q(Enfrp$2j4p_eha~MoJ&}&iUWxSZ!8q_P97wWkI`RGWaL1RonK|Uak^P; z{w86F#atZuy~}Jq{ejUdkdpr)fS;-)D&h^{m;kRv&q0P&gY>_Wn_t;WSnIeQ`eb z%#)mE*~XX(4i>^EwvF2`&wtc>49nS`qmL5rVz_@uPo?s)>dW#p*sb5eNQ$qmB5fE7 zIKEk*|9H&Y!}-D4T&BI9rH|YQxZHIugY!WQFWiyQn?n9k3;PL8)U< z#A$~V3iae6z(8e(o%*Jz6x-yjLA3G>j@cDD{8TQFa@~$UQzl;@bJcoH%=3~W6|DQs z(HWs+Dv4k7d(U{^^k~iOA&FEyEHm?ov{QGSJr>~ zNBu!tDZKyZ{}g5cj*I*BSypu7bHuIB>1sJ{JNP717@@1r>7Y4r23)bUfoFRm^)9*) zCp9u|gQ?d{lA>+D7QCSr-=sytp!RCmlefdPbI3o?<*$WGQBXkp!Cmif{c*L*AGg&b z?7DWdx+ZbqK6&wh=w7UbYfJvH%6U0zyA-;}t7CBq?(%dq3th6bFl7)PLYI4xVL;II zyHxo?4$HrM`P6?8Tvl|24X-t54n_i-h0-n0Sl27fDZZL8HpAEcQr6*yVHCb~N7E27 zmK=cCh>pD6WTW;ikgkvgiM7ROCf}QC3cT(BH$oGu-0t^8PgZ6MX?z=8Lz0ne4T4^V z-thAcyiPMh&#zu3J_ES$FBkO~$SuMt-s!u@48@57H?*$e8Pwbi2Yrp3CQGtR8@!yj zUk8vkyy#dDr0sf^D6wod7j5Ylf6w`wCmvcUyN^|w?dyUD_KL31 zE~V1>J!2e)z`E#xwN&7d0=DYa2DB6pQ4$wj;@8aSM@4AZA{vjr3qxAHqrY=7T1`94 z_r7;6x{PXo9hdnJ!N8{tBM9uaKE8=KN-T_n=P(rOra}Vi)`j2v%gIZ{7+g3|lAtj* zB}}a4stt3~a*NENyqPR5c(%njgkzR6v4J&RA53RN_zXRj1VRWa@ngnMMCvLZvQ@+s}}=U?P|DLxeem<(Nuv7p63NlkA7!CE10D3wO$!ANw9 zObXX`YL=R6%2TeGd1?xrLK$VEwP`qN7HPlo`MM}dK3I_H9Mzu;W}$)%JINEGUpF90 z#}mTOLB17SWhL}ZMRGTaFgmU`2O4g(>;@kprlF*Cp)kpy38(i>~14$R3s?6^?3 z(HgVQFov4jM7QWqadph`*vm$aIIXJNNcy|m2$G|ntBgb!GwWC48iMztD|o=(>;15q z{$%3Oyvm9@O`4JoB64cJ6IF%XU*;BiuoJW(Z#j^UH$l#9HR{Mm7GhSUp-f9TbS(>+ z=TBhELjbeJW#KE%-tr3Zh`nd{*Z|1O0F`(MTCf5%G2HfRAaIr0SmvO)Tb5xAR`)IS zDJQ*_aT_PknaBS3@{3I7may&O+zm8(y_ea0+%G2M5N-*A7TFy3Ev_pPhhj93^hy2p zsf~STscg0VHv6)-suJJ_HvfhYQrC_Zn#OPKnOTJx| zt$bef1E2v24uA^CoX;uvbNr#<^;$Bn%#1V#=IB2G9-e7lqg49ji0~i?uStqONO;%fa+^ReCL3RZjio@nXo^g1nNPbwp1HNQV$> z1@gTfZyF)87$l6~%5yxJnEQ+ie9+G%;f-}&?6HbOe(kPIzzE$iqX`vfok4&ai`W-d zwC99WD{QBt=6MXVD;D962#XX?i!3ihIshIg{q>fXgAMys=@kLkS%9d+mfwd@#_C~~ zWK@5#ngAyP8WOs%@7M-tVjQG={`OIT#6O?~USMV}Aqz>h#^!wFb!x$Ak5eY`gw_Il z+T)(XzI$10nIxlz0YQ2v4bhDugbSQ_y@s>>rHp1+Svi2@-tSsqlpIzzPTyUJ4&6Wg z8t%*#w>(z0UiMXQELXctsZ9~k5wCOwHVp$8E;=11PHAtA3;??YDwCu|jO0#YA&u$Y zH5r8Whl=eb)AhDqcB?eTs5~8M?tF{1{8~NvkvAAqv1XpE@W8WAi4NlSL<2eyn*gM< z`9H|9_I|T^m{J0!3b3`LzciFAtd2LRu7s*s_Jsb0!7S+S7aJc*lt;`*gA-fKO8ArY zhA?VR7)jaRX;6nU@n|8Tf?%{mBM3tZ{xr8|dm^KZpSP}F*K>^y1+c#*N_x*PnQV4j zHXXs6C)_oV)=7T8wRg}#7y$*Oxzi|WxACj3t`$g+Hqob;^h}z0MYNO*)*)W%TP2K^ z8+E9AzoFgl+*G|4FIloWVp$TG!&6mGHAR&+;NTh5J^p6y6{5nltCkJrWQ|oU6qW*h zPfOY$qZTp;a(A%n4fddVdJyiB=7!MR^#1%L6Aw9d{;jcxYG!qJqe2pMrVyVhg_AWH zCaVB55F%KKa5^A)lmMTPG=x(hh32&U*SA$xDMyd3{ZPxizi!QSz5K)*82;WGBaTay zHDeWU8ME{rnLTO@q8U-xW(Oe4ST5z)w)yoW?X}$W+~i-yIXAq7T_olt03# zG2Gu}eml^<1&ha=qIj=`nCg>Wm_0+Cwd6oS*LRkQkSgAw;gvpLKW`3noP`D1=r5(` zPz>bAt@<5_%*bgTP#IghY!XJ=NFJ98zDt@(K^*}B$ts!PZjYpvq%tq5kYKLcJ@r)h zpjGeWgspjG$}U5I3;E(wFu-T*ttBj99nkVSJy04B*>3M>M=4CJBW{W+wr zmo8Lbm?dVE#ijL><;n9dCt|#Od|9HFF4#}Y<2rV})IKejs~q4`MWlQNc41Kjp$r;F zAUY8dDHmc{hLF%=Kik+j1W{WEZP4aaE0T_9G2k3)50J+n4@!F~;6Mm#3~zA2!(uNW zD?3~9!k5Ezu$*P; z0Z-5cF&^e2ZT=G7;H2(U6=DL_gI^{}SNj?dg8|^Sxt0p`cq^jwVM;7!Xjm8d4}Ns& zKcd#kpeC&YrVPU?^63<(P>{Ui+6jp;gFDhm^1pecu3C8b+kR_Tdy{IMWKB?1fmzJA zRrWbi2iAWJf`OWX5*Mgp>n7+MnqV+8M&DPEmPa?H%ZJ7^zBIqoh9?*U3kCchz3T<( z{o=DphBZPs)&O&+xL<}PTrSUw@BBJF-j`J7B@go*T)LO-j{0ZZpPSq}+fSEg4@}1L zZ8|B8jgb2gyHh2Popw{~EdhN#pk1m(0#ygca8F4f!i2@Brzr~+t!U)sEME!yD(7c} zHIM`C5Sn4OHuPfASSw^KEK{5G&ZKT-udhQ|yIrv`02n2nEE6 zJaaj=cYtkxDp%*vn;v7!mw#(ERHUI8&%?XwWWwd^?J-?@A*9kw-cvd2{8XJT$}8H$!5 z(CR70IjoaC>DD~Sdvbq8(GW$Ab&QVqs>5qM-s&(pM zPqqe9RFj;kYc-8w?^V+V%7{u54k`7Ve?+hh+r~`oRnKXVB3p_X{b-SP*}HtZ{G!PA zYJH&DPN4_-LI0Qq?XoMhMUDvc#~1H5z9hRdmx!A;m8^?6m~Y-#b1hlP<)Eq8U>?U? zbrG~tojEl{f3~|C?x{5NaaOUOJ;yJ2hOz;`4;z|OgBGHrpdB>_F3<8WI*%OHZMd3j zy2oRMzZ)xk)fy^F3L0R20hg0paZ$rdG{I|!)H%|BW%n4OCnFJO{@5hlKEt@{ZF)bo zm3&_P62l@ToZ9vsZl7rqgY|j&J=M}0aCXo$QWJ`uVjhB(*uS+H^UDM}9(ER4+JpW&Q9Bny4m*?YQ~L|5@IZr?xwVdan$7a%9{gv7nROdai@`14 zG+-^|Z})4_OtE~I#aE~AS0(LCtNXU(!?C{8pLWYD$$@TV2HsDljoVJZ)B}69$9)?5 ziNy=R_Yv5a^;THLpxNLO zy{q2MTR&jkfAcY;d3}8rjNG3Cyi-4GYlGzJkoOXtWoKd{@;N{&Tdn@M?Y}BW7UX`* zGLMt1)|BC45~;O zYEbYSZ2{~+yv)QlkAVg?M_pjZ-!GCpjqn>zMaydQ%*lyE0`=2E_1o>1!sJ380i_My zB})!KN8vNL^sR*WbvXhjt`v!TIljZl+nd*r_Ksa?e3=XQf1O-aR2;mzg<{2Bixzj6 z!AsHN?hb=%ahKw5#bL1GFgQgEgBN$VL0hCa#pd##a~|%x_wD3M@@21YV9+3{YvzBcTXYf<5#f zw@nazWj_=%=H(>O2QSy@P=u8`{8`_bk}x;!P%>I-jlqoScuG}=Yua=oBl+#ICF~F+ znS@$6yzx^4vw5R$n+4Gep@PYrOxf{U!b#0SW0W|~0Cd`pgH+d9 zHF2Y}rq%oV6;IeW|n{J_U0dOcSD`AWh!D^dDYCb*c8^ladlx6e8v=7}U zpGCJ-DErivDK7O9PLYZ!KW$fh`Bl7Ghke)_A2^fB_mP3$@dtVOu4PdD;J9^%pt#r7 z9aUCSF@MAA8f69~*msmp;gomRMsbEyIuir9mRT;mS7@#2U>)4Yq%WOoTL5&hULy8K z>kDnMX|3fn-RNuw(0Sen*8dtIY+Cz>5U7I^6VXeO{2jLdd$q><>Xl&1Vu0p7fs&1| z$PbIJ`zdYzEI~m!7&#%G%tX&h5*}N*sl~^UqaR>nhkNBS8AZM}wh=ZX zrjv;)`|w%_y2#qZAId_YsddV+wJ2*du<$W+5t&FUFZk{rEi3ntr&SUnt|%1C=Jd5_ ze_CF4u9zeMdmT+erqTwwyjqRMS zXmyK_a6D!#O9m>R+q5u*q)F~4F&iq;iKuj7YDjg=gR!K0M@3p&cI+#a>do7bc+EFf zp}{hAArKj;X%SHZ6D9Rz4`|SSmahv#VAGy11cXaX)Mt;d8M1&}1|-hAvZVNiXA6o< z6cfy5!JL;QBlt}Ru*oAMLs~|FY5`ga72TPzIc9tZFpU~37kdem-*}k9(J*PIpJJ^J zsSU)i+YsOesy~Wy%t%w6zMqz(_qC;@@v>^vIJuyqXhxU}irkNHR{VlcZHy_J-_{`! z{(i{Z^`o?+;-T}NH3_eik^=@7nJ{&KH>NC>I8$+d06Es1h|Pqo^o{1;)^}_EW(|57 zyJj+53*y)m6e5F~AR#?Ia_O;t0+cCf@_;lqd9@>cWM%$cNkbgsDZ7Cp`OsmBv5a=TQADA0^??l-fO1^j=fqzmv>$Ik zsF<+b%&B*pk!HX9Wifnau{En>S<+**we#g+tIq++C!fFshl@IZ%_AS&j%yNkj=w#j zV1zL4>BCBv?8m!_A8vU5w_+jRJAUa*K$Sh=>u;o)@%gZm(Hl#>>H9yA=VDeWW`zerl}&-1icy~%Cs2WRZT1JiK;)SUZQ>Vwq?HIZ#4y{7%`Ht@uU9-2mT?U8mz zC94OXy-c}dfYYZ@TnK!7OnYwUnU#=S)k-Tj1Py{Y_*g>!$igUn_8Hg?Yd`YAZ|zO)ET;+xY)CD|&4M8hSGJ5rwlLozN)`xJkphmTWhnkH7R zp|GN?86tSl;KdX2OoQGhRYBxMNYX@MpSn5D7F}DSPf1*q`Ib#*a4Jg@qHh z`7qyVkKaMCcRemWNY651aHvi)Dt;N!*0nRH%gv3csv7=?{>O*|2rMzztJ4FC53iHh~I24S*ZN8u3B45qTO2k zV#a%2-hio? zIFEIohf8EYWRDv0QIK6XdRv9JD+t>+-4?eH^&08HLs(EaIj}>ufdPG-&FK`ox(hP) zSX*Zqbos^?mzT7`kU=2R(_sFto#;e1-jS!3{wMk2OMcoJ>~6zIk%mvT-Jh7Kvbt$B z8|rO?J^g2Xr^H3M{Vu`P<)l*|Vr*E1X<+$j`p8kgt6ScMbN952xjmdzc;`UuBmU19zH1 zdQm<7)we%}!ruutZS5wmd;bx?EJ416t*z8Mi{3Jr!!9It;_W3U$&c}W?2NupfPAbz zaEvS>tF=;!K5Ao~-wL{`AaKW`2vX9W!v);+3Ne%UcVx zb;L=lm)%rYtA=x^cwa@f^IsmG_fHBMF!yLCJ+BFOHR>7stJd)?=Nxz%8iP-Ve6eSZD~t{%G|HvhpWj*; za3=~ov&HyCmD2vW$N+mUE$10$G3&6M?QY&iR^o`>Vh|lw=YCxOOE?w`X@(U<9Y7~6 z)Fcq!<`YOUk`P*#e17Azvnu6Onjf2;iYsll!t!`CbngkGOAaC^m4^RW((d+S-n)L~ zTM!mauKzQ?74*h_S1@6)A_2|}RmHj8#A&~vV*Vg@W*Y<^Q_2%(ZD@hdlKyCe zl)xetJ8!pZ#}qf;Cj>*iNq*>30qx?euIoKYV8uSrbVuX;KB~UnQ#KvGL+w`BNcSS1 z;U~2{1T}vKDOh?GjZqA^@8P+OEsh={qVYmQ$vY&4jYp=IpNGGesr;aBWx6o41JoSQ z(}BH4cv2?sB~?BFm6;E1bvk7aC#n*P%Oi?dG5L^1-hlm5(P&r2+cnG+!{_XV`;L8< zl|p)Pedy^d3gl4Zq{eg%;hsN&VW1 z*YjjpggMwY-|~3Adr8jW^cl@Ov{4xMvHHP;dHlW{U@^uuI}B#!zEBT+oebadmu;(T zo?I5REG^zcKLB?tC^&z^j$_l$2Lu>djULQa(#{(k8C0@jcH@Y5plQC>XSdZR<%2Fn zC1CnY9?x1zI@i^uFuX5uMtLaq!#%??TkQR2I!ifI;x}j8 zfr`BP^Q6sA8vDu}yITqBe`9jn(s4p+U@XAi4YXGwT!~ej6K_%!Fo)U1FJx5?IX7s? znI|z&$~=$$T+LNGw@LY9(K6|S?R%;K9(2@!slJPxmJQWG-*CpPI!DGkfnTM3=U`@k zo*N7*koGrw`pli4^pJpjgSMLFVm&}>!aSM4cPn7hzsL14QkK>UK(EW*q=T~B>6G2r z3kc0PU=Gmf_i1!^$IwY;XsZc*z39uQZd1T0?3v{XK|jR#Tw@inoudHrzw!~8x`ZUL zP>9mhb4GJ95$7l35USY0dK*R}JR4u>ysHdTTaV{r`q%*N4gv7}Dp8PMMD8}ve;U>< zz?5tAj*Jp>e1)7Dm#5|^+uIQ)R zX62|+|J^j_h#O};zES66?fadp5IKr-?2tmw=@pHfATcp)iM6Rfhw?q^hF;g%B>Ngy zio;8u$*OB7`R;LZ8jGhZ+?gbNu(sYscLxZv$G)#thMhWlfXW2Q$W_rJ(Q!NDXH0+x zQ3s->rPUy=JY3Vfy|$uMz(uPW}@g0hNlv$ z8ijAn!zVyZm6Y}Z3dOh3D#DU@xDFGReL@V#ku=QZMao^QT&DAIy!9xSy^UP-`SW&!tYS7JG zFuK6m-6-0VSp-+>X2;maXQ{4IlvcA2;7P8*nSegnv|P;nf$F9NvbhM?*;a6o)S^Gb z(#qjN-*PB$lw~&sFU;|DeLP1Jbw(%3@f$Qif%2~O;`X-ZWzTE(*kP+j%s0<2)Gc{o zZK-afhs+SDT!8Ina4zgiAp9*+$_7H7)cTEKJW8+e^gJKxMz$6cypGY^89fs|HazKi z9n3p~+HR|@$_yMOa9sUnF;{1K)uoFj5JlS{O;LE*{bHusUdI3Tf@H8^QTqikAog%~ zKpdW@gb&u4i17=8{|9yEsYL~NCnUb3#Jq@Qp#7zhik~?7U0OP-<_c7yiHiuw$`g5h z4Dk+W4~Sojj=p;}luTuL6Lg+6F>9i|YRt#X8cuo(eUrk>Z>~;aJ7ZEaCnWA`MdBc) zfcc&Z3TO&v%@gFl5^ijq;B^ zvz8RN(2l6Y91W9g(>MrZChD2F_&#rCv~!t_YmXK2dn;Sfp`KiR*b4t{fjQf3Q%`r#62E zj5SJx>6Fh)rVp`o2&;!MR!DuBI_q1wKrBVwev-|v@UfT;AjKp)rCR(I^k*jgDeg(( zdIc?W4ny#lvCc_WrNwMjR|zJNNMLrso)T%|FFxc4pSXieYJ+Job9`0RJB;*H!b0G7 zyjcJul}ATXgRQD@Yuqc@Nx`3oT8^GKT7Y2wB1^J~i?05JS~|{5gv0O!nY8;jhq0iY zVPoNDo!<0;UZgQ{97H7O8$7r_f}$GyC*2ad(Cb5O_SsS6e2xlbCFI@169mKacNBKf zncO?#D0m>Z?KHU#0TyrHUQLXd?I=E6L`*jy4f(hrAVIealGr`&NqObgCPsaV$ z8;05!V_^4BID!xGSMV_+$cnGE^*&HvV`wNmYWa_4B{2+)8oakTZumHz++1AiUv>v2 z#nF>*L#C+#6)*VlrjjSHLTcbM41+%nJ9?1D{^dNxjG)t8k0`ncWIu@OM^XynqfH0G z=WwG`Md9|NH0e)Y7u}|NWi1mh^%BJSW&Nd4yG7L! zA@u}#ogp?Nh4ArWVO%kyr}loh$H1|nzQ_RWz(EfYHvCCq4=quN)z(Gd%sNZ1qRFGv z^hc>BnG`qrT+|>4Uw)fXDcX!5DHZN5M4oHh9*!Q7CqcvjL}A1_)JxPVR25u2+)p?i^lS|4 zjQzB!bd8Ey${wkDsmttcR2Kpl#CSw_%6N}-o^&?yFDaL)RVk|sp31*snxmUTn+rX1 zuLX`#W=*Z`t%|L_j&!B*r;5=rQZLcp$!;nKg+9Uml|yqxGeC1j^F_la5N8H5Q>wdb z2p1WZcd5uoTc?ikYU3_oEdZ)=wYDl{Dm^PsHT{bw%L~eaR3K8cGL})_vJVJrMQa6D zNmp~5gOA&f#-}&RAC)+jT~aqW16dJJ!<{1SBRwNC-+@s#0J0xpc8U*({ev?ecGPiyM}y+{LPI^Pz?Ji3a8#5efn?b(KWc-fBU|^ znzO>c4x)cqC;rQm)MvF;V?w20k|d9a4=;gCLFjI~FAkIXegCKr4lG7?rbLS=Ln@|L z3$L)>=Fje6xLl#+7Nq=-S)MTw-AEsaotO9R?|`NzO}OzLB(ed{M5IYv+ZmE2)-yjn z2;LdNB6l201nn}Usb78XPvsv(=a!oOv=Mt%G*z0SZdP*I7d0QUxQDKO-T~4G=ztAc z@B5-Vu`Zg*ttfNbRp&NiZ?^jV+^pKthCKh^v*imA8R6#*MAthXKqK*C3<_ro+!3&|sV3VO#qfx35<~sF#wVm#wXr zv7ndFub0-Mm+PsQd81c|xtyG^oTa>+{`$UVUrwz(!b9^**P7>RzFx_3TK;;vTtKm$ zGI}yV@QugpOa4lP@k+wRO1RicT=z;;;7ZanAOryr9S->N5fBdngwX{r(}c7_!*5CkfA>g#46{`oCAdW=8fv-O$1Et7)?S0IJTuYb}cw|G&rE{b=#ln zcJ1qS4CYi+WlZDI*ue}(LFN#t^cb$&^Ceg#i;iA!~bT6jrXc!gwoNoab7xphgg zb%h{ti7#=5-h273_iFgwj`wgXy8!hHIC13FsTn2m{qdX#eajU}YW!4kITQvWO?tT;Vf8g(x{~xTU8MmMO%erSx?CP6!SO0-5{u$k4 zCf4#NV_{_?ECrJF}4UgOzZ`I+?ZFg9Uc||hEIS~1iw|&Yk-GO)NhbQ mX4Rts#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/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..cca452a6 --- /dev/null +++ b/joinus/index.html.haml @@ -0,0 +1,184 @@ +--- +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. + +%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 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 Jekyll for this website and the documenation. Most of it is static HTML/CSS with Jekyll 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(''}),b.prototype=a.extend({},a.fn.tooltip.Constructor.prototype),b.prototype.constructor=b,b.prototype.getDefaults=function(){return b.DEFAULTS},b.prototype.setContent=function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(".popover-title")[this.options.html?"html":"text"](b),a.find(".popover-content")[this.options.html?"html":"text"](c),a.removeClass("fade top bottom left right in"),a.find(".popover-title").html()||a.find(".popover-title").hide()},b.prototype.hasContent=function(){return this.getTitle()||this.getContent()},b.prototype.getContent=function(){var a=this.$element,b=this.options;return a.attr("data-content")||("function"==typeof b.content?b.content.call(a[0]):b.content)},b.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},b.prototype.tip=function(){return this.$tip||(this.$tip=a(this.options.template)),this.$tip};var c=a.fn.popover;a.fn.popover=function(c){return this.each(function(){var d=a(this),e=d.data("bs.popover"),f="object"==typeof c&&c;e||d.data("bs.popover",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.popover.Constructor=b,a.fn.popover.noConflict=function(){return a.fn.popover=c,this}}(jQuery),+function(a){"use strict";function b(c,d){var e,f=a.proxy(this.process,this);this.$element=a(c).is("body")?a(window):a(c),this.$body=a("body"),this.$scrollElement=this.$element.on("scroll.bs.scroll-spy.data-api",f),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||(e=a(c).attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a",this.offsets=a([]),this.targets=a([]),this.activeTarget=null,this.refresh(),this.process()}b.DEFAULTS={offset:10},b.prototype.refresh=function(){var b=this.$element[0]==window?"offset":"position";this.offsets=a([]),this.targets=a([]);var c=this;this.$body.find(this.selector).map(function(){var d=a(this),e=d.data("target")||d.attr("href"),f=/^#\w/.test(e)&&a(e);return f&&f.length&&[[f[b]().top+(!a.isWindow(c.$scrollElement.get(0))&&c.$scrollElement.scrollTop()),e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){c.offsets.push(this[0]),c.targets.push(this[1])})},b.prototype.process=function(){var a,b=this.$scrollElement.scrollTop()+this.options.offset,c=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,d=c-this.$scrollElement.height(),e=this.offsets,f=this.targets,g=this.activeTarget;if(b>=d)return g!=(a=f.last()[0])&&this.activate(a);for(a=e.length;a--;)g!=f[a]&&b>=e[a]&&(!e[a+1]||b<=e[a+1])&&this.activate(f[a])},b.prototype.activate=function(b){this.activeTarget=b,a(this.selector).parents(".active").removeClass("active");var c=this.selector+'[data-target="'+b+'"],'+this.selector+'[href="'+b+'"]',d=a(c).parents("li").addClass("active");d.parent(".dropdown-menu").length&&(d=d.closest("li.dropdown").addClass("active")),d.trigger("activate.bs.scrollspy")};var c=a.fn.scrollspy;a.fn.scrollspy=function(c){return this.each(function(){var d=a(this),e=d.data("bs.scrollspy"),f="object"==typeof c&&c;e||d.data("bs.scrollspy",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.scrollspy.Constructor=b,a.fn.scrollspy.noConflict=function(){return a.fn.scrollspy=c,this},a(window).on("load",function(){a('[data-spy="scroll"]').each(function(){var b=a(this);b.scrollspy(b.data())})})}(jQuery),+function(a){"use strict";var b=function(b){this.element=a(b)};b.prototype.show=function(){var b=this.element,c=b.closest("ul:not(.dropdown-menu)"),d=b.data("target");if(d||(d=b.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,"")),!b.parent("li").hasClass("active")){var e=c.find(".active:last a")[0],f=a.Event("show.bs.tab",{relatedTarget:e});if(b.trigger(f),!f.isDefaultPrevented()){var g=a(d);this.activate(b.parent("li"),c),this.activate(g,g.parent(),function(){b.trigger({type:"shown.bs.tab",relatedTarget:e})})}}},b.prototype.activate=function(b,c,d){function e(){f.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),b.addClass("active"),g?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu")&&b.closest("li.dropdown").addClass("active"),d&&d()}var f=c.find("> .active"),g=d&&a.support.transition&&f.hasClass("fade");g?f.one(a.support.transition.end,e).emulateTransitionEnd(150):e(),f.removeClass("in")};var c=a.fn.tab;a.fn.tab=function(c){return this.each(function(){var d=a(this),e=d.data("bs.tab");e||d.data("bs.tab",e=new b(this)),"string"==typeof c&&e[c]()})},a.fn.tab.Constructor=b,a.fn.tab.noConflict=function(){return a.fn.tab=c,this},a(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(b){b.preventDefault(),a(this).tab("show")})}(jQuery),+function(a){"use strict";var b=function(c,d){this.options=a.extend({},b.DEFAULTS,d),this.$window=a(window).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(c),this.affixed=this.unpin=null,this.checkPosition()};b.RESET="affix affix-top affix-bottom",b.DEFAULTS={offset:0},b.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},b.prototype.checkPosition=function(){if(this.$element.is(":visible")){var c=a(document).height(),d=this.$window.scrollTop(),e=this.$element.offset(),f=this.options.offset,g=f.top,h=f.bottom;"object"!=typeof f&&(h=g=f),"function"==typeof g&&(g=f.top()),"function"==typeof h&&(h=f.bottom());var i=null!=this.unpin&&d+this.unpin<=e.top?!1:null!=h&&e.top+this.$element.height()>=c-h?"bottom":null!=g&&g>=d?"top":!1;this.affixed!==i&&(this.unpin&&this.$element.css("top",""),this.affixed=i,this.unpin="bottom"==i?e.top-d:null,this.$element.removeClass(b.RESET).addClass("affix"+(i?"-"+i:"")),"bottom"==i&&this.$element.offset({top:document.body.offsetHeight-h-this.$element.height()}))}};var c=a.fn.affix;a.fn.affix=function(c){return this.each(function(){var d=a(this),e=d.data("bs.affix"),f="object"==typeof c&&c;e||d.data("bs.affix",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.affix.Constructor=b,a.fn.affix.noConflict=function(){return a.fn.affix=c,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var b=a(this),c=b.data();c.offset=c.offset||{},c.offsetBottom&&(c.offset.bottom=c.offsetBottom),c.offsetTop&&(c.offset.top=c.offsetTop),b.affix(c)})})}(jQuery); \ No newline at end of file diff --git a/js/googleanalytics.js b/js/googleanalytics.js new file mode 100644 index 00000000..8478d61f --- /dev/null +++ b/js/googleanalytics.js @@ -0,0 +1,21 @@ +var _gaq = _gaq || []; +_gaq.push(['_setAccount', 'UA-40375612-1']); +_gaq.push(['_setDomainName', 'openshift.github.io']); +_gaq.push(['_trackPageview']); + +(function() { + var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; + ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; + var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); +})(); + +$(document).ready(function() { + _gaq.push(function() { + $('a[href^="http"]').on("click", function(e) { + e.preventDefault(); + var link = $(this).attr("href"); + _gaq.push(["_trackEvent", "Outbound Links", "click", link]); + setTimeout('document.location = "' + link + '"', 100); + }); + }); +}); \ No newline at end of file diff --git a/js/html5shiv.js b/js/html5shiv.js new file mode 100644 index 00000000..448cebd7 --- /dev/null +++ b/js/html5shiv.js @@ -0,0 +1,8 @@ +/* + HTML5 Shiv v3.7.0 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed +*/ +(function(l,f){function m(){var a=e.elements;return"string"==typeof a?a.split(" "):a}function i(a){var b=n[a[o]];b||(b={},h++,a[o]=h,n[h]=b);return b}function p(a,b,c){b||(b=f);if(g)return b.createElement(a);c||(c=i(b));b=c.cache[a]?c.cache[a].cloneNode():r.test(a)?(c.cache[a]=c.createElem(a)).cloneNode():c.createElem(a);return b.canHaveChildren&&!s.test(a)?c.frag.appendChild(b):b}function t(a,b){if(!b.cache)b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag(); +a.createElement=function(c){return!e.shivMethods?b.createElem(c):p(c,a,b)};a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+m().join().replace(/[\w\-]+/g,function(a){b.createElem(a);b.frag.createElement(a);return'c("'+a+'")'})+");return n}")(e,b.frag)}function q(a){a||(a=f);var b=i(a);if(e.shivCSS&&!j&&!b.hasCSS){var c,d=a;c=d.createElement("p");d=d.getElementsByTagName("head")[0]||d.documentElement;c.innerHTML="x"; +c=d.insertBefore(c.lastChild,d.firstChild);b.hasCSS=!!c}g||t(a,b);return a}var k=l.html5||{},s=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,r=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,j,o="_html5shiv",h=0,n={},g;(function(){try{var a=f.createElement("a");a.innerHTML="";j="hidden"in a;var b;if(!(b=1==a.childNodes.length)){f.createElement("a");var c=f.createDocumentFragment();b="undefined"==typeof c.cloneNode|| +"undefined"==typeof c.createDocumentFragment||"undefined"==typeof c.createElement}g=b}catch(d){g=j=!0}})();var e={elements:k.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:"3.7.0",shivCSS:!1!==k.shivCSS,supportsUnknownElements:g,shivMethods:!1!==k.shivMethods,type:"default",shivDocument:q,createElement:p,createDocumentFragment:function(a,b){a||(a=f); +if(g)return a.createDocumentFragment();for(var b=b||i(a),c=b.frag.cloneNode(),d=0,e=m(),h=e.length;d)[^>]*|#([\w-]*))$/,k=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,E=/^[\],:{}\s]*$/,S=/(?:^|:|,)(?:\s*\[)+/g,A=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,j=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,D=/^-ms-/,L=/-([\da-z])/gi,H=function(e,t){return t.toUpperCase()},q=function(e){(a.addEventListener||"load"===e.type||"complete"===a.readyState)&&(_(),x.ready())},_=function(){a.addEventListener?(a.removeEventListener("DOMContentLoaded",q,!1),e.removeEventListener("load",q,!1)):(a.detachEvent("onreadystatechange",q),e.detachEvent("onload",q))};x.fn=x.prototype={jquery:f,constructor:x,init:function(e,n,r){var i,o;if(!e)return this;if("string"==typeof e){if(i="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:N.exec(e),!i||!i[1]&&n)return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e);if(i[1]){if(n=n instanceof x?n[0]:n,x.merge(this,x.parseHTML(i[1],n&&n.nodeType?n.ownerDocument||n:a,!0)),k.test(i[1])&&x.isPlainObject(n))for(i in n)x.isFunction(this[i])?this[i](n[i]):this.attr(i,n[i]);return this}if(o=a.getElementById(i[2]),o&&o.parentNode){if(o.id!==i[2])return r.find(e);this.length=1,this[0]=o}return this.context=a,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):x.isFunction(e)?r.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),x.makeArray(e,this))},selector:"",length:0,toArray:function(){return g.call(this)},get:function(e){return null==e?this.toArray():0>e?this[this.length+e]:this[e]},pushStack:function(e){var t=x.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return x.each(this,e,t)},ready:function(e){return x.ready.promise().done(e),this},slice:function(){return this.pushStack(g.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},map:function(e){return this.pushStack(x.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:h,sort:[].sort,splice:[].splice},x.fn.init.prototype=x.fn,x.extend=x.fn.extend=function(){var e,n,r,i,o,a,s=arguments[0]||{},l=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},l=2),"object"==typeof s||x.isFunction(s)||(s={}),u===l&&(s=this,--l);u>l;l++)if(null!=(o=arguments[l]))for(i in o)e=s[i],r=o[i],s!==r&&(c&&r&&(x.isPlainObject(r)||(n=x.isArray(r)))?(n?(n=!1,a=e&&x.isArray(e)?e:[]):a=e&&x.isPlainObject(e)?e:{},s[i]=x.extend(c,a,r)):r!==t&&(s[i]=r));return s},x.extend({expando:"jQuery"+(f+Math.random()).replace(/\D/g,""),noConflict:function(t){return e.$===x&&(e.$=u),t&&e.jQuery===x&&(e.jQuery=l),x},isReady:!1,readyWait:1,holdReady:function(e){e?x.readyWait++:x.ready(!0)},ready:function(e){if(e===!0?!--x.readyWait:!x.isReady){if(!a.body)return setTimeout(x.ready);x.isReady=!0,e!==!0&&--x.readyWait>0||(n.resolveWith(a,[x]),x.fn.trigger&&x(a).trigger("ready").off("ready"))}},isFunction:function(e){return"function"===x.type(e)},isArray:Array.isArray||function(e){return"array"===x.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?c[y.call(e)]||"object":typeof e},isPlainObject:function(e){var n;if(!e||"object"!==x.type(e)||e.nodeType||x.isWindow(e))return!1;try{if(e.constructor&&!v.call(e,"constructor")&&!v.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(r){return!1}if(x.support.ownLast)for(n in e)return v.call(e,n);for(n in e);return n===t||v.call(e,n)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw Error(e)},parseHTML:function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||a;var r=k.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=x.buildFragment([e],t,i),i&&x(i).remove(),x.merge([],r.childNodes))},parseJSON:function(n){return e.JSON&&e.JSON.parse?e.JSON.parse(n):null===n?n:"string"==typeof n&&(n=x.trim(n),n&&E.test(n.replace(A,"@").replace(j,"]").replace(S,"")))?Function("return "+n)():(x.error("Invalid JSON: "+n),t)},parseXML:function(n){var r,i;if(!n||"string"!=typeof n)return null;try{e.DOMParser?(i=new DOMParser,r=i.parseFromString(n,"text/xml")):(r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(n))}catch(o){r=t}return r&&r.documentElement&&!r.getElementsByTagName("parsererror").length||x.error("Invalid XML: "+n),r},noop:function(){},globalEval:function(t){t&&x.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(D,"ms-").replace(L,H)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var r,i=0,o=e.length,a=M(e);if(n){if(a){for(;o>i;i++)if(r=t.apply(e[i],n),r===!1)break}else for(i in e)if(r=t.apply(e[i],n),r===!1)break}else if(a){for(;o>i;i++)if(r=t.call(e[i],i,e[i]),r===!1)break}else for(i in e)if(r=t.call(e[i],i,e[i]),r===!1)break;return e},trim:b&&!b.call("\ufeff\u00a0")?function(e){return null==e?"":b.call(e)}:function(e){return null==e?"":(e+"").replace(C,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(M(Object(e))?x.merge(n,"string"==typeof e?[e]:e):h.call(n,e)),n},inArray:function(e,t,n){var r;if(t){if(m)return m.call(t,e,n);for(r=t.length,n=n?0>n?Math.max(0,r+n):n:0;r>n;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,n){var r=n.length,i=e.length,o=0;if("number"==typeof r)for(;r>o;o++)e[i++]=n[o];else while(n[o]!==t)e[i++]=n[o++];return e.length=i,e},grep:function(e,t,n){var r,i=[],o=0,a=e.length;for(n=!!n;a>o;o++)r=!!t(e[o],o),n!==r&&i.push(e[o]);return i},map:function(e,t,n){var r,i=0,o=e.length,a=M(e),s=[];if(a)for(;o>i;i++)r=t(e[i],i,n),null!=r&&(s[s.length]=r);else for(i in e)r=t(e[i],i,n),null!=r&&(s[s.length]=r);return d.apply([],s)},guid:1,proxy:function(e,n){var r,i,o;return"string"==typeof n&&(o=e[n],n=e,e=o),x.isFunction(e)?(r=g.call(arguments,2),i=function(){return e.apply(n||this,r.concat(g.call(arguments)))},i.guid=e.guid=e.guid||x.guid++,i):t},access:function(e,n,r,i,o,a,s){var l=0,u=e.length,c=null==r;if("object"===x.type(r)){o=!0;for(l in r)x.access(e,n,l,r[l],!0,a,s)}else if(i!==t&&(o=!0,x.isFunction(i)||(s=!0),c&&(s?(n.call(e,i),n=null):(c=n,n=function(e,t,n){return c.call(x(e),n)})),n))for(;u>l;l++)n(e[l],r,s?i:i.call(e[l],l,n(e[l],r)));return o?e:c?n.call(e):u?n(e[0],r):a},now:function(){return(new Date).getTime()},swap:function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=a[o];return i}}),x.ready.promise=function(t){if(!n)if(n=x.Deferred(),"complete"===a.readyState)setTimeout(x.ready);else if(a.addEventListener)a.addEventListener("DOMContentLoaded",q,!1),e.addEventListener("load",q,!1);else{a.attachEvent("onreadystatechange",q),e.attachEvent("onload",q);var r=!1;try{r=null==e.frameElement&&a.documentElement}catch(i){}r&&r.doScroll&&function o(){if(!x.isReady){try{r.doScroll("left")}catch(e){return setTimeout(o,50)}_(),x.ready()}}()}return n.promise(t)},x.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){c["[object "+t+"]"]=t.toLowerCase()});function M(e){var t=e.length,n=x.type(e);return x.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}r=x(a),function(e,t){var n,r,i,o,a,s,l,u,c,p,f,d,h,g,m,y,v,b="sizzle"+-new Date,w=e.document,T=0,C=0,N=st(),k=st(),E=st(),S=!1,A=function(e,t){return e===t?(S=!0,0):0},j=typeof t,D=1<<31,L={}.hasOwnProperty,H=[],q=H.pop,_=H.push,M=H.push,O=H.slice,F=H.indexOf||function(e){var t=0,n=this.length;for(;n>t;t++)if(this[t]===e)return t;return-1},B="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",P="[\\x20\\t\\r\\n\\f]",R="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",W=R.replace("w","w#"),$="\\["+P+"*("+R+")"+P+"*(?:([*^$|!~]?=)"+P+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+W+")|)|)"+P+"*\\]",I=":("+R+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+$.replace(3,8)+")*)|.*)\\)|)",z=RegExp("^"+P+"+|((?:^|[^\\\\])(?:\\\\.)*)"+P+"+$","g"),X=RegExp("^"+P+"*,"+P+"*"),U=RegExp("^"+P+"*([>+~]|"+P+")"+P+"*"),V=RegExp(P+"*[+~]"),Y=RegExp("="+P+"*([^\\]'\"]*)"+P+"*\\]","g"),J=RegExp(I),G=RegExp("^"+W+"$"),Q={ID:RegExp("^#("+R+")"),CLASS:RegExp("^\\.("+R+")"),TAG:RegExp("^("+R.replace("w","w*")+")"),ATTR:RegExp("^"+$),PSEUDO:RegExp("^"+I),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+P+"*(even|odd|(([+-]|)(\\d*)n|)"+P+"*(?:([+-]|)"+P+"*(\\d+)|))"+P+"*\\)|)","i"),bool:RegExp("^(?:"+B+")$","i"),needsContext:RegExp("^"+P+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+P+"*((?:-\\d)?\\d*)"+P+"*\\)|)(?=[^-]|$)","i")},K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,et=/^(?:input|select|textarea|button)$/i,tt=/^h\d$/i,nt=/'|\\/g,rt=RegExp("\\\\([\\da-f]{1,6}"+P+"?|("+P+")|.)","ig"),it=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(55296|r>>10,56320|1023&r)};try{M.apply(H=O.call(w.childNodes),w.childNodes),H[w.childNodes.length].nodeType}catch(ot){M={apply:H.length?function(e,t){_.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function at(e,t,n,i){var o,a,s,l,u,c,d,m,y,x;if((t?t.ownerDocument||t:w)!==f&&p(t),t=t||f,n=n||[],!e||"string"!=typeof e)return n;if(1!==(l=t.nodeType)&&9!==l)return[];if(h&&!i){if(o=Z.exec(e))if(s=o[1]){if(9===l){if(a=t.getElementById(s),!a||!a.parentNode)return n;if(a.id===s)return n.push(a),n}else if(t.ownerDocument&&(a=t.ownerDocument.getElementById(s))&&v(t,a)&&a.id===s)return n.push(a),n}else{if(o[2])return M.apply(n,t.getElementsByTagName(e)),n;if((s=o[3])&&r.getElementsByClassName&&t.getElementsByClassName)return M.apply(n,t.getElementsByClassName(s)),n}if(r.qsa&&(!g||!g.test(e))){if(m=d=b,y=t,x=9===l&&e,1===l&&"object"!==t.nodeName.toLowerCase()){c=mt(e),(d=t.getAttribute("id"))?m=d.replace(nt,"\\$&"):t.setAttribute("id",m),m="[id='"+m+"'] ",u=c.length;while(u--)c[u]=m+yt(c[u]);y=V.test(e)&&t.parentNode||t,x=c.join(",")}if(x)try{return M.apply(n,y.querySelectorAll(x)),n}catch(T){}finally{d||t.removeAttribute("id")}}}return kt(e.replace(z,"$1"),t,n,i)}function st(){var e=[];function t(n,r){return e.push(n+=" ")>o.cacheLength&&delete t[e.shift()],t[n]=r}return t}function lt(e){return e[b]=!0,e}function ut(e){var t=f.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ct(e,t){var n=e.split("|"),r=e.length;while(r--)o.attrHandle[n[r]]=t}function pt(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||D)-(~e.sourceIndex||D);if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function ft(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function dt(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ht(e){return lt(function(t){return t=+t,lt(function(n,r){var i,o=e([],n.length,t),a=o.length;while(a--)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}s=at.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},r=at.support={},p=at.setDocument=function(e){var n=e?e.ownerDocument||e:w,i=n.defaultView;return n!==f&&9===n.nodeType&&n.documentElement?(f=n,d=n.documentElement,h=!s(n),i&&i.attachEvent&&i!==i.top&&i.attachEvent("onbeforeunload",function(){p()}),r.attributes=ut(function(e){return e.className="i",!e.getAttribute("className")}),r.getElementsByTagName=ut(function(e){return e.appendChild(n.createComment("")),!e.getElementsByTagName("*").length}),r.getElementsByClassName=ut(function(e){return e.innerHTML="
",e.firstChild.className="i",2===e.getElementsByClassName("i").length}),r.getById=ut(function(e){return d.appendChild(e).id=b,!n.getElementsByName||!n.getElementsByName(b).length}),r.getById?(o.find.ID=function(e,t){if(typeof t.getElementById!==j&&h){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},o.filter.ID=function(e){var t=e.replace(rt,it);return function(e){return e.getAttribute("id")===t}}):(delete o.find.ID,o.filter.ID=function(e){var t=e.replace(rt,it);return function(e){var n=typeof e.getAttributeNode!==j&&e.getAttributeNode("id");return n&&n.value===t}}),o.find.TAG=r.getElementsByTagName?function(e,n){return typeof n.getElementsByTagName!==j?n.getElementsByTagName(e):t}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},o.find.CLASS=r.getElementsByClassName&&function(e,n){return typeof n.getElementsByClassName!==j&&h?n.getElementsByClassName(e):t},m=[],g=[],(r.qsa=K.test(n.querySelectorAll))&&(ut(function(e){e.innerHTML="",e.querySelectorAll("[selected]").length||g.push("\\["+P+"*(?:value|"+B+")"),e.querySelectorAll(":checked").length||g.push(":checked")}),ut(function(e){var t=n.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("t",""),e.querySelectorAll("[t^='']").length&&g.push("[*^$]="+P+"*(?:''|\"\")"),e.querySelectorAll(":enabled").length||g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(r.matchesSelector=K.test(y=d.webkitMatchesSelector||d.mozMatchesSelector||d.oMatchesSelector||d.msMatchesSelector))&&ut(function(e){r.disconnectedMatch=y.call(e,"div"),y.call(e,"[s!='']:x"),m.push("!=",I)}),g=g.length&&RegExp(g.join("|")),m=m.length&&RegExp(m.join("|")),v=K.test(d.contains)||d.compareDocumentPosition?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},A=d.compareDocumentPosition?function(e,t){if(e===t)return S=!0,0;var i=t.compareDocumentPosition&&e.compareDocumentPosition&&e.compareDocumentPosition(t);return i?1&i||!r.sortDetached&&t.compareDocumentPosition(e)===i?e===n||v(w,e)?-1:t===n||v(w,t)?1:c?F.call(c,e)-F.call(c,t):0:4&i?-1:1:e.compareDocumentPosition?-1:1}:function(e,t){var r,i=0,o=e.parentNode,a=t.parentNode,s=[e],l=[t];if(e===t)return S=!0,0;if(!o||!a)return e===n?-1:t===n?1:o?-1:a?1:c?F.call(c,e)-F.call(c,t):0;if(o===a)return pt(e,t);r=e;while(r=r.parentNode)s.unshift(r);r=t;while(r=r.parentNode)l.unshift(r);while(s[i]===l[i])i++;return i?pt(s[i],l[i]):s[i]===w?-1:l[i]===w?1:0},n):f},at.matches=function(e,t){return at(e,null,null,t)},at.matchesSelector=function(e,t){if((e.ownerDocument||e)!==f&&p(e),t=t.replace(Y,"='$1']"),!(!r.matchesSelector||!h||m&&m.test(t)||g&&g.test(t)))try{var n=y.call(e,t);if(n||r.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(i){}return at(t,f,null,[e]).length>0},at.contains=function(e,t){return(e.ownerDocument||e)!==f&&p(e),v(e,t)},at.attr=function(e,n){(e.ownerDocument||e)!==f&&p(e);var i=o.attrHandle[n.toLowerCase()],a=i&&L.call(o.attrHandle,n.toLowerCase())?i(e,n,!h):t;return a===t?r.attributes||!h?e.getAttribute(n):(a=e.getAttributeNode(n))&&a.specified?a.value:null:a},at.error=function(e){throw Error("Syntax error, unrecognized expression: "+e)},at.uniqueSort=function(e){var t,n=[],i=0,o=0;if(S=!r.detectDuplicates,c=!r.sortStable&&e.slice(0),e.sort(A),S){while(t=e[o++])t===e[o]&&(i=n.push(o));while(i--)e.splice(n[i],1)}return e},a=at.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=a(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r];r++)n+=a(t);return n},o=at.selectors={cacheLength:50,createPseudo:lt,match:Q,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(rt,it),e[3]=(e[4]||e[5]||"").replace(rt,it),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||at.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&at.error(e[0]),e},PSEUDO:function(e){var n,r=!e[5]&&e[2];return Q.CHILD.test(e[0])?null:(e[3]&&e[4]!==t?e[2]=e[4]:r&&J.test(r)&&(n=mt(r,!0))&&(n=r.indexOf(")",r.length-n)-r.length)&&(e[0]=e[0].slice(0,n),e[2]=r.slice(0,n)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(rt,it).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=N[e+" "];return t||(t=RegExp("(^|"+P+")"+e+"("+P+"|$)"))&&N(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==j&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=at.attr(r,e);return null==i?"!="===t:t?(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i+" ").indexOf(n)>-1:"|="===t?i===n||i.slice(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var u,c,p,f,d,h,g=o!==a?"nextSibling":"previousSibling",m=t.parentNode,y=s&&t.nodeName.toLowerCase(),v=!l&&!s;if(m){if(o){while(g){p=t;while(p=p[g])if(s?p.nodeName.toLowerCase()===y:1===p.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&v){c=m[b]||(m[b]={}),u=c[e]||[],d=u[0]===T&&u[1],f=u[0]===T&&u[2],p=d&&m.childNodes[d];while(p=++d&&p&&p[g]||(f=d=0)||h.pop())if(1===p.nodeType&&++f&&p===t){c[e]=[T,d,f];break}}else if(v&&(u=(t[b]||(t[b]={}))[e])&&u[0]===T)f=u[1];else while(p=++d&&p&&p[g]||(f=d=0)||h.pop())if((s?p.nodeName.toLowerCase()===y:1===p.nodeType)&&++f&&(v&&((p[b]||(p[b]={}))[e]=[T,f]),p===t))break;return f-=i,f===r||0===f%r&&f/r>=0}}},PSEUDO:function(e,t){var n,r=o.pseudos[e]||o.setFilters[e.toLowerCase()]||at.error("unsupported pseudo: "+e);return r[b]?r(t):r.length>1?(n=[e,e,"",t],o.setFilters.hasOwnProperty(e.toLowerCase())?lt(function(e,n){var i,o=r(e,t),a=o.length;while(a--)i=F.call(e,o[a]),e[i]=!(n[i]=o[a])}):function(e){return r(e,0,n)}):r}},pseudos:{not:lt(function(e){var t=[],n=[],r=l(e.replace(z,"$1"));return r[b]?lt(function(e,t,n,i){var o,a=r(e,null,i,[]),s=e.length;while(s--)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),!n.pop()}}),has:lt(function(e){return function(t){return at(e,t).length>0}}),contains:lt(function(e){return function(t){return(t.textContent||t.innerText||a(t)).indexOf(e)>-1}}),lang:lt(function(e){return G.test(e||"")||at.error("unsupported lang: "+e),e=e.replace(rt,it).toLowerCase(),function(t){var n;do if(n=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===d},focus:function(e){return e===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeName>"@"||3===e.nodeType||4===e.nodeType)return!1;return!0},parent:function(e){return!o.pseudos.empty(e)},header:function(e){return tt.test(e.nodeName)},input:function(e){return et.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||t.toLowerCase()===e.type)},first:ht(function(){return[0]}),last:ht(function(e,t){return[t-1]}),eq:ht(function(e,t,n){return[0>n?n+t:n]}),even:ht(function(e,t){var n=0;for(;t>n;n+=2)e.push(n);return e}),odd:ht(function(e,t){var n=1;for(;t>n;n+=2)e.push(n);return e}),lt:ht(function(e,t,n){var r=0>n?n+t:n;for(;--r>=0;)e.push(r);return e}),gt:ht(function(e,t,n){var r=0>n?n+t:n;for(;t>++r;)e.push(r);return e})}},o.pseudos.nth=o.pseudos.eq;for(n in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})o.pseudos[n]=ft(n);for(n in{submit:!0,reset:!0})o.pseudos[n]=dt(n);function gt(){}gt.prototype=o.filters=o.pseudos,o.setFilters=new gt;function mt(e,t){var n,r,i,a,s,l,u,c=k[e+" "];if(c)return t?0:c.slice(0);s=e,l=[],u=o.preFilter;while(s){(!n||(r=X.exec(s)))&&(r&&(s=s.slice(r[0].length)||s),l.push(i=[])),n=!1,(r=U.exec(s))&&(n=r.shift(),i.push({value:n,type:r[0].replace(z," ")}),s=s.slice(n.length));for(a in o.filter)!(r=Q[a].exec(s))||u[a]&&!(r=u[a](r))||(n=r.shift(),i.push({value:n,type:a,matches:r}),s=s.slice(n.length));if(!n)break}return t?s.length:s?at.error(e):k(e,l).slice(0)}function yt(e){var t=0,n=e.length,r="";for(;n>t;t++)r+=e[t].value;return r}function vt(e,t,n){var r=t.dir,o=n&&"parentNode"===r,a=C++;return t.first?function(t,n,i){while(t=t[r])if(1===t.nodeType||o)return e(t,n,i)}:function(t,n,s){var l,u,c,p=T+" "+a;if(s){while(t=t[r])if((1===t.nodeType||o)&&e(t,n,s))return!0}else while(t=t[r])if(1===t.nodeType||o)if(c=t[b]||(t[b]={}),(u=c[r])&&u[0]===p){if((l=u[1])===!0||l===i)return l===!0}else if(u=c[r]=[p],u[1]=e(t,n,s)||i,u[1]===!0)return!0}}function bt(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function xt(e,t,n,r,i){var o,a=[],s=0,l=e.length,u=null!=t;for(;l>s;s++)(o=e[s])&&(!n||n(o,r,i))&&(a.push(o),u&&t.push(s));return a}function wt(e,t,n,r,i,o){return r&&!r[b]&&(r=wt(r)),i&&!i[b]&&(i=wt(i,o)),lt(function(o,a,s,l){var u,c,p,f=[],d=[],h=a.length,g=o||Nt(t||"*",s.nodeType?[s]:s,[]),m=!e||!o&&t?g:xt(g,f,e,s,l),y=n?i||(o?e:h||r)?[]:a:m;if(n&&n(m,y,s,l),r){u=xt(y,d),r(u,[],s,l),c=u.length;while(c--)(p=u[c])&&(y[d[c]]=!(m[d[c]]=p))}if(o){if(i||e){if(i){u=[],c=y.length;while(c--)(p=y[c])&&u.push(m[c]=p);i(null,y=[],u,l)}c=y.length;while(c--)(p=y[c])&&(u=i?F.call(o,p):f[c])>-1&&(o[u]=!(a[u]=p))}}else y=xt(y===a?y.splice(h,y.length):y),i?i(null,a,y,l):M.apply(a,y)})}function Tt(e){var t,n,r,i=e.length,a=o.relative[e[0].type],s=a||o.relative[" "],l=a?1:0,c=vt(function(e){return e===t},s,!0),p=vt(function(e){return F.call(t,e)>-1},s,!0),f=[function(e,n,r){return!a&&(r||n!==u)||((t=n).nodeType?c(e,n,r):p(e,n,r))}];for(;i>l;l++)if(n=o.relative[e[l].type])f=[vt(bt(f),n)];else{if(n=o.filter[e[l].type].apply(null,e[l].matches),n[b]){for(r=++l;i>r;r++)if(o.relative[e[r].type])break;return wt(l>1&&bt(f),l>1&&yt(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(z,"$1"),n,r>l&&Tt(e.slice(l,r)),i>r&&Tt(e=e.slice(r)),i>r&&yt(e))}f.push(n)}return bt(f)}function Ct(e,t){var n=0,r=t.length>0,a=e.length>0,s=function(s,l,c,p,d){var h,g,m,y=[],v=0,b="0",x=s&&[],w=null!=d,C=u,N=s||a&&o.find.TAG("*",d&&l.parentNode||l),k=T+=null==C?1:Math.random()||.1;for(w&&(u=l!==f&&l,i=n);null!=(h=N[b]);b++){if(a&&h){g=0;while(m=e[g++])if(m(h,l,c)){p.push(h);break}w&&(T=k,i=++n)}r&&((h=!m&&h)&&v--,s&&x.push(h))}if(v+=b,r&&b!==v){g=0;while(m=t[g++])m(x,y,l,c);if(s){if(v>0)while(b--)x[b]||y[b]||(y[b]=q.call(p));y=xt(y)}M.apply(p,y),w&&!s&&y.length>0&&v+t.length>1&&at.uniqueSort(p)}return w&&(T=k,u=C),x};return r?lt(s):s}l=at.compile=function(e,t){var n,r=[],i=[],o=E[e+" "];if(!o){t||(t=mt(e)),n=t.length;while(n--)o=Tt(t[n]),o[b]?r.push(o):i.push(o);o=E(e,Ct(i,r))}return o};function Nt(e,t,n){var r=0,i=t.length;for(;i>r;r++)at(e,t[r],n);return n}function kt(e,t,n,i){var a,s,u,c,p,f=mt(e);if(!i&&1===f.length){if(s=f[0]=f[0].slice(0),s.length>2&&"ID"===(u=s[0]).type&&r.getById&&9===t.nodeType&&h&&o.relative[s[1].type]){if(t=(o.find.ID(u.matches[0].replace(rt,it),t)||[])[0],!t)return n;e=e.slice(s.shift().value.length)}a=Q.needsContext.test(e)?0:s.length;while(a--){if(u=s[a],o.relative[c=u.type])break;if((p=o.find[c])&&(i=p(u.matches[0].replace(rt,it),V.test(s[0].type)&&t.parentNode||t))){if(s.splice(a,1),e=i.length&&yt(s),!e)return M.apply(n,i),n;break}}}return l(e,f)(i,t,!h,n,V.test(e)),n}r.sortStable=b.split("").sort(A).join("")===b,r.detectDuplicates=S,p(),r.sortDetached=ut(function(e){return 1&e.compareDocumentPosition(f.createElement("div"))}),ut(function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")})||ct("type|href|height|width",function(e,n,r){return r?t:e.getAttribute(n,"type"===n.toLowerCase()?1:2)}),r.attributes&&ut(function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ct("value",function(e,n,r){return r||"input"!==e.nodeName.toLowerCase()?t:e.defaultValue}),ut(function(e){return null==e.getAttribute("disabled")})||ct(B,function(e,n,r){var i;return r?t:(i=e.getAttributeNode(n))&&i.specified?i.value:e[n]===!0?n.toLowerCase():null}),x.find=at,x.expr=at.selectors,x.expr[":"]=x.expr.pseudos,x.unique=at.uniqueSort,x.text=at.getText,x.isXMLDoc=at.isXML,x.contains=at.contains}(e);var O={};function F(e){var t=O[e]={};return x.each(e.match(T)||[],function(e,n){t[n]=!0}),t}x.Callbacks=function(e){e="string"==typeof e?O[e]||F(e):x.extend({},e);var n,r,i,o,a,s,l=[],u=!e.once&&[],c=function(t){for(r=e.memory&&t,i=!0,a=s||0,s=0,o=l.length,n=!0;l&&o>a;a++)if(l[a].apply(t[0],t[1])===!1&&e.stopOnFalse){r=!1;break}n=!1,l&&(u?u.length&&c(u.shift()):r?l=[]:p.disable())},p={add:function(){if(l){var t=l.length;(function i(t){x.each(t,function(t,n){var r=x.type(n);"function"===r?e.unique&&p.has(n)||l.push(n):n&&n.length&&"string"!==r&&i(n)})})(arguments),n?o=l.length:r&&(s=t,c(r))}return this},remove:function(){return l&&x.each(arguments,function(e,t){var r;while((r=x.inArray(t,l,r))>-1)l.splice(r,1),n&&(o>=r&&o--,a>=r&&a--)}),this},has:function(e){return e?x.inArray(e,l)>-1:!(!l||!l.length)},empty:function(){return l=[],o=0,this},disable:function(){return l=u=r=t,this},disabled:function(){return!l},lock:function(){return u=t,r||p.disable(),this},locked:function(){return!u},fireWith:function(e,t){return!l||i&&!u||(t=t||[],t=[e,t.slice?t.slice():t],n?u.push(t):c(t)),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!i}};return p},x.extend({Deferred:function(e){var t=[["resolve","done",x.Callbacks("once memory"),"resolved"],["reject","fail",x.Callbacks("once memory"),"rejected"],["notify","progress",x.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return x.Deferred(function(n){x.each(t,function(t,o){var a=o[0],s=x.isFunction(e[t])&&e[t];i[o[1]](function(){var e=s&&s.apply(this,arguments);e&&x.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[a+"With"](this===r?n.promise():this,s?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?x.extend(e,r):r}},i={};return r.pipe=r.then,x.each(t,function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=0,n=g.call(arguments),r=n.length,i=1!==r||e&&x.isFunction(e.promise)?r:0,o=1===i?e:x.Deferred(),a=function(e,t,n){return function(r){t[e]=this,n[e]=arguments.length>1?g.call(arguments):r,n===s?o.notifyWith(t,n):--i||o.resolveWith(t,n)}},s,l,u;if(r>1)for(s=Array(r),l=Array(r),u=Array(r);r>t;t++)n[t]&&x.isFunction(n[t].promise)?n[t].promise().done(a(t,u,n)).fail(o.reject).progress(a(t,l,s)):--i;return i||o.resolveWith(u,n),o.promise()}}),x.support=function(t){var n,r,o,s,l,u,c,p,f,d=a.createElement("div");if(d.setAttribute("className","t"),d.innerHTML="
a",n=d.getElementsByTagName("*")||[],r=d.getElementsByTagName("a")[0],!r||!r.style||!n.length)return t;s=a.createElement("select"),u=s.appendChild(a.createElement("option")),o=d.getElementsByTagName("input")[0],r.style.cssText="top:1px;float:left;opacity:.5",t.getSetAttribute="t"!==d.className,t.leadingWhitespace=3===d.firstChild.nodeType,t.tbody=!d.getElementsByTagName("tbody").length,t.htmlSerialize=!!d.getElementsByTagName("link").length,t.style=/top/.test(r.getAttribute("style")),t.hrefNormalized="/a"===r.getAttribute("href"),t.opacity=/^0.5/.test(r.style.opacity),t.cssFloat=!!r.style.cssFloat,t.checkOn=!!o.value,t.optSelected=u.selected,t.enctype=!!a.createElement("form").enctype,t.html5Clone="<:nav>"!==a.createElement("nav").cloneNode(!0).outerHTML,t.inlineBlockNeedsLayout=!1,t.shrinkWrapBlocks=!1,t.pixelPosition=!1,t.deleteExpando=!0,t.noCloneEvent=!0,t.reliableMarginRight=!0,t.boxSizingReliable=!0,o.checked=!0,t.noCloneChecked=o.cloneNode(!0).checked,s.disabled=!0,t.optDisabled=!u.disabled;try{delete d.test}catch(h){t.deleteExpando=!1}o=a.createElement("input"),o.setAttribute("value",""),t.input=""===o.getAttribute("value"),o.value="t",o.setAttribute("type","radio"),t.radioValue="t"===o.value,o.setAttribute("checked","t"),o.setAttribute("name","t"),l=a.createDocumentFragment(),l.appendChild(o),t.appendChecked=o.checked,t.checkClone=l.cloneNode(!0).cloneNode(!0).lastChild.checked,d.attachEvent&&(d.attachEvent("onclick",function(){t.noCloneEvent=!1}),d.cloneNode(!0).click());for(f in{submit:!0,change:!0,focusin:!0})d.setAttribute(c="on"+f,"t"),t[f+"Bubbles"]=c in e||d.attributes[c].expando===!1;d.style.backgroundClip="content-box",d.cloneNode(!0).style.backgroundClip="",t.clearCloneStyle="content-box"===d.style.backgroundClip;for(f in x(t))break;return t.ownLast="0"!==f,x(function(){var n,r,o,s="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",l=a.getElementsByTagName("body")[0];l&&(n=a.createElement("div"),n.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",l.appendChild(n).appendChild(d),d.innerHTML="
t
",o=d.getElementsByTagName("td"),o[0].style.cssText="padding:0;margin:0;border:0;display:none",p=0===o[0].offsetHeight,o[0].style.display="",o[1].style.display="none",t.reliableHiddenOffsets=p&&0===o[0].offsetHeight,d.innerHTML="",d.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",x.swap(l,null!=l.style.zoom?{zoom:1}:{},function(){t.boxSizing=4===d.offsetWidth}),e.getComputedStyle&&(t.pixelPosition="1%"!==(e.getComputedStyle(d,null)||{}).top,t.boxSizingReliable="4px"===(e.getComputedStyle(d,null)||{width:"4px"}).width,r=d.appendChild(a.createElement("div")),r.style.cssText=d.style.cssText=s,r.style.marginRight=r.style.width="0",d.style.width="1px",t.reliableMarginRight=!parseFloat((e.getComputedStyle(r,null)||{}).marginRight)),typeof d.style.zoom!==i&&(d.innerHTML="",d.style.cssText=s+"width:1px;padding:1px;display:inline;zoom:1",t.inlineBlockNeedsLayout=3===d.offsetWidth,d.style.display="block",d.innerHTML="
",d.firstChild.style.width="5px",t.shrinkWrapBlocks=3!==d.offsetWidth,t.inlineBlockNeedsLayout&&(l.style.zoom=1)),l.removeChild(n),n=d=o=r=null)}),n=s=l=u=r=o=null,t +}({});var B=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,P=/([A-Z])/g;function R(e,n,r,i){if(x.acceptData(e)){var o,a,s=x.expando,l=e.nodeType,u=l?x.cache:e,c=l?e[s]:e[s]&&s;if(c&&u[c]&&(i||u[c].data)||r!==t||"string"!=typeof n)return c||(c=l?e[s]=p.pop()||x.guid++:s),u[c]||(u[c]=l?{}:{toJSON:x.noop}),("object"==typeof n||"function"==typeof n)&&(i?u[c]=x.extend(u[c],n):u[c].data=x.extend(u[c].data,n)),a=u[c],i||(a.data||(a.data={}),a=a.data),r!==t&&(a[x.camelCase(n)]=r),"string"==typeof n?(o=a[n],null==o&&(o=a[x.camelCase(n)])):o=a,o}}function W(e,t,n){if(x.acceptData(e)){var r,i,o=e.nodeType,a=o?x.cache:e,s=o?e[x.expando]:x.expando;if(a[s]){if(t&&(r=n?a[s]:a[s].data)){x.isArray(t)?t=t.concat(x.map(t,x.camelCase)):t in r?t=[t]:(t=x.camelCase(t),t=t in r?[t]:t.split(" ")),i=t.length;while(i--)delete r[t[i]];if(n?!I(r):!x.isEmptyObject(r))return}(n||(delete a[s].data,I(a[s])))&&(o?x.cleanData([e],!0):x.support.deleteExpando||a!=a.window?delete a[s]:a[s]=null)}}}x.extend({cache:{},noData:{applet:!0,embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return e=e.nodeType?x.cache[e[x.expando]]:e[x.expando],!!e&&!I(e)},data:function(e,t,n){return R(e,t,n)},removeData:function(e,t){return W(e,t)},_data:function(e,t,n){return R(e,t,n,!0)},_removeData:function(e,t){return W(e,t,!0)},acceptData:function(e){if(e.nodeType&&1!==e.nodeType&&9!==e.nodeType)return!1;var t=e.nodeName&&x.noData[e.nodeName.toLowerCase()];return!t||t!==!0&&e.getAttribute("classid")===t}}),x.fn.extend({data:function(e,n){var r,i,o=null,a=0,s=this[0];if(e===t){if(this.length&&(o=x.data(s),1===s.nodeType&&!x._data(s,"parsedAttrs"))){for(r=s.attributes;r.length>a;a++)i=r[a].name,0===i.indexOf("data-")&&(i=x.camelCase(i.slice(5)),$(s,i,o[i]));x._data(s,"parsedAttrs",!0)}return o}return"object"==typeof e?this.each(function(){x.data(this,e)}):arguments.length>1?this.each(function(){x.data(this,e,n)}):s?$(s,e,x.data(s,e)):null},removeData:function(e){return this.each(function(){x.removeData(this,e)})}});function $(e,n,r){if(r===t&&1===e.nodeType){var i="data-"+n.replace(P,"-$1").toLowerCase();if(r=e.getAttribute(i),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:B.test(r)?x.parseJSON(r):r}catch(o){}x.data(e,n,r)}else r=t}return r}function I(e){var t;for(t in e)if(("data"!==t||!x.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}x.extend({queue:function(e,n,r){var i;return e?(n=(n||"fx")+"queue",i=x._data(e,n),r&&(!i||x.isArray(r)?i=x._data(e,n,x.makeArray(r)):i.push(r)),i||[]):t},dequeue:function(e,t){t=t||"fx";var n=x.queue(e,t),r=n.length,i=n.shift(),o=x._queueHooks(e,t),a=function(){x.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return x._data(e,n)||x._data(e,n,{empty:x.Callbacks("once memory").add(function(){x._removeData(e,t+"queue"),x._removeData(e,n)})})}}),x.fn.extend({queue:function(e,n){var r=2;return"string"!=typeof e&&(n=e,e="fx",r--),r>arguments.length?x.queue(this[0],e):n===t?this:this.each(function(){var t=x.queue(this,e,n);x._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&x.dequeue(this,e)})},dequeue:function(e){return this.each(function(){x.dequeue(this,e)})},delay:function(e,t){return e=x.fx?x.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,n){var r,i=1,o=x.Deferred(),a=this,s=this.length,l=function(){--i||o.resolveWith(a,[a])};"string"!=typeof e&&(n=e,e=t),e=e||"fx";while(s--)r=x._data(a[s],e+"queueHooks"),r&&r.empty&&(i++,r.empty.add(l));return l(),o.promise(n)}});var z,X,U=/[\t\r\n\f]/g,V=/\r/g,Y=/^(?:input|select|textarea|button|object)$/i,J=/^(?:a|area)$/i,G=/^(?:checked|selected)$/i,Q=x.support.getSetAttribute,K=x.support.input;x.fn.extend({attr:function(e,t){return x.access(this,x.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){x.removeAttr(this,e)})},prop:function(e,t){return x.access(this,x.prop,e,t,arguments.length>1)},removeProp:function(e){return e=x.propFix[e]||e,this.each(function(){try{this[e]=t,delete this[e]}catch(n){}})},addClass:function(e){var t,n,r,i,o,a=0,s=this.length,l="string"==typeof e&&e;if(x.isFunction(e))return this.each(function(t){x(this).addClass(e.call(this,t,this.className))});if(l)for(t=(e||"").match(T)||[];s>a;a++)if(n=this[a],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(U," "):" ")){o=0;while(i=t[o++])0>r.indexOf(" "+i+" ")&&(r+=i+" ");n.className=x.trim(r)}return this},removeClass:function(e){var t,n,r,i,o,a=0,s=this.length,l=0===arguments.length||"string"==typeof e&&e;if(x.isFunction(e))return this.each(function(t){x(this).removeClass(e.call(this,t,this.className))});if(l)for(t=(e||"").match(T)||[];s>a;a++)if(n=this[a],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(U," "):"")){o=0;while(i=t[o++])while(r.indexOf(" "+i+" ")>=0)r=r.replace(" "+i+" "," ");n.className=e?x.trim(r):""}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):x.isFunction(e)?this.each(function(n){x(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if("string"===n){var t,r=0,o=x(this),a=e.match(T)||[];while(t=a[r++])o.hasClass(t)?o.removeClass(t):o.addClass(t)}else(n===i||"boolean"===n)&&(this.className&&x._data(this,"__className__",this.className),this.className=this.className||e===!1?"":x._data(this,"__className__")||"")})},hasClass:function(e){var t=" "+e+" ",n=0,r=this.length;for(;r>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(U," ").indexOf(t)>=0)return!0;return!1},val:function(e){var n,r,i,o=this[0];{if(arguments.length)return i=x.isFunction(e),this.each(function(n){var o;1===this.nodeType&&(o=i?e.call(this,n,x(this).val()):e,null==o?o="":"number"==typeof o?o+="":x.isArray(o)&&(o=x.map(o,function(e){return null==e?"":e+""})),r=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()],r&&"set"in r&&r.set(this,o,"value")!==t||(this.value=o))});if(o)return r=x.valHooks[o.type]||x.valHooks[o.nodeName.toLowerCase()],r&&"get"in r&&(n=r.get(o,"value"))!==t?n:(n=o.value,"string"==typeof n?n.replace(V,""):null==n?"":n)}}}),x.extend({valHooks:{option:{get:function(e){var t=x.find.attr(e,"value");return null!=t?t:e.text}},select:{get:function(e){var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||0>i,a=o?null:[],s=o?i+1:r.length,l=0>i?s:o?i:0;for(;s>l;l++)if(n=r[l],!(!n.selected&&l!==i||(x.support.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&x.nodeName(n.parentNode,"optgroup"))){if(t=x(n).val(),o)return t;a.push(t)}return a},set:function(e,t){var n,r,i=e.options,o=x.makeArray(t),a=i.length;while(a--)r=i[a],(r.selected=x.inArray(x(r).val(),o)>=0)&&(n=!0);return n||(e.selectedIndex=-1),o}}},attr:function(e,n,r){var o,a,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return typeof e.getAttribute===i?x.prop(e,n,r):(1===s&&x.isXMLDoc(e)||(n=n.toLowerCase(),o=x.attrHooks[n]||(x.expr.match.bool.test(n)?X:z)),r===t?o&&"get"in o&&null!==(a=o.get(e,n))?a:(a=x.find.attr(e,n),null==a?t:a):null!==r?o&&"set"in o&&(a=o.set(e,r,n))!==t?a:(e.setAttribute(n,r+""),r):(x.removeAttr(e,n),t))},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(T);if(o&&1===e.nodeType)while(n=o[i++])r=x.propFix[n]||n,x.expr.match.bool.test(n)?K&&Q||!G.test(n)?e[r]=!1:e[x.camelCase("default-"+n)]=e[r]=!1:x.attr(e,n,""),e.removeAttribute(Q?n:r)},attrHooks:{type:{set:function(e,t){if(!x.support.radioValue&&"radio"===t&&x.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},propFix:{"for":"htmlFor","class":"className"},prop:function(e,n,r){var i,o,a,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return a=1!==s||!x.isXMLDoc(e),a&&(n=x.propFix[n]||n,o=x.propHooks[n]),r!==t?o&&"set"in o&&(i=o.set(e,r,n))!==t?i:e[n]=r:o&&"get"in o&&null!==(i=o.get(e,n))?i:e[n]},propHooks:{tabIndex:{get:function(e){var t=x.find.attr(e,"tabindex");return t?parseInt(t,10):Y.test(e.nodeName)||J.test(e.nodeName)&&e.href?0:-1}}}}),X={set:function(e,t,n){return t===!1?x.removeAttr(e,n):K&&Q||!G.test(n)?e.setAttribute(!Q&&x.propFix[n]||n,n):e[x.camelCase("default-"+n)]=e[n]=!0,n}},x.each(x.expr.match.bool.source.match(/\w+/g),function(e,n){var r=x.expr.attrHandle[n]||x.find.attr;x.expr.attrHandle[n]=K&&Q||!G.test(n)?function(e,n,i){var o=x.expr.attrHandle[n],a=i?t:(x.expr.attrHandle[n]=t)!=r(e,n,i)?n.toLowerCase():null;return x.expr.attrHandle[n]=o,a}:function(e,n,r){return r?t:e[x.camelCase("default-"+n)]?n.toLowerCase():null}}),K&&Q||(x.attrHooks.value={set:function(e,n,r){return x.nodeName(e,"input")?(e.defaultValue=n,t):z&&z.set(e,n,r)}}),Q||(z={set:function(e,n,r){var i=e.getAttributeNode(r);return i||e.setAttributeNode(i=e.ownerDocument.createAttribute(r)),i.value=n+="","value"===r||n===e.getAttribute(r)?n:t}},x.expr.attrHandle.id=x.expr.attrHandle.name=x.expr.attrHandle.coords=function(e,n,r){var i;return r?t:(i=e.getAttributeNode(n))&&""!==i.value?i.value:null},x.valHooks.button={get:function(e,n){var r=e.getAttributeNode(n);return r&&r.specified?r.value:t},set:z.set},x.attrHooks.contenteditable={set:function(e,t,n){z.set(e,""===t?!1:t,n)}},x.each(["width","height"],function(e,n){x.attrHooks[n]={set:function(e,r){return""===r?(e.setAttribute(n,"auto"),r):t}}})),x.support.hrefNormalized||x.each(["href","src"],function(e,t){x.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),x.support.style||(x.attrHooks.style={get:function(e){return e.style.cssText||t},set:function(e,t){return e.style.cssText=t+""}}),x.support.optSelected||(x.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){x.propFix[this.toLowerCase()]=this}),x.support.enctype||(x.propFix.enctype="encoding"),x.each(["radio","checkbox"],function(){x.valHooks[this]={set:function(e,n){return x.isArray(n)?e.checked=x.inArray(x(e).val(),n)>=0:t}},x.support.checkOn||(x.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Z=/^(?:input|select|textarea)$/i,et=/^key/,tt=/^(?:mouse|contextmenu)|click/,nt=/^(?:focusinfocus|focusoutblur)$/,rt=/^([^.]*)(?:\.(.+)|)$/;function it(){return!0}function ot(){return!1}function at(){try{return a.activeElement}catch(e){}}x.event={global:{},add:function(e,n,r,o,a){var s,l,u,c,p,f,d,h,g,m,y,v=x._data(e);if(v){r.handler&&(c=r,r=c.handler,a=c.selector),r.guid||(r.guid=x.guid++),(l=v.events)||(l=v.events={}),(f=v.handle)||(f=v.handle=function(e){return typeof x===i||e&&x.event.triggered===e.type?t:x.event.dispatch.apply(f.elem,arguments)},f.elem=e),n=(n||"").match(T)||[""],u=n.length;while(u--)s=rt.exec(n[u])||[],g=y=s[1],m=(s[2]||"").split(".").sort(),g&&(p=x.event.special[g]||{},g=(a?p.delegateType:p.bindType)||g,p=x.event.special[g]||{},d=x.extend({type:g,origType:y,data:o,handler:r,guid:r.guid,selector:a,needsContext:a&&x.expr.match.needsContext.test(a),namespace:m.join(".")},c),(h=l[g])||(h=l[g]=[],h.delegateCount=0,p.setup&&p.setup.call(e,o,m,f)!==!1||(e.addEventListener?e.addEventListener(g,f,!1):e.attachEvent&&e.attachEvent("on"+g,f))),p.add&&(p.add.call(e,d),d.handler.guid||(d.handler.guid=r.guid)),a?h.splice(h.delegateCount++,0,d):h.push(d),x.event.global[g]=!0);e=null}},remove:function(e,t,n,r,i){var o,a,s,l,u,c,p,f,d,h,g,m=x.hasData(e)&&x._data(e);if(m&&(c=m.events)){t=(t||"").match(T)||[""],u=t.length;while(u--)if(s=rt.exec(t[u])||[],d=g=s[1],h=(s[2]||"").split(".").sort(),d){p=x.event.special[d]||{},d=(r?p.delegateType:p.bindType)||d,f=c[d]||[],s=s[2]&&RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=o=f.length;while(o--)a=f[o],!i&&g!==a.origType||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||r&&r!==a.selector&&("**"!==r||!a.selector)||(f.splice(o,1),a.selector&&f.delegateCount--,p.remove&&p.remove.call(e,a));l&&!f.length&&(p.teardown&&p.teardown.call(e,h,m.handle)!==!1||x.removeEvent(e,d,m.handle),delete c[d])}else for(d in c)x.event.remove(e,d+t[u],n,r,!0);x.isEmptyObject(c)&&(delete m.handle,x._removeData(e,"events"))}},trigger:function(n,r,i,o){var s,l,u,c,p,f,d,h=[i||a],g=v.call(n,"type")?n.type:n,m=v.call(n,"namespace")?n.namespace.split("."):[];if(u=f=i=i||a,3!==i.nodeType&&8!==i.nodeType&&!nt.test(g+x.event.triggered)&&(g.indexOf(".")>=0&&(m=g.split("."),g=m.shift(),m.sort()),l=0>g.indexOf(":")&&"on"+g,n=n[x.expando]?n:new x.Event(g,"object"==typeof n&&n),n.isTrigger=o?2:3,n.namespace=m.join("."),n.namespace_re=n.namespace?RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,n.result=t,n.target||(n.target=i),r=null==r?[n]:x.makeArray(r,[n]),p=x.event.special[g]||{},o||!p.trigger||p.trigger.apply(i,r)!==!1)){if(!o&&!p.noBubble&&!x.isWindow(i)){for(c=p.delegateType||g,nt.test(c+g)||(u=u.parentNode);u;u=u.parentNode)h.push(u),f=u;f===(i.ownerDocument||a)&&h.push(f.defaultView||f.parentWindow||e)}d=0;while((u=h[d++])&&!n.isPropagationStopped())n.type=d>1?c:p.bindType||g,s=(x._data(u,"events")||{})[n.type]&&x._data(u,"handle"),s&&s.apply(u,r),s=l&&u[l],s&&x.acceptData(u)&&s.apply&&s.apply(u,r)===!1&&n.preventDefault();if(n.type=g,!o&&!n.isDefaultPrevented()&&(!p._default||p._default.apply(h.pop(),r)===!1)&&x.acceptData(i)&&l&&i[g]&&!x.isWindow(i)){f=i[l],f&&(i[l]=null),x.event.triggered=g;try{i[g]()}catch(y){}x.event.triggered=t,f&&(i[l]=f)}return n.result}},dispatch:function(e){e=x.event.fix(e);var n,r,i,o,a,s=[],l=g.call(arguments),u=(x._data(this,"events")||{})[e.type]||[],c=x.event.special[e.type]||{};if(l[0]=e,e.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,e)!==!1){s=x.event.handlers.call(this,e,u),n=0;while((o=s[n++])&&!e.isPropagationStopped()){e.currentTarget=o.elem,a=0;while((i=o.handlers[a++])&&!e.isImmediatePropagationStopped())(!e.namespace_re||e.namespace_re.test(i.namespace))&&(e.handleObj=i,e.data=i.data,r=((x.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,l),r!==t&&(e.result=r)===!1&&(e.preventDefault(),e.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,e),e.result}},handlers:function(e,n){var r,i,o,a,s=[],l=n.delegateCount,u=e.target;if(l&&u.nodeType&&(!e.button||"click"!==e.type))for(;u!=this;u=u.parentNode||this)if(1===u.nodeType&&(u.disabled!==!0||"click"!==e.type)){for(o=[],a=0;l>a;a++)i=n[a],r=i.selector+" ",o[r]===t&&(o[r]=i.needsContext?x(r,this).index(u)>=0:x.find(r,this,null,[u]).length),o[r]&&o.push(i);o.length&&s.push({elem:u,handlers:o})}return n.length>l&&s.push({elem:this,handlers:n.slice(l)}),s},fix:function(e){if(e[x.expando])return e;var t,n,r,i=e.type,o=e,s=this.fixHooks[i];s||(this.fixHooks[i]=s=tt.test(i)?this.mouseHooks:et.test(i)?this.keyHooks:{}),r=s.props?this.props.concat(s.props):this.props,e=new x.Event(o),t=r.length;while(t--)n=r[t],e[n]=o[n];return e.target||(e.target=o.srcElement||a),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,s.filter?s.filter(e,o):e},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,n){var r,i,o,s=n.button,l=n.fromElement;return null==e.pageX&&null!=n.clientX&&(i=e.target.ownerDocument||a,o=i.documentElement,r=i.body,e.pageX=n.clientX+(o&&o.scrollLeft||r&&r.scrollLeft||0)-(o&&o.clientLeft||r&&r.clientLeft||0),e.pageY=n.clientY+(o&&o.scrollTop||r&&r.scrollTop||0)-(o&&o.clientTop||r&&r.clientTop||0)),!e.relatedTarget&&l&&(e.relatedTarget=l===e.target?n.toElement:l),e.which||s===t||(e.which=1&s?1:2&s?3:4&s?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==at()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){return this===at()&&this.blur?(this.blur(),!1):t},delegateType:"focusout"},click:{trigger:function(){return x.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):t},_default:function(e){return x.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){e.result!==t&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var i=x.extend(new x.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?x.event.trigger(i,null,t):x.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},x.removeEvent=a.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){var r="on"+t;e.detachEvent&&(typeof e[r]===i&&(e[r]=null),e.detachEvent(r,n))},x.Event=function(e,n){return this instanceof x.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.returnValue===!1||e.getPreventDefault&&e.getPreventDefault()?it:ot):this.type=e,n&&x.extend(this,n),this.timeStamp=e&&e.timeStamp||x.now(),this[x.expando]=!0,t):new x.Event(e,n)},x.Event.prototype={isDefaultPrevented:ot,isPropagationStopped:ot,isImmediatePropagationStopped:ot,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=it,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=it,e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=it,this.stopPropagation()}},x.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){x.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return(!i||i!==r&&!x.contains(r,i))&&(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),x.support.submitBubbles||(x.event.special.submit={setup:function(){return x.nodeName(this,"form")?!1:(x.event.add(this,"click._submit keypress._submit",function(e){var n=e.target,r=x.nodeName(n,"input")||x.nodeName(n,"button")?n.form:t;r&&!x._data(r,"submitBubbles")&&(x.event.add(r,"submit._submit",function(e){e._submit_bubble=!0}),x._data(r,"submitBubbles",!0))}),t)},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&x.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){return x.nodeName(this,"form")?!1:(x.event.remove(this,"._submit"),t)}}),x.support.changeBubbles||(x.event.special.change={setup:function(){return Z.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(x.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)}),x.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),x.event.simulate("change",this,e,!0)})),!1):(x.event.add(this,"beforeactivate._change",function(e){var t=e.target;Z.test(t.nodeName)&&!x._data(t,"changeBubbles")&&(x.event.add(t,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||x.event.simulate("change",this.parentNode,e,!0)}),x._data(t,"changeBubbles",!0))}),t)},handle:function(e){var n=e.target;return this!==n||e.isSimulated||e.isTrigger||"radio"!==n.type&&"checkbox"!==n.type?e.handleObj.handler.apply(this,arguments):t},teardown:function(){return x.event.remove(this,"._change"),!Z.test(this.nodeName)}}),x.support.focusinBubbles||x.each({focus:"focusin",blur:"focusout"},function(e,t){var n=0,r=function(e){x.event.simulate(t,e.target,x.event.fix(e),!0)};x.event.special[t]={setup:function(){0===n++&&a.addEventListener(e,r,!0)},teardown:function(){0===--n&&a.removeEventListener(e,r,!0)}}}),x.fn.extend({on:function(e,n,r,i,o){var a,s;if("object"==typeof e){"string"!=typeof n&&(r=r||n,n=t);for(a in e)this.on(a,n,r,e[a],o);return this}if(null==r&&null==i?(i=n,r=n=t):null==i&&("string"==typeof n?(i=r,r=t):(i=r,r=n,n=t)),i===!1)i=ot;else if(!i)return this;return 1===o&&(s=i,i=function(e){return x().off(e),s.apply(this,arguments)},i.guid=s.guid||(s.guid=x.guid++)),this.each(function(){x.event.add(this,e,i,r,n)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,n,r){var i,o;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,x(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(o in e)this.off(o,n,e[o]);return this}return(n===!1||"function"==typeof n)&&(r=n,n=t),r===!1&&(r=ot),this.each(function(){x.event.remove(this,e,r,n)})},trigger:function(e,t){return this.each(function(){x.event.trigger(e,t,this)})},triggerHandler:function(e,n){var r=this[0];return r?x.event.trigger(e,n,r,!0):t}});var st=/^.[^:#\[\.,]*$/,lt=/^(?:parents|prev(?:Until|All))/,ut=x.expr.match.needsContext,ct={children:!0,contents:!0,next:!0,prev:!0};x.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if("string"!=typeof e)return this.pushStack(x(e).filter(function(){for(t=0;i>t;t++)if(x.contains(r[t],this))return!0}));for(t=0;i>t;t++)x.find(e,r[t],n);return n=this.pushStack(i>1?x.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},has:function(e){var t,n=x(e,this),r=n.length;return this.filter(function(){for(t=0;r>t;t++)if(x.contains(this,n[t]))return!0})},not:function(e){return this.pushStack(ft(this,e||[],!0))},filter:function(e){return this.pushStack(ft(this,e||[],!1))},is:function(e){return!!ft(this,"string"==typeof e&&ut.test(e)?x(e):e||[],!1).length},closest:function(e,t){var n,r=0,i=this.length,o=[],a=ut.test(e)||"string"!=typeof e?x(e,t||this.context):0;for(;i>r;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(11>n.nodeType&&(a?a.index(n)>-1:1===n.nodeType&&x.find.matchesSelector(n,e))){n=o.push(n);break}return this.pushStack(o.length>1?x.unique(o):o)},index:function(e){return e?"string"==typeof e?x.inArray(this[0],x(e)):x.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){var n="string"==typeof e?x(e,t):x.makeArray(e&&e.nodeType?[e]:e),r=x.merge(this.get(),n);return this.pushStack(x.unique(r))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}});function pt(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}x.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return x.dir(e,"parentNode")},parentsUntil:function(e,t,n){return x.dir(e,"parentNode",n)},next:function(e){return pt(e,"nextSibling")},prev:function(e){return pt(e,"previousSibling")},nextAll:function(e){return x.dir(e,"nextSibling")},prevAll:function(e){return x.dir(e,"previousSibling")},nextUntil:function(e,t,n){return x.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return x.dir(e,"previousSibling",n)},siblings:function(e){return x.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return x.sibling(e.firstChild)},contents:function(e){return x.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:x.merge([],e.childNodes)}},function(e,t){x.fn[e]=function(n,r){var i=x.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=x.filter(r,i)),this.length>1&&(ct[e]||(i=x.unique(i)),lt.test(e)&&(i=i.reverse())),this.pushStack(i)}}),x.extend({filter:function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?x.find.matchesSelector(r,e)?[r]:[]:x.find.matches(e,x.grep(t,function(e){return 1===e.nodeType}))},dir:function(e,n,r){var i=[],o=e[n];while(o&&9!==o.nodeType&&(r===t||1!==o.nodeType||!x(o).is(r)))1===o.nodeType&&i.push(o),o=o[n];return i},sibling:function(e,t){var n=[];for(;e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}});function ft(e,t,n){if(x.isFunction(t))return x.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return x.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(st.test(t))return x.filter(t,e,n);t=x.filter(t,e)}return x.grep(e,function(e){return x.inArray(e,t)>=0!==n})}function dt(e){var t=ht.split("|"),n=e.createDocumentFragment();if(n.createElement)while(t.length)n.createElement(t.pop());return n}var ht="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",gt=/ jQuery\d+="(?:null|\d+)"/g,mt=RegExp("<(?:"+ht+")[\\s/>]","i"),yt=/^\s+/,vt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,bt=/<([\w:]+)/,xt=/\s*$/g,At={option:[1,""],legend:[1,"
","
"],area:[1,"",""],param:[1,"",""],thead:[1,"","
"],tr:[2,"","
"],col:[2,"","
"],td:[3,"","
"],_default:x.support.htmlSerialize?[0,"",""]:[1,"X
","
"]},jt=dt(a),Dt=jt.appendChild(a.createElement("div"));At.optgroup=At.option,At.tbody=At.tfoot=At.colgroup=At.caption=At.thead,At.th=At.td,x.fn.extend({text:function(e){return x.access(this,function(e){return e===t?x.text(this):this.empty().append((this[0]&&this[0].ownerDocument||a).createTextNode(e))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Lt(this,e);t.appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Lt(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){var n,r=e?x.filter(e,this):this,i=0;for(;null!=(n=r[i]);i++)t||1!==n.nodeType||x.cleanData(Ft(n)),n.parentNode&&(t&&x.contains(n.ownerDocument,n)&&_t(Ft(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){var e,t=0;for(;null!=(e=this[t]);t++){1===e.nodeType&&x.cleanData(Ft(e,!1));while(e.firstChild)e.removeChild(e.firstChild);e.options&&x.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return x.clone(this,e,t)})},html:function(e){return x.access(this,function(e){var n=this[0]||{},r=0,i=this.length;if(e===t)return 1===n.nodeType?n.innerHTML.replace(gt,""):t;if(!("string"!=typeof e||Tt.test(e)||!x.support.htmlSerialize&&mt.test(e)||!x.support.leadingWhitespace&&yt.test(e)||At[(bt.exec(e)||["",""])[1].toLowerCase()])){e=e.replace(vt,"<$1>");try{for(;i>r;r++)n=this[r]||{},1===n.nodeType&&(x.cleanData(Ft(n,!1)),n.innerHTML=e);n=0}catch(o){}}n&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=x.map(this,function(e){return[e.nextSibling,e.parentNode]}),t=0;return this.domManip(arguments,function(n){var r=e[t++],i=e[t++];i&&(r&&r.parentNode!==i&&(r=this.nextSibling),x(this).remove(),i.insertBefore(n,r))},!0),t?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t,n){e=d.apply([],e);var r,i,o,a,s,l,u=0,c=this.length,p=this,f=c-1,h=e[0],g=x.isFunction(h);if(g||!(1>=c||"string"!=typeof h||x.support.checkClone)&&Nt.test(h))return this.each(function(r){var i=p.eq(r);g&&(e[0]=h.call(this,r,i.html())),i.domManip(e,t,n)});if(c&&(l=x.buildFragment(e,this[0].ownerDocument,!1,!n&&this),r=l.firstChild,1===l.childNodes.length&&(l=r),r)){for(a=x.map(Ft(l,"script"),Ht),o=a.length;c>u;u++)i=l,u!==f&&(i=x.clone(i,!0,!0),o&&x.merge(a,Ft(i,"script"))),t.call(this[u],i,u);if(o)for(s=a[a.length-1].ownerDocument,x.map(a,qt),u=0;o>u;u++)i=a[u],kt.test(i.type||"")&&!x._data(i,"globalEval")&&x.contains(s,i)&&(i.src?x._evalUrl(i.src):x.globalEval((i.text||i.textContent||i.innerHTML||"").replace(St,"")));l=r=null}return this}});function Lt(e,t){return x.nodeName(e,"table")&&x.nodeName(1===t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function Ht(e){return e.type=(null!==x.find.attr(e,"type"))+"/"+e.type,e}function qt(e){var t=Et.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function _t(e,t){var n,r=0;for(;null!=(n=e[r]);r++)x._data(n,"globalEval",!t||x._data(t[r],"globalEval"))}function Mt(e,t){if(1===t.nodeType&&x.hasData(e)){var n,r,i,o=x._data(e),a=x._data(t,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(r=0,i=s[n].length;i>r;r++)x.event.add(t,n,s[n][r])}a.data&&(a.data=x.extend({},a.data))}}function Ot(e,t){var n,r,i;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!x.support.noCloneEvent&&t[x.expando]){i=x._data(t);for(r in i.events)x.removeEvent(t,r,i.handle);t.removeAttribute(x.expando)}"script"===n&&t.text!==e.text?(Ht(t).text=e.text,qt(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),x.support.html5Clone&&e.innerHTML&&!x.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&Ct.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}}x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){x.fn[e]=function(e){var n,r=0,i=[],o=x(e),a=o.length-1;for(;a>=r;r++)n=r===a?this:this.clone(!0),x(o[r])[t](n),h.apply(i,n.get());return this.pushStack(i)}});function Ft(e,n){var r,o,a=0,s=typeof e.getElementsByTagName!==i?e.getElementsByTagName(n||"*"):typeof e.querySelectorAll!==i?e.querySelectorAll(n||"*"):t;if(!s)for(s=[],r=e.childNodes||e;null!=(o=r[a]);a++)!n||x.nodeName(o,n)?s.push(o):x.merge(s,Ft(o,n));return n===t||n&&x.nodeName(e,n)?x.merge([e],s):s}function Bt(e){Ct.test(e.type)&&(e.defaultChecked=e.checked)}x.extend({clone:function(e,t,n){var r,i,o,a,s,l=x.contains(e.ownerDocument,e);if(x.support.html5Clone||x.isXMLDoc(e)||!mt.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(Dt.innerHTML=e.outerHTML,Dt.removeChild(o=Dt.firstChild)),!(x.support.noCloneEvent&&x.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||x.isXMLDoc(e)))for(r=Ft(o),s=Ft(e),a=0;null!=(i=s[a]);++a)r[a]&&Ot(i,r[a]);if(t)if(n)for(s=s||Ft(e),r=r||Ft(o),a=0;null!=(i=s[a]);a++)Mt(i,r[a]);else Mt(e,o);return r=Ft(o,"script"),r.length>0&&_t(r,!l&&Ft(e,"script")),r=s=i=null,o},buildFragment:function(e,t,n,r){var i,o,a,s,l,u,c,p=e.length,f=dt(t),d=[],h=0;for(;p>h;h++)if(o=e[h],o||0===o)if("object"===x.type(o))x.merge(d,o.nodeType?[o]:o);else if(wt.test(o)){s=s||f.appendChild(t.createElement("div")),l=(bt.exec(o)||["",""])[1].toLowerCase(),c=At[l]||At._default,s.innerHTML=c[1]+o.replace(vt,"<$1>")+c[2],i=c[0];while(i--)s=s.lastChild;if(!x.support.leadingWhitespace&&yt.test(o)&&d.push(t.createTextNode(yt.exec(o)[0])),!x.support.tbody){o="table"!==l||xt.test(o)?""!==c[1]||xt.test(o)?0:s:s.firstChild,i=o&&o.childNodes.length;while(i--)x.nodeName(u=o.childNodes[i],"tbody")&&!u.childNodes.length&&o.removeChild(u)}x.merge(d,s.childNodes),s.textContent="";while(s.firstChild)s.removeChild(s.firstChild);s=f.lastChild}else d.push(t.createTextNode(o));s&&f.removeChild(s),x.support.appendChecked||x.grep(Ft(d,"input"),Bt),h=0;while(o=d[h++])if((!r||-1===x.inArray(o,r))&&(a=x.contains(o.ownerDocument,o),s=Ft(f.appendChild(o),"script"),a&&_t(s),n)){i=0;while(o=s[i++])kt.test(o.type||"")&&n.push(o)}return s=null,f},cleanData:function(e,t){var n,r,o,a,s=0,l=x.expando,u=x.cache,c=x.support.deleteExpando,f=x.event.special;for(;null!=(n=e[s]);s++)if((t||x.acceptData(n))&&(o=n[l],a=o&&u[o])){if(a.events)for(r in a.events)f[r]?x.event.remove(n,r):x.removeEvent(n,r,a.handle); +u[o]&&(delete u[o],c?delete n[l]:typeof n.removeAttribute!==i?n.removeAttribute(l):n[l]=null,p.push(o))}},_evalUrl:function(e){return x.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})}}),x.fn.extend({wrapAll:function(e){if(x.isFunction(e))return this.each(function(t){x(this).wrapAll(e.call(this,t))});if(this[0]){var t=x(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstChild&&1===e.firstChild.nodeType)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return x.isFunction(e)?this.each(function(t){x(this).wrapInner(e.call(this,t))}):this.each(function(){var t=x(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=x.isFunction(e);return this.each(function(n){x(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){x.nodeName(this,"body")||x(this).replaceWith(this.childNodes)}).end()}});var Pt,Rt,Wt,$t=/alpha\([^)]*\)/i,It=/opacity\s*=\s*([^)]*)/,zt=/^(top|right|bottom|left)$/,Xt=/^(none|table(?!-c[ea]).+)/,Ut=/^margin/,Vt=RegExp("^("+w+")(.*)$","i"),Yt=RegExp("^("+w+")(?!px)[a-z%]+$","i"),Jt=RegExp("^([+-])=("+w+")","i"),Gt={BODY:"block"},Qt={position:"absolute",visibility:"hidden",display:"block"},Kt={letterSpacing:0,fontWeight:400},Zt=["Top","Right","Bottom","Left"],en=["Webkit","O","Moz","ms"];function tn(e,t){if(t in e)return t;var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=en.length;while(i--)if(t=en[i]+n,t in e)return t;return r}function nn(e,t){return e=t||e,"none"===x.css(e,"display")||!x.contains(e.ownerDocument,e)}function rn(e,t){var n,r,i,o=[],a=0,s=e.length;for(;s>a;a++)r=e[a],r.style&&(o[a]=x._data(r,"olddisplay"),n=r.style.display,t?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&nn(r)&&(o[a]=x._data(r,"olddisplay",ln(r.nodeName)))):o[a]||(i=nn(r),(n&&"none"!==n||!i)&&x._data(r,"olddisplay",i?n:x.css(r,"display"))));for(a=0;s>a;a++)r=e[a],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[a]||"":"none"));return e}x.fn.extend({css:function(e,n){return x.access(this,function(e,n,r){var i,o,a={},s=0;if(x.isArray(n)){for(o=Rt(e),i=n.length;i>s;s++)a[n[s]]=x.css(e,n[s],!1,o);return a}return r!==t?x.style(e,n,r):x.css(e,n)},e,n,arguments.length>1)},show:function(){return rn(this,!0)},hide:function(){return rn(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){nn(this)?x(this).show():x(this).hide()})}}),x.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Wt(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":x.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,n,r,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,a,s,l=x.camelCase(n),u=e.style;if(n=x.cssProps[l]||(x.cssProps[l]=tn(u,l)),s=x.cssHooks[n]||x.cssHooks[l],r===t)return s&&"get"in s&&(o=s.get(e,!1,i))!==t?o:u[n];if(a=typeof r,"string"===a&&(o=Jt.exec(r))&&(r=(o[1]+1)*o[2]+parseFloat(x.css(e,n)),a="number"),!(null==r||"number"===a&&isNaN(r)||("number"!==a||x.cssNumber[l]||(r+="px"),x.support.clearCloneStyle||""!==r||0!==n.indexOf("background")||(u[n]="inherit"),s&&"set"in s&&(r=s.set(e,r,i))===t)))try{u[n]=r}catch(c){}}},css:function(e,n,r,i){var o,a,s,l=x.camelCase(n);return n=x.cssProps[l]||(x.cssProps[l]=tn(e.style,l)),s=x.cssHooks[n]||x.cssHooks[l],s&&"get"in s&&(a=s.get(e,!0,r)),a===t&&(a=Wt(e,n,i)),"normal"===a&&n in Kt&&(a=Kt[n]),""===r||r?(o=parseFloat(a),r===!0||x.isNumeric(o)?o||0:a):a}}),e.getComputedStyle?(Rt=function(t){return e.getComputedStyle(t,null)},Wt=function(e,n,r){var i,o,a,s=r||Rt(e),l=s?s.getPropertyValue(n)||s[n]:t,u=e.style;return s&&(""!==l||x.contains(e.ownerDocument,e)||(l=x.style(e,n)),Yt.test(l)&&Ut.test(n)&&(i=u.width,o=u.minWidth,a=u.maxWidth,u.minWidth=u.maxWidth=u.width=l,l=s.width,u.width=i,u.minWidth=o,u.maxWidth=a)),l}):a.documentElement.currentStyle&&(Rt=function(e){return e.currentStyle},Wt=function(e,n,r){var i,o,a,s=r||Rt(e),l=s?s[n]:t,u=e.style;return null==l&&u&&u[n]&&(l=u[n]),Yt.test(l)&&!zt.test(n)&&(i=u.left,o=e.runtimeStyle,a=o&&o.left,a&&(o.left=e.currentStyle.left),u.left="fontSize"===n?"1em":l,l=u.pixelLeft+"px",u.left=i,a&&(o.left=a)),""===l?"auto":l});function on(e,t,n){var r=Vt.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function an(e,t,n,r,i){var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;for(;4>o;o+=2)"margin"===n&&(a+=x.css(e,n+Zt[o],!0,i)),r?("content"===n&&(a-=x.css(e,"padding"+Zt[o],!0,i)),"margin"!==n&&(a-=x.css(e,"border"+Zt[o]+"Width",!0,i))):(a+=x.css(e,"padding"+Zt[o],!0,i),"padding"!==n&&(a+=x.css(e,"border"+Zt[o]+"Width",!0,i)));return a}function sn(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=Rt(e),a=x.support.boxSizing&&"border-box"===x.css(e,"boxSizing",!1,o);if(0>=i||null==i){if(i=Wt(e,t,o),(0>i||null==i)&&(i=e.style[t]),Yt.test(i))return i;r=a&&(x.support.boxSizingReliable||i===e.style[t]),i=parseFloat(i)||0}return i+an(e,t,n||(a?"border":"content"),r,o)+"px"}function ln(e){var t=a,n=Gt[e];return n||(n=un(e,t),"none"!==n&&n||(Pt=(Pt||x("