FileDocCategorySizeDatePackage
IPingImpl.javaAPI DocExample5968Tue May 29 16:58:10 BST 2007wsrm.createsequence.server

IPingImpl

public class IPingImpl extends TestService

Fields Summary
static int
lastMessageNumber
static boolean
ordered
WebServiceContext
context
Constructors Summary
public IPingImpl()

    
      
        RMDestination.getRMDestination().setProcessingFilter(this);
    
Methods Summary
public java.lang.Stringclear(java.lang.String param)

        clearImpl(param);
        return "";
    
public EchoResponseBodyTypeechoString(EchoRequestBodyType echoString)

        
        EchoResponseBodyType pr =
                new ObjectFactory().createEchoResponseBodyType();
        
        JAXBElement<String> text = echoString.getText();
        JAXBElement<String> seq = echoString.getSequence();
        
        String ret = handleTwoWay(text.getValue(), seq.getValue());
        
        JAXBElement<String> val =
                new JAXBElement<String>(new QName("http://tempuri.org/",
                "EchoStringReturn"),
                String.class,
                new String("Returning hello "));
        
        val.setValue(ret);
        
        pr.setEchoStringReturn(val);
        
        return pr;
    
public java.lang.StringgetAlive(java.lang.String param)

        return isSequenceAlive(param);
    
public java.lang.StringgetCount(java.lang.String param)

        return reportCount(param);
    
public java.lang.StringgetDuplicates(java.lang.String param)

        return reportDuplicates(param);
    
public java.lang.StringgetInactivityTimeout(java.lang.String s)

        return super.getInactivityTimeout(s);
    
public java.lang.StringgetMessageNumber(java.lang.String s)

        Integer i =  (Integer)context.getMessageContext().get("com.sun.xml.ws.messagenumber");
        if (i != null) {
            return i.toString();
        } else {
            return "-1";
        }
        
    
public java.lang.StringgetOrdered(java.lang.String s)

        if (ordered) {
            return "true";
        } else {
            return "false";
        }
    
public java.lang.StringgetSequence(java.lang.String param)

        return reportSequence(param);   
    
public java.lang.StringgetSequenceID(java.lang.String s)

        Sequence seq = (Sequence)context.getMessageContext().get("com.sun.xml.ws.sequence");
        if (seq != null) {
            return seq.getId();
        } else {
            return null;
        }
    
public voidhandleOneWay(java.lang.String a, java.lang.String b)

        
    
public java.lang.StringhandleTwoWay(java.lang.String a, java.lang.String b)

        return a;
    
public voidping(PingRequestBodyType echoString)

        
        JAXBElement<String> text = echoString.getText();
        JAXBElement<String> seq = echoString.getSequence();
        
        handleOneWay(text.getValue(), seq.getValue());
    
public voidprocess(java.lang.String param)

        if (param.equals("test_order")) {
            int messageNumber = (Integer)(context.getMessageContext().get("com.sun.xml.ws.messagenumber"));
            if (messageNumber != lastMessageNumber + 1) {
                ordered  = false;
            }
            lastMessageNumber = messageNumber;
            
        }
        processImpl(param);