This repository was archived by the owner on Dec 12, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 20 files changed +170
-11
lines changed
java/com/stormpath/tutorial
java/com/stormpath/tutorial
java/com/stormpath/tutorial Expand file tree Collapse file tree 20 files changed +170
-11
lines changed Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" ?>
22<!--
3- ~ Copyright 2015 Stormpath, Inc.
3+ ~ Copyright 2016 Stormpath, Inc.
44 ~
55 ~ Licensed under the Apache License, Version 2.0 (the "License");
66 ~ you may not use this file except in compliance with the License.
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright 2016 Stormpath, Inc.
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
116package com .stormpath .tutorial ;
217
318import com .stormpath .sdk .application .Application ;
722
823import javax .servlet .http .HttpServletRequest ;
924
25+ /**
26+ * @since 1.3.0
27+ */
1028@ RestController
1129public class HelloController {
1230
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright 2016 Stormpath, Inc.
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
116package com .stormpath .tutorial ;
217
318import com .stormpath .sdk .application .Application ;
1227import org .springframework .context .support .PropertySourcesPlaceholderConfigurer ;
1328import org .springframework .web .servlet .config .annotation .EnableWebMvc ;
1429
30+ /**
31+ * @since 1.3.0
32+ */
1533@ Configuration
1634@ EnableWebMvc
1735@ EnableStormpath //Stormpath base beans
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright 2016 Stormpath, Inc.
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
116package com .stormpath .tutorial ;
217
318import org .springframework .web .WebApplicationInitializer ;
1328import javax .servlet .ServletRegistration ;
1429import java .util .EnumSet ;
1530
31+ /**
32+ * @since 1.3.0
33+ */
1634public class WebAppInitializer implements WebApplicationInitializer {
1735
1836 @ Override
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" ?>
22<!--
3- ~ Copyright 2015 Stormpath, Inc.
3+ ~ Copyright 2016 Stormpath, Inc.
44 ~
55 ~ Licensed under the Apache License, Version 2.0 (the "License");
66 ~ you may not use this file except in compliance with the License.
Original file line number Diff line number Diff line change 1+ <!--
2+ ~ Copyright 2016 Stormpath, Inc.
3+ ~
4+ ~ Licensed under the Apache License, Version 2.0 (the "License");
5+ ~ you may not use this file except in compliance with the License.
6+ ~ You may obtain a copy of the License at
7+ ~
8+ ~ http://www.apache.org/licenses/LICENSE-2.0
9+ ~
10+ ~ Unless required by applicable law or agreed to in writing, software
11+ ~ distributed under the License is distributed on an "AS IS" BASIS,
12+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ ~ See the License for the specific language governing permissions and
14+ ~ limitations under the License.
15+ -->
116<web-app xmlns =" http://xmlns.jcp.org/xml/ns/javaee"
217 xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
318 xsi : schemaLocation =" http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" ?>
22<!--
3- ~ Copyright 2015 Stormpath, Inc.
3+ ~ Copyright 2016 Stormpath, Inc.
44 ~
55 ~ Licensed under the Apache License, Version 2.0 (the "License");
66 ~ you may not use this file except in compliance with the License.
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright 2016 Stormpath, Inc.
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
116package com .stormpath .tutorial ;
217
318import com .stormpath .sdk .application .Application ;
1227import org .springframework .context .support .PropertySourcesPlaceholderConfigurer ;
1328import org .springframework .web .servlet .config .annotation .EnableWebMvc ;
1429
30+ /**
31+ * @since 1.3.0
32+ */
1533@ Configuration
1634@ EnableWebMvc
1735@ EnableStormpath //Stormpath base beans
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright 2016 Stormpath, Inc.
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * http://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
116package com .stormpath .tutorial ;
217
318import org .springframework .web .WebApplicationInitializer ;
1328import javax .servlet .ServletRegistration ;
1429import java .util .EnumSet ;
1530
31+ /**
32+ * @since 1.3.0
33+ */
1634public class WebAppInitializer implements WebApplicationInitializer {
1735
1836 @ Override
Original file line number Diff line number Diff line change 11#
2- # Copyright 2015 Stormpath, Inc.
2+ # Copyright 2016 Stormpath, Inc.
33#
44# Licensed under the Apache License, Version 2.0 (the "License");
55# you may not use this file except in compliance with the License.
You can’t perform that action at this time.
0 commit comments