Package org.reficio.ws.server

Examples of org.reficio.ws.server.ServiceRegistrationException


     * @param responder   request responder
     * @throws ServiceRegistrationException thrown if error occurs, for example path is already taken
     */
    public void registerRequestResponder(String contextPath, RequestResponder responder) throws ServiceRegistrationException {
        if (services.putIfAbsent(contextPath, responder) != null) {
            throw new ServiceRegistrationException(String.format("Specified context path [%s] is already taken", contextPath));
        }
    }
View Full Code Here


     * @param contextPath context path from which the responder should be removed
     * @throws ServiceRegistrationException thrown if error occurs, for example no service under the specified path
     */
    public void unregisterRequestResponder(String contextPath) throws ServiceRegistrationException {
        if (services.remove(contextPath) == null) {
            throw new ServiceRegistrationException(String.format("There was no service under the specified context path [%s]", contextPath));
        }
    }
View Full Code Here

TOP

Related Classes of org.reficio.ws.server.ServiceRegistrationException

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.