Commit Graph

113 Commits

Author SHA1 Message Date
Yuliang Fan a368cb6328 fixed flakiness in JacksonXmlHandlerTest.java (#500)
* fixed flakiness in JacksonXmlHandlerTest.java

* update whitespace/compilation error/indentation

* fixing typos

* move toString() after flush()
2021-11-02 08:08:58 +01:00
Lukasz Lenart 0cf39a97f0 WW-4789 WW-3788 Cleans up code & JavaDocs formatting 2020-04-28 08:19:20 +02:00
Lukasz Lenart 2f27e45ef4 WW-4789 WW-3788 Marks LOCALE as deprecated on behalf using helper methods 2020-04-21 20:27:11 +02:00
Lukasz Lenart 8e6815e115 WW-4789 WW-3788 Stops using get() 2020-04-08 08:22:00 +02:00
Lukasz Lenart dfda16d743 WW-4789 WW-3788 Introduces helper methods to allow build fluent API 2020-04-05 17:48:59 +02:00
Lukasz Lenart 1bfa1ce6d1 WW-4789 WW-3788 Adds instance bind() to simplify bind operation 2020-04-05 07:46:56 +02:00
Lukasz Lenart 1a8c751b9a WW-4789 WW-3788 Uses bind() instead of bound() 2020-04-05 07:46:56 +02:00
Lukasz Lenart f4aa4ee09a WW-4789 WW-3788 ActionContext refactoring 2020-04-05 07:46:56 +02:00
Lukasz Lenart 85812fb9bb [WW-4989] Uses JacksonXML handler a default handler for XML in the REST plugin (#288)
* WW-4989 Uses Jackson XML handler as a default for XML serialisation

* WW-4989 Renames class to match the same pattern for XML handler
2018-12-14 17:28:47 +03:30
Lukasz Lenart 9d8edf5265 WW-4889 Uses .contains to avoid issues with serialisation order 2018-12-09 13:32:27 +01:00
Lukasz Lenart 314dcdb780 WW-4889 Uses proper order of params in assertEquals 2018-12-07 09:37:37 +01:00
Lukasz Lenart 629ce0d9aa WW-4889 Adds XML handler based on Apache Juneau 2018-12-06 10:05:45 +01:00
Lukasz Lenart 2a60c1eee6 [WW-4981] Adds support for JDK11 (#270)
* Upgrades test dependencies

* Drops unused lib

* Uses AssertJ instead of FestAssert

* Upgrades Surefire Maven Plugin to 2.22.1

* Downgrades to AssertJ 2.x to support JDK7

* decouple tests from java version

Refactor a java 9 conditional test to work always with any java version

See also WW-4845

* fix NullPointerException in NotURLClassLoader tests

Also includes a few improvements

See also WW-4845

* do not specify threadCount & forkMode which breaks tests in java 9

See also WW-4845

* pass all current tests with java 11

See also WW-4981

* fix an odd path problem in java 9

See also WW-4845

* gitignore test-output

See also WW-4981

* ask travis an oracle jdk 11 build

See also WW-4981

* ask travis to report coverage only in latest working jdk, jdk8

See also WW-4845
2018-11-19 10:35:01 +03:30
Sebastian Peters 26dc995866 WW-4982 Remove the deprecated JsonLibHandler and json-lib dependency 2018-11-17 22:57:48 +01:00
Yasser Zamani 6b0f90575e delete not-deleted profiling interceptors from plugins
See also WW-4979
2018-11-14 17:14:44 +03:30
Lukasz Lenart eec0d8e877 Validates action, namespace and method in the same way 2018-08-24 10:24:57 +02:00
Stefaan Dutry 38c304696b further clean up after rmoving profiling layer
* removed empty catch blocks
* removed no longer used Strings
2018-05-21 22:48:45 +02:00
Stefaan Dutry 6c0d719a8a fix RestActionInvocation 2018-05-21 21:38:12 +02:00
Stefaan Dutry 14c0f47d84 remove UtilTimerStack
Part of removing the profiling layer

Issue:
* WW-4779
2018-05-21 21:30:56 +02:00
Lukasz Lenart f1610537c8 Merge pull request #177 from aleksandr-m/feature/WW-4875
WW-4875 Add ability to use Java based configuration
2018-03-16 14:23:06 +01:00
Lukasz Lenart 9260720568 Adds test to cover basic functionality 2018-02-20 06:49:50 +01:00
Lukasz Lenart 67ecf3a216 Defines a new handler using Jackson XML 2018-02-20 06:49:25 +01:00
Yasser Zamani 97012c78a9 Merge pull request #189 from lukaszlenart/upgrade-spring
WW-4899: upgrade Spring
2018-01-30 10:47:04 +03:30
Yasser Zamani 4738d1d802 WW-4873 Makes ActionInvocation not serializable 2017-12-13 19:34:54 +03:30
Lukasz Lenart bfa119c7db Uses proper date format 2017-12-04 08:29:54 +01:00
Aleksandr Mashchenko a049d1709b WW-4875 Add rest constant configuration 2017-11-25 02:06:44 +02:00
Lukasz Lenart 794cd5e141 WW-4892 Marks handler as deprecated 2017-11-17 09:34:22 +01:00
Lukasz Lenart 941374ecdb WW-4892 Uses Jackson handler as a default one to handle JSON 2017-11-17 09:32:43 +01:00
Lukasz Lenart 8b95838c58 Adds proper XML header 2017-10-22 12:29:13 +02:00
Lukasz Lenart e7c65fb0b4 Adds missing header with license 2017-10-21 17:47:51 +02:00
Lukasz Lenart 73359c480b Adds missing header with license 2017-10-21 11:24:48 +02:00
Lukasz Lenart cb389d292d Fixes Maven site generation 2017-10-20 09:05:29 +02:00
Lukasz Lenart 1949471886 Allows define allowed classes per action 2017-08-21 13:17:31 +02:00
Lukasz Lenart ee5575d0c6 Updates tests 2017-08-02 15:00:01 +02:00
Lukasz Lenart a64da53d57 Updates flow to handle new API 2017-08-02 14:59:54 +02:00
Lukasz Lenart 3bd072ca05 Adds an abstract layer to allow easily handle API change 2017-08-02 14:58:15 +02:00
Lukasz Lenart 2f690cfe62 Adds new methods and marks current as deprecated 2017-08-02 14:56:09 +02:00
Lukasz Lenart 6c19875c78 Puts back the default bean name to allow alias beans 2017-03-09 10:19:12 +01:00
Lukasz Lenart a7f4e255b0 Uses AbstractInterceptor instead of leaving init() and destroy() empty 2017-01-09 10:18:59 +01:00
Lukasz Lenart 5acc71f7c3 WW-4669 Returns default action/method instead of throwing exception 2016-07-29 10:09:24 +02:00
Lukasz Lenart 6d7ac40dce Cleans up method name 2016-05-04 09:16:44 +02:00
Lukasz Lenart 3c68a3def6 WW-4533 Reverts the old behaviour of how empty action should be handled 2016-03-10 08:46:59 +01:00
Lukasz Lenart cae57093b5 Merge branch 'WW-4588' 2016-01-20 16:10:52 +01:00
petersr 7899f10d80 WW-4588: Improve the Struts2 Rest plugin to honor Accept header 2016-01-20 06:34:25 -08:00
petersr 1fb695a82b WW-4589 do not overwrite explicit method name 2016-01-19 14:02:57 -08:00
Aleksandr Mashchenko e0003f0471 WW-4585 Struts2 Rest plugin doesn't handle JSESSIONID with DMI 2016-01-14 20:01:57 +02:00
donghui 32ec7a669c make test passed for people not using GMT. 2016-01-04 11:23:51 +08:00
Johannes Geppert ecde389ee6 WW-4540 Enable Strict DMI be default
- Extend global allowed methods in rest plugin with rest plugin specific default methods
2015-10-05 20:15:51 +02:00
Johannes Geppert f819486c34 WW-4505 Add plugin to support bean validation
- Add pre configured interceptor stack to use bean validation with rest plugin
2015-09-24 19:59:35 +02:00
Johannes Geppert 4cd9a74cb8 WW-4545 - Setting status code in HttpHeaders will be ignored 2015-09-10 19:11:12 +02:00