本文整理了Java中org.restlet.Application.getHelper()
方法的一些代码示例,展示了Application.getHelper()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Application.getHelper()
方法的具体详情如下:
包路径:org.restlet.Application
类名称:Application
方法名:getHelper
[英]Returns the helper provided by the implementation.
[中]返回实现提供的帮助程序。
代码示例来源:origin: org.restlet/org.restlet
@Override
public void handle(Request request, Response response) {
super.handle(request, response);
if (getHelper() != null) {
getHelper().handle(request, response);
}
}
代码示例来源:origin: org.restlet.osgi/org.restlet
@Override
public void handle(Request request, Response response) {
super.handle(request, response);
if (getHelper() != null) {
getHelper().handle(request, response);
}
}
代码示例来源:origin: org.restlet.osgi/org.restlet
/**
* Creates a outbound root Restlet that will receive all outgoing calls from
* ClientResource. In general, instances of {@link Router} and
* {@link Filter} classes will be used. The default implementation returns a
* Restlet giving access to the the outbound service layer and finally to
* the {@link Context#getClientDispatcher()}.
* <p>
* This method is intended to be overridden by subclasses but in order to
* benefit from the outbound service filtering layer, the original outbound
* root must be careful attached again at the end of the user filtering
* layer.
*
* @return The outbound root Restlet.
*/
public Restlet createOutboundRoot() {
return getHelper().getFirstOutboundFilter();
}
代码示例来源:origin: org.restlet.osgi/org.restlet
@Override
public void setContext(Context context) {
super.setContext(context);
getHelper().setContext(context);
getServices().setContext(context);
}
代码示例来源: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.osgi/org.restlet
/**
* Stops the application, the inbound and outbound roots then all the
* enabled associated services. Finally, it clears the internal cache of
* annotations.
*/
@Override
public synchronized void stop() throws Exception {
if (isStarted()) {
// Must be invoked as a first step
super.stop();
if (getOutboundRoot() != null) {
getOutboundRoot().stop();
}
if (getInboundRoot() != null) {
getInboundRoot().stop();
}
getServices().stop();
if (getHelper() != null) {
getHelper().stop();
}
// Clear the annotations cache
AnnotationUtils.getInstance().clearCache();
}
}
代码示例来源:origin: org.restlet/org.restlet
if (getHelper() != null) {
getHelper().stop();
代码示例来源:origin: org.restlet/org.restlet
super.start();
if (getHelper() != null) {
getHelper().start();
内容来源于网络,如有侵权,请联系作者删除!