From 667af128d0adfeee2aa4748ab58411c91bc4905f Mon Sep 17 00:00:00 2001 From: mcentner Date: Tue, 26 Jan 2010 16:27:04 +0000 Subject: git-svn-id: https://joinup.ec.europa.eu/svn/mocca/branches/mocca-1.2.11-sha2@600 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4 --- .../egiz/stal/service/GetHashDataInputFault.java | 55 ---- .../java/at/gv/egiz/stal/service/STALPortType.java | 73 ----- .../java/at/gv/egiz/stal/service/STALService.java | 72 ----- .../stal/service/translator/STALTranslator.java | 294 ------------------- .../service/translator/TranslationException.java | 42 --- .../egiz/stal/service/types/ErrorResponseType.java | 84 ------ .../service/types/GetHashDataInputFaultType.java | 82 ------ .../types/GetHashDataInputResponseType.java | 267 ----------------- .../stal/service/types/GetHashDataInputType.java | 156 ---------- .../service/types/GetNextRequestResponseType.java | 115 -------- .../stal/service/types/GetNextRequestType.java | 114 -------- .../stal/service/types/InfoboxReadRequestType.java | 102 ------- .../service/types/InfoboxReadResponseType.java | 62 ---- .../gv/egiz/stal/service/types/ObjectFactory.java | 316 --------------------- .../egiz/stal/service/types/QuitRequestType.java | 32 --- .../at/gv/egiz/stal/service/types/RequestType.java | 39 --- .../gv/egiz/stal/service/types/ResponseType.java | 38 --- .../egiz/stal/service/types/SignRequestType.java | 97 ------- .../egiz/stal/service/types/SignResponseType.java | 62 ---- .../egiz/stal/service/types/StatusRequestType.java | 32 --- .../stal/service/types/StatusResponseType.java | 60 ---- .../gv/egiz/stal/service/types/package-info.java | 2 - .../service/translator/STALTranslatorTest.java | 146 ---------- 23 files changed, 2342 deletions(-) delete mode 100644 mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/GetHashDataInputFault.java delete mode 100644 mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/STALPortType.java delete mode 100644 mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/STALService.java delete mode 100644 mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/translator/STALTranslator.java delete mode 100644 mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/translator/TranslationException.java delete mode 100644 mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/ErrorResponseType.java delete mode 100644 mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/GetHashDataInputFaultType.java delete mode 100644 mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/GetHashDataInputResponseType.java delete mode 100644 mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/GetHashDataInputType.java delete mode 100644 mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/GetNextRequestResponseType.java delete mode 100644 mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/GetNextRequestType.java delete mode 100644 mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/InfoboxReadRequestType.java delete mode 100644 mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/InfoboxReadResponseType.java delete mode 100644 mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/ObjectFactory.java delete mode 100644 mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/QuitRequestType.java delete mode 100644 mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/RequestType.java delete mode 100644 mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/ResponseType.java delete mode 100644 mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/SignRequestType.java delete mode 100644 mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/SignResponseType.java delete mode 100644 mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/StatusRequestType.java delete mode 100644 mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/StatusResponseType.java delete mode 100644 mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/package-info.java delete mode 100644 mocca-1.2.11/STALService/src/test/java/at/gv/egiz/stal/service/translator/STALTranslatorTest.java (limited to 'mocca-1.2.11/STALService/src') diff --git a/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/GetHashDataInputFault.java b/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/GetHashDataInputFault.java deleted file mode 100644 index 2f08350c..00000000 --- a/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/GetHashDataInputFault.java +++ /dev/null @@ -1,55 +0,0 @@ - -package at.gv.egiz.stal.service; - -import javax.xml.ws.WebFault; -import at.gv.egiz.stal.service.types.GetHashDataInputFaultType; - - -/** - * This class was generated by the JAX-WS RI. - * JAX-WS RI 2.1.3-b02- - * Generated source version: 2.1 - * - */ -@WebFault(name = "GetHashDataInputFault", targetNamespace = "http://www.egiz.gv.at/stal") -public class GetHashDataInputFault - extends Exception -{ - - /** - * Java type that goes as soapenv:Fault detail element. - * - */ - private GetHashDataInputFaultType faultInfo; - - /** - * - * @param message - * @param faultInfo - */ - public GetHashDataInputFault(String message, GetHashDataInputFaultType faultInfo) { - super(message); - this.faultInfo = faultInfo; - } - - /** - * - * @param message - * @param faultInfo - * @param cause - */ - public GetHashDataInputFault(String message, GetHashDataInputFaultType faultInfo, Throwable cause) { - super(message, cause); - this.faultInfo = faultInfo; - } - - /** - * - * @return - * returns fault bean: at.gv.egiz.stal.service.types.GetHashDataInputFaultType - */ - public GetHashDataInputFaultType getFaultInfo() { - return faultInfo; - } - -} diff --git a/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/STALPortType.java b/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/STALPortType.java deleted file mode 100644 index d38010aa..00000000 --- a/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/STALPortType.java +++ /dev/null @@ -1,73 +0,0 @@ - -package at.gv.egiz.stal.service; - -import javax.jws.WebMethod; -import javax.jws.WebParam; -import javax.jws.WebResult; -import javax.jws.WebService; -import javax.jws.soap.SOAPBinding; -import javax.xml.bind.annotation.XmlSeeAlso; -import at.gv.egiz.stal.service.types.GetHashDataInputResponseType; -import at.gv.egiz.stal.service.types.GetHashDataInputType; -import at.gv.egiz.stal.service.types.GetNextRequestResponseType; -import at.gv.egiz.stal.service.types.GetNextRequestType; - - -/** - * This class was generated by the JAX-WS RI. - * JAX-WS RI 2.1.3-b02- - * Generated source version: 2.1 - * - */ -@WebService(name = "STALPortType", targetNamespace = "http://www.egiz.gv.at/wsdl/stal") -@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) -@XmlSeeAlso({ - at.gv.egiz.stal.service.types.ObjectFactory.class -// at.buergerkarte.namespaces.cardchannel.service.ObjectFactory.class -}) -public interface STALPortType { - - - /** - * Initial connection, get the first request. - * - * @param sessionId - * @return - * returns at.gv.egiz.stal.service.types.GetNextRequestResponseType - */ - @WebMethod - @WebResult(name = "GetNextRequestResponse", targetNamespace = "http://www.egiz.gv.at/stal", partName = "part1") - public GetNextRequestResponseType connect( - @WebParam(name = "SessionId", targetNamespace = "http://www.egiz.gv.at/stal", partName = "part1") - String sessionId); - - /** - * Fetch the next request. - * - * @param request - * @return - * returns at.gv.egiz.stal.service.types.GetNextRequestResponseType - */ - @WebMethod(operationName = "nextRequest") - @WebResult(name = "GetNextRequestResponse", targetNamespace = "http://www.egiz.gv.at/stal", partName = "part1") - public GetNextRequestResponseType getNextRequest( - @WebParam(name = "GetNextRequest", targetNamespace = "http://www.egiz.gv.at/stal", partName = "part1") - GetNextRequestType request); - - /** - * Fetch the signed references corresponding to the previous SignatureRequest. - * - * @param request - * @return - * returns at.gv.egiz.stal.service.types.GetHashDataInputResponseType - * @throws GetHashDataInputFault - */ - @WebMethod - @WebResult(name = "GetHashDataInputResponse", targetNamespace = "http://www.egiz.gv.at/stal", partName = "part1") - public GetHashDataInputResponseType getHashDataInput( - @WebParam(name = "GetHashDataInput", targetNamespace = "http://www.egiz.gv.at/stal", partName = "part1") - GetHashDataInputType request) - throws GetHashDataInputFault - ; - -} diff --git a/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/STALService.java b/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/STALService.java deleted file mode 100644 index ba4b541e..00000000 --- a/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/STALService.java +++ /dev/null @@ -1,72 +0,0 @@ - -package at.gv.egiz.stal.service; - -import java.net.MalformedURLException; -import java.net.URL; -import java.util.logging.Logger; -import javax.xml.namespace.QName; -import javax.xml.ws.Service; -import javax.xml.ws.WebEndpoint; -import javax.xml.ws.WebServiceClient; -import javax.xml.ws.WebServiceFeature; - - -/** - * This class was generated by the JAX-WS RI. - * JAX-WS RI 2.1.3-b02- - * Generated source version: 2.1 - * - */ -@WebServiceClient(name = "STALService", targetNamespace = "http://www.egiz.gv.at/wsdl/stal") -//, wsdlLocation = "file:/home/clemens/workspace/mocca/BKUOnline/src/main/webapp/WEB-INF/wsdl/stal-service.wsdl") -public class STALService - extends Service -{ - -// private final static URL STALSERVICE_WSDL_LOCATION; - private final static Logger logger = Logger.getLogger(at.gv.egiz.stal.service.STALService.class.getName()); - -// static { -// URL url = null; -// try { -// URL baseUrl; -// baseUrl = at.gv.egiz.stal.service.STALService.class.getResource("."); -// url = new URL(baseUrl, "file:/home/clemens/workspace/mocca/BKUOnline/src/main/webapp/WEB-INF/wsdl/stal-service.wsdl"); -// } catch (MalformedURLException e) { -// logger.warning("Failed to create URL for the wsdl Location: 'file:/home/clemens/workspace/mocca/BKUOnline/src/main/webapp/WEB-INF/wsdl/stal-service.wsdl', retrying as a local file"); -// logger.warning(e.getMessage()); -// } -// STALSERVICE_WSDL_LOCATION = url; -// } - - public STALService(URL wsdlLocation, QName serviceName) { - super(wsdlLocation, serviceName); - } - -// public STALService() { -// super(STALSERVICE_WSDL_LOCATION, new QName("http://www.egiz.gv.at/wsdl/stal", "STALService")); -// } - - /** - * - * @return - * returns STALPortType - */ - @WebEndpoint(name = "STALPort") - public STALPortType getSTALPort() { - return super.getPort(new QName("http://www.egiz.gv.at/wsdl/stal", "STALPort"), STALPortType.class); - } - - /** - * - * @param features - * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the features parameter will have their default values. - * @return - * returns STALPortType - */ -// @WebEndpoint(name = "STALPort") -// public STALPortType getSTALPort(WebServiceFeature... features) { -// return super.getPort(new QName("http://www.egiz.gv.at/wsdl/stal", "STALPort"), STALPortType.class, features); -// } - -} diff --git a/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/translator/STALTranslator.java b/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/translator/STALTranslator.java deleted file mode 100644 index 1e6f4133..00000000 --- a/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/translator/STALTranslator.java +++ /dev/null @@ -1,294 +0,0 @@ -/* - * Copyright 2008 Federal Chancellery Austria and - * Graz University of Technology - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package at.gv.egiz.stal.service.translator; - -import at.gv.egiz.stal.ErrorResponse; -import at.gv.egiz.stal.InfoboxReadRequest; -import at.gv.egiz.stal.InfoboxReadResponse; -import at.gv.egiz.stal.QuitRequest; -import at.gv.egiz.stal.STALRequest; -import at.gv.egiz.stal.STALResponse; -import at.gv.egiz.stal.SignRequest; -import at.gv.egiz.stal.SignResponse; -import at.gv.egiz.stal.StatusRequest; -import at.gv.egiz.stal.StatusResponse; -import at.gv.egiz.stal.service.types.ErrorResponseType; -import at.gv.egiz.stal.service.types.InfoboxReadRequestType; -import at.gv.egiz.stal.service.types.InfoboxReadResponseType; -import at.gv.egiz.stal.service.types.ObjectFactory; -import at.gv.egiz.stal.service.types.QuitRequestType; -import at.gv.egiz.stal.service.types.RequestType; -import at.gv.egiz.stal.service.types.ResponseType; -import at.gv.egiz.stal.service.types.SignRequestType; -import at.gv.egiz.stal.service.types.SignResponseType; -import at.gv.egiz.stal.service.types.StatusRequestType; -import at.gv.egiz.stal.service.types.StatusResponseType; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import javax.xml.bind.JAXBElement; -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; - -/** - * - * @author Clemens Orthacker - */ -public class STALTranslator { - - private static final Log log = LogFactory.getLog(STALTranslator.class); - protected Map handlerMap = new HashMap(); - - public STALTranslator() { - registerTranslationHandler(new DefaultTranslationHandler()); - } - - /** - * overwrites previously registered handlers for the same type - * @param handler - */ - public void registerTranslationHandler(TranslationHandler handler) { - for (Class t : handler.getSupportedTypes()) { - if (log.isDebugEnabled()) { - log.debug("register " + t + " with translation handler " + handler.getClass()); - } - handlerMap.put(t, handler); - } - } - - /** - * Translate a STAL request to a STAL Webservice request. - * @param request - * @return - * @throws at.gv.egiz.stal.service.translator.TranslationException - */ - public JAXBElement translate(STALRequest request) throws TranslationException { - if (handlerMap.containsKey(request.getClass())) { - TranslationHandler handler = handlerMap.get(request.getClass()); - JAXBElement r = handler.translate(request); - if (r != null) { - return r; - } - } - log.error("unknown STAL request type " + request.getClass()); - throw new TranslationException(request.getClass()); - } - - /** - * Translate a STAL Webservice request to a STAL request. - * @param request - * @return - * @throws at.gv.egiz.stal.service.translator.TranslationException - */ - public STALRequest translate(JAXBElement request) throws TranslationException { - RequestType req = request.getValue(); - if (req == null) { - throw new RuntimeException("RequestType must not be null"); - } - if (handlerMap.containsKey(req.getClass())) { - TranslationHandler handler = handlerMap.get(req.getClass()); - STALRequest stalRequest = handler.translate(req); - if (stalRequest != null) { - return stalRequest; - } - } - log.error("unknown request type " + req.getClass()); - throw new TranslationException(req.getClass()); - } - - /** - * Translate a STAL response to a STAL Webservice response. - * @param request - * @return - * @throws at.gv.egiz.stal.service.translator.TranslationException - */ - public JAXBElement translate(STALResponse response) throws TranslationException { - if (handlerMap.containsKey(response.getClass())) { - TranslationHandler handler = handlerMap.get(response.getClass()); - JAXBElement r = handler.translate(response); - if (r != null) { - return r; - } - } - log.error("unknown STAL response type " + response.getClass()); - throw new TranslationException(response.getClass()); - } - - /** - * Translate a STAL Webservice response to a STAL response. - * @param request - * @return - * @throws at.gv.egiz.stal.service.translator.TranslationException - */ - public STALResponse translate(JAXBElement response) throws TranslationException { - ResponseType resp = response.getValue(); - if (resp == null) { - throw new RuntimeException("ResponseType must not be null"); - } - if (handlerMap.containsKey(resp.getClass())) { - TranslationHandler handler = handlerMap.get(resp.getClass()); - STALResponse stalResponse = handler.translate(resp); - if (stalResponse != null) { - return stalResponse; - } - } - log.error("unknown response type " + resp.getClass()); - throw new TranslationException(resp.getClass()); - } - - /** - * public (static) interface implemented by STAL extensions - */ - public static interface TranslationHandler { - - List getSupportedTypes(); - - JAXBElement translate(STALRequest request) throws TranslationException; - - JAXBElement translate(STALResponse response) throws TranslationException; - - STALRequest translate(RequestType request) throws TranslationException; - - STALResponse translate(ResponseType response) throws TranslationException; - } - - - /** - * Default Handler - */ - protected static class DefaultTranslationHandler implements TranslationHandler { - - private static final Log log = LogFactory.getLog(DefaultTranslationHandler.class); - private ObjectFactory of; - - public DefaultTranslationHandler() { - of = new ObjectFactory(); - } - - @Override - public List getSupportedTypes() { - return Arrays.asList(new Class[]{InfoboxReadRequest.class, - SignRequest.class, - QuitRequest.class, - StatusRequest.class, - InfoboxReadRequestType.class, - SignRequestType.class, - QuitRequestType.class, - StatusRequestType.class, - InfoboxReadResponse.class, - SignResponse.class, - ErrorResponse.class, - StatusResponse.class, - InfoboxReadResponseType.class, - SignResponseType.class, - ErrorResponseType.class, - StatusResponseType.class - }); - } - - @Override - public JAXBElement translate(STALRequest request) throws TranslationException { - log.trace("translate " + request.getClass()); - if (request instanceof SignRequest) { - SignRequestType req = of.createSignRequestType(); - req.setKeyIdentifier(((SignRequest) request).getKeyIdentifier()); - req.setSignedInfo(((SignRequest) request).getSignedInfo()); - //TODO add hashdatainput (refactor signRequestType) - return of.createGetNextRequestResponseTypeSignRequest(req); - } else if (request instanceof InfoboxReadRequest) { - InfoboxReadRequestType req = of.createInfoboxReadRequestType(); - req.setInfoboxIdentifier(((InfoboxReadRequest) request).getInfoboxIdentifier()); - req.setDomainIdentifier(((InfoboxReadRequest) request).getDomainIdentifier()); - return of.createGetNextRequestResponseTypeInfoboxReadRequest(req); - } else if (request instanceof QuitRequest) { - return of.createGetNextRequestResponseTypeQuitRequest(of.createQuitRequestType()); - } else if (request instanceof StatusRequest) { - StatusRequestType req = of.createStatusRequestType(); - return of.createGetNextRequestResponseTypeStatusRequest(req); - } - throw new TranslationException(request.getClass()); - } - - @Override - public STALRequest translate(RequestType request) throws TranslationException { - if (request instanceof InfoboxReadRequestType) { - InfoboxReadRequest stalReq = new InfoboxReadRequest(); - stalReq.setDomainIdentifier(((InfoboxReadRequestType) request).getDomainIdentifier()); - stalReq.setInfoboxIdentifier(((InfoboxReadRequestType) request).getInfoboxIdentifier()); - return stalReq; - } else if (request instanceof SignRequestType) { - SignRequest stalReq = new SignRequest(); - stalReq.setKeyIdentifier(((SignRequestType) request).getKeyIdentifier()); - stalReq.setSignedInfo(((SignRequestType) request).getSignedInfo()); - return stalReq; - } else if (request instanceof QuitRequestType) { - return new QuitRequest(); - } else if (request instanceof StatusRequestType) { - return new StatusRequest(); - } - throw new TranslationException(request.getClass()); - } - - @Override - public JAXBElement translate(STALResponse response) throws TranslationException { - if (response instanceof InfoboxReadResponse) { - InfoboxReadResponseType resp = of.createInfoboxReadResponseType(); - resp.setInfoboxValue(((InfoboxReadResponse) response).getInfoboxValue()); - return of.createGetNextRequestTypeInfoboxReadResponse(resp); - } else if (response instanceof SignResponse) { - SignResponseType resp = of.createSignResponseType(); - resp.setSignatureValue(((SignResponse) response).getSignatureValue()); - return of.createGetNextRequestTypeSignResponse(resp); - } else if (response instanceof ErrorResponse) { - ErrorResponseType resp = of.createErrorResponseType(); - resp.setErrorCode(((ErrorResponse) response).getErrorCode()); - resp.setErrorMessage(((ErrorResponse) response).getErrorMessage()); - return of.createGetNextRequestTypeErrorResponse(resp); - } else if (response instanceof StatusResponse) { - StatusResponseType resp = of.createStatusResponseType(); - resp.setCardReady(((StatusResponse) response).isCardReady()); - return of.createGetNextRequestTypeStatusResponse(resp); - } - throw new TranslationException(response.getClass()); - } - - @Override - public STALResponse translate(ResponseType response) throws TranslationException { - if (response instanceof InfoboxReadResponseType) { - InfoboxReadResponse stalResp = new InfoboxReadResponse(); - stalResp.setInfoboxValue(((InfoboxReadResponseType) response).getInfoboxValue()); - return stalResp; - } else if (response instanceof SignResponseType) { - SignResponse stalResp = new SignResponse(); - stalResp.setSignatureValue(((SignResponseType) response).getSignatureValue()); - return stalResp; - } else if (response instanceof ErrorResponseType) { - ErrorResponse stalResp = new ErrorResponse(); - stalResp.setErrorCode(((ErrorResponseType) response).getErrorCode()); - stalResp.setErrorMessage(((ErrorResponseType) response).getErrorMessage()); - return stalResp; - } else if (response instanceof StatusResponseType) { - StatusResponse stalResp = new StatusResponse(); - stalResp.setCardReady(((StatusResponseType) response).isCardReady()); - return stalResp; - } - throw new TranslationException(response.getClass()); - } - } -} - diff --git a/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/translator/TranslationException.java b/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/translator/TranslationException.java deleted file mode 100644 index fd9da988..00000000 --- a/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/translator/TranslationException.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2008 Federal Chancellery Austria and - * Graz University of Technology - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package at.gv.egiz.stal.service.translator; - -/** - * - * @author Clemens Orthacker - */ -public class TranslationException extends Exception { - - private Class unknownClass; - - /** - * Creates a new instance of TranslationException without detail message. - * @param unknownClass the class that could not be translated - */ - public TranslationException(Class unkownClass) { - this.unknownClass = unkownClass; - } - - @Override - public String getMessage() { - return "Failed to translate type " + unknownClass; - } - - - -} diff --git a/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/ErrorResponseType.java b/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/ErrorResponseType.java deleted file mode 100644 index 14ae0d39..00000000 --- a/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/ErrorResponseType.java +++ /dev/null @@ -1,84 +0,0 @@ - -package at.gv.egiz.stal.service.types; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ErrorResponseType complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="ErrorResponseType">
- *   <complexContent>
- *     <extension base="{http://www.egiz.gv.at/stal}ResponseType">
- *       <sequence>
- *         <element name="ErrorCode" type="{http://www.w3.org/2001/XMLSchema}int"/>
- *         <element name="ErrorMessage" type="{http://www.w3.org/2001/XMLSchema}string"/>
- *       </sequence>
- *     </extension>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ErrorResponseType", propOrder = { - "errorCode", - "errorMessage" -}) -public class ErrorResponseType - extends ResponseType -{ - - @XmlElement(name = "ErrorCode") - protected int errorCode; - @XmlElement(name = "ErrorMessage", required = true) - protected String errorMessage; - - /** - * Gets the value of the errorCode property. - * - */ - public int getErrorCode() { - return errorCode; - } - - /** - * Sets the value of the errorCode property. - * - */ - public void setErrorCode(int value) { - this.errorCode = value; - } - - /** - * Gets the value of the errorMessage property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getErrorMessage() { - return errorMessage; - } - - /** - * Sets the value of the errorMessage property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setErrorMessage(String value) { - this.errorMessage = value; - } - -} diff --git a/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/GetHashDataInputFaultType.java b/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/GetHashDataInputFaultType.java deleted file mode 100644 index bf9f96ab..00000000 --- a/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/GetHashDataInputFaultType.java +++ /dev/null @@ -1,82 +0,0 @@ - -package at.gv.egiz.stal.service.types; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for GetHashDataInputFaultType complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="GetHashDataInputFaultType">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="ErrorCode" type="{http://www.w3.org/2001/XMLSchema}int"/>
- *         <element name="ErrorMessage" type="{http://www.w3.org/2001/XMLSchema}string"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "GetHashDataInputFaultType", propOrder = { - "errorCode", - "errorMessage" -}) -public class GetHashDataInputFaultType { - - @XmlElement(name = "ErrorCode") - protected int errorCode; - @XmlElement(name = "ErrorMessage", required = true) - protected String errorMessage; - - /** - * Gets the value of the errorCode property. - * - */ - public int getErrorCode() { - return errorCode; - } - - /** - * Sets the value of the errorCode property. - * - */ - public void setErrorCode(int value) { - this.errorCode = value; - } - - /** - * Gets the value of the errorMessage property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getErrorMessage() { - return errorMessage; - } - - /** - * Sets the value of the errorMessage property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setErrorMessage(String value) { - this.errorMessage = value; - } - -} diff --git a/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/GetHashDataInputResponseType.java b/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/GetHashDataInputResponseType.java deleted file mode 100644 index ad029757..00000000 --- a/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/GetHashDataInputResponseType.java +++ /dev/null @@ -1,267 +0,0 @@ - -package at.gv.egiz.stal.service.types; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; -import javax.xml.bind.annotation.XmlValue; - - -/** - *

Java class for GetHashDataInputResponseType complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="GetHashDataInputResponseType">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="Reference" maxOccurs="unbounded">
- *           <complexType>
- *             <simpleContent>
- *               <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" />
- *                 <attribute name="Filename" type="{http://www.w3.org/2001/XMLSchema}string" />
- *               </extension>
- *             </simpleContent>
- *           </complexType>
- *         </element>
- *       </sequence>
- *       <attribute name="SessionId" type="{http://www.w3.org/2001/XMLSchema}string" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "GetHashDataInputResponseType", propOrder = { - "reference" -}) -public class GetHashDataInputResponseType { - - @XmlElement(name = "Reference", required = true) - protected List reference; - @XmlAttribute(name = "SessionId") - protected String sessionId; - - /** - * Gets the value of the reference property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the reference property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getReference().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link GetHashDataInputResponseType.Reference } - * - * - */ - public List getReference() { - if (reference == null) { - reference = new ArrayList(); - } - return this.reference; - } - - /** - * Gets the value of the sessionId property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getSessionId() { - return sessionId; - } - - /** - * Sets the value of the sessionId property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setSessionId(String value) { - this.sessionId = value; - } - - - /** - *

Java class for anonymous complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

-     * <complexType>
-     *   <simpleContent>
-     *     <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" />
-     *       <attribute name="Filename" type="{http://www.w3.org/2001/XMLSchema}string" />
-     *     </extension>
-     *   </simpleContent>
-     * </complexType>
-     * 
- * - * - */ - @XmlAccessorType(XmlAccessType.FIELD) - @XmlType(name = "", propOrder = { - "value" - }) - public static class Reference { - - @XmlValue - protected byte[] value; - @XmlAttribute(name = "ID") - protected String id; - @XmlAttribute(name = "MimeType") - protected String mimeType; - @XmlAttribute(name = "Encoding") - protected String encoding; - @XmlAttribute(name = "Filename") - protected String filename; - - /** - * Gets the value of the value property. - * - * @return - * possible object is - * byte[] - */ - public byte[] getValue() { - return value; - } - - /** - * Sets the value of the value property. - * - * @param value - * allowed object is - * byte[] - */ - public void setValue(byte[] value) { - this.value = ((byte[]) value); - } - - /** - * Gets the value of the id property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getID() { - return id; - } - - /** - * Sets the value of the id property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setID(String value) { - this.id = value; - } - - /** - * Gets the value of the mimeType property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getMimeType() { - return mimeType; - } - - /** - * Sets the value of the mimeType property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setMimeType(String value) { - 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; - } - - /** - * Gets the value of the filename property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getFilename() { - return filename; - } - - /** - * Sets the value of the filename property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setFilename(String value) { - this.filename = value; - } - - } - -} diff --git a/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/GetHashDataInputType.java b/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/GetHashDataInputType.java deleted file mode 100644 index 5309482a..00000000 --- a/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/GetHashDataInputType.java +++ /dev/null @@ -1,156 +0,0 @@ - -package at.gv.egiz.stal.service.types; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for GetHashDataInputType complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="GetHashDataInputType">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="Reference" maxOccurs="unbounded">
- *           <complexType>
- *             <complexContent>
- *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *                 <attribute name="ID" type="{http://www.w3.org/2001/XMLSchema}string" />
- *               </restriction>
- *             </complexContent>
- *           </complexType>
- *         </element>
- *       </sequence>
- *       <attribute name="SessionId" type="{http://www.w3.org/2001/XMLSchema}string" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "GetHashDataInputType", propOrder = { - "reference" -}) -public class GetHashDataInputType { - - @XmlElement(name = "Reference", required = true) - protected List reference; - @XmlAttribute(name = "SessionId") - protected String sessionId; - - /** - * Gets the value of the reference property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the reference property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getReference().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link GetHashDataInputType.Reference } - * - * - */ - public List getReference() { - if (reference == null) { - reference = new ArrayList(); - } - return this.reference; - } - - /** - * Gets the value of the sessionId property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getSessionId() { - return sessionId; - } - - /** - * Sets the value of the sessionId property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setSessionId(String value) { - this.sessionId = value; - } - - - /** - *

Java class for anonymous complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

-     * <complexType>
-     *   <complexContent>
-     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
-     *       <attribute name="ID" type="{http://www.w3.org/2001/XMLSchema}string" />
-     *     </restriction>
-     *   </complexContent>
-     * </complexType>
-     * 
- * - * - */ - @XmlAccessorType(XmlAccessType.FIELD) - @XmlType(name = "") - public static class Reference { - - @XmlAttribute(name = "ID") - protected String id; - - /** - * Gets the value of the id property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getID() { - return id; - } - - /** - * Sets the value of the id property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setID(String value) { - this.id = value; - } - - } - -} diff --git a/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/GetNextRequestResponseType.java b/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/GetNextRequestResponseType.java deleted file mode 100644 index 7c1f881e..00000000 --- a/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/GetNextRequestResponseType.java +++ /dev/null @@ -1,115 +0,0 @@ - -package at.gv.egiz.stal.service.types; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.JAXBElement; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElementRef; -import javax.xml.bind.annotation.XmlElementRefs; -import javax.xml.bind.annotation.XmlType; -//import at.buergerkarte.namespaces.cardchannel.service.ScriptType; - - -/** - *

Java class for GetNextRequestResponseType complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="GetNextRequestResponseType">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <choice maxOccurs="unbounded">
- *         <element name="InfoboxReadRequest" type="{http://www.egiz.gv.at/stal}InfoboxReadRequestType"/>
- *         <element name="SignRequest" type="{http://www.egiz.gv.at/stal}SignRequestType"/>
- *         <element name="QuitRequest" type="{http://www.egiz.gv.at/stal}QuitRequestType"/>
- *         <element name="StatusRequest" type="{http://www.egiz.gv.at/stal}StatusRequestType"/>
- *         <element ref="{http://www.egiz.gv.at/stal}OtherRequest"/>
- *       </choice>
- *       <attribute name="SessionId" type="{http://www.w3.org/2001/XMLSchema}string" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "GetNextRequestResponseType", propOrder = { - "infoboxReadRequestOrSignRequestOrQuitRequest" -}) -public class GetNextRequestResponseType { - - @XmlElementRefs({ - @XmlElementRef(name = "OtherRequest", namespace = "http://www.egiz.gv.at/stal", type = JAXBElement.class), - @XmlElementRef(name = "QuitRequest", namespace = "http://www.egiz.gv.at/stal", type = JAXBElement.class), - @XmlElementRef(name = "InfoboxReadRequest", namespace = "http://www.egiz.gv.at/stal", type = JAXBElement.class), - @XmlElementRef(name = "SignRequest", namespace = "http://www.egiz.gv.at/stal", type = JAXBElement.class), - @XmlElementRef(name = "StatusRequest", namespace = "http://www.egiz.gv.at/stal", type = JAXBElement.class) - }) - protected List> infoboxReadRequestOrSignRequestOrQuitRequest; - @XmlAttribute(name = "SessionId") - protected String sessionId; - - /** - * Gets the value of the infoboxReadRequestOrSignRequestOrQuitRequest property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the infoboxReadRequestOrSignRequestOrQuitRequest property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getInfoboxReadRequestOrSignRequestOrQuitRequest().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link JAXBElement }{@code <}{@link RequestType }{@code >} - * {@link JAXBElement }{@code <}{@link QuitRequestType }{@code >} - * {@link JAXBElement }{@code <}{@link InfoboxReadRequestType }{@code >} - * {@link JAXBElement }{@code <}{@link ScriptType }{@code >} - * {@link JAXBElement }{@code <}{@link StatusRequestType }{@code >} - * {@link JAXBElement }{@code <}{@link SignRequestType }{@code >} - * - * - */ - public List> getInfoboxReadRequestOrSignRequestOrQuitRequest() { - if (infoboxReadRequestOrSignRequestOrQuitRequest == null) { - infoboxReadRequestOrSignRequestOrQuitRequest = new ArrayList>(); - } - return this.infoboxReadRequestOrSignRequestOrQuitRequest; - } - - /** - * Gets the value of the sessionId property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getSessionId() { - return sessionId; - } - - /** - * Sets the value of the sessionId property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setSessionId(String value) { - this.sessionId = value; - } - -} diff --git a/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/GetNextRequestType.java b/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/GetNextRequestType.java deleted file mode 100644 index 691ecd9b..00000000 --- a/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/GetNextRequestType.java +++ /dev/null @@ -1,114 +0,0 @@ - -package at.gv.egiz.stal.service.types; - -import java.util.ArrayList; -import java.util.List; -import javax.xml.bind.JAXBElement; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlElementRef; -import javax.xml.bind.annotation.XmlElementRefs; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for GetNextRequestType complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="GetNextRequestType">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <choice maxOccurs="unbounded">
- *         <element name="InfoboxReadResponse" type="{http://www.egiz.gv.at/stal}InfoboxReadResponseType"/>
- *         <element name="SignResponse" type="{http://www.egiz.gv.at/stal}SignResponseType"/>
- *         <element name="ErrorResponse" type="{http://www.egiz.gv.at/stal}ErrorResponseType"/>
- *         <element name="StatusResponse" type="{http://www.egiz.gv.at/stal}StatusResponseType"/>
- *         <element ref="{http://www.egiz.gv.at/stal}OtherResponse"/>
- *       </choice>
- *       <attribute name="SessionId" type="{http://www.w3.org/2001/XMLSchema}string" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "GetNextRequestType", propOrder = { - "infoboxReadResponseOrSignResponseOrErrorResponse" -}) -public class GetNextRequestType { - - @XmlElementRefs({ - @XmlElementRef(name = "StatusResponse", namespace = "http://www.egiz.gv.at/stal", type = JAXBElement.class), - @XmlElementRef(name = "InfoboxReadResponse", namespace = "http://www.egiz.gv.at/stal", type = JAXBElement.class), - @XmlElementRef(name = "OtherResponse", namespace = "http://www.egiz.gv.at/stal", type = JAXBElement.class), - @XmlElementRef(name = "ErrorResponse", namespace = "http://www.egiz.gv.at/stal", type = JAXBElement.class), - @XmlElementRef(name = "SignResponse", namespace = "http://www.egiz.gv.at/stal", type = JAXBElement.class) - }) - protected List> infoboxReadResponseOrSignResponseOrErrorResponse; - @XmlAttribute(name = "SessionId") - protected String sessionId; - - /** - * Gets the value of the infoboxReadResponseOrSignResponseOrErrorResponse property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the JAXB object. - * This is why there is not a set method for the infoboxReadResponseOrSignResponseOrErrorResponse property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getInfoboxReadResponseOrSignResponseOrErrorResponse().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link JAXBElement }{@code <}{@link at.buergerkarte.namespaces.cardchannel.service.ResponseType }{@code >} - * {@link JAXBElement }{@code <}{@link StatusResponseType }{@code >} - * {@link JAXBElement }{@code <}{@link at.gv.egiz.stal.service.types.ResponseType }{@code >} - * {@link JAXBElement }{@code <}{@link ErrorResponseType }{@code >} - * {@link JAXBElement }{@code <}{@link SignResponseType }{@code >} - * {@link JAXBElement }{@code <}{@link InfoboxReadResponseType }{@code >} - * - * - */ - public List> getInfoboxReadResponseOrSignResponseOrErrorResponse() { - if (infoboxReadResponseOrSignResponseOrErrorResponse == null) { - infoboxReadResponseOrSignResponseOrErrorResponse = new ArrayList>(); - } - return this.infoboxReadResponseOrSignResponseOrErrorResponse; - } - - /** - * Gets the value of the sessionId property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getSessionId() { - return sessionId; - } - - /** - * Sets the value of the sessionId property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setSessionId(String value) { - this.sessionId = value; - } - -} diff --git a/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/InfoboxReadRequestType.java b/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/InfoboxReadRequestType.java deleted file mode 100644 index 0ab6f5f3..00000000 --- a/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/InfoboxReadRequestType.java +++ /dev/null @@ -1,102 +0,0 @@ - -package at.gv.egiz.stal.service.types; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlSchemaType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for InfoboxReadRequestType complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="InfoboxReadRequestType">
- *   <complexContent>
- *     <extension base="{http://www.egiz.gv.at/stal}RequestType">
- *       <sequence>
- *         <element name="InfoboxIdentifier">
- *           <simpleType>
- *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *               <enumeration value="Certificates"/>
- *               <enumeration value="IdentityLink"/>
- *               <enumeration value="Mandates"/>
- *             </restriction>
- *           </simpleType>
- *         </element>
- *         <element name="DomainIdentifier" type="{http://www.w3.org/2001/XMLSchema}anyURI" minOccurs="0"/>
- *       </sequence>
- *     </extension>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "InfoboxReadRequestType", propOrder = { - "infoboxIdentifier", - "domainIdentifier" -}) -public class InfoboxReadRequestType - extends RequestType -{ - - @XmlElement(name = "InfoboxIdentifier", required = true) - protected String infoboxIdentifier; - @XmlElement(name = "DomainIdentifier") - @XmlSchemaType(name = "anyURI") - protected String domainIdentifier; - - /** - * Gets the value of the infoboxIdentifier property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getInfoboxIdentifier() { - return infoboxIdentifier; - } - - /** - * Sets the value of the infoboxIdentifier property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setInfoboxIdentifier(String value) { - this.infoboxIdentifier = value; - } - - /** - * Gets the value of the domainIdentifier property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getDomainIdentifier() { - return domainIdentifier; - } - - /** - * Sets the value of the domainIdentifier property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setDomainIdentifier(String value) { - this.domainIdentifier = value; - } - -} diff --git a/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/InfoboxReadResponseType.java b/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/InfoboxReadResponseType.java deleted file mode 100644 index 1d88737d..00000000 --- a/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/InfoboxReadResponseType.java +++ /dev/null @@ -1,62 +0,0 @@ - -package at.gv.egiz.stal.service.types; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for InfoboxReadResponseType complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="InfoboxReadResponseType">
- *   <complexContent>
- *     <extension base="{http://www.egiz.gv.at/stal}ResponseType">
- *       <sequence>
- *         <element name="InfoboxValue" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
- *       </sequence>
- *     </extension>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "InfoboxReadResponseType", propOrder = { - "infoboxValue" -}) -public class InfoboxReadResponseType - extends ResponseType -{ - - @XmlElement(name = "InfoboxValue", required = true) - protected byte[] infoboxValue; - - /** - * Gets the value of the infoboxValue property. - * - * @return - * possible object is - * byte[] - */ - public byte[] getInfoboxValue() { - return infoboxValue; - } - - /** - * Sets the value of the infoboxValue property. - * - * @param value - * allowed object is - * byte[] - */ - public void setInfoboxValue(byte[] value) { - this.infoboxValue = ((byte[]) value); - } - -} diff --git a/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/ObjectFactory.java b/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/ObjectFactory.java deleted file mode 100644 index 297fc924..00000000 --- a/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/ObjectFactory.java +++ /dev/null @@ -1,316 +0,0 @@ - -package at.gv.egiz.stal.service.types; - -import javax.xml.bind.JAXBElement; -import javax.xml.bind.annotation.XmlElementDecl; -import javax.xml.bind.annotation.XmlRegistry; -import javax.xml.namespace.QName; - - -/** - * This object contains factory methods for each - * Java content interface and Java element interface - * generated in the at.gv.egiz.stal.service.types package. - *

An ObjectFactory allows you to programatically - * construct new instances of the Java representation - * for XML content. The Java representation of XML - * content can consist of schema derived interfaces - * and classes representing the binding of schema - * type definitions, element declarations and model - * groups. Factory methods for each of these are - * provided in this class. - * - */ -@XmlRegistry -public class ObjectFactory { - - private final static QName _GetHashDataInput_QNAME = new QName("http://www.egiz.gv.at/stal", "GetHashDataInput"); - private final static QName _GetHashDataInputResponse_QNAME = new QName("http://www.egiz.gv.at/stal", "GetHashDataInputResponse"); - private final static QName _OtherRequest_QNAME = new QName("http://www.egiz.gv.at/stal", "OtherRequest"); - private final static QName _GetNextRequest_QNAME = new QName("http://www.egiz.gv.at/stal", "GetNextRequest"); - private final static QName _OtherResponse_QNAME = new QName("http://www.egiz.gv.at/stal", "OtherResponse"); - private final static QName _SessionId_QNAME = new QName("http://www.egiz.gv.at/stal", "SessionId"); - private final static QName _GetHashDataInputFault_QNAME = new QName("http://www.egiz.gv.at/stal", "GetHashDataInputFault"); - private final static QName _GetNextRequestResponse_QNAME = new QName("http://www.egiz.gv.at/stal", "GetNextRequestResponse"); - private final static QName _GetNextRequestResponseTypeQuitRequest_QNAME = new QName("http://www.egiz.gv.at/stal", "QuitRequest"); - private final static QName _GetNextRequestResponseTypeInfoboxReadRequest_QNAME = new QName("http://www.egiz.gv.at/stal", "InfoboxReadRequest"); - private final static QName _GetNextRequestResponseTypeSignRequest_QNAME = new QName("http://www.egiz.gv.at/stal", "SignRequest"); - private final static QName _GetNextRequestTypeErrorResponse_QNAME = new QName("http://www.egiz.gv.at/stal", "ErrorResponse"); - private final static QName _GetNextRequestTypeSignResponse_QNAME = new QName("http://www.egiz.gv.at/stal", "SignResponse"); - private final static QName _GetNextRequestTypeInfoboxReadResponse_QNAME = new QName("http://www.egiz.gv.at/stal", "InfoboxReadResponse"); - private final static QName _GetNextRequestResponseTypeStatusRequest_QNAME = new QName("http://www.egiz.gv.at/stal", "StatusRequest"); - private final static QName _GetNextRequestTypeStatusResponse_QNAME = new QName("http://www.egiz.gv.at/stal", "StatusResponse"); - - /** - * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: at.gv.egiz.stal.service.types - * - */ - public ObjectFactory() { - } - - /** - * Create an instance of {@link StatusResponseType } - * - */ - public StatusResponseType createStatusResponseType() { - return new StatusResponseType(); - } - - /** - * Create an instance of {@link StatusRequestType } - * - */ - public StatusRequestType createStatusRequestType() { - return new StatusRequestType(); - } - - /** - * Create an instance of {@link GetHashDataInputType } - * - */ - public GetHashDataInputType createGetHashDataInputType() { - return new GetHashDataInputType(); - } - - /** - * Create an instance of {@link GetHashDataInputResponseType.Reference } - * - */ - public GetHashDataInputResponseType.Reference createGetHashDataInputResponseTypeReference() { - return new GetHashDataInputResponseType.Reference(); - } - - /** - * Create an instance of {@link GetNextRequestType } - * - */ - public GetNextRequestType createGetNextRequestType() { - return new GetNextRequestType(); - } - - /** - * Create an instance of {@link SignRequestType } - * - */ - public SignRequestType createSignRequestType() { - return new SignRequestType(); - } - - /** - * Create an instance of {@link GetHashDataInputType.Reference } - * - */ - public GetHashDataInputType.Reference createGetHashDataInputTypeReference() { - return new GetHashDataInputType.Reference(); - } - - /** - * Create an instance of {@link ErrorResponseType } - * - */ - public ErrorResponseType createErrorResponseType() { - return new ErrorResponseType(); - } - - /** - * Create an instance of {@link QuitRequestType } - * - */ - public QuitRequestType createQuitRequestType() { - return new QuitRequestType(); - } - - /** - * Create an instance of {@link InfoboxReadResponseType } - * - */ - public InfoboxReadResponseType createInfoboxReadResponseType() { - return new InfoboxReadResponseType(); - } - - /** - * Create an instance of {@link InfoboxReadRequestType } - * - */ - public InfoboxReadRequestType createInfoboxReadRequestType() { - return new InfoboxReadRequestType(); - } - - /** - * Create an instance of {@link GetNextRequestResponseType } - * - */ - public GetNextRequestResponseType createGetNextRequestResponseType() { - return new GetNextRequestResponseType(); - } - - /** - * Create an instance of {@link GetHashDataInputResponseType } - * - */ - public GetHashDataInputResponseType createGetHashDataInputResponseType() { - return new GetHashDataInputResponseType(); - } - - /** - * Create an instance of {@link SignResponseType } - * - */ - public SignResponseType createSignResponseType() { - return new SignResponseType(); - } - - /** - * Create an instance of {@link GetHashDataInputFaultType } - * - */ - public GetHashDataInputFaultType createGetHashDataInputFaultType() { - return new GetHashDataInputFaultType(); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link StatusRequestType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.egiz.gv.at/stal", name = "StatusRequest", scope = GetNextRequestResponseType.class) - public JAXBElement createGetNextRequestResponseTypeStatusRequest(StatusRequestType value) { - return new JAXBElement(_GetNextRequestResponseTypeStatusRequest_QNAME, StatusRequestType.class, GetNextRequestResponseType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link StatusResponseType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.egiz.gv.at/stal", name = "StatusResponse", scope = GetNextRequestType.class) - public JAXBElement createGetNextRequestTypeStatusResponse(StatusResponseType value) { - return new JAXBElement(_GetNextRequestTypeStatusResponse_QNAME, StatusResponseType.class, GetNextRequestType.class, value); - } - - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link GetHashDataInputType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.egiz.gv.at/stal", name = "GetHashDataInput") - public JAXBElement createGetHashDataInput(GetHashDataInputType value) { - return new JAXBElement(_GetHashDataInput_QNAME, GetHashDataInputType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link GetHashDataInputResponseType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.egiz.gv.at/stal", name = "GetHashDataInputResponse") - public JAXBElement createGetHashDataInputResponse(GetHashDataInputResponseType value) { - return new JAXBElement(_GetHashDataInputResponse_QNAME, GetHashDataInputResponseType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link RequestType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.egiz.gv.at/stal", name = "OtherRequest") - public JAXBElement createOtherRequest(RequestType value) { - return new JAXBElement(_OtherRequest_QNAME, RequestType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link GetNextRequestType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.egiz.gv.at/stal", name = "GetNextRequest") - public JAXBElement createGetNextRequest(GetNextRequestType value) { - return new JAXBElement(_GetNextRequest_QNAME, GetNextRequestType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ResponseType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.egiz.gv.at/stal", name = "OtherResponse") - public JAXBElement createOtherResponse(ResponseType value) { - return new JAXBElement(_OtherResponse_QNAME, ResponseType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.egiz.gv.at/stal", name = "SessionId") - public JAXBElement createSessionId(String value) { - return new JAXBElement(_SessionId_QNAME, String.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link GetHashDataInputFaultType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.egiz.gv.at/stal", name = "GetHashDataInputFault") - public JAXBElement createGetHashDataInputFault(GetHashDataInputFaultType value) { - return new JAXBElement(_GetHashDataInputFault_QNAME, GetHashDataInputFaultType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link GetNextRequestResponseType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.egiz.gv.at/stal", name = "GetNextRequestResponse") - public JAXBElement createGetNextRequestResponse(GetNextRequestResponseType value) { - return new JAXBElement(_GetNextRequestResponse_QNAME, GetNextRequestResponseType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link QuitRequestType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.egiz.gv.at/stal", name = "QuitRequest", scope = GetNextRequestResponseType.class) - public JAXBElement createGetNextRequestResponseTypeQuitRequest(QuitRequestType value) { - return new JAXBElement(_GetNextRequestResponseTypeQuitRequest_QNAME, QuitRequestType.class, GetNextRequestResponseType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link InfoboxReadRequestType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.egiz.gv.at/stal", name = "InfoboxReadRequest", scope = GetNextRequestResponseType.class) - public JAXBElement createGetNextRequestResponseTypeInfoboxReadRequest(InfoboxReadRequestType value) { - return new JAXBElement(_GetNextRequestResponseTypeInfoboxReadRequest_QNAME, InfoboxReadRequestType.class, GetNextRequestResponseType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link SignRequestType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.egiz.gv.at/stal", name = "SignRequest", scope = GetNextRequestResponseType.class) - public JAXBElement createGetNextRequestResponseTypeSignRequest(SignRequestType value) { - return new JAXBElement(_GetNextRequestResponseTypeSignRequest_QNAME, SignRequestType.class, GetNextRequestResponseType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ErrorResponseType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.egiz.gv.at/stal", name = "ErrorResponse", scope = GetNextRequestType.class) - public JAXBElement createGetNextRequestTypeErrorResponse(ErrorResponseType value) { - return new JAXBElement(_GetNextRequestTypeErrorResponse_QNAME, ErrorResponseType.class, GetNextRequestType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link SignResponseType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.egiz.gv.at/stal", name = "SignResponse", scope = GetNextRequestType.class) - public JAXBElement createGetNextRequestTypeSignResponse(SignResponseType value) { - return new JAXBElement(_GetNextRequestTypeSignResponse_QNAME, SignResponseType.class, GetNextRequestType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link InfoboxReadResponseType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://www.egiz.gv.at/stal", name = "InfoboxReadResponse", scope = GetNextRequestType.class) - public JAXBElement createGetNextRequestTypeInfoboxReadResponse(InfoboxReadResponseType value) { - return new JAXBElement(_GetNextRequestTypeInfoboxReadResponse_QNAME, InfoboxReadResponseType.class, GetNextRequestType.class, value); - } - -} diff --git a/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/QuitRequestType.java b/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/QuitRequestType.java deleted file mode 100644 index 7dc4197f..00000000 --- a/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/QuitRequestType.java +++ /dev/null @@ -1,32 +0,0 @@ - -package at.gv.egiz.stal.service.types; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for QuitRequestType complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="QuitRequestType">
- *   <complexContent>
- *     <extension base="{http://www.egiz.gv.at/stal}RequestType">
- *     </extension>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "QuitRequestType") -public class QuitRequestType - extends RequestType -{ - - -} diff --git a/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/RequestType.java b/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/RequestType.java deleted file mode 100644 index 407fc8a4..00000000 --- a/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/RequestType.java +++ /dev/null @@ -1,39 +0,0 @@ - -package at.gv.egiz.stal.service.types; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlSeeAlso; -import javax.xml.bind.annotation.XmlType; -//import at.buergerkarte.namespaces.cardchannel.service.ScriptType; - - -/** - *

Java class for RequestType complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="RequestType">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "RequestType") -@XmlSeeAlso({ -// ScriptType.class, - SignRequestType.class, - InfoboxReadRequestType.class, - QuitRequestType.class, - StatusRequestType.class -}) -public abstract class RequestType { - - -} diff --git a/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/ResponseType.java b/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/ResponseType.java deleted file mode 100644 index 8d5e1e77..00000000 --- a/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/ResponseType.java +++ /dev/null @@ -1,38 +0,0 @@ - -package at.gv.egiz.stal.service.types; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlSeeAlso; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for ResponseType complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="ResponseType">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ResponseType") -@XmlSeeAlso({ -// at.buergerkarte.namespaces.cardchannel.service.ResponseType.class, - ErrorResponseType.class, - InfoboxReadResponseType.class, - SignResponseType.class, - StatusResponseType.class -}) -public abstract class ResponseType { - - -} diff --git a/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/SignRequestType.java b/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/SignRequestType.java deleted file mode 100644 index 09e30967..00000000 --- a/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/SignRequestType.java +++ /dev/null @@ -1,97 +0,0 @@ - -package at.gv.egiz.stal.service.types; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for SignRequestType complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="SignRequestType">
- *   <complexContent>
- *     <extension base="{http://www.egiz.gv.at/stal}RequestType">
- *       <sequence>
- *         <element name="KeyIdentifier">
- *           <simpleType>
- *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
- *               <enumeration value="SecureSignatureKeypair"/>
- *               <enumeration value="CertifiedKeypair"/>
- *             </restriction>
- *           </simpleType>
- *         </element>
- *         <element name="SignedInfo" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
- *       </sequence>
- *     </extension>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "SignRequestType", propOrder = { - "keyIdentifier", - "signedInfo" -}) -public class SignRequestType - extends RequestType -{ - - @XmlElement(name = "KeyIdentifier", required = true) - protected String keyIdentifier; - @XmlElement(name = "SignedInfo", required = true) - protected byte[] signedInfo; - - /** - * Gets the value of the keyIdentifier property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getKeyIdentifier() { - return keyIdentifier; - } - - /** - * Sets the value of the keyIdentifier property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setKeyIdentifier(String value) { - this.keyIdentifier = value; - } - - /** - * Gets the value of the signedInfo property. - * - * @return - * possible object is - * byte[] - */ - public byte[] getSignedInfo() { - return signedInfo; - } - - /** - * Sets the value of the signedInfo property. - * - * @param value - * allowed object is - * byte[] - */ - public void setSignedInfo(byte[] value) { - this.signedInfo = ((byte[]) value); - } - -} diff --git a/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/SignResponseType.java b/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/SignResponseType.java deleted file mode 100644 index a33fb34c..00000000 --- a/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/SignResponseType.java +++ /dev/null @@ -1,62 +0,0 @@ - -package at.gv.egiz.stal.service.types; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for SignResponseType complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="SignResponseType">
- *   <complexContent>
- *     <extension base="{http://www.egiz.gv.at/stal}ResponseType">
- *       <sequence>
- *         <element name="SignatureValue" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
- *       </sequence>
- *     </extension>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "SignResponseType", propOrder = { - "signatureValue" -}) -public class SignResponseType - extends ResponseType -{ - - @XmlElement(name = "SignatureValue", required = true) - protected byte[] signatureValue; - - /** - * Gets the value of the signatureValue property. - * - * @return - * possible object is - * byte[] - */ - public byte[] getSignatureValue() { - return signatureValue; - } - - /** - * Sets the value of the signatureValue property. - * - * @param value - * allowed object is - * byte[] - */ - public void setSignatureValue(byte[] value) { - this.signatureValue = ((byte[]) value); - } - -} diff --git a/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/StatusRequestType.java b/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/StatusRequestType.java deleted file mode 100644 index 44269a0c..00000000 --- a/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/StatusRequestType.java +++ /dev/null @@ -1,32 +0,0 @@ - -package at.gv.egiz.stal.service.types; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for StatusRequestType complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="StatusRequestType">
- *   <complexContent>
- *     <extension base="{http://www.egiz.gv.at/stal}RequestType">
- *     </extension>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "StatusRequestType") -public class StatusRequestType - extends RequestType -{ - - -} diff --git a/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/StatusResponseType.java b/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/StatusResponseType.java deleted file mode 100644 index 581fdc0e..00000000 --- a/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/StatusResponseType.java +++ /dev/null @@ -1,60 +0,0 @@ - -package at.gv.egiz.stal.service.types; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for StatusResponseType complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="StatusResponseType">
- *   <complexContent>
- *     <extension base="{http://www.egiz.gv.at/stal}ResponseType">
- *       <attribute name="cardReady" type="{http://www.w3.org/2001/XMLSchema}boolean" />
- *     </extension>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "StatusResponseType") -public class StatusResponseType - extends ResponseType -{ - - @XmlAttribute - protected Boolean cardReady; - - /** - * Gets the value of the cardReady property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isCardReady() { - return cardReady; - } - - /** - * Sets the value of the cardReady property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setCardReady(Boolean value) { - this.cardReady = value; - } - -} diff --git a/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/package-info.java b/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/package-info.java deleted file mode 100644 index 3328fdc0..00000000 --- a/mocca-1.2.11/STALService/src/main/java/at/gv/egiz/stal/service/types/package-info.java +++ /dev/null @@ -1,2 +0,0 @@ -@javax.xml.bind.annotation.XmlSchema(namespace = "http://www.egiz.gv.at/stal", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) -package at.gv.egiz.stal.service.types; diff --git a/mocca-1.2.11/STALService/src/test/java/at/gv/egiz/stal/service/translator/STALTranslatorTest.java b/mocca-1.2.11/STALService/src/test/java/at/gv/egiz/stal/service/translator/STALTranslatorTest.java deleted file mode 100644 index 1dad7973..00000000 --- a/mocca-1.2.11/STALService/src/test/java/at/gv/egiz/stal/service/translator/STALTranslatorTest.java +++ /dev/null @@ -1,146 +0,0 @@ -/* - * To change this template, choose Tools | Templates - * and open the template in the editor. - */ - -package at.gv.egiz.stal.service.translator; - -import at.gv.egiz.stal.STALRequest; -import at.gv.egiz.stal.STALResponse; -import at.gv.egiz.stal.SignRequest; -import at.gv.egiz.stal.service.translator.STALTranslator.TranslationHandler; -import at.gv.egiz.stal.service.types.ObjectFactory; -import at.gv.egiz.stal.service.types.RequestType; -import at.gv.egiz.stal.service.types.ResponseType; -import at.gv.egiz.stal.service.types.SignRequestType; -import javax.xml.bind.JAXBElement; -import javax.xml.namespace.QName; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Ignore; -import org.junit.Test; -import static org.junit.Assert.*; - -/** - * - * @author clemens - */ -public class STALTranslatorTest { - - static ObjectFactory of; - - public STALTranslatorTest() { - } - - @BeforeClass - public static void setUpClass() throws Exception { - of = new ObjectFactory(); - } - - @AfterClass - public static void tearDownClass() throws Exception { - } - - @Before - public void setUp() { - } - - @After - public void tearDown() { - } - - /** - * Test of registerTranslationHandler method, of class STALTranslator. - */ - @Test - @Ignore - public void testRegisterTranslationHandler() { - System.out.println("registerTranslationHandler"); - TranslationHandler handler = null; - STALTranslator instance = new STALTranslator(); - instance.registerTranslationHandler(handler); - - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - - /** - * Test of translate method, of class STALTranslator. - */ - @Test - public void testTranslate_STALRequest() throws Exception { - System.out.println("translate"); - SignRequest request = new SignRequest(); - request.setKeyIdentifier("kid"); - request.setSignedInfo("signedinfo".getBytes()); - STALTranslator instance = new STALTranslator(); - JAXBElement result = instance.translate(request); - assertEquals(SignRequestType.class, result.getValue().getClass()); - SignRequestType resultT = (SignRequestType) result.getValue(); - assertEquals(request.getKeyIdentifier(), resultT.getKeyIdentifier()); - assertEquals(request.getSignedInfo(), resultT.getSignedInfo()); - } - - /** - * Test of translate method, of class STALTranslator. - */ - @Test - public void testTranslate_1args_1() throws Exception { - System.out.println("translate"); - SignRequestType req = of.createSignRequestType(); - req.setKeyIdentifier("kid"); - req.setSignedInfo("signedinfo".getBytes()); - JAXBElement request = of.createGetNextRequestResponseTypeSignRequest(req); - STALTranslator instance = new STALTranslator(); - STALRequest result = instance.translate(request); - assertEquals(SignRequest.class, result.getClass()); - assertEquals(req.getKeyIdentifier(), ((SignRequest) result).getKeyIdentifier()); - assertEquals(req.getSignedInfo(), ((SignRequest) result).getSignedInfo()); - } - - @Test(expected=RuntimeException.class) - public void testTranslate_invalidInput() throws Exception { - System.out.println("translate"); - QName n = new QName("http://www.egiz.gv.at/stal", "SignRequest"); - JAXBElement request = new JAXBElement(n, SignRequestType.class, null); - STALTranslator instance = new STALTranslator(); - STALRequest result = instance.translate(request); - assertEquals(SignRequest.class, result.getClass()); - } - - - /** - * Test of translate method, of class STALTranslator. - */ - @Test - @Ignore - public void testTranslate_STALResponse() throws Exception { - System.out.println("translate"); - STALResponse response = null; - STALTranslator instance = new STALTranslator(); - JAXBElement expResult = null; - JAXBElement result = instance.translate(response); - assertEquals(expResult, result); - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - - /** - * Test of translate method, of class STALTranslator. - */ - @Test - @Ignore - public void testTranslate_1args_2() throws Exception { - System.out.println("translate"); - JAXBElement response = null; - STALTranslator instance = new STALTranslator(); - STALResponse expResult = null; - STALResponse result = instance.translate(response); - assertEquals(expResult, result); - // TODO review the generated test code and remove the default call to fail. - fail("The test case is a prototype."); - } - -} \ No newline at end of file -- cgit v1.2.3