/xservices/trunk/web/WEB-INF/cxf-beans.xml |
---|
File deleted |
Property changes: |
Deleted: svn:mime-type |
-text/plain |
\ No newline at end of property |
/xservices/trunk/web/WEB-INF/applicationContext.xml |
---|
0,0 → 1,104 |
<beans xmlns="http://www.springframework.org/schema/beans" |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
xmlns:jaxws="http://cxf.apache.org/jaxws" |
xmlns:jaxrs="http://cxf.apache.org/jaxrs" |
xsi:schemaLocation=" |
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.2.xsd |
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd |
http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd"> |
<import resource="classpath:META-INF/cxf/cxf.xml"/> |
<import resource="classpath:META-INF/cxf/cxf-servlet.xml"/> |
<jaxws:endpoint id="archiveservice" |
implementor="net.brutex.xservices.ws.impl.ArchiveServiceImpl" address="/ArchiveService"> |
</jaxws:endpoint> |
<jaxws:endpoint id="dateservice" |
implementor="net.brutex.xservices.ws.impl.DateServiceImpl" address="/DateService"> |
</jaxws:endpoint> |
<jaxws:endpoint id="fileservice" |
implementor="net.brutex.xservices.ws.impl.FileServiceImpl" address="/FileService"> |
<jaxws:properties> |
<entry key="mtom-enabled" value="false" /> |
</jaxws:properties> |
</jaxws:endpoint> |
<!-- This is the MTOM enabled FileServices endpoint --> |
<jaxws:endpoint id="fileservice2" |
implementor="net.brutex.xservices.ws.impl.FileServiceImpl" address="/FileServiceMTOM"> |
<jaxws:properties> |
<entry key="mtom-enabled" value="true" /> |
<entry key="attachment-directory" value="c:\temp" /> |
<entry key="attachment-memory-threshold" value="2000" /> |
</jaxws:properties> |
</jaxws:endpoint> |
<jaxws:endpoint id="executeservice" |
implementor="net.brutex.xservices.ws.impl.ExecuteServiceImpl" address="/ExecuteService"> |
</jaxws:endpoint> |
<jaxws:endpoint id="jobservice" |
implementor="net.brutex.xservices.ws.impl.JobServiceImpl" address="/JobService"> |
</jaxws:endpoint> |
<jaxws:endpoint id="mailservice" |
implementor="net.brutex.xservices.ws.impl.MailServiceImpl" address="/MailService"> |
</jaxws:endpoint> |
<jaxws:endpoint id="miscservice" |
implementor="net.brutex.xservices.ws.impl.MiscServiceImpl" address="/MiscService"> |
</jaxws:endpoint> |
<jaxws:endpoint id="stringservice" |
implementor="net.brutex.xservices.ws.impl.StringServiceImpl" address="/StringService"> |
</jaxws:endpoint> |
<jaxws:endpoint id="storageservice" |
implementor="net.brutex.xservices.ws.impl.StorageServiceImpl" address="/StorageService"> |
</jaxws:endpoint> |
<jaxws:endpoint id="storageservice2" |
implementor="net.brutex.xservices.ws.impl.StorageServiceImpl" address="/StorageServiceMTOM"> |
<jaxws:properties> |
<entry key="mtom-enabled" value="true" /> |
<entry key="attachment-directory" value="c:\temp" /> |
<entry key="attachment-memory-threshold" value="2000" /> |
</jaxws:properties> |
</jaxws:endpoint> |
<jaxws:endpoint id="xmlservice" |
implementor="net.brutex.xservices.ws.impl.XmlServiceImpl" address="/XmlService"> |
</jaxws:endpoint> |
<jaxrs:server id="FileInfo" address="/fileinfo"> |
<jaxrs:serviceBeans> |
<ref bean="FileInfoBean" /> |
</jaxrs:serviceBeans> |
</jaxrs:server> |
<bean id="FileInfoBean" class="net.brutex.xservices.ws.rs.FileInfoImpl" /> |
<jaxrs:server id="CVSInfo" address="/cvsinfo"> |
<jaxrs:serviceBeans> |
<ref bean="CVSInfoBean" /> |
</jaxrs:serviceBeans> |
</jaxrs:server> |
<bean id="CVSInfoBean" class="net.brutex.xservices.ws.rs.CVSInfoImpl" /> |
<!-- |
<jaxrs:server id="DIMCMInfo" address="/dimcminfo"> |
<jaxrs:serviceBeans> |
<ref bean="DIMCMInfoBean" /> |
</jaxrs:serviceBeans> |
</jaxrs:server> |
<bean id="DIMCMInfoBean" class="net.brutex.xservices.ws.rs.DIMCMInfoImpl" /> |
--> |
</beans> |
Property changes: |
Added: svn:mime-type |
+text/plain |
\ No newline at end of property |
/xservices/trunk/web/WEB-INF/log4j2.xml |
---|
0,0 → 1,26 |
<?xml version="1.0" encoding="UTF-8"?> |
<Configuration status="WARN"> |
<Appenders> |
<RollingFile name="XSERVICES" fileName="c:/temp/xservices.log" |
filePattern="logs/$${date:yyyy-MM}/app-%d{MM-dd-yyyy}-%i.log.gz"> |
<PatternLayout> |
<Pattern>%d %p %c{1.} [%t] %m%n</Pattern> |
</PatternLayout> |
<Policies> |
<TimeBasedTriggeringPolicy /> |
<SizeBasedTriggeringPolicy size="10 MB"/> |
</Policies> |
</RollingFile> |
</Appenders> |
<Loggers> |
<Logger name="net.brutex.xservices" level="debug" additivity="false"> |
<AppenderRef ref="XSERVICES"/> |
</Logger> |
<Logger name="org.springframework.web" level="debug"> |
<AppenderRef ref="XSERVICES"/> |
</Logger> |
</Loggers> |
</Configuration> |
Property changes: |
Added: svn:mime-type |
+text/plain |
\ No newline at end of property |
/xservices/trunk/web/WEB-INF/shiro.ini |
---|
0,0 → 1,68 |
# ======================= |
# Shiro INI configuration |
# ======================= |
[main] |
# Objects and their properties are defined here, |
# Such as the securityManager, Realms and anything |
# else needed to build the SecurityManager |
realm = net.brutex.xservices.security.XServicesRealm |
securityManager.realms = $realm |
authcBasic = org.apache.shiro.web.filter.authc.BasicHttpAuthenticationFilter |
[users] |
# The 'users' section is for simple deployments |
# when you only need a small number of statically-defined |
# set of User accounts. |
# Format: user = password, role1, role2, ... |
admin = , Administrator |
brian = brian, Administrator |
[roles] |
# The 'roles' section is for simple deployments |
# when you only need a small number of statically-defined |
# roles. |
#Administrator = c:/t*/*, c:/windows/*, d:/**/VIDEO, C:/Users/brosenberger/**, d:/data/**, c:/** |
Administrator = FileInfoService||c:/temp/**, XmlService||test |
[urls] |
# The 'urls' section is used for url-based security |
# in web applications. We'll discuss this section in the |
# Web documentation |
/ArchiveService = anon |
/DateService = anon |
/ExecuteService = anon |
/FileService = anon |
/JobService = anon |
/MailService = anon |
/MiscService = anon |
/StorageService = anon |
/StringService = anon |
/XmlService = anon |
/fileinfo/** = authcBasic |
/dimcminfo/** = anon |
/** = authcBasic |
#/** = anon |
#Default filters |
#Filter Name Class |
#anon org.apache.shiro.web.filter.authc.AnonymousFilter |
#authc org.apache.shiro.web.filter.authc.FormAuthenticationFilter |
#authcBasic org.apache.shiro.web.filter.authc.BasicHttpAuthenticationFilter |
#logout org.apache.shiro.web.filter.authc.LogoutFilter |
#noSessionCreation org.apache.shiro.web.filter.session.NoSessionCreationFilter |
#perms org.apache.shiro.web.filter.authz.PermissionsAuthorizationFilter |
#port org.apache.shiro.web.filter.authz.PortFilter |
#rest org.apache.shiro.web.filter.authz.HttpMethodPermissionFilter |
#roles org.apache.shiro.web.filter.authz.RolesAuthorizationFilter |
#ssl org.apache.shiro.web.filter.authz.SslFilter |
#user org.apache.shiro.web.filter.authc.UserFilter |
Property changes: |
Added: svn:mime-type |
+text/plain |
\ No newline at end of property |
/xservices/trunk/web/WEB-INF/web.xml |
---|
3,11 → 3,17 |
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" |
version="2.5"> |
<context-param> |
<param-name>contextConfigLocation</param-name> |
<param-value>/WEB-INF/cxf-beans.xml</param-value> |
<param-name>log4jConfiguration</param-name> |
<param-value>/WEB-INF/log4j2.xml</param-value> |
</context-param> |
<context-param> |
<param-name>shiroConfigLocations</param-name> |
<param-value>/WEB-INF/shiro.ini</param-value> |
</context-param> |
<context-param> |
<param-name>quartz:config-file</param-name> |
<param-value>quartz.properties</param-value> |
</context-param> |
57,8 → 63,18 |
<servlet> |
<servlet-name>XServices</servlet-name> |
<servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class> |
<!-- <init-param> |
<param-name>config-location</param-name> |
<param-value>/WEB-INF/cxf-servlet.xml</param-value> |
</init-param> |
--> |
<init-param> |
<param-name>hide-service-list-page</param-name> |
<param-value>false</param-value> |
</init-param> |
<load-on-startup>1</load-on-startup> |
</servlet> |
<servlet> |
<servlet-name>QuartzInitializer</servlet-name> |
<servlet-class>org.quartz.ee.servlet.QuartzInitializerServlet</servlet-class> |
83,6 → 99,7 |
<servlet-name>XServices</servlet-name> |
<url-pattern>/*</url-pattern> |
</servlet-mapping> |
<session-config> |
<session-timeout>30</session-timeout> |
</session-config> |
91,22 → 108,13 |
</welcome-file-list> |
<!-- Shiro --> |
<listener> |
<listener-class>org.apache.shiro.web.env.EnvironmentLoaderListener</listener-class> |
</listener> |
<filter> |
<filter-name>ShiroFilter</filter-name> |
<filter-class>org.apache.shiro.web.servlet.ShiroFilter</filter-class> |
<init-param> |
<param-name>configPath</param-name> |
<param-value>/WEB-INF/shiro.ini</param-value> |
</init-param> |
</filter> |
<filter-mapping> |