Java Code Examples for org.osgl.util.E#unsupport()
The following examples show how to use
org.osgl.util.E#unsupport() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AppManager.java From actframework with Apache License 2.0 | 6 votes |
private Iterator<App> appIterator() { final Iterator<App> itrByPort = byPort.values().iterator(); return new Iterator<App>() { boolean byPortFinished = !itrByPort.hasNext(); @Override public boolean hasNext() { if (!byPortFinished) { byPortFinished = !itrByPort.hasNext(); } return !byPortFinished; } @Override public App next() { return byPortFinished ? null : itrByPort.next(); } @Override public void remove() { E.unsupport(); } }; }
Example 2
Source File: HMAC.java From actframework with Apache License 2.0 | 5 votes |
private Mac newMac() { try { return (Mac) mac.clone(); } catch (CloneNotSupportedException e) { throw E.unsupport("mac not clonable"); } }
Example 3
Source File: SessionValueLoader.java From actframework with Apache License 2.0 | 5 votes |
@Override public Object load(Object bean, ActContext<?> context, boolean noDefaultValue) { if (context instanceof ActionContext) { return load((ActionContext) context, noDefaultValue); } throw E.unsupport(); }
Example 4
Source File: JobContext.java From actframework with Apache License 2.0 | 4 votes |
@Override public String[] paramVals(String s) { throw E.unsupport(); }
Example 5
Source File: ActResponse.java From actframework with Apache License 2.0 | 4 votes |
@Override public T sendError(int sc) { throw E.unsupport(); }
Example 6
Source File: ActResponse.java From actframework with Apache License 2.0 | 4 votes |
@Override public T sendError(int sc, String msg) { throw E.unsupport(); }
Example 7
Source File: SimpleProgressGauge.java From actframework with Apache License 2.0 | 4 votes |
@Override public void incrMaxHint() { E.unsupport(); }
Example 8
Source File: SenderEnhancer.java From actframework with Apache License 2.0 | 4 votes |
@Override void appendTo(InsnList list, int varIndex, String type) { throw E.unsupport(); }
Example 9
Source File: SimpleProgressGauge.java From actframework with Apache License 2.0 | 4 votes |
@Override public void incrMaxHintBy(int number) { E.unsupport(); }
Example 10
Source File: WebSocketContext.java From actframework with Apache License 2.0 | 4 votes |
@Override public H.Format accept() { throw E.unsupport(); }
Example 11
Source File: WebSocketContext.java From actframework with Apache License 2.0 | 4 votes |
@Override public WebSocketContext accept(H.Format fmt) { throw E.unsupport(); }
Example 12
Source File: JobContext.java From actframework with Apache License 2.0 | 4 votes |
@Override public String paramVal(String s) { throw E.unsupport(); }
Example 13
Source File: JobContext.java From actframework with Apache License 2.0 | 4 votes |
@Override public Set<String> paramKeys() { throw E.unsupport(); }
Example 14
Source File: JobContext.java From actframework with Apache License 2.0 | 4 votes |
@Override public String methodPath() { throw E.unsupport(); }
Example 15
Source File: JobContext.java From actframework with Apache License 2.0 | 4 votes |
@Override public H.Format accept() { throw E.unsupport(); }
Example 16
Source File: InteralCacheService.java From java-tool with Apache License 2.0 | 4 votes |
@Override public void setDefaultTTL(int ttl) { throw E.unsupport(); }
Example 17
Source File: RenderAny.java From actframework with Apache License 2.0 | 4 votes |
@Override public void apply(H.Request req, H.Response resp) { throw E.unsupport("RenderAny does not support " + "apply to request and response. Please use apply(AppContext) instead"); }
Example 18
Source File: RenderTemplate.java From actframework with Apache License 2.0 | 4 votes |
@Override public void apply(H.Request req, H.Response resp) { renderArgsBag.remove(); throw E.unsupport("RenderTemplate does not support " + "apply to request and response. Please use apply(AppContext) instead"); }
Example 19
Source File: NamedMockHandler.java From actframework with Apache License 2.0 | 4 votes |
@Override public void prepareAuthentication(ActionContext context) { throw E.unsupport(); }
Example 20
Source File: ModelBase.java From actframework with Apache License 2.0 | 2 votes |
/** * Returns a {@link Dao} object that can operate on this entity of * the entities with the same type. * * <p>Note this method needs to be enhanced by framework to be called</p> * * @return the {@code Dao} object */ public static <T extends Dao> T dao() { throw E.unsupport("Please make sure you have Entity annotation tagged on your model class"); }