Package org.apache.sirona

Examples of org.apache.sirona.SironaException


                    if (agents != null) {
                        for (final String url : agents.split(",")) {
                            try {
                                registerNode(url.trim());
                            } catch (final MalformedURLException e) {
                                throw new SironaException(e);
                            }
                        }
                    }
                }
            }
View Full Code Here


                    }
                    final NodeStatus status = new NodeStatus(results.toArray(new ValidationResult[results.size()]), statusDate);
                    statusDataStore.store((String) events[0].getData().get("marker"), status);
                }
            } catch (final Exception e) {
                throw new SironaException(e);
            }
        }
    }
View Full Code Here

                }
            } else if (result != null) {
                response.getWriter().write(result.toString());
            }
        } catch (final InvocationTargetException e) {
            throw new SironaException(e.getCause());
        } catch (final Exception e) {
            throw new SironaException(e);
        }
    }
View Full Code Here

        public TemplateHelper extract(final HttpServletRequest request, final HttpServletResponse response, final Matcher matcher) {
            try {
                return new TemplateHelper(response.getWriter(),
                                          new MapBuilder<String, Object>().set( "templateId", plugin ).build());
            } catch (final IOException e) {
                throw new SironaException(e);
            }
        }
View Full Code Here

    }

    @Regex("/operation/([^/]*)/([^/]*)/(.*)")
    public String invokeOperation(final String objectNameBase64, final String method, final String[] parameters) {
        if (!METHOD_INVOCATION_ALLOWED) {
            throw new SironaException("Method invocation not allowed");
        }

        try {
            final ObjectName name = new ObjectName(new String(Base64.decodeBase64(objectNameBase64)));
            final MBeanInfo info = server.getMBeanInfo(name);
View Full Code Here

                    .set("description", value(info.getDescription()))
                    .set("attributes", attributes(name, info))
                    .set("operations", operations(info))
                    .build(), false);
        } catch (final Exception e) {
            throw new SironaException(e);
        }
    }
View Full Code Here

                return null;
            }

            return tryStringConstructor(type, value);
        } catch (final Exception e) {
            throw new SironaException(e);
        }
    }
View Full Code Here

            } catch (final Exception e) {
                // no-op
            }
        }

        throw new SironaException(value + " is not a number");
    }
View Full Code Here

            }

            return value.toString();
        } catch (final Exception e) {
            throw new SironaException(e);
        }
    }
View Full Code Here

    public void clear(final HttpServletRequest request, final HttpServletResponse response) {
        Repository.INSTANCE.clearCounters();
        try {
            response.sendRedirect(request.getRequestURI().substring(0, request.getRequestURI().length() - "/clear".length()));
        } catch (final IOException e) {
            throw new SironaException(e);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.sirona.SironaException

Copyright © 2018 www.massapicom. 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.