예제 #1
0
  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
 @Override
 public void setContext(Context context) {
   super.setContext(context);
 }
 @Override
 public void setContext(Context context) {
   super.setContext(context);
   this.jaxRsRestlet.setContext(context);
 }