Examples of FilterException


Examples of org.openengsb.core.api.remote.FilterException

            if (resultString == null) {
                return null;
            }
            resultMessage = objectMapper.readValue(resultString, MethodResultMessage.class);
        } catch (IOException e) {
            throw new FilterException(e);
        }
        MethodResult result = resultMessage.getResult();
        if (result.getType().equals(ReturnType.Void)) {
            result.setArg(null);
        } else {
            Class<?> resultType;
            try {
                resultType = Class.forName(result.getClassName());
            } catch (ClassNotFoundException e) {
                throw new FilterException(e);
            }
            Object convertedValue = objectMapper.convertValue(result.getArg(), resultType);
            result.setArg(convertedValue);
        }
        return resultMessage;
View Full Code Here

Examples of org.openengsb.core.api.remote.FilterException

        Document doc = parseDocument(input);
        Document result = (Document) next.filter(doc, metadata);
        try {
            return writeDocument(result);
        } catch (TransformerException e) {
            throw new FilterException(e);
        }
    }
View Full Code Here

Examples of org.openengsb.core.api.remote.FilterException

        Document doc;
        try {
            DocumentBuilder db = dbf.newDocumentBuilder();
            doc = db.parse(new InputSource(new StringReader(input)));
        } catch (ParserConfigurationException e) {
            throw new FilterException(e);
        } catch (SAXException e) {
            throw new FilterException(e);
        } catch (IOException e) {
            throw new FilterException(e);
        }
        return doc;
    }
View Full Code Here

Examples of org.openengsb.core.api.remote.FilterException

                String className = call.getClasses().get(i);
                Class<?> parameterClass;
                try {
                    parameterClass = getClass().getClassLoader().loadClass(className);
                } catch (ClassNotFoundException e) {
                    throw new FilterException(e);
                }
                args[i] = objectMapper.convertValue(args[i], parameterClass);
            }
            MethodResultMessage returnValue = (MethodResultMessage) next.filter(callMessage, metadata);
            return objectMapper.writeValueAsString(returnValue);
        } catch (IOException e) {
            throw new FilterException(e);
        }
    }
View Full Code Here

Examples of weblogic.security.net.FilterException

      switch (rules[i].check(remoteAddress, bit))
      {
      case FilterEntry.ALLOW:
  return;
      case FilterEntry.DENY:
  throw new FilterException("rule " + (i + 1));
      case FilterEntry.IGNORE:
  break;
      default:
  throw new RuntimeException("connection filter internal error!");
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.