Package org.openxri.urimapper

Examples of org.openxri.urimapper.URIMapper


    }

    @Override
    protected void onSubmit() {

      URIMapper openXRIURIMapper = ((OpenXRIAdminApplication) Application.get()).getOpenXRIURIMapper();

      URIMapperRequest request;
      URIMapperResult result;

      try {

        request = (URIMapperRequest) this.getModelObject();
        result = openXRIURIMapper.parseRequest(request);
        if (result == null) throw new RuntimeException();
      } catch (Exception ex) {

        log.error(ex);
        Index.this.error(Index.this.getString("parsefail") + ex.getLocalizedMessage());
View Full Code Here


    @Override
    protected void onSubmit() {

      ServerConfig serverConfig = ((OpenXRIAdminApplication) Application.get()).getOpenXRIServerConfig();
      URIMapper openXRIURIMapper = ((OpenXRIAdminApplication) Application.get()).getOpenXRIURIMapper();

      try {

        StringBuffer uri = new StringBuffer()
        .append("http://")
        .append(serverConfig.getHostName())
        .append(":")
        .append(serverConfig.getHostPort())
        .append(serverConfig.getServletPath());

        openXRIURIMapper.completeURI(uri, this.namespace);

        Index.this.completeResultFragment.setUri(uri.toString());
      } catch (Exception ex) {

        log.error(ex);
View Full Code Here

TOP

Related Classes of org.openxri.urimapper.URIMapper

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.