-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d6bf8c3
commit c7a152b
Showing
3 changed files
with
206 additions
and
102 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
25 changes: 25 additions & 0 deletions
25
shared/common/src/main/java/cz/incad/kramerius/fedora/impl/tmp/ContentFormat.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,25 @@ | ||
package cz.incad.kramerius.fedora.impl.tmp; | ||
|
||
public class ContentFormat { | ||
private final boolean supportsString; | ||
private final boolean supportsStream; | ||
private final boolean supportsXml; | ||
|
||
public ContentFormat(boolean supportsString, boolean supportsStream, boolean supportsXml) { | ||
this.supportsString = supportsString; | ||
this.supportsStream = supportsStream; | ||
this.supportsXml = supportsXml; | ||
} | ||
|
||
public boolean supportsString() { | ||
return supportsString; | ||
} | ||
|
||
public boolean supportsStream() { | ||
return supportsStream; | ||
} | ||
|
||
public boolean supportsXml() { | ||
return supportsXml; | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
...n/src/main/java/cz/incad/kramerius/fedora/impl/tmp/UnsupportedContentFormatException.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,7 @@ | ||
package cz.incad.kramerius.fedora.impl.tmp; | ||
|
||
public class UnsupportedContentFormatException extends Exception { | ||
public UnsupportedContentFormatException(String message) { | ||
super(message); | ||
} | ||
} |