Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Codecrew
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
30
Merge Requests
2
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 0d26e972
authored
Mar 28, 2010
by
Tuomas Riihimäki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added security constraint to *.xhtml
1 parent
34f9a2b9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
31 deletions
code/LanBortalBeans/ejbModule/fi/insomnia/bortal/beans/SessionHandlerBean.java
code/LanBortalWeb/WebContent/WEB-INF/web.xml
code/LanBortalBeans/ejbModule/fi/insomnia/bortal/beans/SessionHandlerBean.java
View file @
0d26e97
...
...
@@ -4,11 +4,8 @@ import java.util.ArrayList;
import
java.util.HashSet
;
import
java.util.Set
;
import
javax.annotation.Resource
;
import
javax.ejb.EJB
;
import
javax.ejb.SessionContext
;
import
javax.ejb.Stateless
;
import
javax.servlet.http.HttpSession
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
...
...
code/LanBortalWeb/WebContent/WEB-INF/web.xml
View file @
0d26e97
<?xml version="1.0" encoding="UTF-8"?>
<web-app
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xmlns=
"http://java.sun.com/xml/ns/javaee"
xmlns:web=
"http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation=
"http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
id=
"WebApp_ID"
version=
"2.5"
>
<display-name>
LanBortalWeb
</display-name>
<welcome-file-list>
<welcome-file>
index.html
</welcome-file>
<welcome-file>
index.htm
</welcome-file>
<welcome-file>
index.jsp
</welcome-file>
<welcome-file>
default.html
</welcome-file>
<welcome-file>
default.htm
</welcome-file>
<welcome-file>
default.jsp
</welcome-file>
</welcome-file-list>
<servlet>
<servlet-name>
Faces Servlet
</servlet-name>
<servlet-class>
javax.faces.webapp.FacesServlet
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>
Faces Servlet
</servlet-name>
<url-pattern>
*.jsf
</url-pattern>
</servlet-mapping>
<web-app
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xmlns=
"http://java.sun.com/xml/ns/javaee"
xmlns:web=
"http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation=
"http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
id=
"WebApp_ID"
version=
"2.5"
>
<display-name>
LanBortalWeb
</display-name>
<welcome-file-list>
<welcome-file>
index.html
</welcome-file>
<welcome-file>
index.htm
</welcome-file>
<welcome-file>
index.jsp
</welcome-file>
<welcome-file>
default.html
</welcome-file>
<welcome-file>
default.htm
</welcome-file>
<welcome-file>
default.jsp
</welcome-file>
</welcome-file-list>
<servlet>
<servlet-name>
Faces Servlet
</servlet-name>
<servlet-class>
javax.faces.webapp.FacesServlet
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>
Faces Servlet
</servlet-name>
<url-pattern>
*.jsf
</url-pattern>
</servlet-mapping>
<filter>
<display-name>
HostnameFilter
</display-name>
<filter-name>
HostnameFilter
</filter-name>
<filter-class>
fi.insomnia.bortal.HostnameFilter
</filter-class>
</filter>
<filter-mapping>
<filter-name>
HostnameFilter
</filter-name>
<servlet-name>
Faces Servlet
</servlet-name>
</filter-mapping>
<security-constraint>
<web-resource-collection>
<web-resource-name>
forbidden
</web-resource-name>
<url-pattern>
*.xhtml
</url-pattern>
</web-resource-collection>
<auth-constraint>
<description>
asdasd
</description>
</auth-constraint>
</security-constraint>
<filter>
<display-name>
HostnameFilter
</display-name>
<filter-name>
HostnameFilter
</filter-name>
<filter-class>
fi.insomnia.bortal.HostnameFilter
</filter-class>
</filter>
<filter-mapping>
<filter-name>
HostnameFilter
</filter-name>
<servlet-name>
Faces Servlet
</servlet-name>
</filter-mapping>
</web-app>
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment