本文整理了Java中org.restlet.Restlet.start
方法的一些代码示例,展示了Restlet.start
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Restlet.start
方法的具体详情如下:
包路径:org.restlet.Restlet
类名称:Restlet
方法名:start
[英]Starts the Restlet. By default its only sets "started" internal property to true. WARNING: this method must be called at the end of the starting process by subclasses otherwise concurrent threads could enter into the call handling logic too early.
[中]启动Restlet。默认情况下,它仅将“started”内部属性设置为true。警告:子类必须在启动进程结束时调用此方法,否则并发线程可能过早进入调用处理逻辑。
代码示例来源:origin: org.restlet/org.restlet
@Override
public synchronized void start() throws Exception {
wrappedRestlet.start();
}
代码示例来源:origin: org.restlet.osgi/org.restlet
@Override
public synchronized void start() throws Exception {
wrappedRestlet.start();
}
代码示例来源:origin: org.restlet.jee/org.restlet.ext.jaxrs
@Override
public void start() throws Exception {
providers.initAll();
// Must be invoked as a last step
super.start();
}
}
代码示例来源:origin: org.restlet.osgi/org.restlet
/**
* Starts the filter and the next Restlet if attached.
*/
@Override
public synchronized void start() throws Exception {
if (isStopped()) {
if (getNext() != null) {
getNext().start();
}
// Must be invoked as a last step
super.start();
}
}
代码示例来源:origin: org.restlet.osgi/org.restlet
/**
* Starts the application, all the enabled associated services then the
* inbound and outbound roots.
*/
@Override
public synchronized void start() throws Exception {
if (isStopped()) {
if (isDebugging()) {
getLogger().log(
Level.INFO,
"Starting " + getClass().getName()
+ " application in debug mode");
} else {
getLogger().log(Level.INFO,
"Starting " + getClass().getName() + " application");
}
if (getHelper() != null) {
getHelper().start();
}
getServices().start();
if (getInboundRoot() != null) {
getInboundRoot().start();
}
if (getOutboundRoot() != null) {
getOutboundRoot().start();
}
// Must be invoked as a last step
super.start();
}
}
代码示例来源:origin: org.restlet/org.restlet
/**
* Starts the component. First it starts all the connectors (clients then
* servers) and then starts the component's internal helper. Finally it
* calls the start method of the super class.
*
* @see #startClients()
* @see #startServers()
* @see #startHelper()
*/
@Override
public synchronized void start() throws Exception {
if (isStopped()) {
startClients();
startServers();
startHelper();
startServices();
super.start();
}
}
代码示例来源:origin: org.restlet.osgi/org.restlet
/**
* Starts the filter and the attached routes.
*/
@Override
public synchronized void start() throws Exception {
if (isStopped()) {
for (Route route : getRoutes()) {
route.start();
}
if (getDefaultRoute() != null) {
getDefaultRoute().start();
}
// Must be invoked as a last step
super.start();
}
}
代码示例来源:origin: miltonio/milton2
@Override
public synchronized void start() throws Exception {
if (!isStarted()) {
HttpManagerBuilder config = new HttpManagerBuilder();
config.setMainResourceFactory(getResourceFactory());
config.setEntityTransport(new RestletEntityTransport());
httpManager = config.buildHttpManager();
}
super.start();
}
代码示例来源:origin: org.restlet/org.restlet
start();
} catch (Exception e) {
代码示例来源:origin: org.restlet.osgi/org.restlet
/**
* Starts the component. First it starts all the connectors (clients then
* servers), the routers, the services, the realms and then the component's
* internal helper. Finally it calls the start method of the super class.
*
* @see #startClients()
* @see #startServers()
* @see #startRouters()
* @see #startServices()
* @see #startRealms()
* @see #startHelper()
*/
@Override
public synchronized void start() throws Exception {
if (isStopped()) {
startClients();
startServers();
startRouters();
startServices();
startRealms();
startHelper();
// Must be invoked as a last step
super.start();
}
}
代码示例来源:origin: org.restlet.osgi/org.restlet
start();
} catch (Exception e) {
代码示例来源:origin: org.restlet/org.restlet
public synchronized void start() throws Exception {
if (isStopped()) {
super.start();
内容来源于网络,如有侵权,请联系作者删除!