Package org.serviceconnector.web

Examples of org.serviceconnector.web.NotFoundException


    OutputStream responseOutputStream = response.getOutputStream();
    if (isResource(url)) {
      String resourcePath = getResourcePath(url);
      InputStream is = WebUtil.loadResource(resourcePath);
      if (is == null) {
        throw new NotFoundException(url);
      }
      response.setContentType(getResourceType(url));
      dumpStream(is, responseOutputStream);
      return;
    }
View Full Code Here


        transformer = XSLTTransformerFactory.getInstance().newTransformer(this.getXSLPath(""));
      } else {
        LOGGER.trace("transform using xslt " + xslPath);
      }
      if (transformer == null) {
        throw new NotFoundException("xslt resource " + xslPath + " not found");
      }
      StreamSource xmlSourceStream = new StreamSource(xmlInputStream);
      StreamResult resultStream = new StreamResult(resultOutputStream);
      transformer.transform(xmlSourceStream, resultStream);
      transformer = null;
View Full Code Here

    if (id == null) {
      throw new InvalidParameterException("id parameter missing");
    }
    IXMLLoader loader = WebContext.getXMLLoader(Constants.SLASH + id);
    if (loader == null) {
      throw new NotFoundException();
    }
    loader.loadBody(writer, request);

  }
View Full Code Here

      default:
        continue;
      }
    }
    if (found == false) {
      throw new NotFoundException("no service found pattern=" + serviceNameRegex);
    }
    return sb.toString();
  }
View Full Code Here

        sb.append(Constants.STATE_DISABLED);
      }
      found = true;
    }
    if (found == false) {
      throw new NotFoundException("no service found pattern=" + serviceNameRegex);
    }
    return sb.toString();
  }
View Full Code Here

    StringBuilder sb = new StringBuilder();

    Service service = this.serviceRegistry.getService(serviceName);

    if (service == null) {
      throw new NotFoundException("no service found serviceName=" + serviceName);
    }
    sb.append("serviceType=" + service.getType());
    return sb.toString();
  }
View Full Code Here

      default:
        continue;
      }
    }
    if (found == false) {
      throw new NotFoundException("no service found pattern=" + serviceNameRegex);
    }
    return sb.toString();
  }
View Full Code Here

        sb.append(Constants.STATE_DISABLED);
      }
      found = true;
    }
    if (found == false) {
      throw new NotFoundException("no service found pattern=" + serviceNameRegex);
    }
    return sb.toString();
  }
View Full Code Here

    StringBuilder sb = new StringBuilder();

    Service service = this.serviceRegistry.getService(serviceName);

    if (service == null) {
      throw new NotFoundException("no service found serviceName=" + serviceName);
    }
    sb.append("serviceType=" + service.getType().getValue());
    return sb.toString();
  }
View Full Code Here

TOP

Related Classes of org.serviceconnector.web.NotFoundException

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.