Class SubjectRetrievalInterceptor
java.lang.Object
org.apache.cxf.phase.AbstractPhaseInterceptor<org.apache.cxf.message.Message>
org.codice.ddf.cxf.client.interceptor.SubjectRetrievalInterceptor
- All Implemented Interfaces:
javax.xml.ws.handler.Handler<org.apache.cxf.jaxws.context.WrappedMessageContext>,org.apache.cxf.interceptor.Interceptor<org.apache.cxf.message.Message>,org.apache.cxf.phase.PhaseInterceptor<org.apache.cxf.message.Message>
public class SubjectRetrievalInterceptor
extends org.apache.cxf.phase.AbstractPhaseInterceptor<org.apache.cxf.message.Message>
implements javax.xml.ws.handler.Handler<org.apache.cxf.jaxws.context.WrappedMessageContext>
SubjectRetrievalInterceptor provides a implementation of
AbstractPhaseInterceptor that
stores the receivers subject in the header of the response with a key of ddf.security.Subject.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classclass -
Constructor Summary
ConstructorsConstructorDescriptionSubjectRetrievalInterceptor(ddf.security.service.SecurityManager securityManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose(javax.xml.ws.handler.MessageContext context) booleanhandleFault(org.apache.cxf.jaxws.context.WrappedMessageContext context) booleanhandleMessage(org.apache.cxf.jaxws.context.WrappedMessageContext context) voidhandleMessage(org.apache.cxf.message.Message message) Methods inherited from class org.apache.cxf.phase.AbstractPhaseInterceptor
addAfter, addAfter, addBefore, addBefore, getAdditionalInterceptors, getAfter, getBefore, getId, getPhase, handleFault, isGET, isRequestor, setAfter, setBefore
-
Constructor Details
-
SubjectRetrievalInterceptor
public SubjectRetrievalInterceptor(ddf.security.service.SecurityManager securityManager)
-
-
Method Details
-
handleMessage
public void handleMessage(org.apache.cxf.message.Message message) throws org.apache.cxf.interceptor.Fault - Specified by:
handleMessagein interfaceorg.apache.cxf.interceptor.Interceptor<org.apache.cxf.message.Message>- Throws:
org.apache.cxf.interceptor.Fault
-
handleMessage
public boolean handleMessage(org.apache.cxf.jaxws.context.WrappedMessageContext context) - Specified by:
handleMessagein interfacejavax.xml.ws.handler.Handler<org.apache.cxf.jaxws.context.WrappedMessageContext>
-
handleFault
public boolean handleFault(org.apache.cxf.jaxws.context.WrappedMessageContext context) - Specified by:
handleFaultin interfacejavax.xml.ws.handler.Handler<org.apache.cxf.jaxws.context.WrappedMessageContext>
-
close
public void close(javax.xml.ws.handler.MessageContext context) - Specified by:
closein interfacejavax.xml.ws.handler.Handler<org.apache.cxf.jaxws.context.WrappedMessageContext>
-