migration_id
stringclasses
994 values
ver1_file_path
stringlengths
25
222
ver2_file_path
stringlengths
28
222
ver1_tree_path
stringlengths
1
111
ver2_tree_path
stringlengths
1
105
ver1_signature
stringlengths
5
3.53k
ver2_signature
stringlengths
5
3.53k
method_ver1
stringlengths
8
336k
method_ver2
stringlengths
8
171k
yandex-qatools_hamcrest-pojo-matcher-generator__cc7a474d3ea53164d28b4a1b23c25989982e7d03__cc7a474d3ea53164d28b4a1b23c25989982e7d03
feature-matcher-generator/src/test/java/ru/yandex/qatools/processors/matcher/gen/TypeElemConverterTest.java
null
TypeElemConverterTest
null
shouldGetTypeElemFromElementsUtils__()
null
@Test public void shouldGetTypeElemFromElementsUtils() throws Exception { StringToTypeElementConverter.toTypeElements(elements).convert(CLASS_NAME); verify(elements).getTypeElement(CLASS_NAME); }
null
yegor256_rexsl__4f2004df2263267840b7b078604ddf3cac6cfc4e__4f2004df2263267840b7b078604ddf3cac6cfc4e
rexsl-maven-plugin/src/main/java/com/rexsl/maven/MavenEnvironment.java
null
MavenEnvironment
null
artifacts__(final boolean tonly)
null
private Set<Artifact> artifacts(final boolean tonly) { final Set<Artifact> artifacts = new LinkedHashSet<Artifact>(); final Aether aether = new Aether(this.project, this.localRepo); Logger.debug(this, "Full tree of artifacts in classpath:"); for (RootArtifact root : this.roots(tonly)) { Logger.debug(this, " %s", root); for (Artifact dep : this.deps(aether, root)) { boolean found = false; for (Artifact exists : artifacts) { if (dep.getArtifactId().equals(exists.getArtifactId()) && dep.getGroupId().equals(exists.getGroupId()) && dep.getClassifier().equals(exists.getClassifier())) { found = true; break; } } if (found) { Logger.debug( this, " %s:%s:%s:%s (duplicate, ignored)", dep.getGroupId(), dep.getArtifactId(), dep.getClassifier(), dep.getVersion() ); continue; } if (root.excluded(dep)) { Logger.debug( this, " %s:%s:%s:%s (excluded)", dep.getGroupId(), dep.getArtifactId(), dep.getClassifier(), dep.getVersion() ); continue; } artifacts.add(dep); Logger.debug( this, " %s:%s:%s:%s", dep.getGroupId(), dep.getArtifactId(), dep.getClassifier(), dep.getVersion() ); } } return artifacts; }
null
yegor256_rexsl__4f2004df2263267840b7b078604ddf3cac6cfc4e__4f2004df2263267840b7b078604ddf3cac6cfc4e
rexsl-maven-plugin/src/main/java/com/rexsl/maven/MavenEnvironment.java
null
MavenEnvironment
null
roots__(final boolean tonly)
null
@SuppressWarnings("PMD.AvoidInstantiatingObjectsInLoops") private Set<RootArtifact> roots(final boolean tonly) { final Set<RootArtifact> roots = new LinkedHashSet<RootArtifact>(); for (Dependency dep : this.project.getDependencies()) { if (!org.apache.maven.artifact.Artifact.SCOPE_TEST .equals(dep.getScope()) && tonly) { continue; } roots.add( new RootArtifact( new DefaultArtifact( dep.getGroupId(), dep.getArtifactId(), dep.getClassifier(), dep.getType(), dep.getVersion() ), dep.getExclusions() ) ); } return roots; }
null
yegor256_rexsl__4f2004df2263267840b7b078604ddf3cac6cfc4e__4f2004df2263267840b7b078604ddf3cac6cfc4e
rexsl-maven-plugin/src/main/java/com/rexsl/maven/MavenEnvironment.java
null
MavenEnvironment
null
deps__(final Aether aether, final RootArtifact root)
null
private Collection<Artifact> deps(final Aether aether, final RootArtifact root) { Collection<Artifact> deps; try { deps = aether.resolve(root.artifact(), JavaScopes.RUNTIME); } catch (DependencyResolutionException ex) { throw new IllegalStateException( String.format("Failed to resolve '%s'", root), ex ); } return deps; }
null
yuboon_Aooms__a2ad79b702f7163810fc0651f22de59c2949f123__a2ad79b702f7163810fc0651f22de59c2949f123
aooms-core/src/main/java/net/aooms/core/module/hystrix/AoomsHystrixAspect.java
null
AoomsHystrixAspect
null
before__(JoinPoint jp)
null
@Before("requestMapping()") public void before(JoinPoint jp) throws Throwable { log.info("before method {}", jp.getSignature().getName()); }
null
yuboon_Aooms__a2ad79b702f7163810fc0651f22de59c2949f123__a2ad79b702f7163810fc0651f22de59c2949f123
aooms-core/src/main/java/net/aooms/core/module/hystrix/AoomsHystrixAspect.java
null
AoomsHystrixAspect
null
afterReturning__(JoinPoint jp)
null
@AfterReturning("requestMapping()") public void afterReturning(JoinPoint jp) throws Throwable { log.info("afterReturning method {}", jp.getSignature().getName()); }
null
yuboon_Aooms__a2ad79b702f7163810fc0651f22de59c2949f123__a2ad79b702f7163810fc0651f22de59c2949f123
aooms-core/src/main/java/net/aooms/core/module/hystrix/AoomsHystrixAspect.java
null
AoomsHystrixAspect
null
afterThrowing__(JoinPoint joinPoint)
null
@AfterThrowing("requestMapping()") public void afterThrowing(JoinPoint joinPoint) throws Throwable { log.info("afterThrowing method is {}",joinPoint.getSignature().getName()); }
null
yuboon_Aooms__a2ad79b702f7163810fc0651f22de59c2949f123__a2ad79b702f7163810fc0651f22de59c2949f123
aooms-core/src/main/java/net/aooms/core/module/hystrix/AoomsHystrixAspect.java
null
AoomsHystrixAspect
null
after__(JoinPoint joinPoint)
null
@After("requestMapping()") public void after(JoinPoint joinPoint) { }
null
yuboon_Aooms__a2ad79b702f7163810fc0651f22de59c2949f123__a2ad79b702f7163810fc0651f22de59c2949f123
aooms-core/src/main/java/net/aooms/core/property/loader/YamlPropertiesContextInitializer.java
null
YamlPropertiesContextInitializer
null
initialize__(ConfigurableApplicationContext applicationContext)
null
@Override public void initialize(ConfigurableApplicationContext applicationContext) { try { Resource resource = applicationContext.getResource("classpath:/aooms/my.yml"); String name = StringUtils.stripFilenameExtension(resource.getFilename()); YamlPropertySourceLoader sourceLoader = new YamlPropertySourceLoader(); PropertySource<?> yamlProperties = sourceLoader.load(name, resource, null); applicationContext.getEnvironment().getPropertySources().addFirst(yamlProperties); } catch (IOException e) { throw new RuntimeException(e); } }
null
yuboon_Aooms__a2ad79b702f7163810fc0651f22de59c2949f123__a2ad79b702f7163810fc0651f22de59c2949f123
aooms-example-quickstart/src/main/java/net/aooms/demo/controller/DemoController.java
null
DemoController
null
hiError__()
null
public void hiError() { System.err.println("error......"); //System.err.println("name:" + this.getParaString("name")); //System.err.println("hiError.ThreadName = " + Thread.currentThread().getName()); //this.redirect("/error"); }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/test/java/org/zanata/client/commands/push/PushCommandTest.java
null
PushCommandTest
null
PushCommandTest__()
null
public PushCommandTest() throws Exception { initMocks(this); }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/main/java/org/zanata/client/commands/ConfigurableCommand.java
null
ConfigurableCommand
null
ConfigurableCommand__(O opts, ZanataProxyFactory factory)
null
public ConfigurableCommand(O opts, ZanataProxyFactory factory) { this.opts = opts; if (factory != null) this.requestFactory = factory; else this.requestFactory = OptionsUtil.createRequestFactory(opts); }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/main/java/org/zanata/client/commands/ConfigurableCommand.java
null
ConfigurableCommand
null
getRequestFactory__()
null
public ZanataProxyFactory getRequestFactory() { return requestFactory; }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/test/java/org/zanata/client/commands/DummyResponse.java
null
DummyResponse
null
DummyResponse__(Status status, T entity)
null
public DummyResponse(Status status, T entity) { super(); this.status = status; this.entity = entity; }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/test/java/org/zanata/client/commands/DummyResponse.java
null
DummyResponse
null
getEntity__()
null
@Override public T getEntity() { return entity; }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/test/java/org/zanata/client/commands/DummyResponse.java
null
DummyResponse
null
getEntity__(Class<T2> arg0)
null
@Override public <T2> T2 getEntity(Class<T2> arg0) { return null; }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/test/java/org/zanata/client/commands/DummyResponse.java
null
DummyResponse
null
getEntity__(GenericType<T2> arg0)
null
@Override public <T2> T2 getEntity(GenericType<T2> arg0) { return null; }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/test/java/org/zanata/client/commands/DummyResponse.java
null
DummyResponse
null
getEntity__(Class<T2> arg0, Type arg1)
null
@Override public <T2> T2 getEntity(Class<T2> arg0, Type arg1) { return null; }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/test/java/org/zanata/client/commands/DummyResponse.java
null
DummyResponse
null
getEntity__(GenericType<T2> arg0, Annotation[] arg1)
null
@Override public <T2> T2 getEntity(GenericType<T2> arg0, Annotation[] arg1) { return null; }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/test/java/org/zanata/client/commands/DummyResponse.java
null
DummyResponse
null
getEntity__(Class<T2> arg0, Type arg1, Annotation[] arg2)
null
@Override public <T2> T2 getEntity(Class<T2> arg0, Type arg1, Annotation[] arg2) { return null; }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/test/java/org/zanata/client/commands/DummyResponse.java
null
DummyResponse
null
getHeaderAsLink__(String arg0)
null
@Override public Link getHeaderAsLink(String arg0) { return null; }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/test/java/org/zanata/client/commands/DummyResponse.java
null
DummyResponse
null
getHeaders__()
null
@Override public MultivaluedMap<String, Object> getHeaders() { return null; }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/test/java/org/zanata/client/commands/DummyResponse.java
null
DummyResponse
null
getResponseHeaders__()
null
@Override public MultivaluedMap<String, String> getResponseHeaders() { return null; }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/test/java/org/zanata/client/commands/DummyResponse.java
null
DummyResponse
null
getLocationLink__()
null
@Override public Link getLocationLink() { return null; }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/test/java/org/zanata/client/commands/DummyResponse.java
null
DummyResponse
null
getStatusInfo__()
null
@Override public StatusType getStatusInfo() { return null; }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/test/java/org/zanata/client/commands/DummyResponse.java
null
DummyResponse
null
readEntity__(Class<T> entityType)
null
@Override public <T> T readEntity(Class<T> entityType) { return null; }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/test/java/org/zanata/client/commands/DummyResponse.java
null
DummyResponse
null
readEntity__(javax.ws.rs.core.GenericType<T> entityType)
null
@Override public <T> T readEntity(javax.ws.rs.core.GenericType<T> entityType) { return null; }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/test/java/org/zanata/client/commands/DummyResponse.java
null
DummyResponse
null
readEntity__(Class<T> entityType, Annotation[] annotations)
null
@Override public <T> T readEntity(Class<T> entityType, Annotation[] annotations) { return null; }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/test/java/org/zanata/client/commands/DummyResponse.java
null
DummyResponse
null
readEntity__(javax.ws.rs.core.GenericType<T> entityType, Annotation[] annotations)
null
@Override public <T> T readEntity(javax.ws.rs.core.GenericType<T> entityType, Annotation[] annotations) { return null; }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/test/java/org/zanata/client/commands/DummyResponse.java
null
DummyResponse
null
hasEntity__()
null
@Override public boolean hasEntity() { return false; }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/test/java/org/zanata/client/commands/DummyResponse.java
null
DummyResponse
null
bufferEntity__()
null
@Override public boolean bufferEntity() { return false; }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/test/java/org/zanata/client/commands/DummyResponse.java
null
DummyResponse
null
close__()
null
@Override public void close() { }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/test/java/org/zanata/client/commands/DummyResponse.java
null
DummyResponse
null
getMediaType__()
null
@Override public MediaType getMediaType() { return null; }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/test/java/org/zanata/client/commands/DummyResponse.java
null
DummyResponse
null
getLanguage__()
null
@Override public Locale getLanguage() { return null; }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/test/java/org/zanata/client/commands/DummyResponse.java
null
DummyResponse
null
getLength__()
null
@Override public int getLength() { return 0; }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/test/java/org/zanata/client/commands/DummyResponse.java
null
DummyResponse
null
getAllowedMethods__()
null
@Override public Set<String> getAllowedMethods() { return null; }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/test/java/org/zanata/client/commands/DummyResponse.java
null
DummyResponse
null
getCookies__()
null
@Override public Map<String, NewCookie> getCookies() { return null; }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/test/java/org/zanata/client/commands/DummyResponse.java
null
DummyResponse
null
getEntityTag__()
null
@Override public EntityTag getEntityTag() { return null; }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/test/java/org/zanata/client/commands/DummyResponse.java
null
DummyResponse
null
getDate__()
null
@Override public Date getDate() { return null; }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/test/java/org/zanata/client/commands/DummyResponse.java
null
DummyResponse
null
getLastModified__()
null
@Override public Date getLastModified() { return null; }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/test/java/org/zanata/client/commands/DummyResponse.java
null
DummyResponse
null
getLinks__()
null
@Override public Set<javax.ws.rs.core.Link> getLinks() { return null; }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/test/java/org/zanata/client/commands/DummyResponse.java
null
DummyResponse
null
hasLink__(String relation)
null
@Override public boolean hasLink(String relation) { return false; }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/test/java/org/zanata/client/commands/DummyResponse.java
null
DummyResponse
null
getLink__(String relation)
null
@Override public javax.ws.rs.core.Link getLink(String relation) { return null; }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/test/java/org/zanata/client/commands/DummyResponse.java
null
DummyResponse
null
getLinkBuilder__(String relation)
null
@Override public javax.ws.rs.core.Link.Builder getLinkBuilder(String relation) { return null; }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/test/java/org/zanata/client/commands/DummyResponse.java
null
DummyResponse
null
getStringHeaders__()
null
@Override public MultivaluedMap<String, String> getStringHeaders() { return null; }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/test/java/org/zanata/client/commands/DummyResponse.java
null
DummyResponse
null
getHeaderString__(String name)
null
@Override public String getHeaderString(String name) { return null; }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/test/java/org/zanata/client/commands/DummyResponse.java
null
DummyResponse
null
getLinkHeader__()
null
@Override public LinkHeader getLinkHeader() { return null; }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/test/java/org/zanata/client/commands/DummyResponse.java
null
DummyResponse
null
getLocation__()
null
@Override public URI getLocation() { return null; }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/test/java/org/zanata/client/commands/DummyResponse.java
null
DummyResponse
null
getResponseStatus__()
null
@Override public Status getResponseStatus() { return status; }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/test/java/org/zanata/client/commands/DummyResponse.java
null
DummyResponse
null
releaseConnection__()
null
@Override public void releaseConnection() { }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/test/java/org/zanata/client/commands/DummyResponse.java
null
DummyResponse
null
getStatus__()
null
@Override public int getStatus() { return status.getStatusCode(); }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/test/java/org/zanata/client/commands/DummyResponse.java
null
DummyResponse
null
getMetadata__()
null
@Override public MultivaluedMap<String, Object> getMetadata() { return null; }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/test/java/org/zanata/client/commands/DummyResponse.java
null
DummyResponse
null
getAttributes__()
null
@Override public Map<String, Object> getAttributes() { return null; }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/test/java/org/zanata/client/commands/DummyResponse.java
null
DummyResponse
null
resetStream__()
null
@Override public void resetStream() { }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/main/java/org/zanata/client/commands/glossary/push/GlossaryPushCommand.java
null
GlossaryPushCommand
null
GlossaryPushCommand__(GlossaryPushOptions opts, ZanataProxyFactory factory, IGlossaryResource glossaryResource)
null
public GlossaryPushCommand(GlossaryPushOptions opts, ZanataProxyFactory factory, IGlossaryResource glossaryResource) { super(opts, factory); this.glossaryResource = glossaryResource; }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/main/java/org/zanata/client/commands/glossary/push/GlossaryPushCommand.java
null
GlossaryPushCommand
null
GlossaryPushCommand__(GlossaryPushOptions opts, ZanataProxyFactory factory)
null
private GlossaryPushCommand(GlossaryPushOptions opts, ZanataProxyFactory factory) { this(opts, factory, factory.getGlossaryResource()); }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/test/java/org/zanata/client/commands/init/ProjectPromptTest.java
null
ProjectPromptTest
null
cleanUp__()
null
@After public void cleanUp() throws IOException { if (connection != null) { connection.close(); } }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/test/java/org/zanata/client/commands/init/ProjectPromptTest.java
null
ProjectPromptTest
null
startMockServer__(Container container)
null
private void startMockServer(Container container) throws IOException { ContainerServer server = new ContainerServer(container); connection = new SocketConnection(server); InetSocketAddress address = (InetSocketAddress) connection .connect(new InetSocketAddress(0)); int port = address.getPort(); opts.setUrl(URI.create("http://localhost:" + port).toURL()); opts.setUsername("admin"); opts.setKey("abcde"); opts.setLogHttp(false); proxyFactory = OptionsUtil.createRequestFactory(opts); }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/main/java/org/zanata/client/commands/push/OfflinePoStrategy.java
null
OfflinePoStrategy
null
OfflinePoStrategy__(ISourceDocResource sourceDocResource, URI uri)
null
public OfflinePoStrategy(ISourceDocResource sourceDocResource, URI uri) { this.sourceDocResource = sourceDocResource; this.uri = uri; poReader = new PoReader2(true); }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/main/java/org/zanata/client/commands/pull/RawPullCommand.java
null
RawPullCommand
null
RawPullCommand__(PullOptions opts, ZanataProxyFactory factory, ISourceDocResource sourceDocResource, ITranslatedDocResource translationResources, URI uri, IFileResource fileResource)
null
@VisibleForTesting public RawPullCommand(PullOptions opts, ZanataProxyFactory factory, ISourceDocResource sourceDocResource, ITranslatedDocResource translationResources, URI uri, IFileResource fileResource) { super(opts, factory, sourceDocResource, translationResources, uri); this.fileResource = fileResource; }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/main/java/org/zanata/client/commands/push/RawPushCommand.java
null
RawPushCommand
null
RawPushCommand__(PushOptions opts, ZanataProxyFactory factory, ISourceDocResource sourceDocResource, ITranslatedDocResource translationResources, URI uri)
null
public RawPushCommand(PushOptions opts, ZanataProxyFactory factory, ISourceDocResource sourceDocResource, ITranslatedDocResource translationResources, URI uri) { super(opts, factory, sourceDocResource, translationResources, uri); this.fileResource = factory.getFileResource(); }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/main/java/org/zanata/client/commands/push/RawPushCommand.java
null
RawPushCommand
null
checkChunkUploadStatus__( ClientResponse<ChunkUploadResponse> uploadResponse)
null
private void checkChunkUploadStatus( ClientResponse<ChunkUploadResponse> uploadResponse) { if (uploadResponse.getStatus() >= 300) { throw new RuntimeException("Server returned error status: " + uploadResponse.getStatus() + ". Error message: " + uploadResponse.getEntity().getErrorMessage()); } }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/test/java/org/zanata/client/commands/init/InitCommandTest.java
null
InitCommandTest
null
cleanUp__()
null
@After public void cleanUp() throws IOException { if (connection != null) { connection.close(); } }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/test/java/org/zanata/client/commands/init/InitCommandTest.java
null
InitCommandTest
null
startMockServer__(Container container)
null
private void startMockServer(Container container) throws IOException { ContainerServer server = new ContainerServer(container); connection = new SocketConnection(server); InetSocketAddress address = (InetSocketAddress) connection .connect(new InetSocketAddress(0)); int port = address.getPort(); opts.setUrl(URI.create("http://localhost:" + port).toURL()); opts.setUsername("admin"); opts.setKey("abcde"); opts.setLogHttp(false); }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/main/java/org/zanata/client/commands/push/PushCommand.java
null
PushCommand
null
PushCommand__(PushOptions opts, ZanataProxyFactory factory, ISourceDocResource sourceDocResource, ITranslatedDocResource translationResources, URI uri)
null
public PushCommand(PushOptions opts, ZanataProxyFactory factory, ISourceDocResource sourceDocResource, ITranslatedDocResource translationResources, URI uri) { super(opts, factory, sourceDocResource, translationResources, uri); copyTransResource = factory.getCopyTransResource(); asyncProcessResource = factory.getAsynchronousProcessResource(); }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/main/java/org/zanata/client/commands/ListLocalCommand.java
null
ListLocalCommand
null
ListLocalCommand__(ConfigurableProjectOptions opts, ZanataProxyFactory factory)
null
public ListLocalCommand(ConfigurableProjectOptions opts, ZanataProxyFactory factory) { super(opts, factory); }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/main/java/org/zanata/client/commands/PushPullCommand.java
null
PushPullCommand
null
PushPullCommand__(O opts, ZanataProxyFactory factory, ISourceDocResource sourceDocResource, ITranslatedDocResource translationResources, URI uri)
null
public PushPullCommand(O opts, ZanataProxyFactory factory, ISourceDocResource sourceDocResource, ITranslatedDocResource translationResources, URI uri) { super(opts, factory); this.sourceDocResource = sourceDocResource; this.translationResources = translationResources; this.uri = uri; this.modulePrefix = opts.getEnableModules() ? getOpts().getCurrentModule() + opts.getModuleSuffix() : ""; this.loadETagCache(); }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/main/java/org/zanata/client/commands/PushPullCommand.java
null
PushPullCommand
null
PushPullCommand__(O opts, ZanataProxyFactory factory)
null
private PushPullCommand(O opts, ZanataProxyFactory factory) { this(opts, factory, factory.getSourceDocResource(opts.getProj(), opts.getProjectVersion()), factory.getTranslatedDocResource( opts.getProj(), opts.getProjectVersion()), factory .getResourceURI(opts.getProj(), opts.getProjectVersion())); }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/main/java/org/zanata/client/commands/init/InitCommand.java
null
InitCommand
null
getRequestFactory__()
null
public ZanataProxyFactory getRequestFactory() { if (requestFactory != null) { return requestFactory; } else { requestFactory = OptionsUtil.createRequestFactory(getOpts()); console.blankLine(); return requestFactory; } }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/main/java/org/zanata/client/commands/init/InitCommand.java
null
InitCommand.MockZanataProxyFactory
null
MockZanataProxyFactory__()
null
private MockZanataProxyFactory() { super(); }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/main/java/org/zanata/client/commands/pull/PullCommand.java
null
PullCommand
null
PullCommand__(PullOptions opts, ZanataProxyFactory factory, ISourceDocResource sourceDocResource, ITranslatedDocResource translationResources, URI uri)
null
public PullCommand(PullOptions opts, ZanataProxyFactory factory, ISourceDocResource sourceDocResource, ITranslatedDocResource translationResources, URI uri) { super(opts, factory, sourceDocResource, translationResources, uri); }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-rest-client/src/main/java/org/zanata/rest/client/ClientUtil.java
null
ClientUtil
null
getMethod__(Class<T> resourceClass, String methodName, Class... paramTypes)
null
static <T> Method getMethod(Class<T> resourceClass, String methodName, Class... paramTypes) { try { return resourceClass.getMethod(methodName, paramTypes); } catch (NoSuchMethodException e) { throw Throwables.propagate(e); } }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-rest-client/src/main/java/org/zanata/rest/client/ClientUtil.java
null
ClientUtil
null
arrayOf__(int number, Class<?> type)
null
static Class<?>[] arrayOf(int number, Class<?> type) { Class<?>[] result = new Class<?>[number]; for (int i = 0; i < number; i++) { result[i] = type; } return result; }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-rest-client/src/main/java/org/zanata/rest/client/ClientUtility.java
null
ClientUtility
null
checkResult__(ClientResponse<?> response)
null
public static void checkResult(ClientResponse<?> response) { checkResult(response, null); }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-rest-client/src/main/java/org/zanata/rest/client/ClientUtility.java
null
ClientUtility
null
checkResult__(ClientResponse<?> response, URI uri)
null
public static void checkResult(ClientResponse<?> response, URI uri) { Response.Status responseStatus = response.getResponseStatus(); int statusCode = response.getStatus(); if (responseStatus == Response.Status.UNAUTHORIZED) { throw new RuntimeException("Incorrect username/password"); } else if (responseStatus == Response.Status.SERVICE_UNAVAILABLE) { throw new RuntimeException("Service is currently unavailable. " + "Please check outage notification or try again later."); } else if (responseStatus == Response.Status.MOVED_PERMANENTLY || statusCode == 302 ) { // if server returns a redirect (most likely due to http to https // redirect), we don't want to bury this information in a xml // marshalling exception. String movedTo = "FIX ME"; String message; if (!Strings.isNullOrEmpty(movedTo)) { String baseUrl = getBaseURL(movedTo); message = "Server returned a redirect to:" + baseUrl + ". You must change your url option or config file."; } else { message = "Server returned a redirect. You must change your url option or config file."; } throw new RuntimeException(message); } else if (statusCode >= 399) { String annotString = ""; String uriString = ""; String entity = ""; if (response instanceof BaseClientResponse) { BaseClientResponse<?> resp = (BaseClientResponse<?>) response; annotString = ", annotations: " + Arrays.asList(resp.getAnnotations()) .toString(); } if (uri != null) { uriString = ", uri: " + uri; } try { entity = ": " + response.getEntity(String.class); } finally { // ignore } String msg = "operation returned " + statusCode + " (" + Response.Status.fromStatusCode(statusCode) + ")" + entity + uriString + annotString; throw new RuntimeException(msg); } }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-rest-client/src/main/java/org/zanata/rest/client/ClientUtility.java
null
ClientUtility
null
getBaseURL__(String movedTo)
null
public static String getBaseURL(String movedTo) { try { URL url = new URI(movedTo).toURL(); int pathIndex = movedTo.lastIndexOf(url.getPath()); return movedTo.substring(0, pathIndex) + "/"; } catch (MalformedURLException | URISyntaxException e) { return movedTo; } }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-rest-client/src/main/java/org/zanata/rest/client/ClientUtility.java
null
ClientUtility
null
checkResultAndReleaseConnection__( ClientResponse<?> clientResponse)
null
public static void checkResultAndReleaseConnection( ClientResponse<?> clientResponse) { checkResult(clientResponse, null); clientResponse.releaseConnection(); }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/main/java/org/zanata/client/commands/glossary/delete/GlossaryDeleteCommand.java
null
GlossaryDeleteCommand
null
GlossaryDeleteCommand__(GlossaryDeleteOptions opts, ZanataProxyFactory factory, IGlossaryResource glossaryResource)
null
public GlossaryDeleteCommand(GlossaryDeleteOptions opts, ZanataProxyFactory factory, IGlossaryResource glossaryResource) { super(opts, factory); this.glossaryResource = glossaryResource; }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-client-commands/src/main/java/org/zanata/client/commands/glossary/delete/GlossaryDeleteCommand.java
null
GlossaryDeleteCommand
null
GlossaryDeleteCommand__(GlossaryDeleteOptions opts, ZanataProxyFactory factory)
null
private GlossaryDeleteCommand(GlossaryDeleteOptions opts, ZanataProxyFactory factory) { this(opts, factory, factory.getGlossaryResource()); }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-rest-client/src/main/java/org/zanata/rest/client/ZanataProxyFactory.java
null
ZanataProxyFactory
null
ZanataProxyFactory__()
null
protected ZanataProxyFactory() { }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-rest-client/src/main/java/org/zanata/rest/client/ZanataProxyFactory.java
null
ZanataProxyFactory
null
ZanataProxyFactory__(URI base, String username, String apiKey, VersionInfo clientApiVersion, boolean logHttp, boolean sslCertDisabled)
null
public ZanataProxyFactory(URI base, String username, String apiKey, VersionInfo clientApiVersion, boolean logHttp, boolean sslCertDisabled) { this(base, username, apiKey, clientApiVersion, logHttp, sslCertDisabled, true); }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-rest-client/src/main/java/org/zanata/rest/client/ZanataProxyFactory.java
null
ZanataProxyFactory
null
ZanataProxyFactory__(URI base, String username, String apiKey, VersionInfo clientApiVersion, boolean logHttp, boolean sslCertDisabled, boolean eagerVersionCheck)
null
public ZanataProxyFactory(URI base, String username, String apiKey, VersionInfo clientApiVersion, boolean logHttp, boolean sslCertDisabled, boolean eagerVersionCheck) { this.clientApiVersion = clientApiVersion; ClientExecutor clientExecutor = createClientExecutor(sslCertDisabled); crf = new ClientRequestFactory(clientExecutor, null, fixBase(base)); // This is not doing anything. // There is no easy way to handle redirect with resteasy at the moment. // See https://issues.jboss.org/browse/RESTEASY-1075 // See org.zanata.rest.client.ClientUtility.checkResult(org.jboss.resteasy.client.ClientResponse<?>, java.net.URI)() crf.setFollowRedirects(true); // registerPrefixInterceptor(new TraceDebugInterceptor(logHttp)); // registerPrefixInterceptor(new ApiKeyHeaderDecorator(username, apiKey, // clientApiVersion.getVersionNo())); if (eagerVersionCheck) { performVersionCheck(); } }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-rest-client/src/main/java/org/zanata/rest/client/ZanataProxyFactory.java
null
ZanataProxyFactory
null
performVersionCheck__()
null
public void performVersionCheck() { clientVersion = clientApiVersion.getVersionNo(); String clientScm = clientApiVersion.getScmDescribe(); VersionInfo serverVersionInfo = getServerVersionInfo(); serverVersion = serverVersionInfo.getVersionNo(); String serverScm = serverVersionInfo.getScmDescribe(); log.info("client API version: {}, server API version: {}", clientVersion, serverVersion); warnMismatchAPIVersion(clientScm, serverScm); }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-rest-client/src/main/java/org/zanata/rest/client/ZanataProxyFactory.java
null
ZanataProxyFactory
null
getServerVersionInfo__()
null
public VersionInfo getServerVersionInfo() { IVersionResource iversion = createIVersionResource(); ClientResponse<VersionInfo> versionResp; try { versionResp = iversion.get(); } catch (ResteasyIOException e) { Throwable rootCause = Throwables.getRootCause(e); if (rootCause instanceof ConnectException) { throw new RuntimeException("Can not connect to the server [" + crf.getBase() + "]. Please check server is up."); } else { throw e; } } ClientUtility.checkResult(versionResp); return versionResp.getEntity(); }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-rest-client/src/main/java/org/zanata/rest/client/ZanataProxyFactory.java
null
ZanataProxyFactory
null
warnMismatchAPIVersion__(String clientScm, String serverScm)
null
private void warnMismatchAPIVersion(String clientScm, String serverScm) { if (!serverVersion.equals(clientVersion)) { log.warn("client API version is {}, but server API version is {}", clientVersion, serverVersion); } else if (serverVersion.contains(RestConstant.SNAPSHOT_VERSION) && !serverScm.equalsIgnoreCase(clientScm)) { log.warn( "client API SCM id is {}, but server API SCM id is {}", clientScm, serverScm); } }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-rest-client/src/main/java/org/zanata/rest/client/ZanataProxyFactory.java
null
ZanataProxyFactory
null
createClientExecutor__(boolean sslCertDisabled)
null
private static ClientExecutor createClientExecutor(boolean sslCertDisabled) { try { final SSLContext sslContext = SSLContext.getInstance("TLS"); // Create a trust manager that does not validate certificate chains // against our server final TrustManager[] trustAllCerts; if (sslCertDisabled) { trustAllCerts = new TrustManager[]{ new AcceptAllX509TrustManager() }; } else { trustAllCerts = null; } sslContext.init(null, trustAllCerts, new SecureRandom()); // NB: This factory is a workaround to enable SNI with // httpcomponents-client 4.2; not needed for 4.3 SSLSocketFactory factory; if (sslCertDisabled) { // avoid triggering the problem described here: // https://stackoverflow.com/questions/7615645/ssl-handshake-alert-unrecognized-name-error-since-upgrade-to-java-1-7-0 factory = new SSLSocketFactory(sslContext); } else { factory = new SSLSocketFactory(sslContext) { @Override public Socket connectSocket(Socket socket, InetSocketAddress remoteAddress, InetSocketAddress localAddress, HttpParams params) throws IOException, UnknownHostException, ConnectTimeoutException { if (socket instanceof SSLSocket) { try { PropertyUtils.setProperty(socket, "host", remoteAddress.getHostName()); } catch (Exception ex) { log.warn( "Unable to enable SNI; you may have trouble connecting to some secure hosts. Please ensure that you are running Java 1.7 or later."); } } return super.connectSocket(socket, remoteAddress, localAddress, params); } }; } HttpClient client = new DefaultHttpClient(); if (sslCertDisabled) { X509HostnameVerifier hostnameVerifier = org.apache.http.conn.ssl.SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER; factory.setHostnameVerifier(hostnameVerifier); } ClientConnectionManager manager = client.getConnectionManager(); manager.getSchemeRegistry().register( new Scheme("https", 443, factory)); return new ApacheHttpClient4Executor(client); } catch (Exception e) { log.warn("error creating SSL client", e); } return null; }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-rest-client/src/main/java/org/zanata/rest/client/ZanataProxyFactory.java
null
ZanataProxyFactory
null
getBaseUrl__()
null
private URL getBaseUrl() { try { return new URL(fixBase(crf.getBase()).toString() + getUrlPrefix()); } catch (MalformedURLException e) { throw new RuntimeException(e); } }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-rest-client/src/main/java/org/zanata/rest/client/ZanataProxyFactory.java
null
ZanataProxyFactory
null
getBaseUri__()
null
private URI getBaseUri() { try { return getBaseUrl().toURI(); } catch (URISyntaxException e) { throw new RuntimeException(e); } }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-rest-client/src/main/java/org/zanata/rest/client/ZanataProxyFactory.java
null
ZanataProxyFactory
null
getUrlPrefix__()
null
protected String getUrlPrefix() { return "rest/"; }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-rest-client/src/main/java/org/zanata/rest/client/ZanataProxyFactory.java
null
ZanataProxyFactory
null
createProxy__(Class<T> clazz, URI baseUri)
null
public <T> T createProxy(Class<T> clazz, URI baseUri) { log.debug("{} proxy uri: {}", clazz.getSimpleName(), baseUri); T proxy = crf.createProxy(clazz, baseUri); // CacheFactory.makeCacheable(proxy); return proxy; }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-rest-client/src/main/java/org/zanata/rest/client/ZanataProxyFactory.java
null
ZanataProxyFactory
null
createProxy__(Class<T> clazz)
null
public <T> T createProxy(Class<T> clazz) { return createProxy(clazz, getBaseUri()); }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-rest-client/src/main/java/org/zanata/rest/client/ZanataProxyFactory.java
null
ZanataProxyFactory
null
fixBase__(URI base)
null
private static URI fixBase(URI base) { if (base != null) { String baseString = base.toString(); if (!baseString.endsWith("/")) { try { URI result = new URI(baseString + "/"); log.warn("Appending '/' to base URL '{}': using '{}'", baseString, result); return result; } catch (URISyntaxException e) { throw new RuntimeException(e); } } } return base; }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-rest-client/src/main/java/org/zanata/rest/client/ZanataProxyFactory.java
null
ZanataProxyFactory
null
getGlossaryResource__()
null
public IGlossaryResource getGlossaryResource() { return createProxy(IGlossaryResource.class); }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-rest-client/src/main/java/org/zanata/rest/client/ZanataProxyFactory.java
null
ZanataProxyFactory
null
getAccount__(String username)
null
public IAccountResource getAccount(String username) { return createProxy(IAccountResource.class, getAccountURI(username)); }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-rest-client/src/main/java/org/zanata/rest/client/ZanataProxyFactory.java
null
ZanataProxyFactory
null
getAccountURI__(String username)
null
public URI getAccountURI(String username) { try { URL url = new URL(getBaseUrl(), "accounts/u/" + username); return url.toURI(); } catch (MalformedURLException e) { throw new RuntimeException(e); } catch (URISyntaxException e) { throw new RuntimeException(e); } }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-rest-client/src/main/java/org/zanata/rest/client/ZanataProxyFactory.java
null
ZanataProxyFactory
null
getProject__(String proj)
null
public IProjectResource getProject(String proj) { return createProxy(IProjectResource.class, getProjectURI(proj)); }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-rest-client/src/main/java/org/zanata/rest/client/ZanataProxyFactory.java
null
ZanataProxyFactory
null
getProjectURI__(String proj)
null
public URI getProjectURI(String proj) { try { URL url = new URL(getBaseUrl(), "projects/p/" + proj); return url.toURI(); } catch (MalformedURLException e) { throw new RuntimeException(e); } catch (URISyntaxException e) { throw new RuntimeException(e); } }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-rest-client/src/main/java/org/zanata/rest/client/ZanataProxyFactory.java
null
ZanataProxyFactory
null
getProjectIteration__(String proj, String iter)
null
public IProjectIterationResource getProjectIteration(String proj, String iter) { return createProxy(IProjectIterationResource.class, getProjectIterationURI(proj, iter)); }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-rest-client/src/main/java/org/zanata/rest/client/ZanataProxyFactory.java
null
ZanataProxyFactory
null
getProjectIterationURI__(String proj, String iter)
null
public URI getProjectIterationURI(String proj, String iter) { try { URL url = new URL(getBaseUrl(), "projects/p/" + proj + "/iterations/i/" + iter); return url.toURI(); } catch (MalformedURLException e) { throw new RuntimeException(e); } catch (URISyntaxException e) { throw new RuntimeException(e); } }
null
zanata_zanata-platform__47990607471bf164988fcfe3a93f9cb36974e927__47990607471bf164988fcfe3a93f9cb36974e927
zanata-rest-client/src/main/java/org/zanata/rest/client/ZanataProxyFactory.java
null
ZanataProxyFactory
null
getProjectsResource__()
null
public IProjectsResource getProjectsResource() { return createProxy(IProjectsResource.class); }
null