Package org.serviceconnector.net.res

Examples of org.serviceconnector.net.res.IResponder


   * @throws SCMPCommandException
   *             the SCMP command exception
   */
  protected SrvService getSrvServiceByServiceName(String serviceName) throws SCMPCommandException {
    SrvServiceRegistry srvServiceRegistry = AppContext.getSrvServiceRegistry();
    IResponder responder = AppContext.getResponderRegistry().getCurrentResponder();
    int listenerPort = responder.getListenerConfig().getPort();
    SrvService srvService = srvServiceRegistry.getSrvService(serviceName + "_" + listenerPort);
    if (srvService == null) {
      LOGGER.warn("service=" + serviceName + " port=" + listenerPort + " not found in registry");
      SCMPCommandException scmpCommandException = new SCMPCommandException(SCMPError.SERVICE_NOT_FOUND, serviceName);
      scmpCommandException.setMessageType(this.getKey());
View Full Code Here


  public void run(IRequest request, IResponse response, IResponderCallback responderCallback) throws SCMPCommandException {
    SCMPMessage reqMessage = request.getMessage();
    String serviceName = reqMessage.getServiceName();
    // look up srvService
    SrvServiceRegistry srvServiceRegistry = AppContext.getSrvServiceRegistry();
    IResponder responder = AppContext.getResponderRegistry().getCurrentResponder();
    int listenerPort = responder.getListenerConfig().getPort();
    SrvService srvService = srvServiceRegistry.getSrvService(serviceName + "_" + listenerPort);
    String sessionId = reqMessage.getSessionId();

    if (srvService == null) {
      // service not available anymore set up reply - SCMP Version request
View Full Code Here

  public void run(IRequest request, IResponse response, IResponderCallback responderCallback) throws SCMPCommandException {
    SCMPMessage reqMessage = request.getMessage();
    String serviceName = reqMessage.getServiceName();
    // look up srvService
    SrvServiceRegistry srvServiceRegistry = AppContext.getSrvServiceRegistry();
    IResponder responder = AppContext.getResponderRegistry().getCurrentResponder();
    int listenerPort = responder.getListenerConfig().getPort();
    SrvService srvService = srvServiceRegistry.getSrvService(serviceName + "_" + listenerPort);
    String sessionId = reqMessage.getSessionId();

    if (srvService == null) {
      // service not available anymore set up reply - SCMP Version request
View Full Code Here

  public void run(IRequest request, IResponse response, IResponderCallback responderCallback) throws SCMPCommandException {
    SCMPMessage reqMessage = request.getMessage();
    String serviceName = reqMessage.getServiceName();
    // look up srvService
    SrvServiceRegistry srvServiceRegistry = AppContext.getSrvServiceRegistry();
    IResponder responder = AppContext.getResponderRegistry().getCurrentResponder();
    int listenerPort = responder.getListenerConfig().getPort();
    SrvService srvService = srvServiceRegistry.getSrvService(serviceName + "_" + listenerPort);
    String sessionId = reqMessage.getSessionId();

    if (srvService == null) {
      // service not available anymore set up reply
View Full Code Here

TOP

Related Classes of org.serviceconnector.net.res.IResponder

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.