Package de.bamberg.ha.api.exception

Examples of de.bamberg.ha.api.exception.NoValidEndpointException


public class EndpointParser {

  public String parseServiceName(String endpointthrows NoValidEndpointException {
    String[] splitted=endpoint.split(":");
    if (splitted.length<1) {
      throw new NoValidEndpointException("no method found");
    }
    return splitted[0];
  }
View Full Code Here


  }

  public String parseMethodName(String endpoint) throws NoValidEndpointException {
    String[] splitted=endpoint.split(":");
    if (splitted.length<2) {
      throw new NoValidEndpointException("no method found");
    }
    return splitted[1];
  }
View Full Code Here

TOP

Related Classes of de.bamberg.ha.api.exception.NoValidEndpointException

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.