站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 .net API Documentation 英文版文档

AddressingHandler (JBoss.Net API) - JBoss 4.0.1 sp1 .net API Documentation 英文版文档


org.jboss.net.axis.message.addressing.handler
Class AddressingHandler

java.lang.Object
  extended byorg.apache.axis.handlers.BasicHandler
      extended byorg.apache.axis.message.addressing.handler.AddressingHandler
          extended byorg.jboss.net.axis.message.addressing.handler.AddressingHandler
All Implemented Interfaces:
org.apache.axis.Handler, Serializable

public class AddressingHandler
extends org.apache.axis.message.addressing.handler.AddressingHandler

Title:
WS-Addressing Handler

Description:
This Subclass of the org.apache.axis.message.addressing.handler.AddressingHandler will properly use the wsa:Action header to direct the incoming messages to the proper services. It also correctly fetches the client config when sending a response via the ReplyTo header. wss4j properties are also moved into the new request (server response) so encryption / signing can happen after addressing.

This handler can be placed in the global (or transport) request and response chains to handle messages with ws-addressing headers. For added security, have the ws-security (wss4j) handlers sign any ws-addressing headers that contain addresses (To, From, ReplyTo, FaultTo). This means that wss4j will have to process incoming messages BEFORE addressing, and it will have to process outgoing messages AFTER addressing.

The parameters transportPackages, and transports can be configured in the DD to allow the response objects to understand any special transports that may be in use. @see #initializeCall()

Copyright:
Copyright (c) 2004
Company:
Green River Computing Services

Version:
$Revision: 1.1.6.2 $
Author:
Jason Essington
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.axis.message.addressing.handler.AddressingHandler
log
 
Fields inherited from class org.apache.axis.handlers.BasicHandler
makeLockable, name, options
 
Constructor Summary
AddressingHandler()
           
 
Method Summary
protected  void configureCall(org.apache.axis.client.Call call, org.apache.axis.MessageContext msgContext)
           
protected  org.apache.axis.client.Service getService(org.apache.axis.MessageContext msgContext)
           
 void init()
           
protected  void setTargetService(org.apache.axis.MessageContext msgCtx, org.apache.axis.message.addressing.AddressingHeaders headers)
          We set the target service based upon the Action header since email addresses don't have path attributes.
 
Methods inherited from class org.apache.axis.message.addressing.handler.AddressingHandler
forwardMessage, initializeActor, invoke, onFault, processClientRequest, processClientResponse, processFault, processServerRequest, processServerResponse
 
Methods inherited from class org.apache.axis.handlers.BasicHandler
canHandleBlock, cleanup, generateWSDL, getDeploymentData, getName, getOption, getOptions, getUnderstoodHeaders, initHashtable, setName, setOption, setOptionDefault, setOptions, setOptionsLockable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddressingHandler

public AddressingHandler()
Method Detail

init

public void init()

configureCall

protected void configureCall(org.apache.axis.client.Call call,
                             org.apache.axis.MessageContext msgContext)

getService

protected org.apache.axis.client.Service getService(org.apache.axis.MessageContext msgContext)

setTargetService

protected void setTargetService(org.apache.axis.MessageContext msgCtx,
                                org.apache.axis.message.addressing.AddressingHeaders headers)
                         throws Exception
We set the target service based upon the Action header since email addresses don't have path attributes.

Throws:
Exception


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.