-
-
Notifications
You must be signed in to change notification settings - Fork 290
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improves the handling of remote content (e.g. extending remote worksp…
…aces, including remote DSL content, etc).
- Loading branch information
1 parent
45ddf5a
commit 71995f7
Showing
6 changed files
with
49 additions
and
20 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
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
24 changes: 24 additions & 0 deletions
24
structurizr-dsl/src/main/java/com/structurizr/dsl/RemoteContent.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,24 @@ | ||
package com.structurizr.dsl; | ||
|
||
final class RemoteContent { | ||
|
||
static final String CONTENT_TYPE_JSON = "application/json"; | ||
static final String TEXT_PLAIN_JSON = "text/plain"; | ||
|
||
private final String content; | ||
private final String contentType; | ||
|
||
RemoteContent(String content, String contentType) { | ||
this.content = content; | ||
this.contentType = contentType; | ||
} | ||
|
||
String getContent() { | ||
return content; | ||
} | ||
|
||
String getContentType() { | ||
return contentType; | ||
} | ||
|
||
} |
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