Subversion Repositories XServices

Rev

Rev 201 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 201 Rev 203
1
/*
1
/*
2
 *   Copyright 2013 Brian Rosenberger (Brutex Network)
2
 *   Copyright 2013 Brian Rosenberger (Brutex Network)
3
 *
3
 *
4
 *   Licensed under the Apache License, Version 2.0 (the "License");
4
 *   Licensed under the Apache License, Version 2.0 (the "License");
5
 *   you may not use this file except in compliance with the License.
5
 *   you may not use this file except in compliance with the License.
6
 *   You may obtain a copy of the License at
6
 *   You may obtain a copy of the License at
7
 *
7
 *
8
 *       http://www.apache.org/licenses/LICENSE-2.0
8
 *       http://www.apache.org/licenses/LICENSE-2.0
9
 *
9
 *
10
 *   Unless required by applicable law or agreed to in writing, software
10
 *   Unless required by applicable law or agreed to in writing, software
11
 *   distributed under the License is distributed on an "AS IS" BASIS,
11
 *   distributed under the License is distributed on an "AS IS" BASIS,
12
 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 *   See the License for the specific language governing permissions and
13
 *   See the License for the specific language governing permissions and
14
 *   limitations under the License.
14
 *   limitations under the License.
15
 */
15
 */
16
 
16
 
17
package net.brutex.xservices.ws.impl;
17
package net.brutex.xservices.ws.impl;
18
 
18
 
19
import lombok.extern.slf4j.Slf4j;
19
import lombok.extern.slf4j.Slf4j;
20
import net.brutex.xservices.types.*;
20
import net.brutex.xservices.types.*;
21
import net.brutex.xservices.types.alfevent.ALFEventResponseType;
21
import net.brutex.xservices.types.alfevent.ALFEventResponseType;
22
import net.brutex.xservices.types.alfevent.ALFEventType;
22
import net.brutex.xservices.types.alfevent.ALFEventType;
23
import net.brutex.xservices.types.alfevent.ObjectFactory;
23
import net.brutex.xservices.types.alfevent.ObjectFactory;
24
import net.brutex.xservices.types.ant.FileSetResource;
24
import net.brutex.xservices.types.ant.FileSetResource;
25
import net.brutex.xservices.util.EventEmitter;
25
import net.brutex.xservices.util.EventEmitter;
26
import net.brutex.xservices.util.EventmanagerConfiguration;
26
import net.brutex.xservices.util.EventmanagerConfiguration;
27
import net.brutex.xservices.util.RunTask;
27
import net.brutex.xservices.util.RunTask;
28
import net.brutex.xservices.ws.MiscService;
28
import net.brutex.xservices.ws.MiscService;
29
import net.brutex.xservices.ws.XServicesFault;
29
import net.brutex.xservices.ws.XServicesFault;
30
import org.apache.tools.ant.taskdefs.HostInfo;
30
import org.apache.tools.ant.taskdefs.HostInfo;
31
import org.apache.tools.ant.taskdefs.Sleep;
31
import org.apache.tools.ant.taskdefs.Sleep;
32
import org.apache.tools.ant.taskdefs.email.EmailTask;
32
import org.apache.tools.ant.taskdefs.email.EmailTask;
33
import org.h2.jdbcx.JdbcConnectionPool;
33
import org.h2.jdbcx.JdbcConnectionPool;
34
import org.quartz.*;
34
import org.quartz.*;
35
import org.quartz.impl.StdSchedulerFactory;
35
import org.quartz.impl.StdSchedulerFactory;
36
 
36
 
37
import javax.annotation.Resource;
37
import javax.annotation.Resource;
38
import javax.jws.WebService;
38
import javax.jws.WebService;
39
import javax.servlet.ServletContext;
39
import javax.servlet.ServletContext;
40
import javax.xml.bind.JAXBContext;
40
import javax.xml.bind.JAXBContext;
41
import javax.xml.bind.JAXBElement;
41
import javax.xml.bind.JAXBElement;
42
import javax.xml.bind.JAXBException;
42
import javax.xml.bind.JAXBException;
43
import javax.xml.bind.Marshaller;
43
import javax.xml.bind.Marshaller;
-
 
44
import javax.xml.namespace.QName;
44
import javax.xml.ws.WebServiceContext;
45
import javax.xml.ws.WebServiceContext;
45
import javax.xml.ws.handler.MessageContext;
46
import javax.xml.ws.handler.MessageContext;
46
import java.io.StringReader;
47
import java.io.StringReader;
47
import java.io.StringWriter;
48
import java.io.StringWriter;
48
import java.math.BigInteger;
49
import java.math.BigInteger;
49
import java.sql.*;
50
import java.sql.*;
50
import java.time.Instant;
51
import java.time.Instant;
51
import java.util.Date;
52
import java.util.Date;
52
import java.util.Enumeration;
53
import java.util.Enumeration;
53
import java.util.Properties;
54
import java.util.Properties;
54
import java.util.UUID;
55
import java.util.UUID;
55
import java.util.concurrent.atomic.AtomicLong;
56
import java.util.concurrent.atomic.AtomicLong;
56
 
57
 
57
import static org.quartz.TriggerBuilder.newTrigger;
58
import static org.quartz.TriggerBuilder.newTrigger;
58
 
59
 
59
 
60
 
60
/**
61
/**
61
 * Implements the web service
62
 * Implements the web service
62
 * 
63
 *
63
 * @author Brian Rosenberger, bru@brutex.de
64
 * @author Brian Rosenberger, bru@brutex.de
64
 */
65
 */
65
@Slf4j
66
@Slf4j
66
@WebService(targetNamespace="http://ws.xservices.brutex.net", endpointInterface="net.brutex.xservices.ws.MiscService", serviceName="MiscService")
67
@WebService(targetNamespace = "http://ws.xservices.brutex.net", endpointInterface = "net.brutex.xservices.ws.MiscService", serviceName = "MiscService")
67
public class MiscServiceImpl
68
public class MiscServiceImpl
68
  implements MiscService {
69
        implements MiscService {
-
 
70
 
-
 
71
    @Resource
-
 
72
    private WebServiceContext context;
69
 
-
 
70
  @Resource
-
 
71
  private WebServiceContext context;
73
 
72
    public MiscServiceImpl() throws SchedulerException {
74
    public MiscServiceImpl() throws SchedulerException {
73
    }
75
    }
74
 
76
 
75
    public HostinfoType getHostinfo(String hostname) {
77
    public HostinfoType getHostinfo(String hostname) {
313
    }
346
    }
314
    return of.createALFEventResponseType();
-
 
315
  }
-
 
316
}
347
}
317
 
348
 
318
Generated by GNU Enscript 1.6.5.90.
349
Generated by GNU Enscript 1.6.5.90.
319
 
350
 
320
 
351