-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #303 from VEuPathDB/issue-222
Remote file download patches.
- Loading branch information
Showing
19 changed files
with
500 additions
and
234 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
*.html linguist-generated | ||
modules/rest-service/schema/library.raml linguist-generated | ||
*.html linguist-generated=true | ||
modules/rest-service/schema/library.raml linguist-generated=true |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
...ervice/src/main/java/org/veupathdb/service/vdi/generated/model/FailedDependencyError.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package org.veupathdb.service.vdi.generated.model; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.fasterxml.jackson.annotation.JsonTypeName; | ||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize; | ||
|
||
@JsonTypeName("failed-dependency") | ||
@JsonDeserialize( | ||
as = FailedDependencyErrorImpl.class | ||
) | ||
public interface FailedDependencyError extends Error { | ||
ErrorType _DISCRIMINATOR_TYPE_NAME = ErrorType.FAILEDDEPENDENCY; | ||
|
||
@JsonProperty("status") | ||
ErrorType getStatus(); | ||
|
||
@JsonProperty("message") | ||
String getMessage(); | ||
|
||
@JsonProperty("message") | ||
void setMessage(String message); | ||
|
||
@JsonProperty("dependency") | ||
String getDependency(); | ||
|
||
@JsonProperty("dependency") | ||
void setDependency(String dependency); | ||
} |
49 changes: 49 additions & 0 deletions
49
...ce/src/main/java/org/veupathdb/service/vdi/generated/model/FailedDependencyErrorImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
package org.veupathdb.service.vdi.generated.model; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.fasterxml.jackson.annotation.JsonPropertyOrder; | ||
import com.fasterxml.jackson.annotation.JsonTypeName; | ||
|
||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
@JsonTypeName("failed-dependency") | ||
@JsonPropertyOrder({ | ||
"status", | ||
"message", | ||
"dependency" | ||
}) | ||
public class FailedDependencyErrorImpl implements FailedDependencyError { | ||
@JsonProperty("status") | ||
private final ErrorType status = _DISCRIMINATOR_TYPE_NAME; | ||
|
||
@JsonProperty("message") | ||
private String message; | ||
|
||
@JsonProperty("dependency") | ||
private String dependency; | ||
|
||
@JsonProperty("status") | ||
public ErrorType getStatus() { | ||
return this.status; | ||
} | ||
|
||
@JsonProperty("message") | ||
public String getMessage() { | ||
return this.message; | ||
} | ||
|
||
@JsonProperty("message") | ||
public void setMessage(String message) { | ||
this.message = message; | ||
} | ||
|
||
@JsonProperty("dependency") | ||
public String getDependency() { | ||
return this.dependency; | ||
} | ||
|
||
@JsonProperty("dependency") | ||
public void setDependency(String dependency) { | ||
this.dependency = dependency; | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
.../src/main/java/org/veupathdb/service/vdi/generated/model/FailedDependencyErrorStream.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
|
||
package org.veupathdb.service.vdi.generated.model; | ||
|
||
import java.io.IOException; | ||
import java.io.OutputStream; | ||
import java.util.function.Consumer; | ||
|
||
import jakarta.ws.rs.WebApplicationException; | ||
import jakarta.ws.rs.core.StreamingOutput; | ||
|
||
public class FailedDependencyErrorStream extends FailedDependencyErrorImpl implements StreamingOutput { | ||
|
||
private final Consumer<OutputStream> _streamer; | ||
|
||
public FailedDependencyErrorStream(Consumer<OutputStream> streamer) { | ||
_streamer = streamer; | ||
} | ||
|
||
@Override | ||
public void write(OutputStream output) throws IOException, WebApplicationException { | ||
_streamer.accept(output); | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
...t-service/src/main/kotlin/org/veupathdb/service/vdi/generated/model/readme.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
= Generated Java Model Extensions | ||
|
||
This package contains extension/mixin helper methods for working with the model | ||
Java classes generated by the RAML -> JaxRS code generator. | ||
|
||
The file names all follow the scheme `x-\{generated class name}` where the | ||
prefix `x` is short for 'extension'. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.