-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #63 from difi/release-4.1.0
Release 4.1.0
- Loading branch information
Showing
9 changed files
with
79 additions
and
30 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
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
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
20 changes: 20 additions & 0 deletions
20
src/main/java/no/difi/oxalis/as4/inbound/SetPolicyInInterceptor.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,20 @@ | ||
package no.difi.oxalis.as4.inbound; | ||
|
||
import com.google.inject.Inject; | ||
import com.google.inject.Singleton; | ||
import lombok.extern.slf4j.Slf4j; | ||
import no.difi.oxalis.as4.util.PolicyService; | ||
import org.apache.cxf.phase.Phase; | ||
import org.apache.cxf.ws.policy.PolicyInInterceptor; | ||
import org.apache.cxf.ws.policy.PolicyOutInterceptor; | ||
|
||
@Slf4j | ||
@Singleton | ||
public class SetPolicyInInterceptor extends AbstractSetPolicyInterceptor { | ||
|
||
@Inject | ||
public SetPolicyInInterceptor(PolicyService policyService) { | ||
super(Phase.RECEIVE, policyService); | ||
addBefore(PolicyInInterceptor.class.getName()); | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
src/main/java/no/difi/oxalis/as4/inbound/SetPolicyOutInterceptor.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,39 @@ | ||
package no.difi.oxalis.as4.inbound; | ||
|
||
import com.google.inject.Inject; | ||
import com.google.inject.Singleton; | ||
import lombok.extern.slf4j.Slf4j; | ||
import no.difi.oxalis.as4.util.Constants; | ||
import no.difi.oxalis.as4.util.Marshalling; | ||
import no.difi.oxalis.as4.util.PolicyService; | ||
import org.apache.cxf.binding.soap.SoapMessage; | ||
import org.apache.cxf.binding.soap.interceptor.AbstractSoapInterceptor; | ||
import org.apache.cxf.headers.Header; | ||
import org.apache.cxf.interceptor.Fault; | ||
import org.apache.cxf.message.Message; | ||
import org.apache.cxf.phase.Phase; | ||
import org.apache.cxf.ws.policy.PolicyConstants; | ||
import org.apache.cxf.ws.policy.PolicyInInterceptor; | ||
import org.apache.cxf.ws.policy.PolicyOutInterceptor; | ||
import org.apache.neethi.Policy; | ||
import org.oasis_open.docs.ebxml_msg.ebms.v3_0.ns.core._200704.Messaging; | ||
import org.oasis_open.docs.ebxml_msg.ebms.v3_0.ns.core._200704.UserMessage; | ||
import org.w3c.dom.Node; | ||
|
||
import javax.xml.bind.JAXBContext; | ||
import javax.xml.bind.JAXBException; | ||
import javax.xml.bind.Unmarshaller; | ||
import java.util.Collection; | ||
import java.util.Optional; | ||
import java.util.stream.Stream; | ||
|
||
@Slf4j | ||
@Singleton | ||
public class SetPolicyOutInterceptor extends AbstractSetPolicyInterceptor { | ||
|
||
@Inject | ||
public SetPolicyOutInterceptor(PolicyService policyService) { | ||
super(Phase.SETUP, policyService); | ||
addBefore(PolicyOutInterceptor.class.getName()); | ||
} | ||
} |
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