dea.hc
Class HcServices

java.lang.Object
  extended bydea.hc.HcServices
All Implemented Interfaces:
IDebugLevels

public class HcServices
extends java.lang.Object
implements IDebugLevels

Title:
Description:
Copyright: Copyright (c) 2004
Company: RMRR

@author David Abigt
@version 1.0


Field Summary
protected static Display display
           
 
Fields inherited from interface dea.common.IDebugLevels
BASIC, DEBUG_ALL, ERROR, METH_DETAIL, METH_ENTER, METH_EXIT, METH_EXT, METH_GET, METH_SET, METH_VARS, SHOW_PASS
 
Constructor Summary
HcServices()
           
 
Method Summary
static void addVar(Hc_vars var, SOAPBodyElement dataElement, SOAPFactory soapFactory)
           
static SOAPMessage createEnv(boolean updateAll)
          This generates a SOAPMessage for updating the cohosting site.
static void createFault(SOAPBody replyBody, java.lang.String faultCode, java.lang.String faultString, java.lang.String faultActor, java.lang.String detailString, SOAPMessage message)
          generates a SOAP fault error

for detailed error messages please use this within the onMessage method

static SOAPMessage createMsg()
          Create message with header
static MimeHeaders getMIMEHeaders(HttpServletRequest request)
          Creates a MIMEHeaders object from the HTTP headers received with a SOAP message.
static void main(java.lang.String[] args)
          for testing
static java.lang.String printMessage(SOAPMessage msg)
           
static SOAPMessage sendUpdate(SOAPMessage message)
          Send update message to remote server
static void setHttpHeaders(MimeHeaders mimeHeaders, HttpServletResponse response)
          Converts the MIMEHeaders for a SOAP message to HTTP headers in the response.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

display

protected static final Display display
Constructor Detail

HcServices

public HcServices()
Method Detail

createFault

public static void createFault(SOAPBody replyBody,
                               java.lang.String faultCode,
                               java.lang.String faultString,
                               java.lang.String faultActor,
                               java.lang.String detailString,
                               SOAPMessage message)
                        throws SOAPException
generates a SOAP fault error

for detailed error messages please use this within the onMessage method

Parameters:
replyBody -
faultCode -
faultString -
faultActor -
detailString -
Throws:
SOAPException

createMsg

public static SOAPMessage createMsg()
                             throws SOAPException
Create message with header

Returns:
Throws:
SOAPException

createEnv

public static SOAPMessage createEnv(boolean updateAll)
                             throws SOAPException
This generates a SOAPMessage for updating the cohosting site.

Returns:
SOAPMessage containing status of all the Hc_devices entries
Throws:
SOAPException

addVar

public static void addVar(Hc_vars var,
                          SOAPBodyElement dataElement,
                          SOAPFactory soapFactory)
                   throws SOAPException
Throws:
SOAPException

printMessage

public static java.lang.String printMessage(SOAPMessage msg)

getMIMEHeaders

public static MimeHeaders getMIMEHeaders(HttpServletRequest request)
Creates a MIMEHeaders object from the HTTP headers received with a SOAP message.


setHttpHeaders

public static void setHttpHeaders(MimeHeaders mimeHeaders,
                                  HttpServletResponse response)
Converts the MIMEHeaders for a SOAP message to HTTP headers in the response.


sendUpdate

public static SOAPMessage sendUpdate(SOAPMessage message)
                              throws SOAPException,
                                     java.net.MalformedURLException
Send update message to remote server

Parameters:
message -
Returns:
SOAPMessage - response from remote server
Throws:
SOAPException
java.net.MalformedURLException

main

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

Parameters:
args -


Copyright © 2001-2005 Round Mountain Rescue Ranch. All Rights Reserved.