Example usage for javax.xml.ws.handler.soap SOAPMessageContext remove

List of usage examples for javax.xml.ws.handler.soap SOAPMessageContext remove

Introduction

In this page you can find the example usage for javax.xml.ws.handler.soap SOAPMessageContext remove.

Prototype

V remove(Object key);

Source Link

Document

Removes the mapping for a key from this map if it is present (optional operation).

Usage

From source file:be.fedict.hsm.ws.impl.JAASSOAPHandler.java

private void logout(SOAPMessageContext context) throws LoginException {
    LoginContext loginContext = (LoginContext) context.remove(LOGIN_CONTEXT_ATTRIBUTE);
    if (null == loginContext) {
        return;//from ww  w.  ja v  a 2s  .  co m
    }
    loginContext.logout();
}