-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Ludovic Orban <[email protected]>
- Loading branch information
Showing
2 changed files
with
185 additions
and
1 deletion.
There are no files selected for viewing
184 changes: 184 additions & 0 deletions
184
jetty-ee9/jetty-ee9-nested/src/test/java/org/eclipse/jetty/ee9/nested/MockCoreRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,184 @@ | ||
// | ||
// ======================================================================== | ||
// Copyright (c) 1995 Mort Bay Consulting Pty Ltd and others. | ||
// | ||
// This program and the accompanying materials are made available under the | ||
// terms of the Eclipse Public License v. 2.0 which is available at | ||
// https://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0 | ||
// which is available at https://www.apache.org/licenses/LICENSE-2.0. | ||
// | ||
// SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 | ||
// ======================================================================== | ||
// | ||
|
||
package org.eclipse.jetty.ee9.nested; | ||
|
||
import java.util.List; | ||
import java.util.Set; | ||
import java.util.function.Function; | ||
import java.util.function.Predicate; | ||
|
||
import org.eclipse.jetty.http.HttpCookie; | ||
import org.eclipse.jetty.http.HttpFields; | ||
import org.eclipse.jetty.http.HttpURI; | ||
import org.eclipse.jetty.io.Content; | ||
import org.eclipse.jetty.server.Components; | ||
import org.eclipse.jetty.server.ConnectionMetaData; | ||
import org.eclipse.jetty.server.Context; | ||
import org.eclipse.jetty.server.HttpStream; | ||
import org.eclipse.jetty.server.Session; | ||
import org.eclipse.jetty.server.TunnelSupport; | ||
|
||
public class MockCoreRequest implements org.eclipse.jetty.server.Request | ||
{ | ||
@Override | ||
public Object removeAttribute(String name) | ||
{ | ||
return null; | ||
} | ||
|
||
@Override | ||
public Object setAttribute(String name, Object attribute) | ||
{ | ||
return null; | ||
} | ||
|
||
@Override | ||
public Object getAttribute(String name) | ||
{ | ||
return null; | ||
} | ||
|
||
@Override | ||
public Set<String> getAttributeNameSet() | ||
{ | ||
return null; | ||
} | ||
|
||
@Override | ||
public void clearAttributes() | ||
{ | ||
} | ||
|
||
@Override | ||
public String getId() | ||
{ | ||
return null; | ||
} | ||
|
||
@Override | ||
public Components getComponents() | ||
{ | ||
return null; | ||
} | ||
|
||
@Override | ||
public ConnectionMetaData getConnectionMetaData() | ||
{ | ||
return null; | ||
} | ||
|
||
@Override | ||
public String getMethod() | ||
{ | ||
return null; | ||
} | ||
|
||
@Override | ||
public HttpURI getHttpURI() | ||
{ | ||
return null; | ||
} | ||
|
||
@Override | ||
public Context getContext() | ||
{ | ||
return null; | ||
} | ||
|
||
@Override | ||
public HttpFields getHeaders() | ||
{ | ||
return null; | ||
} | ||
|
||
@Override | ||
public HttpFields getTrailers() | ||
{ | ||
return null; | ||
} | ||
|
||
public List<HttpCookie> getCookies() | ||
{ | ||
return null; | ||
} | ||
|
||
@Override | ||
public long getBeginNanoTime() | ||
{ | ||
return 0; | ||
} | ||
|
||
@Override | ||
public long getHeadersNanoTime() | ||
{ | ||
return 0; | ||
} | ||
|
||
@Override | ||
public boolean isSecure() | ||
{ | ||
return false; | ||
} | ||
|
||
@Override | ||
public long getLength() | ||
{ | ||
return 0; | ||
} | ||
|
||
@Override | ||
public Content.Chunk read() | ||
{ | ||
return null; | ||
} | ||
|
||
@Override | ||
public boolean consumeAvailable() | ||
{ | ||
return false; | ||
} | ||
|
||
@Override | ||
public void demand(Runnable demandCallback) | ||
{ | ||
} | ||
|
||
@Override | ||
public void fail(Throwable failure) | ||
{ | ||
} | ||
|
||
@Override | ||
public boolean addErrorListener(Predicate<Throwable> onError) | ||
{ | ||
return false; | ||
} | ||
|
||
@Override | ||
public TunnelSupport getTunnelSupport() | ||
{ | ||
return null; | ||
} | ||
|
||
@Override | ||
public void addHttpStreamWrapper(Function<HttpStream, HttpStream> wrapper) | ||
{ | ||
} | ||
|
||
@Override | ||
public Session getSession(boolean create) | ||
{ | ||
return null; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters