juneau-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jamesbog...@apache.org
Subject incubator-juneau git commit: https://issues.apache.org/jira/browse/JUNEAU-18
Date Wed, 02 Nov 2016 13:40:28 GMT
Repository: incubator-juneau
Updated Branches:
  refs/heads/master 1c13dc74e -> 4cabc899e


https://issues.apache.org/jira/browse/JUNEAU-18

Project: http://git-wip-us.apache.org/repos/asf/incubator-juneau/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-juneau/commit/4cabc899
Tree: http://git-wip-us.apache.org/repos/asf/incubator-juneau/tree/4cabc899
Diff: http://git-wip-us.apache.org/repos/asf/incubator-juneau/diff/4cabc899

Branch: refs/heads/master
Commit: 4cabc899eabe0c8110337f28b5c23803b0f8c2e9
Parents: 1c13dc7
Author: JamesBognar <jamesbognar@apache.org>
Authored: Wed Nov 2 09:40:24 2016 -0400
Committer: JamesBognar <jamesbognar@apache.org>
Committed: Wed Nov 2 09:40:24 2016 -0400

----------------------------------------------------------------------
 .../apache/juneau/html/HtmlDocSerializer.java   | 68 ++++++++++++++++++++
 1 file changed, 68 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/4cabc899/juneau-core/src/main/java/org/apache/juneau/html/HtmlDocSerializer.java
----------------------------------------------------------------------
diff --git a/juneau-core/src/main/java/org/apache/juneau/html/HtmlDocSerializer.java b/juneau-core/src/main/java/org/apache/juneau/html/HtmlDocSerializer.java
index cabab56..d49359c 100644
--- a/juneau-core/src/main/java/org/apache/juneau/html/HtmlDocSerializer.java
+++ b/juneau-core/src/main/java/org/apache/juneau/html/HtmlDocSerializer.java
@@ -50,6 +50,7 @@ import org.apache.juneau.serializer.*;
  * @author James Bognar (james.bognar@salesforce.com)
  */
 @Produces("text/html")
+@SuppressWarnings("hiding")
 public class HtmlDocSerializer extends HtmlStrippedDocSerializer {
 
 	// Properties defined in RestServletProperties
@@ -58,6 +59,9 @@ public class HtmlDocSerializer extends HtmlStrippedDocSerializer {
 		REST_relativeServletURI = "RestServlet.relativeServletURI";
 
 
+	/** Default serializer, all default settings. */
+	public static final HtmlDocSerializer DEFAULT = new HtmlDocSerializer().lock();
+
 	//--------------------------------------------------------------------------------
 	// Overridden methods
 	//--------------------------------------------------------------------------------
@@ -165,4 +169,68 @@ public class HtmlDocSerializer extends HtmlStrippedDocSerializer {
 			return true;
 		return false;
 	}
+
+	//--------------------------------------------------------------------------------
+	// Overridden methods
+	//--------------------------------------------------------------------------------
+
+	@Override /* CoreApi */
+	public HtmlDocSerializer setProperty(String property, Object value) throws LockedException
{
+		super.setProperty(property, value);
+		return this;
+	}
+
+	@Override /* CoreApi */
+	public HtmlDocSerializer setProperties(ObjectMap properties) throws LockedException {
+		super.setProperties(properties);
+		return this;
+	}
+
+	@Override /* CoreApi */
+	public HtmlDocSerializer addNotBeanClasses(Class<?>...classes) throws LockedException
{
+		super.addNotBeanClasses(classes);
+		return this;
+	}
+
+	@Override /* CoreApi */
+	public HtmlDocSerializer addBeanFilters(Class<?>...classes) throws LockedException
{
+		super.addBeanFilters(classes);
+		return this;
+	}
+
+	@Override /* CoreApi */
+	public HtmlDocSerializer addPojoSwaps(Class<?>...classes) throws LockedException {
+		super.addPojoSwaps(classes);
+		return this;
+	}
+
+	@Override /* CoreApi */
+	public HtmlDocSerializer addToDictionary(Class<?>...classes) throws LockedException
{
+		super.addToDictionary(classes);
+		return this;
+	}
+
+	@Override /* CoreApi */
+	public <T> HtmlDocSerializer addImplClass(Class<T> interfaceClass, Class<?
extends T> implClass) throws LockedException {
+		super.addImplClass(interfaceClass, implClass);
+		return this;
+	}
+
+	@Override /* CoreApi */
+	public HtmlDocSerializer setClassLoader(ClassLoader classLoader) throws LockedException
{
+		super.setClassLoader(classLoader);
+		return this;
+	}
+
+	@Override /* Lockable */
+	public HtmlDocSerializer lock() {
+		super.lock();
+		return this;
+	}
+
+	@Override /* Lockable */
+	public HtmlDocSerializer clone() {
+		HtmlDocSerializer c = (HtmlDocSerializer)super.clone();
+		return c;
+	}
 }


Mime
View raw message