001/*
002 * Licensed to the Apache Software Foundation (ASF) under one or more
003 * contributor license agreements.  See the NOTICE file distributed with
004 * this work for additional information regarding copyright ownership.
005 * The ASF licenses this file to You under the Apache License, Version 2.0
006 * (the "License"); you may not use this file except in compliance with
007 * the License.  You may obtain a copy of the License at
008 *
009 *      http://www.apache.org/licenses/LICENSE-2.0
010 *
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 * See the License for the specific language governing permissions and
015 * limitations under the License.
016 */
017package org.apache.wicket.util.resource;
018
019import java.time.Instant;
020import java.util.Locale;
021import org.apache.wicket.util.lang.Bytes;
022
023
024/**
025 * @see org.apache.wicket.util.resource.IResourceStream
026 * 
027 * @author Jonathan Locke
028 */
029public abstract class AbstractResourceStream implements IResourceStream
030{
031        private static final long serialVersionUID = 1L;
032
033        private Locale locale;
034        private String style;
035        private String variation;
036
037        @Override
038        public Locale getLocale()
039        {
040                return locale;
041        }
042
043        @Override
044        public void setLocale(final Locale locale)
045        {
046                this.locale = locale;
047        }
048
049        @Override
050        public String getStyle()
051        {
052                return style;
053        }
054
055        @Override
056        public String getVariation()
057        {
058                return variation;
059        }
060
061        @Override
062        public void setStyle(final String style)
063        {
064                this.style = style;
065        }
066
067        @Override
068        public void setVariation(final String variation)
069        {
070                this.variation = variation;
071        }
072
073        @Override
074        public Bytes length()
075        {
076                return null;
077        }
078
079        @Override
080        public String getContentType()
081        {
082                return null;
083        }
084
085        @Override
086        public Instant lastModifiedTime()
087        {
088                return null;
089        }
090}