// Path: camelwatch-api/src/main/java/org/camelwatch/api/CamelBean.java
// public class CamelBean {
// 
// 	private final Map<String, Object>	properties	= Maps.newTreeMap();
// 
// 	private String				name;
// 
// 	private String				description;
// 
// 	public String getDescription() {
// 		return description;
// 	}
// 
// 	public String getName() {
// 		return name;
// 	}
// 
// 	public Map<String, Object> getProperties() {
// 		return properties;
// 	}
// 
// 	public void setDescription(String description) {
// 		this.description = description;
// 	}
// 
// 	public void setName(String name) {
// 		this.name = name;
// 	}
// 
// }


import org.camelwatch.api.CamelBean;
import org.springframework.stereotype.Service;
import org.springframework.web.context.ServletContextAware;
import javax.servlet.ServletContext;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;

package camelwatch.web;




/**
 * @author Stephen K Samuel samspade79@gmail.com 2 Jul 2012 12:08:39
 */
@Service
public class RestStyleUrlResolver implements UrlResolver, ServletContextAware {

    private ServletContext servletContext;


    @Override
    public void setServletContext(ServletContext servletContext) {
        this.servletContext = servletContext;
    }

    @Override

// Path: camelwatch-api/src/main/java/org/camelwatch/api/CamelBean.java
// public class CamelBean {
// 
// 	private final Map<String, Object>	properties	= Maps.newTreeMap();
// 
// 	private String				name;
// 
// 	private String				description;
// 
// 	public String getDescription() {
// 		return description;
// 	}
// 
// 	public String getName() {
// 		return name;
// 	}
// 
// 	public Map<String, Object> getProperties() {
// 		return properties;
// 	}
// 
// 	public void setDescription(String description) {
// 		this.description = description;
// 	}
// 
// 	public void setName(String name) {
// 		this.name = name;
// 	}
// 
// }


// Path: camelwatch-web/src/main/java/camelwatch/web/RestStyleUrlResolver.java
import org.camelwatch.api.CamelBean;
import org.springframework.stereotype.Service;
import org.springframework.web.context.ServletContextAware;
import javax.servlet.ServletContext;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;

package camelwatch.web;




/**
 * @author Stephen K Samuel samspade79@gmail.com 2 Jul 2012 12:08:39
 */
@Service
public class RestStyleUrlResolver implements UrlResolver, ServletContextAware {

    private ServletContext servletContext;


    @Override
    public void setServletContext(ServletContext servletContext) {
        this.servletContext = servletContext;
    }

    @Override

    public String getEndpointUrl(CamelBean bean) throws UnsupportedEncodingException {
