public class DefaultRestServicePublishService extends Object implements IPublishService
Modifier and Type | Field and Description |
---|---|
static javax.ws.rs.core.MediaType[] |
DEFAULT_FORMATS
The default media formats.
|
static String |
FORMATS
Constant for String[] for supported parameter media types.
|
static String |
GENERATE
Constant for boolean flag if automatic generation should be used.
|
static String |
GENERATE_INFO
Constant for boolean.
|
static String |
JADEXSERVICE
The service constant.
|
PUBLISH_RS, PUBLISH_WS
Constructor and Description |
---|
DefaultRestServicePublishService()
Create a new publish service.
|
DefaultRestServicePublishService(IRestMethodGenerator generator)
Create a new publish service.
|
Modifier and Type | Method and Description |
---|---|
Object |
getServiceInfo(Object[] params)
Functionality blueprint for get service info web method.
|
Object |
invoke(Object[] params)
Functionality blueprint for all service methods.
|
IFuture<Boolean> |
isSupported(String publishtype)
Test if publishing a specific type is supported (e.g. web service).
|
IFuture<Void> |
publishService(ClassLoader cl,
IService service,
PublishInfo pi)
Publish a service.
|
IFuture<Void> |
unpublishService(IServiceIdentifier sid)
Unpublish a service.
|
public static String GENERATE
public static String FORMATS
public static String GENERATE_INFO
public static javax.ws.rs.core.MediaType[] DEFAULT_FORMATS
public static String JADEXSERVICE
public DefaultRestServicePublishService()
public DefaultRestServicePublishService(IRestMethodGenerator generator)
public IFuture<Boolean> isSupported(String publishtype)
isSupported
in interface IPublishService
publishtype
- The type to test.public IFuture<Void> publishService(ClassLoader cl, IService service, PublishInfo pi)
publishService
in interface IPublishService
cl
- The classloader.service
- The original service.pid
- The publish id (e.g. url or name).public IFuture<Void> unpublishService(IServiceIdentifier sid)
unpublishService
in interface IPublishService
sid
- The service identifier.public Object invoke(Object[] params)
params
- The parameters.public Object getServiceInfo(Object[] params)
params
- The parameters.Copyright © 2012. All Rights Reserved.