All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openxma.rwt.bridge.RwtHttpTransport Maven / Gradle / Ivy

The newest version!
package org.openxma.rwt.bridge;

import java.util.HashMap;
import java.util.Map;

import org.apache.commons.httpclient.HttpState;

import at.spardat.xma.boot.comp.AppManager;
import at.spardat.xma.boot.component.IRtXMASessionClient;
import at.spardat.xma.boot.transport.HTTPTransport;

public class RwtHttpTransport extends HTTPTransport {
	Map httpStates = new HashMap();
	
	public RwtHttpTransport() {
		super();
		System.out.println("RwtHttpTransport created");		
	}
	
	@Override
	protected HttpState getHttpState(IRtXMASessionClient session) {
		if (session == null) {
			return super.getHttpState(session);
		}
		HttpState state = httpStates.get(session.getAppContainer().getAppManager());
		if (state == null) {
			state = new HttpState();
			httpStates.put(session.getAppContainer().getAppManager(), state);
		}
		return state;
	}
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy