size
int64
13
12M
filename
stringlengths
34
354
content
stringlengths
13
12M
8,792
apache/abdera/adapters/filesystem/src/main/java/org/apache/abdera/protocol/server/adapters/filesystem/FilesystemAdapter.java
package org.apache.abdera.protocol.server.adapters.filesystem; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.util.Arrays; import java.util.Comparator; import java.util.Date; import java.util.HashMap; import java.util.Map; import org.apach...
6,724
apache/abdera/adapters/filesystem/src/test/java/org/apache/abdera/protocol/server/test/filesystem/FilesystemTest.java
package org.apache.abdera.protocol.server.test.filesystem; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import java.io.ByteArrayInputStream; import java.io.IOException; import java.util.Date; import org.apache.abdera.Abdera; imp...
358
apache/abdera/adapters/filesystem/src/test/java/org/apache/abdera/protocol/server/test/filesystem/TestSuite.java
package org.apache.abdera.protocol.server.test.filesystem; import org.junit.internal.TextListener; import org.junit.runner.JUnitCore; public class TestSuite { public static void main(String[] args) { JUnitCore runner = new JUnitCore(); runner.addListener(new TextListener(System.out)); runn...
2,534
apache/abdera/adapters/hibernate/src/main/java/org/apache/abdera/protocol/server/adapters/hibernate/AtomEntryResultTransformer.java
package org.apache.abdera.protocol.server.adapters.hibernate; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.util.List; import org.apache.abdera.Abdera; import org.apache.abdera.ext.serializer.ConventionSerializationContext; import org.apache.abdera.ext.serializer.impl.EntrySer...
8,344
apache/abdera/adapters/hibernate/src/main/java/org/apache/abdera/protocol/server/adapters/hibernate/HibernateCollectionAdapter.java
package org.apache.abdera.protocol.server.adapters.hibernate; import static org.apache.abdera.protocol.server.provider.managed.FeedConfiguration.ENTRY_ELEM_NAME_AUTHOR; import static org.apache.abdera.protocol.server.provider.managed.FeedConfiguration.ENTRY_ELEM_NAME_CONTENT; import static org.apache.abdera.protocol.s...
818
apache/abdera/adapters/hibernate/src/test/java/org/apache/abdera/protocol/server/adapters/hibernate/DummyData.java
package org.apache.abdera.protocol.server.adapters.hibernate; import java.util.Date; public class DummyData { public DummyData(){} private String id; private String author; private String title; private String content; private Date updated; public String getId() { return id; } public void setId(Str...
4,269
apache/abdera/adapters/hibernate/src/test/java/org/apache/abdera/protocol/server/adapters/hibernate/HibernateCollectionAdapterTest.java
package org.apache.abdera.protocol.server.adapters.hibernate; import java.util.Date; import org.apache.abdera.Abdera; import org.apache.abdera.model.Document; import org.apache.abdera.model.Entry; import org.apache.abdera.model.Feed; import org.apache.abdera.protocol.Response.ResponseType; import org.apache.abdera.pr...
372
apache/abdera/adapters/hibernate/src/test/java/org/apache/abdera/protocol/server/adapters/hibernate/TestSuite.java
package org.apache.abdera.protocol.server.adapters.hibernate; import org.junit.internal.runners.TextListener; import org.junit.runner.JUnitCore; public class TestSuite { public static void main(String[] args) { JUnitCore runner = new JUnitCore(); runner.addListener(new TextListener(System.out)); runne...
20,216
apache/abdera/adapters/jcr/src/main/java/org/apache/abdera/protocol/server/adapters/jcr/JcrCollectionAdapter.java
package org.apache.abdera.protocol.server.adapters.jcr; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.util.ArrayList; import java.util.Calendar; import java.util.Date; import java.util.List; import javax.activation.MimeType; import javax.jcr.Credentials; imp...
937
apache/abdera/adapters/jcr/src/main/java/org/apache/abdera/protocol/server/adapters/jcr/SessionPoolManager.java
package org.apache.abdera.protocol.server.adapters.jcr; import javax.jcr.Credentials; import javax.jcr.Repository; import javax.jcr.RepositoryException; import javax.jcr.Session; import org.apache.abdera.protocol.Request; import org.apache.abdera.protocol.util.AbstractItemManager; public class SessionPoolManager ext...
6,108
apache/abdera/adapters/jcr/src/test/java/org/apache/abdera/jcr/JcrCollectionAdapterTest.java
package org.apache.abdera.jcr; import static org.junit.Assert.assertEquals; import java.io.IOException; import java.util.Date; import java.util.List; import javax.jcr.Node; import javax.jcr.NodeIterator; import javax.jcr.PathNotFoundException; import javax.jcr.Repository; import javax.jcr.Session; import javax.jcr.S...
8,837
apache/abdera/adapters/jdbc/src/main/java/org/apache/abdera/protocol/server/adapters/ibatis/IBatisCollectionAdapter.java
package org.apache.abdera.protocol.server.adapters.ibatis; import java.io.ByteArrayInputStream; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.stream.XMLInputFacto...
39,463
apache/abdera/client/src/main/java/org/apache/abdera/protocol/client/AbderaClient.java
package org.apache.abdera.protocol.client; import java.io.InputStream; import java.net.URI; import java.net.URISyntaxException; import java.util.ArrayList; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.net.ssl.TrustManager; import org.apache.abdera.Abdera;...
6,078
apache/abdera/client/src/main/java/org/apache/abdera/protocol/client/AbstractClientResponse.java
package org.apache.abdera.protocol.client; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.Reader; import java.util.Date; import javax.activation.MimeType; import org.apache.abdera.Abdera; import org.apache.abdera.i18n.iri.IRI; import org.apache.abdera.model.D...
2,391
apache/abdera/client/src/main/java/org/apache/abdera/protocol/client/ClientResponse.java
package org.apache.abdera.protocol.client; import java.io.IOException; import java.io.InputStream; import java.io.Reader; import java.util.Date; import org.apache.abdera.model.Document; import org.apache.abdera.model.Element; import org.apache.abdera.parser.ParseException; import org.apache.abdera.parser.Parser; impo...
4,076
apache/abdera/client/src/main/java/org/apache/abdera/protocol/client/CommonsResponse.java
package org.apache.abdera.protocol.client; import java.io.IOException; import java.io.InputStream; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import org.apache.abdera.Abdera; import org.apache.abdera.i18n.text.io.CompressionUtil; import ...
17,894
apache/abdera/client/src/main/java/org/apache/abdera/protocol/client/RequestOptions.java
package org.apache.abdera.protocol.client; import java.util.ArrayList; import java.util.Arrays; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Locale; import java.util.Map; import java.util.Set; import javax.activation.MimeType; import org.apache.abdera.i18n.rfc4646.Lang; im...
4,589
apache/abdera/client/src/main/java/org/apache/abdera/protocol/client/cache/AbstractCache.java
package org.apache.abdera.protocol.client.cache; import java.io.IOException; import org.apache.abdera.Abdera; import org.apache.abdera.protocol.client.ClientResponse; import org.apache.abdera.protocol.client.RequestOptions; import org.apache.abdera.protocol.util.CacheControlUtil; public abstract class AbstractCache ...
852
apache/abdera/client/src/main/java/org/apache/abdera/protocol/client/cache/Cache.java
package org.apache.abdera.protocol.client.cache; import org.apache.abdera.protocol.client.ClientResponse; import org.apache.abdera.protocol.client.RequestOptions; public interface Cache extends Iterable<Object> { public static enum Disposition { STALE, FRESH, TRANSPARENT } /** * Get the dis...
193
apache/abdera/client/src/main/java/org/apache/abdera/protocol/client/cache/CacheFactory.java
package org.apache.abdera.protocol.client.cache; import org.apache.abdera.Abdera; /** * @deprecated No longer used */ public interface CacheFactory { Cache getCache(Abdera abdera); }
405
apache/abdera/client/src/main/java/org/apache/abdera/protocol/client/cache/CachedResponse.java
package org.apache.abdera.protocol.client.cache; import org.apache.abdera.protocol.client.ClientResponse; public interface CachedResponse extends ClientResponse { Object getKey(); Cache getCache(); long getCachedTime(); long getInitialAge(); long getResidentAge(); long getCurrentAge(); ...
2,483
apache/abdera/client/src/main/java/org/apache/abdera/protocol/client/cache/CachedResponseBase.java
package org.apache.abdera.protocol.client.cache; import java.util.Date; import org.apache.abdera.Abdera; import org.apache.abdera.protocol.client.AbstractClientResponse; public abstract class CachedResponseBase extends AbstractClientResponse implements CachedResponse { protected final Object key; protected ...
1,128
apache/abdera/client/src/main/java/org/apache/abdera/protocol/client/cache/InMemoryCache.java
package org.apache.abdera.protocol.client.cache; import java.io.IOException; import java.util.Iterator; import java.util.Map; import org.apache.abdera.Abdera; import org.apache.abdera.protocol.client.ClientResponse; public abstract class InMemoryCache extends AbstractCache { protected transient final Map<Object...
2,839
apache/abdera/client/src/main/java/org/apache/abdera/protocol/client/cache/InMemoryCachedResponse.java
package org.apache.abdera.protocol.client.cache; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.util.Map; import org.apache.abdera.Abdera; import org.apache.abdera.protocol.client.ClientResponse; import org.apache.abdera.p...
411
apache/abdera/client/src/main/java/org/apache/abdera/protocol/client/cache/LRUCache.java
package org.apache.abdera.protocol.client.cache; import org.apache.abdera.Abdera; public class LRUCache extends InMemoryCache implements Cache { private final static int DEFAULT_SIZE = 10; public LRUCache(Abdera abdera) { this(abdera, DEFAULT_SIZE); } public LRUCache(Abdera abdera, final in...
356
apache/abdera/client/src/main/java/org/apache/abdera/protocol/client/cache/LRUCacheFactory.java
package org.apache.abdera.protocol.client.cache; import org.apache.abdera.Abdera; /** * @deprecated No longer used */ public class LRUCacheFactory implements CacheFactory { public LRUCacheFactory(Abdera abdera) { } public LRUCacheFactory() { } public Cache getCache(Abdera abdera) { re...
515
apache/abdera/client/src/main/java/org/apache/abdera/protocol/client/cache/LRUMap.java
package org.apache.abdera.protocol.client.cache; import java.util.LinkedHashMap; import java.util.Map; public final class LRUMap<A, B> extends LinkedHashMap<A, B> { private static final long serialVersionUID = -8243948270889739367L; private final int size; public LRUMap(int initialSize, float loadFactor...
1,293
apache/abdera/client/src/main/java/org/apache/abdera/protocol/client/util/AutoReleasingInputStream.java
package org.apache.abdera.protocol.client.util; import java.io.FilterInputStream; import java.io.IOException; import java.io.InputStream; import org.apache.commons.httpclient.HttpMethod; public final class AutoReleasingInputStream extends FilterInputStream { private final HttpMethod method; public AutoRele...
2,156
apache/abdera/client/src/main/java/org/apache/abdera/protocol/client/util/BaseRequestEntity.java
package org.apache.abdera.protocol.client.util; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.OutputStream; import org.apache.abdera.model.Base; import org.apache.abdera.util.MimeTypeHelper; import org.apache.commons.httpclient.methods.RequestEntity; /** * Required for the Apache ...
4,203
apache/abdera/client/src/main/java/org/apache/abdera/protocol/client/util/ClientAuthSSLProtocolSocketFactory.java
package org.apache.abdera.protocol.client.util; import java.io.FileInputStream; import java.io.IOException; import java.net.InetAddress; import java.net.Socket; import java.net.UnknownHostException; import java.security.KeyStore; import javax.net.ssl.KeyManagerFactory; import javax.net.ssl.SSLContext; import javax.ne...
1,118
apache/abdera/client/src/main/java/org/apache/abdera/protocol/client/util/DataSourceRequestEntity.java
package org.apache.abdera.protocol.client.util; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import javax.activation.DataHandler; import javax.activation.DataSource; import org.apache.commons.httpclient.methods.RequestEntity; public class DataSourceRequestEntity implements Re...
2,721
apache/abdera/client/src/main/java/org/apache/abdera/protocol/client/util/EntityProviderRequestEntity.java
package org.apache.abdera.protocol.client.util; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.OutputStream; import org.apache.abdera.Abdera; import org.apache.abdera.protocol.EntityProvider; import org.apache.commons.httpclient.methods.RequestEntity; public class EntityProviderRequ...
4,384
apache/abdera/client/src/main/java/org/apache/abdera/protocol/client/util/LocalizationHelper.java
package org.apache.abdera.protocol.client.util; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.List; import java.util.Locale; import org.apache.abdera.i18n.rfc4646.Lang; import org.apache.abdera.i18n.rfc4646.Range; import org.apache.abdera.model.Entry; import o...
7,099
apache/abdera/client/src/main/java/org/apache/abdera/protocol/client/util/MethodHelper.java
package org.apache.abdera.protocol.client.util; import java.util.HashMap; import java.util.Map; import org.apache.abdera.protocol.client.ClientResponse; import org.apache.abdera.protocol.client.RequestOptions; import org.apache.commons.httpclient.HttpMethod; import org.apache.commons.httpclient.URI; import org.apache...
2,982
apache/abdera/client/src/main/java/org/apache/abdera/protocol/client/util/MultipartRelatedRequestEntity.java
package org.apache.abdera.protocol.client.util; import java.io.ByteArrayOutputStream; import java.io.DataOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import org.apache.abdera.model.Entry; import org.apache.abdera.util.MimeTypeHelper; import org.apache.commons.code...
543
apache/abdera/client/src/main/java/org/apache/abdera/protocol/client/util/NonOpTrustManager.java
package org.apache.abdera.protocol.client.util; import java.security.cert.CertificateException; import java.security.cert.X509Certificate; import javax.net.ssl.X509TrustManager; public class NonOpTrustManager implements X509TrustManager { public void checkClientTrusted(X509Certificate[] arg0, String arg1) throw...
1,907
apache/abdera/client/src/main/java/org/apache/abdera/protocol/client/util/SimpleSSLProtocolSocketFactory.java
package org.apache.abdera.protocol.client.util; import java.io.IOException; import java.net.InetAddress; import java.net.Socket; import java.net.UnknownHostException; import javax.net.ssl.SSLContext; import javax.net.ssl.TrustManager; import org.apache.commons.httpclient.ConnectTimeoutException; import org.apache.co...
1,678
apache/abdera/client/src/test/java/org/apache/abdera/test/client/JettyUtil.java
package org.apache.abdera.test.client; import org.apache.axiom.testutils.PortAllocator; import org.mortbay.jetty.Connector; import org.mortbay.jetty.Server; import org.mortbay.jetty.bio.SocketConnector; import org.mortbay.jetty.servlet.ServletHandler; public class JettyUtil { private static final String PORT_PRO...
571
apache/abdera/client/src/test/java/org/apache/abdera/test/client/TestSuite.java
package org.apache.abdera.test.client; import org.apache.abdera.test.client.app.AppTest; import org.apache.abdera.test.client.cache.CacheTest; import org.apache.abdera.test.client.util.MultipartRelatedRequestEntityTest; import org.junit.internal.TextListener; import org.junit.runner.JUnitCore; public class TestSuite ...
27,135
apache/abdera/client/src/test/java/org/apache/abdera/test/client/app/AppTest.java
package org.apache.abdera.test.client.app; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOExcep...
17,059
apache/abdera/client/src/test/java/org/apache/abdera/test/client/cache/CacheTest.java
package org.apache.abdera.test.client.cache; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import static org.junit.Assert.assertNotNull; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import ...
3,018
apache/abdera/client/src/test/java/org/apache/abdera/test/client/util/MultipartRelatedRequestEntityTest.java
package org.apache.abdera.test.client.util; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; i...
9,374
apache/abdera/core/src/main/java/org/apache/abdera/Abdera.java
package org.apache.abdera; import org.apache.abdera.factory.Factory; import org.apache.abdera.i18n.iri.IRI; import org.apache.abdera.model.Categories; import org.apache.abdera.model.Entry; import org.apache.abdera.model.Feed; import org.apache.abdera.model.Service; import org.apache.abdera.parser.Parser; import org.ap...
2,191
apache/abdera/core/src/main/java/org/apache/abdera/factory/ExtensionFactory.java
package org.apache.abdera.factory; import org.apache.abdera.model.Base; import org.apache.abdera.model.Element; /** * <p> * Extension Factories are used to provide a means of dynamically resolving builders for namespaced extension elements * </p> * <p> * There are four ways of supporting extension elements. * <...
3,048
apache/abdera/core/src/main/java/org/apache/abdera/factory/ExtensionFactoryMap.java
package org.apache.abdera.factory; import java.util.ArrayList; import java.util.Collections; import java.util.List; import org.apache.abdera.model.Base; import org.apache.abdera.model.Document; import org.apache.abdera.model.Element; /** * A utility implementation of ExtensionFactory used internally by Abdera. It m...
23,130
apache/abdera/core/src/main/java/org/apache/abdera/factory/Factory.java
package org.apache.abdera.factory; import javax.activation.MimeType; import javax.xml.namespace.QName; import org.apache.abdera.Abdera; import org.apache.abdera.model.Base; import org.apache.abdera.model.Categories; import org.apache.abdera.model.Category; import org.apache.abdera.model.Collection; import org.apache....
26,749
apache/abdera/core/src/main/java/org/apache/abdera/factory/StreamBuilder.java
package org.apache.abdera.factory; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.Writer; import java.nio.channels.WritableByteChannel; import java.util.Date; import java.util.Locale; import javax.activation.DataHandler; import javax.xml.namespace.QName; import or...
687
apache/abdera/core/src/main/java/org/apache/abdera/filter/ListParseFilter.java
package org.apache.abdera.filter; import javax.xml.namespace.QName; /** * A ParseFilter that is based on an internal collection of QName's. */ public interface ListParseFilter extends ParseFilter { /** * Add an element QName to the parse filter */ ListParseFilter add(QName qname); /** *...
1,502
apache/abdera/core/src/main/java/org/apache/abdera/filter/ParseFilter.java
package org.apache.abdera.filter; import java.io.Serializable; import javax.xml.namespace.QName; /** * ParseFilter's determine which elements and attributes are acceptable within a parsed document. They are set via the * ParserOptions.setParseFilter method. */ public interface ParseFilter extends Cloneable, Seria...
10,401
apache/abdera/core/src/main/java/org/apache/abdera/model/AtomDate.java
package org.apache.abdera.model; import java.io.Serializable; import java.util.Calendar; import java.util.Date; import java.util.TimeZone; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * <p> * Provides an implementation of the Atom Date Construct, which is itself a specialization of the RFC333...
781
apache/abdera/core/src/main/java/org/apache/abdera/model/Attribute.java
package org.apache.abdera.model; import javax.xml.namespace.QName; import org.apache.abdera.factory.Factory; /** * An attribute. Returned by the Abdera XPath implementation when querying for Attribute nodes. */ public interface Attribute { /** * Get the QName of the attribute * * @return The a...
5,075
apache/abdera/core/src/main/java/org/apache/abdera/model/Base.java
package org.apache.abdera.model; import java.io.IOException; import java.io.OutputStream; import java.io.Writer; import org.apache.abdera.factory.Factory; import org.apache.abdera.writer.WriterOptions; /** * The Base interface provides the basis for the Feed Object Model API and defines the operations common to bot...
4,659
apache/abdera/core/src/main/java/org/apache/abdera/model/Categories.java
package org.apache.abdera.model; import java.util.List; import org.apache.abdera.i18n.iri.IRI; /** * The Atom Publishing Protocol introduces the notion of a "Category Document" and the app:categories element. These are * used to provide a listing of atom:category elements that may be used with the members of an At...
2,708
apache/abdera/core/src/main/java/org/apache/abdera/model/Category.java
package org.apache.abdera.model; import org.apache.abdera.i18n.iri.IRI; /** * <p> * Provides categorization informaton for a feed or entry * </p> * <p> * Per RFC4287: * </p> * * <pre> * The "atom:category" element conveys information about a category * associated with an entry or feed. This specificatio...
5,799
apache/abdera/core/src/main/java/org/apache/abdera/model/Collection.java
package org.apache.abdera.model; import java.util.List; import javax.activation.MimeType; import org.apache.abdera.i18n.iri.IRI; /** * <p> * Represents an collection element in an Atom Publishing Protocol introspection document. * </p> * * <pre> * The "app:collection" describes an Atom Protocol collection. ...
833
apache/abdera/core/src/main/java/org/apache/abdera/model/Comment.java
package org.apache.abdera.model; import org.apache.abdera.factory.Factory; /** * A comment. Returned by the Abdera XPath implementation when querying for comment nodes (e.g. * xpath.selectNodes("//comment()"); ...). Most applications should never have much of a reason to use this interface. * It is provided primar...
9,355
apache/abdera/core/src/main/java/org/apache/abdera/model/Content.java
package org.apache.abdera.model; import javax.activation.DataHandler; import javax.activation.MimeType; import org.apache.abdera.util.MimeTypeHelper; import org.apache.abdera.i18n.iri.IRI; /** * <p> * Represents an atom:content element. * </p> * <p> * Atom has a very clearly defined and extremely flexible conte...
3,183
apache/abdera/core/src/main/java/org/apache/abdera/model/Control.java
package org.apache.abdera.model; /** * <p> * Represents an Atom Publishing Protocol <code>control</code> element. * </p> * <p> * The purpose of the control extension is to provide a means for content publishers to embed various * publishing-operation specific control parameters within the body of the entry. For ...
2,062
apache/abdera/core/src/main/java/org/apache/abdera/model/DateTime.java
package org.apache.abdera.model; import java.util.Calendar; import java.util.Date; /** * <p> * An element conforming to the Atom Date Construct. The data type implementation for this element is provided by the * AtomDate class. * </p> */ public interface DateTime extends Element { /** * Returns the con...
2,129
apache/abdera/core/src/main/java/org/apache/abdera/model/DateTimeWrapper.java
package org.apache.abdera.model; import java.util.Calendar; import java.util.Date; import javax.xml.namespace.QName; import org.apache.abdera.factory.Factory; /** * An ElementWrapper implementation that can serve as the basis for Atom Date Construct based extensions. */ public abstract class DateTimeWrapper exten...
1,389
apache/abdera/core/src/main/java/org/apache/abdera/model/Div.java
package org.apache.abdera.model; /** * <p> * Represents an XHTML div tag. * </p> */ public interface Div extends ExtensibleElement { /** * Returns the array of class attribute values on the div * * @return A listing of class attribute values */ String[] getXhtmlClass(); /** ...
4,459
apache/abdera/core/src/main/java/org/apache/abdera/model/Document.java
package org.apache.abdera.model; import java.io.Serializable; import java.util.Date; import javax.activation.MimeType; import org.apache.abdera.i18n.iri.IRI; import org.apache.abdera.i18n.rfc4646.Lang; import org.apache.abdera.util.EntityTag; import org.apache.abdera.util.XmlUtil.XMLVersion; /** * <p> * The top l...
6,722
apache/abdera/core/src/main/java/org/apache/abdera/model/Element.java
package org.apache.abdera.model; import java.util.List; import java.util.Locale; import java.util.Map; import javax.activation.DataHandler; import javax.xml.namespace.QName; import org.apache.abdera.i18n.iri.IRI; import org.apache.abdera.i18n.iri.IRISyntaxException; import org.apache.abdera.i18n.rfc4646.Lang; /** ...
7,719
apache/abdera/core/src/main/java/org/apache/abdera/model/ElementWrapper.java
package org.apache.abdera.model; import java.io.IOException; import java.io.OutputStream; import java.io.Writer; import java.util.Iterator; import java.util.List; import java.util.Locale; import java.util.Map; import javax.activation.DataHandler; import javax.xml.namespace.QName; import org.apache.abdera.factory.Fac...
30,882
apache/abdera/core/src/main/java/org/apache/abdera/model/Entry.java
package org.apache.abdera.model; import java.io.IOException; import java.io.InputStream; import java.util.Date; import java.util.List; import javax.activation.DataHandler; import javax.activation.MimeType; import org.apache.abdera.i18n.iri.IRI; /** * <p> * Represents an Atom Entry element. * </p> * <p> * Per R...
3,727
apache/abdera/core/src/main/java/org/apache/abdera/model/ExtensibleElement.java
package org.apache.abdera.model; import java.util.List; import javax.xml.namespace.QName; /** * An abstract element that can be extended with namespaced child elements */ public interface ExtensibleElement extends Element { /** * Returns the complete set of extension elements * * @return a lis...
3,063
apache/abdera/core/src/main/java/org/apache/abdera/model/ExtensibleElementWrapper.java
package org.apache.abdera.model; import java.util.List; import javax.xml.namespace.QName; import org.apache.abdera.factory.Factory; /** * ElementWrapper implementation that implements the ExtensibleElement interface. This should be used to create static * extension elements that support extensions */ @SuppressWa...
5,059
apache/abdera/core/src/main/java/org/apache/abdera/model/Feed.java
package org.apache.abdera.model; import java.util.Comparator; import java.util.List; import org.apache.abdera.i18n.iri.IRISyntaxException; /** * <p> * Represents an Atom Feed Element * </p> * <p> * Per RFC4287: * </p> * * <pre> * The "atom:feed" element is the document (i.e., top-level) element of * an At...
2,589
apache/abdera/core/src/main/java/org/apache/abdera/model/Generator.java
package org.apache.abdera.model; import org.apache.abdera.i18n.iri.IRI; import org.apache.abdera.i18n.iri.IRISyntaxException; /** * <p> * Identifies the software implementation that produced the Atom feed. * </p> * <p> * Per RFC4287: * </p> * * <pre> * The "atom:generator" element's content identifies the a...
1,172
apache/abdera/core/src/main/java/org/apache/abdera/model/IRIElement.java
package org.apache.abdera.model; import org.apache.abdera.i18n.iri.IRI; import org.apache.abdera.i18n.iri.IRISyntaxException; /** * <p> * The IRI interface provides a common base for a set of feed and entry elements whose content value must be a valid * IRI/URI reference. These include the elements atom:icon, atom...
9,902
apache/abdera/core/src/main/java/org/apache/abdera/model/Link.java
package org.apache.abdera.model; import javax.activation.MimeType; import org.apache.abdera.i18n.iri.IRI; /** * <p> * Represents an Atom Link element. * </p> * <p> * Per RFC4287: * </p> * * <pre> * The "atom:link" element defines a reference from an entry or feed to * a Web resource. This specification...
4,964
apache/abdera/core/src/main/java/org/apache/abdera/model/Person.java
package org.apache.abdera.model; import org.apache.abdera.i18n.iri.IRI; import org.apache.abdera.i18n.iri.IRISyntaxException; /** * <p> * An Atom Person Construct * </p> * <p> * Per RFC4287: * </p> * * <pre> * A Person construct is an element that describes a person, * corporation, or similar entity (h...
3,499
apache/abdera/core/src/main/java/org/apache/abdera/model/PersonWrapper.java
package org.apache.abdera.model; import javax.xml.namespace.QName; import org.apache.abdera.factory.Factory; import org.apache.abdera.i18n.iri.IRI; import org.apache.abdera.util.Constants; /** * ElementWrapper implementation that implements the Person interface. Used to create static extensions based on the * Atom...
961
apache/abdera/core/src/main/java/org/apache/abdera/model/ProcessingInstruction.java
package org.apache.abdera.model; import org.apache.abdera.factory.Factory; /** * A processing instruction. Returned by the Abdera XPath implementation when querying for PI nodes (e.g. * xpath.selectNodes("//processing-instruction()"); ...). There should be very little reason for applications to use * this. It is p...
2,777
apache/abdera/core/src/main/java/org/apache/abdera/model/Service.java
package org.apache.abdera.model; import java.util.List; import javax.activation.MimeType; /** * <p> * Represents the root of an Atom Publishing Protocol Introspection Document. * </p> * <p> * Per APP Draft-08: * </p> * * <pre> * The root of an introspection document is the "app:service" element. * * T...
21,556
apache/abdera/core/src/main/java/org/apache/abdera/model/Source.java
package org.apache.abdera.model; import java.util.Date; import java.util.List; import org.apache.abdera.i18n.iri.IRI; /** * <p> * Per RFC4287: * </p> * * <pre> * If an atom:entry is copied from one feed into another feed, then the * source atom:feed's metadata (all child elements of atom:feed other * tha...
3,345
apache/abdera/core/src/main/java/org/apache/abdera/model/Text.java
package org.apache.abdera.model; /** * <p> * Represents an Atom Text Contruct. * </p> * <p> * Atom allows three kinds of Text constructs: * </p> * <ul> * <li>Text, consisting of content that is to be interpreted as plain text with no markup. For instance, * <code>&lt;title type="text">&amp;lt;title&amp;gt;&lt...
868
apache/abdera/core/src/main/java/org/apache/abdera/model/TextValue.java
package org.apache.abdera.model; import java.io.InputStream; import javax.activation.DataHandler; /** * A text value. Returned by the Abdera XPath implementation when querying for text nodes (e.g. * xpath.selectNodes("//text()"); ...). There should be very little reason why an application would use this. It is * ...
3,846
apache/abdera/core/src/main/java/org/apache/abdera/model/Workspace.java
package org.apache.abdera.model; import java.util.List; import javax.activation.MimeType; import org.apache.abdera.i18n.iri.IRISyntaxException; /** * <p> * An Atom Publishing Protocol Introspection Document workspace element. * </p> * <p> * Per APP Draft-08 * </p> * * <pre> * The "app:workspace" element ...
1,173
apache/abdera/core/src/main/java/org/apache/abdera/parser/NamedParser.java
package org.apache.abdera.parser; import org.apache.abdera.util.NamedItem; /** * Abdera's abstract parsing model allows developers to implement parsers capable of translating non-Atom formats into * Abdera objects. For instance, a developer could create an RDF, RSS, JSON or hAtom microformat parser that * automati...
468
apache/abdera/core/src/main/java/org/apache/abdera/parser/ParseException.java
package org.apache.abdera.parser; public class ParseException extends RuntimeException { private static final long serialVersionUID = -2586758177341912116L; public ParseException() { super(); } public ParseException(String message) { super(message); } public ParseException(S...
8,211
apache/abdera/core/src/main/java/org/apache/abdera/parser/Parser.java
package org.apache.abdera.parser; import java.io.InputStream; import java.io.Reader; import java.nio.channels.ReadableByteChannel; import javax.xml.stream.XMLStreamReader; import org.apache.abdera.model.Document; import org.apache.abdera.model.Element; public interface Parser { /** * Parse the input strea...
622
apache/abdera/core/src/main/java/org/apache/abdera/parser/ParserFactory.java
package org.apache.abdera.parser; /** * The ParserFactory is used a acquire instances of alternative parsers registered with Abdera. * * @see org.apache.abdera.parser.NamedParser */ public interface ParserFactory { /** * Get the default parser. This is equivalent to calling Abdera.getParser() * ...
5,068
apache/abdera/core/src/main/java/org/apache/abdera/parser/ParserOptions.java
package org.apache.abdera.parser; import java.util.Map; import javax.xml.namespace.QName; import org.apache.abdera.factory.Factory; import org.apache.abdera.filter.ParseFilter; import org.apache.abdera.i18n.text.io.CompressionUtil.CompressionCodec; /** * Parser options are used to modify the behavior of the parser...
901
apache/abdera/core/src/main/java/org/apache/abdera/protocol/EntityProvider.java
package org.apache.abdera.protocol; import java.util.Date; import org.apache.abdera.util.EntityTag; import org.apache.abdera.writer.StreamWriter; /** * An EntityProvider is used to serialize entities using the StreamWriter interface. The EntityProvider interface can be * implemented by applications to provide an e...
396
apache/abdera/core/src/main/java/org/apache/abdera/protocol/ItemManager.java
package org.apache.abdera.protocol; /** * ItemManager is an internal utility class that provides a simple get/release interface. It is used primarily to * control access to pooled resources. */ public interface ItemManager<T> { /** * Get an item based on the specified request */ T get(Request req...
1,942
apache/abdera/core/src/main/java/org/apache/abdera/protocol/Message.java
package org.apache.abdera.protocol; import java.util.Date; import javax.activation.MimeType; import org.apache.abdera.i18n.iri.IRI; import org.apache.abdera.protocol.util.ProtocolConstants; /** * A protocol message. This is used as the basis for both request and response objects in order to provide a consistent *...
1,466
apache/abdera/core/src/main/java/org/apache/abdera/protocol/Request.java
package org.apache.abdera.protocol; import java.util.Date; import org.apache.abdera.util.EntityTag; /** * A protocol request. This is used as a base for both server and client requests */ public interface Request extends Message { /** * Get the value of the Accept header */ String getAccept(); ...
283
apache/abdera/core/src/main/java/org/apache/abdera/protocol/Resolver.java
package org.apache.abdera.protocol; /** * The Resolver interface is a utility class used to resolve objects based on a request. It is used internally by Abdera * as the basis for Target and Subject resolvers. */ public interface Resolver<T> { T resolve(Request request); }
2,368
apache/abdera/core/src/main/java/org/apache/abdera/protocol/Response.java
package org.apache.abdera.protocol; import java.util.Date; import org.apache.abdera.i18n.iri.IRI; import org.apache.abdera.util.EntityTag; /** * Base interface for an Atompub protocol response message */ public interface Response extends Message { /** * High level classifications of response types *...
3,623
apache/abdera/core/src/main/java/org/apache/abdera/protocol/error/Error.java
package org.apache.abdera.protocol.error; import javax.xml.namespace.QName; import org.apache.abdera.Abdera; import org.apache.abdera.factory.Factory; import org.apache.abdera.model.Document; import org.apache.abdera.model.Element; import org.apache.abdera.model.ExtensibleElementWrapper; import org.apache.abdera.writ...
285
apache/abdera/core/src/main/java/org/apache/abdera/protocol/error/ErrorExtensionFactory.java
package org.apache.abdera.protocol.error; import org.apache.abdera.util.AbstractExtensionFactory; public class ErrorExtensionFactory extends AbstractExtensionFactory { public ErrorExtensionFactory() { super(Error.NS); addImpl(Error.ERROR, Error.class); } }
1,793
apache/abdera/core/src/main/java/org/apache/abdera/protocol/error/ProtocolException.java
package org.apache.abdera.protocol.error; import org.apache.abdera.Abdera; public class ProtocolException extends RuntimeException { private static final long serialVersionUID = 1017447143200419489L; private final Error error; public ProtocolException(Error error) { super(error.getCode() + "::" ...
442
apache/abdera/core/src/main/java/org/apache/abdera/protocol/util/AbstractEntityProvider.java
package org.apache.abdera.protocol.util; import java.util.Date; import org.apache.abdera.protocol.EntityProvider; import org.apache.abdera.util.EntityTag; public abstract class AbstractEntityProvider implements EntityProvider { public String getContentType() { return "application/xml"; } public...
433
apache/abdera/core/src/main/java/org/apache/abdera/protocol/util/AbstractItemManager.java
package org.apache.abdera.protocol.util; import org.apache.abdera.protocol.ItemManager; import org.apache.abdera.protocol.Request; public abstract class AbstractItemManager<T> extends PoolManager<T> implements ItemManager<T> { public AbstractItemManager() { super(); } public AbstractItemManager(...
2,561
apache/abdera/core/src/main/java/org/apache/abdera/protocol/util/AbstractMessage.java
package org.apache.abdera.protocol.util; import javax.activation.MimeType; import org.apache.abdera.i18n.iri.IRI; import org.apache.abdera.i18n.text.Rfc2047Helper; import org.apache.abdera.i18n.text.UrlEncoding; import org.apache.abdera.protocol.Message; /** * Root impl for Message interface impls. This is provided...
2,189
apache/abdera/core/src/main/java/org/apache/abdera/protocol/util/AbstractRequest.java
package org.apache.abdera.protocol.util; import java.util.Date; import org.apache.abdera.protocol.Request; import org.apache.abdera.util.EntityTag; public abstract class AbstractRequest extends AbstractMessage implements Request { protected long max_stale = -1; protected long min_fresh = -1; public Str...
3,322
apache/abdera/core/src/main/java/org/apache/abdera/protocol/util/AbstractResponse.java
package org.apache.abdera.protocol.util; import java.util.Date; import org.apache.abdera.i18n.iri.IRI; import org.apache.abdera.protocol.Response; import org.apache.abdera.util.EntityTag; public abstract class AbstractResponse extends AbstractMessage implements Response { protected String[] nocache_headers = nu...
6,747
apache/abdera/core/src/main/java/org/apache/abdera/protocol/util/CacheControlUtil.java
package org.apache.abdera.protocol.util; import java.util.HashMap; import java.util.Iterator; import java.util.Map; import java.util.regex.Matcher; import java.util.regex.Pattern; import org.apache.abdera.i18n.text.io.CompressionUtil; /** * Provides parsing and properly handling of the HTTP Cache-Control header. *...
1,506
apache/abdera/core/src/main/java/org/apache/abdera/protocol/util/PoolManager.java
package org.apache.abdera.protocol.util; import java.util.Stack; import org.apache.abdera.protocol.ItemManager; /** * Implements a simple pool manager. By default, an upper limit to the pool is set at 25 entries. New items can always * be created, but if more than 25 entries are released back to the pool, the extr...