From 6cafec9a3f05bb5e24c364e51a336326a63b8296 Mon Sep 17 00:00:00 2001 From: clemenso Date: Mon, 15 Sep 2008 18:05:47 +0000 Subject: encoding git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@43 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4 --- .../gv/egiz/stal/impl/ByteArrayHashDataInput.java | 13 +++++++++- .../stal/service/GetHashDataInputResponseType.java | 28 ++++++++++++++++++++++ 2 files changed, 40 insertions(+), 1 deletion(-) (limited to 'STALService') 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; * <extension base="<http://www.w3.org/2001/XMLSchema>base64Binary"> * <attribute name="ID" type="{http://www.w3.org/2001/XMLSchema}string" /> * <attribute name="MimeType" type="{http://www.w3.org/2001/XMLSchema}string" /> + * <attribute name="Encoding" type="{http://www.w3.org/2001/XMLSchema}string" /> * </extension> * </simpleContent> * </complexType> @@ -132,6 +133,7 @@ public class GetHashDataInputResponseType { * <extension base="<http://www.w3.org/2001/XMLSchema>base64Binary"> * <attribute name="ID" type="{http://www.w3.org/2001/XMLSchema}string" /> * <attribute name="MimeType" type="{http://www.w3.org/2001/XMLSchema}string" /> + * <attribute name="Encoding" type="{http://www.w3.org/2001/XMLSchema}string" /> * </extension> * </simpleContent> * </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; + } + } } -- cgit v1.2.3