src/share/jaxws_classes/com/sun/xml/internal/ws/api/WSBinding.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -37,10 +37,11 @@
import javax.xml.ws.WebServiceFeature;
import javax.xml.ws.handler.Handler;
import java.util.List;
import java.util.Set;
+
/**
* JAX-WS implementation of {@link Binding}.
*
* <p>
* This object can be created by {@link BindingID#createBinding()}.
@@ -95,11 +96,12 @@
* @return
* Always non-null same value.
*/
@NotNull BindingID getBindingId();
- @NotNull List<Handler> getHandlerChain();
+ @NotNull@Override
+ List<Handler> getHandlerChain();
/**
* Checks if a particular {@link WebServiceFeature} is enabled.
*
* @return
@@ -186,12 +188,22 @@
*/
@NotNull WSFeatureList getFaultMessageFeatures(@NotNull final QName operationName,
@NotNull final QName messageName);
/**
- * Returns set of header QNames known to be supported by this binding. Tubes should use this
- * Set to add QNames for headers they process so that must-understand processing can validate
- * headers on inbound messages
+ * Returns set of header QNames known to be supported by this binding.
* @return Set of known QNames
*/
@NotNull Set<QName> getKnownHeaders();
+
+ /**
+ * Adds header QName to set known to be supported by this binding
+ * @param knownHeader Known header QName
+ * @return true, if new entry was added; false, if known header QName was already known
+ */
+ boolean addKnownHeader(QName knownHeader);
+
+ /**
+ * @return A MessageContextFactory configured according to the binding's features.
+ */
+ @NotNull com.oracle.webservices.internal.api.message.MessageContextFactory getMessageContextFactory();
}