/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
public class HandlerChainsModel {
/** Creates a new instance of HandlerChains */
this.annotatedClass = annotatedClass;
}
if (handlerChains == null) {
}
return handlerChains;
}
return id;
}
}
/**
* reader should be on <handler-chains> element
*/
public static HandlerChainsModel parseHandlerConfigFile(Class annotatedClass, XMLStreamReader reader) {
while(stk.hasMoreTokens()) {
// This will convert tokens into Binding URI
}
}
// process all <handler> elements
}
// handler class
// init params (ignored)
}
// headers (ignored)
}
// roles (not stored per handler)
}
// move past </handler>
}
// move past </handler-chain>
}
return handlerModel;
}
/**
* <p>This method is called internally by HandlerAnnotationProcessor,
* and by
* {@link com.sun.xml.internal.ws.transport.http.DeploymentDescriptorParser}
* directly when it reaches the handler chains element in the
* descriptor file it is parsing.
* @param reader should be on <handler-chains> element
* @return A HandlerAnnotationInfo object that stores the
* handlers and roles.
*/
"but port QName passed to parser is null");
}
if (!parseChain) {
continue;
}
"but bindingId passed to parser is null");
}
boolean skipThisChain = true;
while(stk.hasMoreTokens()) {
/*
Convert short-form tokens to API's binding ids
Unknown token, Put it as it is
*/
}
skipThisChain = false;
}
if (skipThisChain) {
continue;
}
if (serviceName == null) {
"but service QName passed to parser is null");
}
if (!parseChain) {
continue;
}
}
// process all <handler> elements
}
// handler class
try {
} catch (InstantiationException ie){
throw new RuntimeException(ie);
} catch (IllegalAccessException e) {
throw new RuntimeException(e);
}
// init params (ignored)
}
// headers (ignored)
}
// roles (not stored per handler)
}
// call @PostConstruct method on handler if present
continue;
}
try {
break;
} catch (Exception e) {
throw new RuntimeException(e);
}
}
// move past </handler>
}
// move past </handler-chain>
}
return info;
}
boolean hchainMatched = false;
if((!hchain.isConstraintSet()) ||
hchainMatched = true;
}
if(hchainMatched) {
try {
} catch (InstantiationException ie){
throw new RuntimeException(ie);
} catch (IllegalAccessException e) {
throw new RuntimeException(e);
}
}
}
}
return handlerInfo;
}
try {
} catch (ClassNotFoundException e) {
throw new UtilException(
"util.handler.class.not.found",
name);
}
}
// call @PostConstruct method on handler if present
continue;
}
try {
break;
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}
}
}
int state;
do {
}
}
}
}
}
throw new UtilException(key,
arg );
}
static class HandlerChainType {
//constraints
// This flag is set if one of the above constraint is set on handler chain
boolean constraintSet = false;
/** Creates a new instance of HandlerChain */
public HandlerChainType() {
}
this.serviceNamePattern = value;
constraintSet = true;
}
return serviceNamePattern;
}
this.portNamePattern = value;
constraintSet = true;
}
return portNamePattern;
}
return this.protocolBindings;
}
/*
Convert short-form tokens to API's binding ids
Unknown token, Put it as it is
*/
constraintSet = true;
}
public boolean isConstraintSet() {
}
return id;
}
}
}
return this.handlers;
}
}
static class HandlerType {
/** Creates a new instance of HandlerComponent */
public HandlerType() {
}
return handlerName;
}
this.handlerName = value;
}
return handlerClass;
}
this.handlerClass = value;
}
return id;
}
}
}
return this.soapRoles;
}
}
}