コード例 #1
0
ファイル: RESTComponent.java プロジェクト: vedina/RESTNet
  public RESTComponent(Context context, Application[] applications) {
    super();
    this.getClients().add(Protocol.FILE);
    this.getClients().add(Protocol.HTTP);
    this.getClients().add(Protocol.HTTPS);

    for (Application application : applications) {
      application.setContext(context == null ? getContext().createChildContext() : context);
      getDefaultHost().attach(application);
    }
    getInternalRouter().attach("/", applications[0]);
  }
コード例 #2
0
ファイル: PSCPServices.java プロジェクト: ideaesb/pscp
 @Override
 public void setContext(Context context) {
   super.setContext(context);
 }
コード例 #3
0
 @Override
 public void setContext(Context context) {
   super.setContext(context);
   this.jaxRsRestlet.setContext(context);
 }