Authored by mali

初始化

Showing 100 changed files with 700 additions and 952 deletions

Too many changes to show.

To preserve performance only 100 of 100+ files are displayed.

Camel Java Router Project
=========================
To build this project use
mvn install
To run this project from within Maven use
mvn exec:java
For more help see the Apache Camel documentation
http://camel.apache.org/
... ...
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<parent>
<artifactId>ufo-platform</artifactId>
<groupId>com.yoho.ufo</groupId>
<version>1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>com.yoho.ufo</groupId>
<artifactId>ufo-platform-common</artifactId>
<packaging>jar</packaging>
<name>A Camel Route</name>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>
<dependencyManagement>
<dependencies>
<!-- Camel BOM -->
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-parent</artifactId>
<version>2.22.1</version>
<scope>import</scope>
<type>pom</type>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-core</artifactId>
</dependency>
<!-- logging -->
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
<scope>runtime</scope>
</dependency>
<!-- testing -->
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<defaultGoal>install</defaultGoal>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>3.0.2</version>
<configuration>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<!-- Allows the example to be run via 'mvn compile exec:java' -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.6.0</version>
<configuration>
<mainClass>com.yoho.ufo.MainApp</mainClass>
<includePluginDependencies>false</includePluginDependencies>
</configuration>
</plugin>
</plugins>
</build>
</project>
... ...
package com.yoho.ufo.constants;
/**
* Created by li.ma on 2018/9/8.
*/
public interface PlatformConstant {
String USER_SESSION = "platformUser";
String USER_MENU = "userMenu";
//{"account":"mali","password":"Fs123qwe~","platform":1}
String ERP_LOGIN_URL = "/erp-gateway-web/account/profile/login";
//{"pid":100750,"role_id":11111,"platform_id":4}
String ERP_GET_MENU = "/erp-gateway-web/account/menu/query_by_pid";
}
... ...
package com.yoho.ufo.login.controller;
import com.yoho.ufo.constants.PlatformConstant;
import com.yoho.ufo.login.model.MenuInfoResponseBO;
import com.yoho.ufo.login.model.Response;
import com.yoho.ufo.login.model.UserInfoResponseBO;
import com.yoho.ufo.login.service.LoginService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.util.List;
import java.util.Map;
/**
* Created by li.ma on 2018/9/8.
*/
@Controller
@RequestMapping("/loginController")
public class LoginController {
private static final Logger logger = LoggerFactory.getLogger(LoginController.class);
@Resource
private LoginService loginService;
/**
* 登录
* @param loginName
* @param loginPwd
* @param session
* @return
* @throws Exception
*/
@RequestMapping("/platformLogin.do")
@ResponseBody
public Response<UserInfoResponseBO> platformLogin(String loginName, String loginPwd, HttpServletRequest request, HttpSession session) throws Exception {
logger.info("enter login with loginName={}", loginName);
//登录
Response<UserInfoResponseBO> responseBO = loginService.login(loginName, loginPwd);
if (responseBO == null || responseBO.getCode() != 200) {
logger.warn("login error with loginName={}", loginName);
return new Response<UserInfoResponseBO>(responseBO.getCode(), responseBO.getMessage());
}
//登录成功,把用户信息存入session
session.setAttribute(PlatformConstant.USER_SESSION, responseBO.getData());
//获取用户所能见的菜单
Response<Map<String, List<MenuInfoResponseBO>>> menuResp = loginService.getUserMenu(responseBO.getData().getPid(), responseBO.getData().getRole_id());
//存入session
session.setAttribute(PlatformConstant.USER_MENU, menuResp.getData());
//loginSessionUtil.setLoginSession(responseBO.getData(), request, Integer.parseInt(responseBO.getData().getPid()));
return responseBO;
}
/**
* 获取登录的用户信息
* @param session
* @return
* @throws Exception
*/
@RequestMapping("/getLoginUserInfo.do")
@ResponseBody
public Response<UserInfoResponseBO> getLoginUserInfo(HttpSession session) throws Exception {
logger.info("enter getLoginUserInfo ");
UserInfoResponseBO user = (UserInfoResponseBO) session.getAttribute(PlatformConstant.USER_SESSION);
return new Response<>(user);
}
/**
* 获取登录用户的菜单
* @param session
* @return
* @throws Exception
*/
@SuppressWarnings("unchecked")
@RequestMapping("/getLoginUserMenu.do")
@ResponseBody
public Response<Map<String, List<MenuInfoResponseBO>>> getLoginUserMenu(HttpSession session) throws Exception {
logger.info("enter getLoginUserMenu ");
Map<String, List<MenuInfoResponseBO>> menuMap = (Map<String, List<MenuInfoResponseBO>>) session.getAttribute(PlatformConstant.USER_MENU);
return new Response<>(menuMap);
}
}
... ...
package com.yoho.ufo.login.model;
import com.alibaba.fastjson.JSONObject;
/**
* Created by li.ma on 2018/9/8.
*/
public class MenuInfoResponseBO {
private static final long serialVersionUID = -6404613495597746508L;
private String id;
private String menu_name;
private String menu_img;
private String description;
private String menu_url;
private String parent_id;
private String platform;
private String order_by;
private String create_time;
private String status;
public MenuInfoResponseBO() {
}
public String getId() {
return this.id;
}
public void setId(String id) {
this.id = id;
}
public String getMenu_name() {
return this.menu_name;
}
public void setMenu_name(String menu_name) {
this.menu_name = menu_name;
}
public String getMenu_img() {
return this.menu_img;
}
public void setMenu_img(String menu_img) {
this.menu_img = menu_img;
}
public String getDescription() {
return this.description;
}
public void setDescription(String description) {
this.description = description;
}
public String getMenu_url() {
return this.menu_url;
}
public void setMenu_url(String menu_url) {
this.menu_url = menu_url;
}
public String getParent_id() {
return this.parent_id;
}
public void setParent_id(String parent_id) {
this.parent_id = parent_id;
}
public String getPlatform() {
return this.platform;
}
public void setPlatform(String platform) {
this.platform = platform;
}
public String getOrder_by() {
return this.order_by;
}
public void setOrder_by(String order_by) {
this.order_by = order_by;
}
public String getCreate_time() {
return this.create_time;
}
public void setCreate_time(String create_time) {
this.create_time = create_time;
}
public String getStatus() {
return this.status;
}
public void setStatus(String status) {
this.status = status;
}
@Override
public String toString() {
return JSONObject.toJSONString(this);
}
}
... ...
package com.yoho.ufo.login.model;
import com.alibaba.fastjson.JSONObject;
/**
* Created by li.ma on 2018/9/8.
*/
public class Response<T> {
private static final long serialVersionUID = 6266480114572636927L;
private int code;
private String message;
private T data;
public Response() {
this.code = 200;
this.message = "success";
}
public Response(int code, String message) {
this.code = 200;
this.message = "success";
this.code = code;
this.message = message;
}
public Response(T data) {
this.code = 200;
this.message = "success";
this.data = data;
}
public Response(int code, String message, T data) {
this(code, message);
this.data = data;
}
public int getCode() {
return this.code;
}
public void setCode(int code) {
this.code = code;
}
public String getMessage() {
return this.message;
}
public void setMessage(String message) {
this.message = message;
}
public T getData() {
return this.data;
}
public void setData(T data) {
this.data = data;
}
@Override
public String toString() {
return JSONObject.toJSONString(this);
}
}
... ...
package com.yoho.ufo.login.model;
import com.alibaba.fastjson.JSONObject;
import lombok.ToString;
import java.util.List;
/**
* Created by li.ma on 2018/9/8.
*/
public class UserInfoResponseBO {
private static final long serialVersionUID = 3693965306440056262L;
private String pid;
private String account;
private String truename;
private String staff_code;
private String email;
private String phone;
private String create_time;
private String expires;
private String login_time;
private String status;
private String auth_site;
private String logout_time;
private String dept_id;
private String role_id;
private String create_id;
private String identity;
private int supplier_id;
private Object data_authority;
private String create_date;
private List<Integer> brandIds;
private List<Integer> shopIds;
public UserInfoResponseBO() {
}
public String getPid() {
return this.pid;
}
public void setPid(String pid) {
this.pid = pid;
}
public String getAccount() {
return this.account;
}
public void setAccount(String account) {
this.account = account;
}
public String getTruename() {
return this.truename;
}
public void setTruename(String truename) {
this.truename = truename;
}
public String getStaff_code() {
return this.staff_code;
}
public void setStaff_code(String staff_code) {
this.staff_code = staff_code;
}
public String getEmail() {
return this.email;
}
public void setEmail(String email) {
this.email = email;
}
public String getPhone() {
return this.phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
public String getCreate_time() {
return this.create_time;
}
public void setCreate_time(String create_time) {
this.create_time = create_time;
}
public String getExpires() {
return this.expires;
}
public void setExpires(String expires) {
this.expires = expires;
}
public String getLogin_time() {
return this.login_time;
}
public void setLogin_time(String login_time) {
this.login_time = login_time;
}
public String getStatus() {
return this.status;
}
public void setStatus(String status) {
this.status = status;
}
public String getAuth_site() {
return this.auth_site;
}
public void setAuth_site(String auth_site) {
this.auth_site = auth_site;
}
public String getLogout_time() {
return this.logout_time;
}
public void setLogout_time(String logout_time) {
this.logout_time = logout_time;
}
public String getDept_id() {
return this.dept_id;
}
public void setDept_id(String dept_id) {
this.dept_id = dept_id;
}
public String getRole_id() {
return this.role_id;
}
public void setRole_id(String role_id) {
this.role_id = role_id;
}
public String getCreate_id() {
return this.create_id;
}
public void setCreate_id(String create_id) {
this.create_id = create_id;
}
public String getIdentity() {
return this.identity;
}
public void setIdentity(String identity) {
this.identity = identity;
}
public int getSupplier_id() {
return this.supplier_id;
}
public void setSupplier_id(int supplier_id) {
this.supplier_id = supplier_id;
}
public Object getData_authority() {
return this.data_authority;
}
public void setData_authority(Object data_authority) {
this.data_authority = data_authority;
}
public String getCreate_date() {
return this.create_date;
}
public void setCreate_date(String create_date) {
this.create_date = create_date;
}
public List<Integer> getBrandIds() {
return this.brandIds;
}
public void setBrandIds(List<Integer> brandIds) {
this.brandIds = brandIds;
}
public List<Integer> getShopIds() {
return this.shopIds;
}
public void setShopIds(List<Integer> shopIds) {
this.shopIds = shopIds;
}
@Override
public String toString() {
return JSONObject.toJSONString(this);
}
}
... ...
package com.yoho.ufo.login.service;
import com.yoho.ufo.constants.PlatformConstant;
import com.yoho.ufo.login.model.MenuInfoResponseBO;
import com.yoho.ufo.login.model.Response;
import com.yoho.ufo.login.model.UserInfoResponseBO;
import org.apache.commons.collections.MapUtils;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;
import javax.annotation.Resource;
import java.util.List;
import java.util.Map;
/**
* Created by li.ma on 2018/9/8.
*/
@Service
public class LoginService {
private static final Logger logger = LoggerFactory.getLogger(LoginService.class);
@Value("${erp.domain}")
private String erpDomain;
@Resource(name="restTemplate")
RestTemplate restTemplate;
@SuppressWarnings("unchecked")
public Response<UserInfoResponseBO> login(String loginName, String password) throws Exception {
if (StringUtils.isEmpty(loginName)) {
logger.warn("login error. loginName is empty");
return new Response<UserInfoResponseBO>(201, "登录名为空");
}
if (StringUtils.isEmpty(password)) {
logger.warn("login error. password is empty. with loginName={}", loginName);
return new Response<UserInfoResponseBO>(202, "密码为空");
}
logger.info("enter login with loginName={}", loginName);
String url = erpDomain + PlatformConstant.ERP_LOGIN_URL;
//restTemplate.postForEntity();
Response<Map<String, Object>> response = restTemplate.getForObject(url, Response.class);
logger.info("login success with loginName={}, response={}", loginName, response);
UserInfoResponseBO user = new UserInfoResponseBO();
setUser(response.getData(), user);
return new Response<>(user);
}
private void setUser(Map<String, Object> map, UserInfoResponseBO user) {
if (MapUtils.isEmpty(map)) {
return;
}
Map<String, Object> data = (Map<String, Object>) map.get("data");
Map<String, Object> auth = (Map<String, Object>) data.get("auth");
user.setAccount((String) auth.get("account"));
user.setAuth_site((String) auth.get("auth_site"));
user.setCreate_date((String) auth.get("create_date"));
user.setCreate_id(String.valueOf(auth.get("create_id")));
user.setCreate_time(String.valueOf(auth.get("create_time")));
user.setDept_id(String.valueOf(auth.get("dept_id")));
user.setEmail((String) auth.get("email"));
user.setExpires(String.valueOf(auth.get("expires")));
user.setIdentity(String.valueOf(auth.get("identity")));
user.setLogin_time(String.valueOf(auth.get("login_time")));
user.setLogout_time(String.valueOf(auth.get("logout_time")));
user.setPhone(String.valueOf(auth.get("phone")));
user.setPid(String.valueOf( auth.get("pid")));
user.setRole_id(String.valueOf(auth.get("role_id")));
user.setStaff_code(String.valueOf(auth.get("staff_code")));
user.setStatus(String.valueOf(auth.get("status")));
user.setSupplier_id(Integer.parseInt(auth.get("supplier_id").toString()) );
user.setTruename((String) auth.get("truename"));
}
public Response<Map<String, List<MenuInfoResponseBO>>> getUserMenu(String pid, String role_id) {
return null;
}
}
... ...
package com.yoho.dsf;
package com.yoho.ufo;
/**
* Created by li.ma on 2018/9/7.
... ...
package com.yoho.dsf.ufo;
package com.yoho.ufo;
/**
* Created by li.ma on 2018/9/7.
... ...
... ... @@ -203,5 +203,6 @@
<module>dal</module>
<module>web</module>
<module>deploy</module>
<module>common</module>
</modules>
</project>
\ No newline at end of file
... ...
package com.yoho.dsf.ufo;
package com.yoho.ufo;
/**
* Created by li.ma on 2018/9/7.
... ...
1528165832554
(?:[^/]+/)*?[^/]*?
META-INF(?:$|/.+)
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd
">
<camelContext xmlns="http://camel.apache.org/schema/spring">
<route>
<description>This is an example route which you can start, stop and modify</description>
<from uri="seda:foo"/>
<to uri="mock:results"/>
</route>
</camelContext>
</beans>
// ------------------------------------------------------------------
// Transitive dependencies of this project determined from the
// maven pom organized by organization.
// ------------------------------------------------------------------
Camel :: Web
From: 'an unknown organization'
- AOP alliance (http://aopalliance.sourceforge.net) aopalliance:aopalliance:jar:1.0
License: Public Domain
- JAXB RI (https://jaxb.dev.java.net/) com.sun.xml.bind:jaxb-impl:jar:2.1.13
License: CDDL 1.0 (https://glassfish.dev.java.net/public/CDDL+GPL.html) License: GPL2 w/ CPE (https://glassfish.dev.java.net/public/CDDL+GPL.html)
- JavaBeans Activation Framework (JAF) (http://java.sun.com/products/javabeans/jaf/index.jsp) javax.activation:activation:jar:1.1
License: Common Development and Distribution License (CDDL) v1.0 (https://glassfish.dev.java.net/public/CDDLv1.0.html)
- JSR-250 Common Annotations for the JavaTM Platform (http://jcp.org/aboutJava/communityprocess/final/jsr250/index.html) javax.annotation:jsr250-api:jar:1.0
License: COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0 (https://glassfish.dev.java.net/public/CDDLv1.0.html)
- Unnamed - javax.xml.bind:jaxb-api:jar:2.1 javax.xml.bind:jaxb-api:jar:2.1
- Streaming API for XML javax.xml.stream:stax-api:jar:1.0-2
License: GNU General Public Library (http://www.gnu.org/licenses/gpl.txt) License: COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0 (http://www.sun.com/cddl/cddl.html)
- Unnamed - jdom:jdom:jar:1.0 jdom:jdom:jar:1.0
- Jettison org.codehaus.jettison:jettison:bundle:1.2
- Unnamed - org.springframework:spring-aop:jar:3.0.5.RELEASE org.springframework:spring-aop:jar:3.0.5.RELEASE
- Unnamed - org.springframework:spring-asm:jar:3.0.5.RELEASE org.springframework:spring-asm:jar:3.0.5.RELEASE
- Unnamed - org.springframework:spring-beans:jar:3.0.5.RELEASE org.springframework:spring-beans:jar:3.0.5.RELEASE
- Unnamed - org.springframework:spring-context:jar:3.0.5.RELEASE org.springframework:spring-context:jar:3.0.5.RELEASE
- Unnamed - org.springframework:spring-core:jar:3.0.5.RELEASE org.springframework:spring-core:jar:3.0.5.RELEASE
- Unnamed - org.springframework:spring-expression:jar:3.0.5.RELEASE org.springframework:spring-expression:jar:3.0.5.RELEASE
- Unnamed - org.springframework:spring-tx:jar:3.0.5.RELEASE org.springframework:spring-tx:jar:3.0.5.RELEASE
- Unnamed - org.springframework:spring-web:jar:3.0.5.RELEASE org.springframework:spring-web:jar:3.0.5.RELEASE
- StAX API (http://stax.codehaus.org/) stax:stax-api:jar:1.0.1
License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
From: 'Apache Software Foundation' (http://www.apache.org)
- Apache Log4j (http://logging.apache.org/log4j/1.2/) log4j:log4j:bundle:1.2.16
License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
From: 'FasterXML' (http://fasterxml.com)
- Jackson (http://jackson.codehaus.org) org.codehaus.jackson:jackson-core-asl:jar:1.5.5
License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
- JAX-RS provider for JSON content type (http://jackson.codehaus.org) org.codehaus.jackson:jackson-jaxrs:jar:1.5.5
License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt) License: GNU Lesser General Public License (LGPL), Version 2.1 (http://www.fsf.org/licensing/licenses/lgpl.txt)
- Data Mapper for Jackson (http://jackson.codehaus.org) org.codehaus.jackson:jackson-mapper-asl:jar:1.5.5
License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
- Xml Compatibility extensions for Jackson (http://jackson.codehaus.org) org.codehaus.jackson:jackson-xc:jar:1.5.5
License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt) License: GNU Lesser General Public License (LGPL), Version 2.1 (http://www.fsf.org/licensing/licenses/lgpl.txt)
From: 'FuseSource' (http://fusesource.com/)
- Scalate :: Core (http://scalate.fusesource.org/scalate-core) org.fusesource.scalate:scalate-core:jar:1.3.1
License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
From: 'FuseSource' (http://www.fusesource.org)
- Commons Management (http://commonman.fusesource.org) org.fusesource.commonman:commons-management:bundle:1.0
License: Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.html)
From: 'LAMP/EPFL' (http://lamp.epfl.ch/)
- Unnamed - org.scala-lang:scala-compiler:jar:2.8.0 (http://www.scala-lang.org/) org.scala-lang:scala-compiler:jar:2.8.0
License: BSD-like (http://www.scala-lang.org/downloads/license.html)
- Unnamed - org.scala-lang:scala-library:jar:2.8.0 (http://www.scala-lang.org/) org.scala-lang:scala-library:jar:2.8.0
License: BSD-like (http://www.scala-lang.org/downloads/license.html)
From: 'ObjectWeb' (http://www.objectweb.org/)
- ASM Core (http://asm.objectweb.org/asm) asm:asm:jar:3.1
From: 'Oracle Corporation' (http://www.oracle.com/)
- jersey-atom (https://jersey.dev.java.net/jersey-atom) com.sun.jersey:jersey-atom:jar:1.4
License: CDDL 1.1 (https://glassfish.dev.java.net/public/CDDL+GPL_1_1.html) License: GPL2 w/ CPE (https://glassfish.dev.java.net/public/CDDL+GPL_1_1.html)
- jersey-core (https://jersey.dev.java.net/jersey-core) com.sun.jersey:jersey-core:bundle:1.4
License: CDDL 1.1 (https://glassfish.dev.java.net/public/CDDL+GPL_1_1.html) License: GPL2 w/ CPE (https://glassfish.dev.java.net/public/CDDL+GPL_1_1.html)
- jersey-json (https://jersey.dev.java.net/jersey-json) com.sun.jersey:jersey-json:bundle:1.4
License: CDDL 1.1 (https://glassfish.dev.java.net/public/CDDL+GPL_1_1.html) License: GPL2 w/ CPE (https://glassfish.dev.java.net/public/CDDL+GPL_1_1.html)
- jersey-server (https://jersey.dev.java.net/jersey-server) com.sun.jersey:jersey-server:bundle:1.4
License: CDDL 1.1 (https://glassfish.dev.java.net/public/CDDL+GPL_1_1.html) License: GPL2 w/ CPE (https://glassfish.dev.java.net/public/CDDL+GPL_1_1.html)
- jersey-spring (http://maven.apache.org) com.sun.jersey.contribs:jersey-spring:jar:1.4
License: CDDL 1.1 (https://glassfish.dev.java.net/public/CDDL+GPL_1_1.html) License: GPL2 w/ CPE (https://glassfish.dev.java.net/public/CDDL+GPL_1_1.html)
From: 'QOS.ch' (http://www.qos.ch)
- SLF4J API Module (http://www.slf4j.org) org.slf4j:slf4j-api:jar:1.6.1
License: MIT License (http://www.opensource.org/licenses/mit-license.php)
- SLF4J LOG4J-12 Binding (http://www.slf4j.org) org.slf4j:slf4j-log4j12:jar:1.6.1
License: MIT License (http://www.opensource.org/licenses/mit-license.php)
From: 'The Apache Software Foundation' (http://jakarta.apache.org)
- Logging (http://jakarta.apache.org/commons/logging/) commons-logging:commons-logging-api:jar:1.1
License: The Apache Software License, Version 2.0 (/LICENSE.txt)
From: 'The Apache Software Foundation' (http://www.apache.org/)
- Commons Logging (http://commons.apache.org/logging) commons-logging:commons-logging:jar:1.1.1
License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
- Camel :: Core (http://camel.apache.org/camel-parent/camel-core) org.apache.camel:camel-core:bundle:2.6.0
License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
- Camel :: Spring (http://camel.apache.org/camel-parent/camel-spring) org.apache.camel:camel-spring:bundle:2.6.0
License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt)
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Camel :: Web
Copyright 2007-2011 The Apache Software Foundation
This product includes software developed at
The Apache Software Foundation (http://www.apache.org/).
=========================================================================
== NOTICE file corresponding to the section 4 d of ==
== the Apache License, Version 2.0, ==
== in this case for the Apache Camel distribution. ==
=========================================================================
This product includes software developed by
The Apache Software Foundation (http://www.apache.org/).
Please read the different LICENSE files present in the licenses directory of
this distribution.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<applicationDocs targetNamespace="http://research.sun.com/wadl/2006/10">
<doc xml:lang="en" title="Apache Camel Web Console and API">
<p>
For more on the REST API please see<a href="http://camel.apache.org/web-console.html">the Web Console documentation</a>.
</p>
</doc>
</applicationDocs>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<grammars xmlns="http://research.sun.com/wadl/2006/10"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xi="http://www.w3.org/1999/XML/xinclude">
<include href="camel-web.xsd" />
</grammars>
\ No newline at end of file
## ---------------------------------------------------------------------------
## Licensed to the Apache Software Foundation (ASF) under one or more
## contributor license agreements. See the NOTICE file distributed with
## this work for additional information regarding copyright ownership.
## The ASF licenses this file to You under the Apache License, Version 2.0
## (the "License"); you may not use this file except in compliance with
## the License. You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
## ---------------------------------------------------------------------------
#
# The logging properties used during tests..
#
log4j.rootLogger=INFO, out
log4j.logger.org.apache.activemq.spring=WARN
#log4j.logger.org.apache.camel=DEBUG
#log4j.logger.org.apache.camel.component=TRACE
#log4j.logger.org.apache.camel.component.seda=TRACE
#log4j.logger.org.apache.camel.impl.DefaultUnitOfWork=TRACE
#log4j.logger.org.apache.camel.component.mock=DEBUG
#log4j.logger.org.apache.camel.component.file=TRACE
#log4j.logger.org.apache.camel.processor.Pipeline=TRACE
#log4j.logger.org.apache.camel.processor.MulticastProcessor=TRACE
#log4j.logger.org.apache.camel.processor.RecipientList=TRACE
#log4j.logger.org.apache.camel.processor.RecipientListProcessor=TRACE
#log4j.logger.org.apache.camel.processor.RoutingSlip=TRACE
#log4j.logger.org.apache.camel.processor.TryProcessor=TRACE
#log4j.logger.org.apache.camel.processor.loadbalancer=TRACE
#log4j.logger.org.apache.camel.processor.Delayer=TRACE
#log4j.logger.org.apache.camel.processor.Throttler=TRACE
log4j.logger.org.apache.camel.impl.converter=WARN
log4j.logger.org.apache.camel.management=WARN
log4j.logger.org.apache.camel.impl.DefaultPackageScanClassResolver=WARN
#log4j.logger.org.apache.camel.impl=TRACE
#log4j.logger.org.apache.camel.util.FileUtil=TRACE
#log4j.logger.org.apache.camel.impl.converter.DefaultTypeConverter=TRACE
# CONSOLE appender not used by default
log4j.appender.out=org.apache.log4j.ConsoleAppender
log4j.appender.out.layout=org.apache.log4j.PatternLayout
log4j.appender.out.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
# File appender
log4j.appender.file=org.apache.log4j.FileAppender
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
log4j.appender.file.file=target/camel-core-test.log
log4j.appender.file.append=true
log4j.throwableRenderer=org.apache.log4j.EnhancedThrowableRenderer
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<configuration scan="true" debug="false">
<!-- TODO in production mode disable the scan -->
<appender name="FILE" class="ch.qos.logback.core.FileAppender">
<File>target/application.log</File>
<Append>true</Append>
<encoder>
<Pattern>%-4relative [%thread] %-5level %logger{40} - %msg%n</Pattern>
</encoder>
</appender>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<Pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</Pattern>
</encoder>
</appender>
<!--
<logger name="org.fusesource.scalate.jersey" level="DEBUG" />
<logger name="org.fusesource.scalate" level="DEBUG" />
-->
<logger name="org.fusesource.scalate.servlet.ServletTemplateEngine.SourceMap" level="INFO" />
<root level="debug">
<appender-ref ref="FILE" />
<appender-ref ref="STDOUT" />
</root>
</configuration>
\ No newline at end of file
## ------------------------------------------------------------------------
## Licensed to the Apache Software Foundation (ASF) under one or more
## contributor license agreements. See the NOTICE file distributed with
## this work for additional information regarding copyright ownership.
## The ASF licenses this file to You under the Apache License, Version 2.0
## (the "License"); you may not use this file except in compliance with
## the License. You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
## ------------------------------------------------------------------------
Camel
EndpointLink
Endpoints
<%@ import val it: WadlResource %>
#{ attributes("title") = "Camel REST API"}#
<h1>Camel REST API</h1>
<p>
Camel supports a RESTful API for browsing and interacting with endpoints and routes to create and modify your
<a href="http://camel.apache.org/enterprise-integration-patterns.html">Enterprise Integration Patterns</a>.
</p>
<p>
Most resources are available at the very least as HTML, XML and JSON formats with some other formats being available.
Your web browser will serve up the HTML representation by default unless you specify the HTTP <code>Accept</code>
header
with <code>text/xml</code> or <code>application/xml</code> for XML and <code>application/json</code> for JSON.
Though you can typically add <b>.xml</b> or <b>.json</b> to a URI to get the XML or JSON respresentation in your browser
without having to mess around with <code>Accept</code> headers.
</p>
<api:resource resource="it.getRootResource"/>
<%@ import val it: WadlResourceResource %>
#{ attributes("title") = "Camel Resource ${it.getFullPath}"}#
<api:resource resource="it"/>
<%@ import val it: CamelContextResource %>
#{ attributes("title") = "Camel REST API"}#
<h1>Camel REST API</h1>
<p>
Camel supports a RESTful API for browsing and interacting with endpoints and routes to create and modify your
<a href="http://camel.apache.org/enterprise-integration-patterns.html">Enterprise Integration Patterns</a>.
</p>
<p>
Most resources are available at the very least as HTML, XML and JSON formats with some other formats being available.
Your web browser will serve up the HTML representation by default unless you specify the HTTP <code>Accept</code>
header
with <code>text/xml</code> or <code>application/xml</code> for XML and <code>application/json</code> for JSON.
</p>
<table>
<tr>
<th>URI</th>
<th>Description</th>
<th>Related Resources</th>
</tr>
<tr>
<td><a href="${uri("/")}">/</a>
</td>
<td>
Summary links to other resources
</td>
<td>
<ul>
<li>
<a href="${uri("/index.xml")}">/index.xml</a> for XML
</li>
<li>
<a href="${uri("/index.json")}">/index.json</a> for JSON
</li>
</ul>
</td>
</tr>
<tr>
<td><a href="${uri("/endpoints")}">/endpoints</a></td>
<td>
The currently active endpoints
</td>
<td>
<ul>
<li>
<a href="${uri("/endpoints.xml")}">/endpoints.xml</a> for XML
</li>
<li>
<a href="${uri("/endpoints.json")}">/endpoints.json</a> for JSON
</li>
</ul>
</td>
</tr>
<tr>
<td><a href="${uri("/routes")}">/routes</a></td>
<td>
The currently active routes
</td>
<td>
<ul>
<li>
<a href="${uri("/routes.xml")}">/routes.xml</a> for XML
</li>
<li>
<a href="${uri("/routes.json")}">/routes.json</a> for JSON
</li>
<li>
<a href="${uri("/routes.dot")}">/routes.dot</a> for a <a href="http://graphviz.org/">Graphviz</a>
DOT file for <a href="http://camel.apache.org/visualisation.html">visualising your routes</a>.
</li>
</ul>
</td>
</tr>
<tr>
<td><a href="${uri("/application.wadl")}">/application.wadl</a></td>
<td>
The <a href="https://wadl.dev.java.net/">WADL</a> description of all the available resources
</td>
<td>
</td>
</tr>
</table>
<%@ import val it: CamelContextResource %>
#{ attributes("title") = "Apache Camel " + it.getVersion }#
<h1>Welcome to Apache Camel ${it.getVersion}</h1>
<p>Welcome to the Web Console for instance <b>${it.getName}</b>.</p>
<p>We hope you find the following links helpful</p>
#{ include("/WEB-INF/snippets/camelContextLinks.ssp") }#
<p>Lets take it for a ride!</p>
\ No newline at end of file
<%@ import val it: CamelContextResource %>
#{ attributes("title") = "System Properties"}#
<h1>System Properties</h1>
<table>
<tr>
<th>Name</th>
<th>Value</th>
</tr>
#for(entry <- it.getSystemProperties)
<tr>
<td>${entry.getKey}</td>
<td>${entry.getValue}</td>
</tr>
#end
</table>
<%@ import val it: ComponentResource %>
#{ attributes("title") = it.getId}#
<h1>${it.getId}</h1>
<p>
Welcome to the ${it.getId} component.
</p>
<p>
For more information see the <a href="http://camel.apache.org/${it.getId}.html">documentation</a>
</p>
<%@ import val it: ComponentsResource %>
#{ attributes("title") = "Components"}#
<h1>Components</h1>
<table>
<tr>
<th>Component</th>
<th>Documentation</th>
</tr>
#for(id <- it.getComponentIds)
<tr>
<td><a href="components/${id}">${id}</a></td>
<td><a href="http://camel.apache.org/${id}.html">documentation</a></td>
</tr>
#end
</table>
<%@ import val it: ConvertersFromResource %>
#{ attributes("title") = "Type Converters from: " + it.getType.getCanonicalName}#
<h1>Type Converters from: ${it.getType.getCanonicalName}</h1>
<table>
<tr>
<th>To Type</th>
<th>Converter</th>
</tr>
#for(entry <- it.getConverters)
<tr>
<td>${entry.getKey}</td>
<td>${entry.getValue}</td>
</tr>
#end
</table>
<%@ import val it: ConvertersResource %>
#{ attributes("title") = "Type Converters"}#
<h1>Type Converters</h1>
<table>
<tr>
<th>From Type</th>
</tr>
#for(entry <- it.getFromClassTypes)
<tr>
<td><a href="converters/${entry.getValue.getName}">${entry.getKey}</a></td>
</tr>
#end
</table>