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

com.predic8.membrane.core.config.spring.InMemorySessionManager2Parser Maven / Gradle / Ivy

There is a newer version: 5.5.0
Show newest version
/* Copyright 2012 predic8 GmbH, www.predic8.com

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License. */

package com.predic8.membrane.core.config.spring;

import org.w3c.dom.Element;
import org.springframework.beans.factory.xml.ParserContext;
import org.springframework.beans.factory.support.BeanDefinitionBuilder;

/**
  * Automatically generated by com.predic8.membrane.annot.generator.Parsers.
  */
public class InMemorySessionManager2Parser extends AbstractParser {

	protected Class getBeanClass(org.w3c.dom.Element element) {
		return com.predic8.membrane.core.interceptor.session.InMemorySessionManager.class;
	}
	@Override
	protected void doParse(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) {
		setIdIfNeeded(element, parserContext, "inMemorySessionManager2");
		setPropertyIfSet("expiresAfterSeconds", "expiresAfterSeconds", element, builder);
		setPropertyIfSet("domain", "domain", element, builder);
		setPropertyIfSet("httpOnly", "httpOnly", element, builder);
		setPropertyIfSet("sameSite", "sameSite", element, builder);
		setPropertyIfSet("issuer", "issuer", element, builder);
		setPropertyIfSet("ttlExpiryRefreshOnAccess", "ttlExpiryRefreshOnAccess", element, builder);
		setPropertyIfSet("secure", "secure", element, builder);
		setPropertyIfSet("sessionCookie", "sessionCookie", element, builder);
		parseChildren(element, parserContext, builder);
	}
@Override
protected void handleChildObject(Element ele, ParserContext parserContext, BeanDefinitionBuilder builder, Class clazz, Object child) {
	{
		throw new RuntimeException("Unknown child class \"" + clazz + "\".");
	}
}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy