fedora.server.utilities
Class AxisUtility

java.lang.Object
  extended byfedora.server.utilities.AxisUtility

public abstract class AxisUtility
extends java.lang.Object

Title: AxisUtility.java

Description:

-----------------------------------------------------------------------------

License and Copyright: The contents of this file are subject to the Mozilla Public License Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.mozilla.org/MPL/.

Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.

The entire file consists of original code. Copyright © 2002-2005 by The Rector and Visitors of the University of Virginia and Cornell University. All rights reserved.

-----------------------------------------------------------------------------

Version:
$Id: AxisUtility.java,v 1.14 2005/01/11 20:06:09 cwilper Exp $
Author:
cwilper@cs.cornell.edu

Field Summary
static java.lang.String SOAP_FAULT_CODE_NAMESPACE
          The (SOAP[version-specific] spec-dictated) namespace for fault codes.
static java.lang.String SOAP_ULTIMATE_RECEIVER
          Similar to above, this is "actor" in soap1_1 and "role" in 1_2.
 
Constructor Summary
AxisUtility()
           
 
Method Summary
static org.apache.axis.AxisFault getFault(java.lang.Exception e)
           
static org.apache.axis.AxisFault getFault(ServerException se)
           
static void main(java.lang.String[] args)
           
static boolean serverActive(java.net.URL url, int timeoutSeconds)
           
static void showDeployUsage()
           
static void throwFault(ServerException se)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SOAP_FAULT_CODE_NAMESPACE

public static java.lang.String SOAP_FAULT_CODE_NAMESPACE
The (SOAP[version-specific] spec-dictated) namespace for fault codes. See http://www.w3.org/TR/SOAP/#_Toc478383510 for SOAPv1.1 (what Axis currently conforms to) and http://www.w3.org/TR/soap12-part1/#faultcodeelement for SOAPv1.2 SOAP v1.1 here.


SOAP_ULTIMATE_RECEIVER

public static java.lang.String SOAP_ULTIMATE_RECEIVER
Similar to above, this is "actor" in soap1_1 and "role" in 1_2. Soap 1.1 provides (see http://www.w3.org/TR/SOAP/#_Toc478383499) a special URI for intermediaries, http://schemas.xmlsoap.org/soap/actor/next, and leaves other URIs up to the application. Soap 1.2 provides (see http://www.w3.org/TR/soap12-part1/#soaproles) three special URIs -- one of which is for ultimate recievers, which is the category Fedora falls into. http://www.w3.org/2002/06/soap-envelope/role/ultimateReceiver is the URI v1.2 provides. Since we're doing soap1.1 with axis, we interpolate and use http://schemas.xmlsoap.org/soap/actor/ultimateReceiver.

Constructor Detail

AxisUtility

public AxisUtility()
Method Detail

throwFault

public static void throwFault(ServerException se)
                       throws org.apache.axis.AxisFault
Throws:
org.apache.axis.AxisFault

getFault

public static org.apache.axis.AxisFault getFault(ServerException se)

getFault

public static org.apache.axis.AxisFault getFault(java.lang.Exception e)

showDeployUsage

public static void showDeployUsage()

serverActive

public static boolean serverActive(java.net.URL url,
                                   int timeoutSeconds)

main

public static void main(java.lang.String[] args)