Example usage for org.apache.wicket.protocol.http WebSession setMetaData

List of usage examples for org.apache.wicket.protocol.http WebSession setMetaData

Introduction

In this page you can find the example usage for org.apache.wicket.protocol.http WebSession setMetaData.

Prototype

public final synchronized <M extends Serializable> Session setMetaData(final MetaDataKey<M> key,
        final M object) 

Source Link

Document

Sets the metadata for this session using the given key.

Usage

From source file:org.xaloon.wicket.component.security.panel.SignInPanel.java

License:Apache License

private String getReferer(WebSession session) {
    String refereUrl = session.getMetaData(METADATAKEY_REFERER);
    // Clean up referer
    session.setMetaData(METADATAKEY_REFERER, null);
    return refereUrl;
}