-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bafb6fb
commit 85cc17a
Showing
6 changed files
with
100 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
base/src/main/java/com/fasterxml/jackson/jaxrs/cfg/ObjectReaderModifier.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.fasterxml.jackson.jaxrs.cfg; | ||
|
||
import java.io.IOException; | ||
|
||
import com.fasterxml.jackson.core.*; | ||
|
||
import com.fasterxml.jackson.databind.*; | ||
|
||
/** | ||
* @since 2.3 | ||
*/ | ||
public abstract class ObjectReaderModifier | ||
{ | ||
/** | ||
* Method called to let modifier make any changes it wants to to objects | ||
* used for reading request objects for specified endpoint. | ||
* | ||
* @param endpoint End point for which reader is used | ||
* @param resultType Type that input is to be bound to | ||
* @param r ObjectReader as constructed for endpoint, type to handle | ||
* @param p Parser to use for reading content | ||
*/ | ||
public abstract ObjectReader modify(EndpointConfigBase<?> endpoint, | ||
JavaType resultType, ObjectReader r, JsonParser p) | ||
throws IOException; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
base/src/main/java/com/fasterxml/jackson/jaxrs/cfg/ObjectWriterModifier.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.fasterxml.jackson.jaxrs.cfg; | ||
|
||
import java.io.IOException; | ||
|
||
import com.fasterxml.jackson.core.*; | ||
|
||
import com.fasterxml.jackson.databind.*; | ||
|
||
/** | ||
* @since 2.3 | ||
*/ | ||
public abstract class ObjectWriterModifier | ||
{ | ||
/** | ||
* Method called to let modifier make any changes it wants to to objects | ||
* used for writing response for specified endpoint. | ||
*/ | ||
public abstract ObjectWriter modify(EndpointConfigBase<?> endpoint, | ||
Object valueToWrite, ObjectWriter r, JsonGenerator g) | ||
throws IOException; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters