com.ocpsoft.rewrite:rewrite-logging-jboss


Лицензия

Лицензия

Категории

Категории

JBoss Контейнер Application Servers Logging Библиотеки уровня приложения
Группа

Группа

com.ocpsoft.rewrite
Идентификатор

Идентификатор

rewrite-logging-jboss
Последняя версия

Последняя версия

1.0.0.Alpha3
Дата

Дата

Тип

Тип

jar
Описание

Описание

Скачать rewrite-logging-jboss

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.ocpsoft.rewrite/rewrite-logging-jboss/ -->
<dependency>
    <groupId>com.ocpsoft.rewrite</groupId>
    <artifactId>rewrite-logging-jboss</artifactId>
    <version>1.0.0.Alpha3</version>
</dependency>
// https://jarcasting.com/artifacts/com.ocpsoft.rewrite/rewrite-logging-jboss/
implementation 'com.ocpsoft.rewrite:rewrite-logging-jboss:1.0.0.Alpha3'
// https://jarcasting.com/artifacts/com.ocpsoft.rewrite/rewrite-logging-jboss/
implementation ("com.ocpsoft.rewrite:rewrite-logging-jboss:1.0.0.Alpha3")
'com.ocpsoft.rewrite:rewrite-logging-jboss:jar:1.0.0.Alpha3'
<dependency org="com.ocpsoft.rewrite" name="rewrite-logging-jboss" rev="1.0.0.Alpha3">
  <artifact name="rewrite-logging-jboss" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.ocpsoft.rewrite', module='rewrite-logging-jboss', version='1.0.0.Alpha3')
)
libraryDependencies += "com.ocpsoft.rewrite" % "rewrite-logging-jboss" % "1.0.0.Alpha3"
[com.ocpsoft.rewrite/rewrite-logging-jboss "1.0.0.Alpha3"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
com.ocpsoft.rewrite : rewrite-api jar 1.0.0.Alpha3

provided (1)

Идентификатор библиотеки Тип Версия
org.jboss.logging : jboss-logging jar 3.0.0.GA

test (1)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.8.1

Модули Проекта

Данный проект не имеет модулей.

Rewrite Build Status

Join the chat at https://gitter.im/ocpsoft/rewrite

A highly configurable URL-rewriting tool for Java EE 6+ and Servlet 2.5+ applications, supporting integration with:

  • CDI
  • Spring DI
  • JodaTime configuration
  • Tuckey.org URLRewriteFilter configuration
  • JavaServer Faces (JSF)
  • JavaServer Pages (JSP)
  • Struts
  • Wicket
  • Grails
  • Spring Roo
  • Spring Web Flow
  • Any servlet & web framework!
  • All major servlet containers and application servers

Get Help

Get Started

  1. It is recommended but not required to remove other URL-rewriting tools from your application before using Rewrite. If you choose to leave them in place, weird things may happen, be warned.

  2. Include OCPSoft Rewrite in your application's POM file:

     <dependency>
        <groupId>org.ocpsoft.rewrite</groupId>
        <artifactId>rewrite-servlet</artifactId>
        <version>${rewrite.version}</version>
     </dependency>
    
  3. Add a configuration provider implementing the 'org.ocpsoft.rewrite.config.ConfigurationProvider' interface, or extending from the abstract HttpConfigurationProvider class for convenience:

     package com.example;
     
     @RewriteConfiguration
     public class ExampleConfigurationProvider extends HttpConfigurationProvider
     {
     
        @Override
        public int priority()
        {
          return 10;
        }
    
        @Override
        public Configuration getConfiguration(final ServletContext context)
        {
          return ConfigurationBuilder.begin()
            .addRule()
              .when(Direction.isInbound().and(Path.matches("/some/page/{p}/")))
              .perform(Forward.to("/new-page/{p}.html"));
         }
     }
    
  4. You must either annotate your ConfigurationProvider class with the @RewriteConfiguration annotation, OR create a file named: '/META-INF/services/org.ocpsoft.rewrite.config.ConfigurationProvider' which contains the fully qualified name of your ConfigurationProvider implementation:

     /META-INF/services/org.ocpsoft.rewrite.config.ConfigurationProvider
     ---
     com.example.ExampleConfigurationProvider
    

Note that your annotated class won't be found, by default, if your ConfigurationProvider is in a jar inside a war. You can either set the servlet parameter org.ocpsoft.rewrite.annotation.SCAN_LIB_DIRECTORY to true, or use the ServiceLoader approach instead.

  1. Add rules to your configuration. Condition objects such as 'Direction.isInbound()' and 'Path.matches(...)' can be found in the 'org.ocpsoft.rewrite.config.' and 'org.ocpsoft.rewrite.servlet.config.' packages.

  2. Consider using Rewrite extensions for extra power:

  3. Run your application!

FEEDBACK

This project is looking for your feedback! What would make your task easier? How can we simplify this experience?

TODO's

  • Continue simplification of Configuration objects and convenience APIs.

  • Implement additional xml & file-based configuration support.

  • Implement http://localhost:8080/rewrite-status monitoring tool

com.ocpsoft.rewrite

OCPsoft

Версии библиотеки

Версия
1.0.0.Alpha3
1.0.0.Alpha2
1.0.0.Alpha1