summaryrefslogtreecommitdiff
path: root/STALService/src/main/java/at/gv/egiz
diff options
context:
space:
mode:
authorclemenso <clemenso@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2008-09-15 18:05:47 +0000
committerclemenso <clemenso@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2008-09-15 18:05:47 +0000
commit6cafec9a3f05bb5e24c364e51a336326a63b8296 (patch)
treeac3c3e4eff3ef837102ddea2e64bb36375947d64 /STALService/src/main/java/at/gv/egiz
parentaecf56f5fe5e7e9c5b19fefece7c7a276c3c9dfc (diff)
downloadmocca-6cafec9a3f05bb5e24c364e51a336326a63b8296.tar.gz
mocca-6cafec9a3f05bb5e24c364e51a336326a63b8296.tar.bz2
mocca-6cafec9a3f05bb5e24c364e51a336326a63b8296.zip
encoding
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@43 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'STALService/src/main/java/at/gv/egiz')
-rw-r--r--STALService/src/main/java/at/gv/egiz/stal/impl/ByteArrayHashDataInput.java13
-rw-r--r--STALService/src/main/java/at/gv/egiz/stal/service/GetHashDataInputResponseType.java28
2 files changed, 40 insertions, 1 deletions
diff --git a/STALService/src/main/java/at/gv/egiz/stal/impl/ByteArrayHashDataInput.java b/STALService/src/main/java/at/gv/egiz/stal/impl/ByteArrayHashDataInput.java
index 1f6e7935..b0285345 100644
--- a/STALService/src/main/java/at/gv/egiz/stal/impl/ByteArrayHashDataInput.java
+++ b/STALService/src/main/java/at/gv/egiz/stal/impl/ByteArrayHashDataInput.java
@@ -18,14 +18,16 @@ public class ByteArrayHashDataInput implements HashDataInput {
protected byte[] hashData;
protected String id;
protected String mimeType;
+ protected String encoding;
- public ByteArrayHashDataInput(byte[] hashData, String id, String mimeType) {
+ public ByteArrayHashDataInput(byte[] hashData, String id, String mimeType, String encoding) {
if (hashData == null) {
throw new NullPointerException("HashDataInput not provided.");
}
this.hashData = hashData;
this.id = id;
this.mimeType = mimeType;
+ this.encoding = encoding;
}
@Override
@@ -43,5 +45,14 @@ public class ByteArrayHashDataInput implements HashDataInput {
return new ByteArrayInputStream(hashData);
}
+ /**
+ * may be null
+ * @return
+ */
+ @Override
+ public String getEncoding() {
+ return encoding;
+ }
+
}
diff --git a/STALService/src/main/java/at/gv/egiz/stal/service/GetHashDataInputResponseType.java b/STALService/src/main/java/at/gv/egiz/stal/service/GetHashDataInputResponseType.java
index cf8545e9..f02d1ce6 100644
--- a/STALService/src/main/java/at/gv/egiz/stal/service/GetHashDataInputResponseType.java
+++ b/STALService/src/main/java/at/gv/egiz/stal/service/GetHashDataInputResponseType.java
@@ -43,6 +43,7 @@ import javax.xml.bind.annotation.XmlValue;
* &lt;extension base="&lt;http://www.w3.org/2001/XMLSchema>base64Binary">
* &lt;attribute name="ID" type="{http://www.w3.org/2001/XMLSchema}string" />
* &lt;attribute name="MimeType" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * &lt;attribute name="Encoding" type="{http://www.w3.org/2001/XMLSchema}string" />
* &lt;/extension>
* &lt;/simpleContent>
* &lt;/complexType>
@@ -132,6 +133,7 @@ public class GetHashDataInputResponseType {
* &lt;extension base="&lt;http://www.w3.org/2001/XMLSchema>base64Binary">
* &lt;attribute name="ID" type="{http://www.w3.org/2001/XMLSchema}string" />
* &lt;attribute name="MimeType" type="{http://www.w3.org/2001/XMLSchema}string" />
+ * &lt;attribute name="Encoding" type="{http://www.w3.org/2001/XMLSchema}string" />
* &lt;/extension>
* &lt;/simpleContent>
* &lt;/complexType>
@@ -151,6 +153,8 @@ public class GetHashDataInputResponseType {
protected String id;
@XmlAttribute(name = "MimeType")
protected String mimeType;
+ @XmlAttribute(name = "Encoding")
+ protected String encoding;
/**
* Gets the value of the value property.
@@ -222,6 +226,30 @@ public class GetHashDataInputResponseType {
this.mimeType = value;
}
+ /**
+ * Gets the value of the encoding property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getEncoding() {
+ return encoding;
+ }
+
+ /**
+ * Sets the value of the encoding property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setEncoding(String value) {
+ this.encoding = value;
+ }
+
}
}